How Many Years Until the Sun Explodes?

The Sun will never explode. It lacks the mass to detonate as a supernova, a fate reserved for stars roughly eight or more times heavier. What the Sun will do, in approximately five billion years, is exhaust the hydrogen fuel in its core, swell into an enormous red giant, shed its outer layers, and collapse into a dense, slowly cooling remnant called a white dwarf. The timeline is long, but the story is more interesting than a simple countdown, because Earth will become uninhabitable well before the Sun reaches anything resembling old age.

Why the Sun Cannot Explode

Stars die in dramatically different ways depending on their mass. A massive star, one with at least eight to ten times the Sun’s mass, ends its life in a core-collapse supernova: the core runs out of fuel to support itself against gravity, collapses in on itself in a fraction of a second, and rebounds in a catastrophic explosion that can briefly outshine an entire galaxy. The Sun is nowhere near that threshold. At one solar mass, it sits squarely in the category of low-mass stars, which go through a much quieter death sequence. Researchers modeling stars of about one solar mass consistently find that they pass through a red-giant phase and settle into white dwarfhood without any explosive finale.

The confusion is understandable. Popular culture tends to treat “the Sun dying” and “the Sun exploding” as interchangeable, and the word “supernova” gets used loosely. But the physics is clear: the Sun will never produce the runaway iron-core collapse that triggers a supernova. Its end will be dramatic in its own way, reshaping the entire inner solar system, but it will not be an explosion.

What Powers the Sun Right Now

The Sun generates energy by fusing hydrogen into helium deep in its core, where temperatures exceed 15 million degrees and pressures are immense. The dominant process is proton-proton fusion, in which pairs of hydrogen nuclei combine through a chain of reactions to build helium nuclei and release energy. This process accounts for roughly 99 percent of the Sun’s total power output.1Nature. Neutrinos from the primary proton–proton fusion process in the Sun That power, measured at about 3.84 × 10²⁶ watts, is what keeps the Sun shining and holds it in a stable balance: the outward push of energy from fusion counteracts the inward pull of gravity.

This balance has held for about 4.6 billion years and will continue for roughly another five billion. The Sun is currently near the midpoint of its hydrogen-burning lifetime. As it fuses hydrogen, the core gradually accumulates “ash” in the form of helium, and the core slowly contracts and heats up. This is a gentle process, but it has consequences: the Sun is getting brighter over time, at a rate of about one percent every hundred million years. That slow brightening matters far more for life on Earth than the distant red-giant phase.

When Earth Becomes Uninhabitable

Long before the Sun dies, its increasing brightness will make Earth’s surface too hot for liquid water. Climate modeling of Earth’s response to a brightening Sun shows that the transition is not gradual. When the Sun’s output rises to about 12.5 percent above its current level, the climate tips sharply. Global surface temperatures jump above 330 K (roughly 57°C or 134°F), driven by a fundamental change in how the atmosphere handles heat: the lower atmosphere begins absorbing so much solar energy and radiating so inefficiently that it enters a new, much hotter equilibrium.2Journal of Geophysical Research: Atmospheres. The evolution of habitable climates under the brightening Sun

At around 19 percent more solar output, conditions become severe enough that water begins escaping to space in significant quantities. By the time the Sun is about 21 percent brighter, global temperatures exceed 360 K (87°C), and water loss to space becomes rapid. At that point, the oceans are on their way out. Given the Sun’s brightening rate, these thresholds could be crossed within roughly one to two billion years, not five billion. So the end of habitability arrives billions of years before the Sun itself dies. Complex life may have an even shorter window, since extreme heat and atmospheric changes would stress ecosystems well before the oceans literally boil away.

This is the detail that tends to surprise people. The headline number, “five billion years until the Sun dies,” gives a false sense of comfort if you care about life on Earth. The actual deadline for a habitable planet is much closer, though still comfortably far off on any human timescale.

The Red Giant Phase

Once the Sun has exhausted the hydrogen in its core, probably around five billion years from now, the core contracts under gravity while a shell of hydrogen surrounding it continues to fuse. This shell burning dumps enormous energy into the Sun’s outer layers, causing them to expand and cool. The Sun swells into a red giant, growing to perhaps 200 times its current diameter. Its surface will extend past the current orbit of Mercury and Venus, and its outer atmosphere will reach out toward Earth’s orbit.

The red-giant expansion is not a single dramatic event but a process that unfolds over hundreds of millions of years. As the Sun grows, it also loses mass. Stellar winds carry material off the surface and into space, gradually reducing the Sun’s gravitational grip on its planets. This mass loss causes the orbits of surviving planets to drift outward, which you might think could save Earth from being swallowed. Unfortunately, the math does not work in Earth’s favor.

Detailed modeling of this phase finds that Earth will be engulfed by the expanding Sun about 7.59 billion years from now, just before the Sun reaches the tip of the red-giant branch.3Monthly Notices of the Royal Astronomical Society. Distant future of the Sun and Earth revisited Mercury and Venus go first, swallowed roughly 3.8 million and 1 million years before Earth, respectively. The orbital expansion from solar mass loss gives Earth a slightly wider orbit, but the Sun’s envelope grows even faster, and tidal interactions between the swollen Sun and the nearby planet drag Earth inward. The researchers who computed this timeline considered whether the uncertainties could save Earth, and concluded that escape from this “doomsday scenario” is unlikely given how tightly constrained the mass-loss rate is by observations of other stars at the same evolutionary stage.

The Helium Flash and What Comes After

While the Sun is swelling as a red giant, something remarkable happens deep inside. The helium “ash” that has been piling up in the core since the Sun’s birth reaches temperatures and densities high enough for a new kind of fusion. Helium nuclei begin fusing into carbon through a process that requires three helium nuclei to combine nearly simultaneously. In a low-mass star like the Sun, the core at this stage is in a peculiar physical state: it is compressed so tightly that it behaves as a degenerate gas, where quantum mechanical effects prevent further compression regardless of temperature. This means the core cannot expand and cool in response to rising temperatures, so when helium fusion ignites, it does so in a violent thermal runaway called the helium flash.4Astronomy & Astrophysics. The core helium flash revisited: III. From Population I to Population III stars

Despite the name, the helium flash is not visible from the outside. All that energy goes into lifting the degeneracy of the core, allowing it to expand and settle into a stable helium-burning phase. The Sun then shrinks somewhat and enters a quieter period, sometimes called the horizontal branch, where it burns helium in its core and hydrogen in a surrounding shell. This phase lasts roughly a hundred million years.

When the core helium is used up, the Sun enters a second giant expansion called the asymptotic giant branch. It puffs up again, pulses, and sheds its outer layers in successive waves of mass loss. These expelled shells of gas form a glowing cloud, a planetary nebula, illuminated by the hot, exposed core. The name “planetary nebula” is a historical accident, having nothing to do with planets; through early telescopes they looked like the disks of planets. The Sun’s planetary nebula will glow for perhaps ten to twenty thousand years before fading as the gas disperses. Stars that pass through the asymptotic giant branch return a significant fraction of their mass to the surrounding space, enriching interstellar gas with carbon and other elements produced in their interiors.5Monthly Notices of the Royal Astronomical Society. Ages and masses of asymptotic giant branch stars from the period–luminosity diagram Research into low-temperature helium fusion rates confirms that stars of about one solar mass follow this entire sequence reliably, ending as white dwarfs.6PubMed. Low-temperature triple-alpha rate in a full three-body nuclear model

The White Dwarf That Remains

After the planetary nebula disperses, what remains is the Sun’s former core: a white dwarf roughly the size of Earth but with about half the Sun’s original mass packed into it. White dwarfs produce no energy from fusion. They shine only because they are still extremely hot from the processes that created them, and they spend the rest of their existence slowly radiating that heat into space.

“Slowly” is an understatement. A white dwarf’s cooling timescale is staggering. The interior is so dense that its thermal energy is enormous, stored mainly in the vibrations of the ions locked in a crystal-like lattice structure. Early calculations significantly underestimated how long cooling takes; accounting for the energy stored in the lattice roughly doubled the estimated lifetimes.7Monthly Notices of the Royal Astronomical Society. The Energy Content of A White Dwarf and Its Rate of Cooling The Sun’s white dwarf will take many billions of years to cool to the point where it no longer emits visible light. Eventually, over timescales far exceeding the current age of the universe, it would become a cold, dark “black dwarf,” though no black dwarfs are thought to exist yet because the universe is not old enough for any white dwarf to have cooled that far.

What Happens to the Outer Planets

While Mercury, Venus, and Earth are consumed during the red-giant phase, the giant planets, Jupiter, Saturn, Uranus, and Neptune, survive the Sun’s death. As the Sun sheds roughly half its mass during the red-giant and asymptotic-giant-branch phases, the reduced gravitational pull causes the giant planets’ orbits to expand outward.8The Astronomical Journal. The Great Inequality and the Dynamical Disintegration of the Outer Solar System This expansion happens smoothly and preserves the ratios of the planets’ orbital periods, so the general architecture of the outer solar system stays intact initially.

But the wider orbits make the system more fragile. Simulations show that the mass loss pushes Jupiter and Saturn into a stable orbital resonance, locked in step with each other. This arrangement holds for tens of billions of years, but the system becomes increasingly vulnerable to gravitational nudges from passing stars. Within about 30 billion years, a stellar flyby is expected to jostle the planets onto a chaotic trajectory, triggering an instability that ejects all but one of the giants over the following ten billion years or so. The final surviving planet lingers on an ever-more-precarious orbit until another close stellar encounter strips it away, roughly 100 billion years from now.8The Astronomical Journal. The Great Inequality and the Dynamical Disintegration of the Outer Solar System The solar system, in other words, does not last forever. But its dissolution timescale is about seven times the current age of the universe.

Earlier work had been somewhat more optimistic, finding the giant planets stable for at least ten billion years beyond the Sun’s main sequence and possibly much longer.9Icarus. The Effects of Post-Main-Sequence Solar Mass Loss on the Stability of Our Planetary System The more recent simulations refined the picture by including the long-term effects of resonance capture and repeated stellar encounters, arriving at that roughly 100-billion-year dissolution timescale. Either way, the outer solar system outlasts the Sun by an enormous margin.

Mars and the Surviving Terrestrial Planets

Mars sits farther from the Sun than Earth and may narrowly avoid being engulfed during the red-giant phase. Its fate depends on how large the Sun actually gets and how much its mass loss pushes Mars’s orbit outward. If Mars survives the red-giant expansion, its orbit widens along with those of the outer planets. Simulations suggest that any terrestrial planets that make it through the red-giant phase could remain in stable orbits for at least another billion years after the Sun becomes a white dwarf, and likely much longer.9Icarus. The Effects of Post-Main-Sequence Solar Mass Loss on the Stability of Our Planetary System Mars would be a frozen, airless rock orbiting a dim white dwarf, but it would still be there. Pluto, by contrast, is expected to be knocked out of its current orbital resonance with Neptune within a few billion years after the Sun leaves the main sequence, even without the added disruption of passing stars.

Could Anything Prevent This

Given that none of this is happening on any timeline that matters for human civilization, the question of mitigation is purely theoretical, but it has attracted serious conceptual work. A recent analysis examined what kinds of megaengineering projects would be needed to safeguard Earth’s habitability against the full list of long-term threats: the Sun’s increasing brightness, eventual engulfment in the red-giant phase, the loss of Earth’s magnetic field as its core cools, water loss, destabilization of Earth’s axial tilt, and more. The researchers concluded that a suite of such projects, if realized, could in principle extend Earth’s habitability for roughly 9.1 million billion years, vastly beyond the Sun’s natural lifetime.10Journal of the British Interplanetary Society. Retaining Earth’s Habitability Beyond the Life of the Sun Pushing that further, perhaps by an additional order of magnitude, might be possible by physically removing mass from the Sun’s surface, slowing down its evolution.

These are thought experiments, not engineering proposals. Nobody is drawing up blueprints. But they illustrate something useful: the threats to Earth’s habitability are sequential and, at least in principle, individually addressable. The brightening Sun is the most immediate concern on a billion-year scale, and the idea that you might counteract it, say by gradually nudging Earth’s orbit outward using gravitational interactions with asteroids, has been discussed in astrophysics circles for over two decades. Whether any civilization could actually coordinate and sustain such efforts across geological timescales is a separate, much harder question.

The Sun in Galactic Context

The Sun is unremarkable by stellar standards, and that is precisely why its fate is so well understood. About 95 percent of all stars in the Milky Way are low enough in mass to follow the same general path: main-sequence hydrogen burning, red-giant expansion, mass loss, and a white-dwarf remnant. The details vary with mass, metallicity, and rotation, but the broad outline is the same. White dwarfs are the most common stellar remnant in the galaxy, and planetary nebulae are familiar objects to astronomers, visible in every direction.

One consequence of this ubiquity is that the Sun’s death is not just a local event but part of a galactic recycling process. The material the Sun sheds during its giant phases, enriched with carbon and other elements forged in its interior, mixes back into the interstellar medium. Asymptotic giant branch stars as a population are responsible for returning large amounts of processed material to the galaxy, with much of that mass coming from stars only slightly heavier than the Sun.5Monthly Notices of the Royal Astronomical Society. Ages and masses of asymptotic giant branch stars from the period–luminosity diagram Future generations of stars and planets will incorporate atoms that once sat inside the Sun. In that sense, the Sun does not so much die as get redistributed.

The timeline worth keeping in mind is layered. Earth stops being habitable in roughly one to two billion years as the Sun brightens. Earth is physically consumed about 7.6 billion years from now during the red-giant phase. The Sun becomes a white dwarf shortly after that. The outer planets persist for tens of billions of years before stellar encounters scatter them into interstellar space. And the white dwarf itself cools for trillions of years, long after the solar system has been dismantled. None of it involves an explosion.