The Sun has been shining for about 4.6 billion years and has roughly the same again to go. That much is well established. What is less widely known is that the Sun is not a stable object holding steady until some distant switch-off — it has been getting brighter the entire time, and that slow brightening will end life on Earth long before the star itself dies.

The physics behind this is well understood, and the timeline is worth knowing.

What the Sun is doing right now

At the core, where the temperature is around 15 million degrees and the pressure is immense, hydrogen nuclei are fusing into helium. Four hydrogen nuclei become one helium nucleus, and the helium weighs slightly less than the ingredients. The missing mass becomes energy, at the rate given by Einstein's famous equation.

The Sun converts roughly 600 million tonnes of hydrogen into helium every second, losing about 4 million tonnes of mass to energy in the process.

That energy takes an extraordinarily long time to escape. A photon produced in the core is absorbed and re-emitted so many times that its journey to the surface takes on the order of a hundred thousand years. From the surface to your skin takes eight minutes.

The Sun is in the stage astronomers call the main sequence, a stable balance between gravity pulling inward and radiation pressure pushing outward. It has been in this state for 4.6 billion years and will remain in it for about 5 billion more.

The faint young Sun

Here is the part that surprises people: the Sun is roughly 30 percent brighter now than when it formed.

As hydrogen fuses into helium, the core's composition changes. Helium is heavier, so the core contracts slightly and heats up, which speeds up fusion. The Sun therefore brightens steadily over billions of years, at roughly 1 percent per hundred million years.

This creates a genuine scientific puzzle known as the faint young Sun paradox. With a Sun 30 percent dimmer, early Earth should have been frozen solid — yet the geological record shows liquid water and life very early on. The leading explanations involve a much stronger greenhouse effect in the early atmosphere, probably from high carbon dioxide and methane. The details are still debated.

The timeline from here

In roughly 600 million to 1 billion years: the brightening Sun raises Earth's temperature enough to accelerate the weathering of silicate rocks, which pulls carbon dioxide out of the atmosphere. Below a certain threshold, most plants can no longer photosynthesise. This is the point at which complex life on Earth's surface ends — not in five billion years, but in under one. The end of the biosphere is a Sun problem, and it arrives early.

In roughly 1 to 2 billion years: oceans begin to evaporate in earnest. Water vapour is itself a powerful greenhouse gas, creating a runaway feedback. Earth begins to resemble Venus.

In roughly 5 billion years: hydrogen in the core is exhausted. Fusion in the core stops. Without radiation pressure, the core contracts under gravity and heats further, until hydrogen begins fusing in a shell surrounding the inert helium core. This shell burning is more energetic than core burning was, and the outer layers of the Sun expand enormously in response.

The Life Cycle of the Sun: What Happens to Earth When Our Star Dies
Read next Exoplanets: How We Find Worlds Around Other Stars

The Sun becomes a red giant. Its radius grows to something in the region of 100 to 200 times its present size — large enough to swallow Mercury and Venus outright. Its surface cools to a dull orange-red even as its total output rises to thousands of times today's level.

Whether Earth survives is genuinely uncertain. As the Sun expands it also loses mass through a strong stellar wind, and a less massive Sun holds its planets less tightly, so Earth's orbit will drift outward. The competition between the expanding surface and the retreating orbit is close. Most modelling suggests Earth is engulfed, or else survives as a scorched, airless rock orbiting just outside a star that has already destroyed it in every meaningful sense.

The helium flash and the end

Once the core reaches around 100 million degrees, helium itself begins to fuse into carbon and oxygen. In a star of the Sun's mass this ignition happens abruptly — an event called the helium flash, in which the core releases an enormous burst of energy over minutes, though it is buffered by the overlying layers and not visible from outside.

The Sun then settles into a shorter, more stable phase of helium burning lasting perhaps a hundred million years, before helium runs out too.

At this point the Sun does not have enough mass to fuse carbon. There is no next stage. The core contracts for the last time, and the outer layers, only loosely bound, drift away into space.

What is left behind is a planetary nebula — a glowing shell of expelled gas lit by the exposed core. The name is a historical accident: early observers saw round, planet-like discs through their telescopes, and the term stuck despite having nothing to do with planets. These are among the most beautiful objects in astronomy, and they last only tens of thousands of years, which in stellar terms is a flicker.

What remains

The exposed core becomes a white dwarf: roughly 60 percent of the Sun's current mass compressed into a sphere about the size of Earth. A teaspoon of it would weigh several tonnes.

A white dwarf produces no energy at all. It is held up not by fusion but by electron degeneracy pressure, a quantum mechanical effect that prevents further collapse. It simply radiates away the heat it already has, cooling and dimming over billions of years.

Eventually — over timescales far longer than the current age of the universe — it would fade into a cold black dwarf. No such object exists yet, because the universe has not been around long enough for any white dwarf to have cooled that far.

The bigger picture

The Sun's fate is unremarkable, which is itself the interesting part. Stars of roughly solar mass all follow this path. More massive stars burn faster, fuse heavier elements, and end in supernovae that scatter those elements outward. Much smaller red dwarfs burn so slowly that none has ever finished its life in the history of the universe.

The carbon in your body was made in the cores of earlier stars, many of them stars like the Sun that shed their outer layers gently rather than exploding. The Sun will do the same, returning enriched material to the galaxy for whatever forms next.

The practical takeaway is a matter of scale. The five-billion-year figure is the star's lifetime, not ours. The habitable window for complex life on Earth is measured in hundreds of millions of years, and a substantial fraction of it has already elapsed. Earth is, in the long view, closer to the end of its habitable period than the beginning.