Naman Bajaj stared at the data from 72 swirling disks of gas and dust, each a cradle for future planets, and saw something no one had clearly seen before: the ticking clock of planet formation. Using NASA’s James Webb Space Telescope, Bajaj and his team are revealing how young planetary systems lose their gas — the essential ingredient for giants like Jupiter — and why time is always running out.

Planets don’t form in empty space. They grow inside dense disks around newborn stars, where gas outweighs dust by about 100 to one. But that gas doesn’t last forever. Once it’s gone, so is the chance to build gas-rich worlds. The big question has always been: how does it escape, and when?

Now, thanks to JWST’s sharp vision, scientists can finally track two key signals: glowing molecular hydrogen, the most common molecule in these disks, and ionized neon, a tracer of high-speed jets. By studying 72 young, Sun-like stars at different ages, the team reconstructed a timeline of gas loss across early planetary development.

In the youngest systems — just a few million years old — powerful magnetic winds dominate. These broad outflows carry away both gas and angular momentum, helping shape the disk and slow its spin. The team found conical winds of molecular hydrogen in 46 of the 72 systems, confirming long-standing predictions made earlier by Ilaria Pascucci and Uma Gorti. For the first time, astronomers directly observed the dense molecular winds that were once only theoretical.

But as the systems age and material stops falling onto the star, these magnetic winds fade. Then, another force takes over: radiation. High-energy light from the young star heats the disk’s outer layers, causing gas to evaporate into space — a process called photoevaporation. This atomic wind becomes the main way gas escapes in older disks.

The shift matters deeply for planet formation. Gas giants must gather their thick atmospheres quickly, while the disk is still rich in gas. If the disk clears too fast, they never get the chance. "Planet formation is therefore a race against time," said Bajaj. His study, published in The Astronomical Journal, shows this race unfolds in stages — first shaped by magnetic forces, then sealed by stellar radiation.

Of the 72 disks studied, 66 showed signs of escaping gas. Forty of them hosted fast neon jets, all of which also displayed broader molecular outflows. This layered picture — magnetic winds early, radiation-driven escape later — gives scientists a clearer timeline than ever before.

Now, with JWST watching more of these cosmic nurseries, astronomers are closer to understanding not just how planets form, but how often they succeed — or run out of time.