From gas cloud to stellar remnant
The life of a star follows a path set by a single factor: mass. All stars begin the same way — a clump of gas in a molecular cloud collapses under gravity, heats up, and eventually reaches the temperatures needed for nuclear fusion. Once fusion ignites, a star enters the main sequence — the long, stable phase where hydrogen fuses to helium in the core. The Sun has been on the main sequence for 4.6 billion years and has roughly 5 billion years left.
The main sequence lifespan is inversely related to mass: massive stars burn far hotter and exhaust their fuel in millions of years; low-mass red dwarfs can burn for trillions of years. Once hydrogen is depleted, the evolutionary path diverges: low-mass stars become red giants, shed their outer layers as planetary nebulae, and leave white dwarfs. Massive stars evolve rapidly to become red supergiants, then explode as supernovae.
The heavy elements forged in stellar cores — carbon, oxygen, iron, and all elements up to iron — are returned to interstellar space when stars die, enriching the next generation of star formation. Elements heavier than iron are forged in supernovae themselves and in neutron star mergers. For more on the types of stars at different stages, see our stars overview guide.