About eight times as heavy as Earth, yet squeezed so close to its star that it orbits far closer than Mercury does to our sun, 55 Cancri e should have had its atmosphere blasted clean away. Instead, when the James Webb Space Telescope peered at it in 2024, it found something astonishing: a surprisingly thick gaseous envelope wrapped around a world whose surface is a churning ocean of molten rock.

For planetary scientists, that was a puzzle. Standard models said these sizzling "lava worlds" should be bare, airless rocks stripped bare by relentless stellar radiation. So how do they keep their atmospheres for billions of years?

A team from Stanford University thinks they've solved it. In a study published in The Astrophysical Journal Letters, researchers led by graduate student Barron Nguyen, working in the lab of Professor Laura Schaefer at the Stanford Doerr School of Sustainability, showed that molten rock itself may be the key.

Here's the idea. On these hot worlds, the surface is covered in lava that sloshes and churns. That molten rock releases gases from deep inside the planet into the atmosphere slowly, at a measured pace. Meanwhile, stellar radiation is constantly stripping gas away into space. When the slow release balances the rapid loss, the atmosphere hangs on — for billions of years.

The findings stretch an idea scientists call the "cosmic shoreline." Just as a shoreline marks where land meets water on Earth, the cosmic shoreline marks the boundary between planets that keep their atmospheres and planets that lose them. Lava worlds that sit far closer to their stars than the shoreline predicted seemed to break the rule. The Stanford team's new model explains them by proposing a whole new realm, which they've named the "cosmic sandbar" — a nod to the sandy ridges that form offshore in Earth's oceans.

Between the shoreline and the sandbar lies what the team calls the "airless valley," where planets sit close enough to lose their atmospheres but cool off too quickly after formation to replace them. Planets like Mercury fall into this zone, solidifying fast and trapping their gases underground. But hefty super-Earths like 55 Cancri e, kept hot and molten, stay in business far longer.

This matters because finding atmospheres is the first step in the search for worlds beyond our solar system that might support life. "Where the shoreline boundary is between airless worlds and those capable of sustaining an atmosphere has been a major open question in planetary science," Schaefer said. "The new model expands our understanding of this boundary and the factors that go into determining where it lies for specific stars and planets."

In our own solar system, the search for alien life has long meant following the water. In the wider galaxy, the Stanford team suggests a different strategy: follow the atmospheres. As telescopes and observations multiply, the cosmic sandbar gives scientists a clearer map of where to look — and a reminder that worlds can defy our expectations in spectacular, molten fashion.