When the Sun's core runs out of hydrogen, it won't quietly fade away. It will violently collapse under its own gravity, igniting a ferocious new firestorm that expands to swallow Earth.
Right now, the Sun is in a delicate, billions-of-years-long standoff called hydrostatic equilibrium. The immense gravity of its mass is constantly trying to crush it inward, while the nuclear fusion of hydrogen into helium in its core creates an outward radiation pressure that holds that gravity at bay.
In about five billion years, that standoff will end. The Sun will run out of hydrogen in its very center, leaving behind a dense, inert core of helium.
Without hydrogen fusion to generate outward pressure, the core can no longer resist gravity. The helium core immediately begins to collapse in on itself under the crushing weight of the star's outer layers. As the core compresses, it becomes denser and hotter, driven by the laws of thermodynamics.
This collapsing, superheated core triggers the red giant phase.
While the core itself is out of hydrogen, there is still plenty of unfused hydrogen in the layers immediately outside it. The intense heat radiating from the collapsing helium core warms this surrounding boundary until it reaches millions of degrees. Suddenly, this layer ignites, creating a hydrogen burning shell around the dead core.
This shell burning is actually fiercer and faster than the Sun's current core fusion. The newly ignited shell unleashes more energy than the core ever did, creating an outward radiation pressure that overpowers the star's gravity.
This pressure forces the Sun's outer layers outward, expanding the star to hundreds of times its original size. As the outer gases are pushed millions of miles into space, they expand and lose heat. The surface temperature drops, causing the star's light to shift from yellow-white to a glowing, cooler red. The collapsed core and the hyperactive burning shell have transformed the Sun into a red giant, pushing its surface out into the inner solar system.
