what eventually happens to medium mass stars? i know small stars don't die out as quickly as more massive ones, but i'm having a hard time figuring out what happens to the medium mass ones. thank you.

After the hydrogen burns up at the center, hydrogen continues in outer layers; then helium fusion starts at the core. Then the star becomes a red giant until the supply of fuel gets low everywhere, forcing the star to contract. Then it collapses to form a while dwarf that gradually cools as the fuel runs out.

This is what will happen to our sun.

This article may help

(Broken Link Removed)