When astronomers first spotted a giant planet blocking more than half of its star's light, they couldn't believe it had survived at all. The gas giant WD1856b orbits a white dwarf—the burned-out core of a dead star—located 80 light-years from Earth. And it blocks a stunning 56 percent of that star's light, a record for known planets. Scientists had assumed planets close enough to their stars to be in danger of being swallowed when those stars die. But WD1856b shouldn't exist, and yet there it is. Now, researchers using NASA's James Webb Space Telescope have figured out how it got there.

In 2020, astronomers discovered the planet and immediately wondered how it survived. When sun-like stars run out of fuel, they swell into red giants—objects more than 100 times larger than before. Red giants often swallow nearby planets before collapsing into white dwarfs. When our own sun dies in about 5 billion years, it will likely swallow Mercury, Venus and possibly Earth. Yet somehow WD1856b escaped destruction.

A team including Christopher O'Connor, an astrophysicist at Northwestern University's Center for Interdisciplinary Exploration and Research in Astrophysics, used the James Webb Space Telescope to study the planet's atmosphere for the first time. They measured its mass, temperature and chemical makeup. The planet turned out to be between four and 11 times more massive than Jupiter, our solar system's largest planet. Its radius is about eight times larger than the white dwarf it orbits, and it circles its dead star every just 1.4 days—extremely close by cosmic standards.

The telescope also revealed something unexpected: the planet is far hotter than it should be. Its temperature measures around 400 Kelvin, which is about 127 degrees Celsius (260 degrees Fahrenheit). That's roughly 240 degrees hotter than the white dwarf's light alone could explain. The researchers think this extra heat might come from the planet being squeezed by the white dwarf's gravity as it migrated inward billions of years after its star died. The team reconstructed the planet's history by combining these measurements with models of how giant planets cool over time.

So how did the planet survive? O'Connor said there are two possibilities. Either the planet was briefly swallowed by its star during the red giant phase and somehow survived on the other side, or it was pushed inward later by the gravitational pull of two companion stars in the system. The white dwarf is part of a triple-star system, and those outer stars could have nudged WD1856b into its current orbit.

The findings offer a glimpse into the distant future of planetary systems—including our own. "The fact that planets can survive into that final stage of the stellar life cycle really widens the range of possibilities for where and when habitable planets might exist in the universe," O'Connor said. The study was published in the journal Nature and led by Ryan J. MacDonald at the University of St. Andrews in Scotland.