Skip to content

Space physics simulation

Life Cycle of Stars Simulation

Choose a starting mass from half the Sun's to forty times it and watch one star's whole life. Test the balance between gravity and pressure, see which elements each stage makes, compare durations on a log timeline and find out whether it ends as a white dwarf, a neutron star or a black hole.

Loading simulation…
Show symbols for

Predict first

Question 1 of 4

The Sun will end as a white dwarf. A star with 4 times the Sun's mass starts out the same way. What will it end up as?

Try this

  1. 1Press Play and watch the Sun's whole life. In the How long each stage lasts timeline below the stage, which stage with a length in years lasts longest, and what is happening in the core during it?
  2. 2Press 3. Main seq. under the stage. In the Forces on the star card, choose Slow the fusion. Which arrows get shorter, and what happens to the size of the star? Then choose Back to normal.
  3. 3Choose 15 M☉: massive from the Star menu and press Next until you reach the red supergiant. Which element sits at the very centre, and why can fusion go no further?
  4. 4Drag the Starting mass slider from 7 M☉ to 9 M☉ and read the Ends as line each time. Then try 22 M☉ and 28 M☉. Why are these boundaries only approximate?
  5. 5Choose 0.5 M☉: lighter than the Sun and compare its main sequence row with the age of the universe line. Why has no star this light become a red giant yet?

What this simulation shows

Choose a starting mass between half the Sun's and forty times the Sun's, then press Play. The stage follows one star through seven stages, from a cold cloud of gas and dust to its end, and the strip along the bottom tracks its progress. Each stage has its own picture: a swirling cloud, a glowing ball in a dusty disc, a steady star, a swollen giant, then either a glowing shell round a tiny hot dwarf or a blinding explosion. Sizes and colours are drawn for clarity rather than to scale, and the stage says so.

Gravity against pressure

A cloud of gas and dust collapses because its own gravity pulls it inwards. As it shrinks, gravitational potential energy is transferred to the thermal energy store, so the protostar heats up long before any hydrogen fuses. Once the core is hot enough, hydrogen nuclei fuse into helium and release energy. That keeps the core very hot, and the hot gas pushes outwards. On the main sequence the outward push matches gravity's inward pull, which is why the star keeps a steady size for most of its life. The Forces on the star card lets you test this: slow the fusion and gravity wins for a while, so the star shrinks until its squeezed core heats up again.

Two ways to end

Mass decides the ending. A star like the Sun swells into a red giant once its core runs low on hydrogen. Its outer layers later drift away as a planetary nebula, leaving a white dwarf about as big as the Earth, which cools over billions of years. A completely cold black dwarf is only a prediction, since no white dwarf has had time to cool that far. A star above roughly 8 solar masses becomes a red supergiant instead. When its core has turned to iron, fusion can no longer support it: the core collapses in under a second and the star explodes as a supernova. The core survives as a neutron star or, for the heaviest stars, a black hole. The line between those outcomes is blurred, so the simulation shows both from about 20 to 25 solar masses.

Where your atoms were made

The elements card follows the fusion. Main sequence stars turn hydrogen into helium, giants turn helium into carbon and oxygen, and supergiants build layer upon layer up to an iron centre. Fusing iron releases no energy, so this route stops there. For the elements beyond iron, exam answers point to supernovae, and astronomers now know that colliding neutron stars make many as well. Planetary nebulae and supernovae hand all this material back to space, where it can be gathered into new stars and planets.

How long it all takes

The timeline below the stage uses a log scale, because the stages last anywhere from under a second to tens of billions of years. A common rough rule for the main sequence of a star of starting mass MM is

t≈1010 years×(MM⊙)−2.5t \approx 10^{10}\ \text{years} \times \left(\frac{M}{M_\odot}\right)^{-2.5}

so heavier stars, despite holding more fuel, use it up far faster. The Sun gets about 10 billion years, a 15 solar mass star only about 11 million. Stars lighter than about 0.9 solar masses have main sequence lives longer than the present age of the universe, so a star like that has not had time to leave the main sequence.

Simplifications and course notes

Every duration and boundary here is approximate. For AQA, this topic sits in GCSE Physics only, and the specification's flow chart runs from red giant straight to white dwarf, so the planetary nebula is extra detail. Cambridge IGCSE puts the whole life cycle in the Supplement, calls the main sequence a stable star and never mentions black dwarfs. The Punjab Class 10 book describes the Sun as a medium-sized star powered by hydrogen fusion but not the life cycle, so treat the rest as extension.

Check your understanding

8 questions

  1. 1.Why does a protostar get hotter as time goes on?
  2. 2.A main sequence star stays about the same size for billions of years. Which two effects balance?
  3. 3.What will the Sun eventually become?
  4. 4.Which event do exams link with making elements heavier than iron?
  5. 5.How does a star of 15 solar masses compare with the Sun?
  6. 6.What is a planetary nebula?
  7. 7.Why does no black dwarf exist yet?
  8. 8.Which change happens inside the core of a main sequence star?

For teachers

Embed it in your site or open it full-screen for the projector.

Read more