How do astronomers know what an exoplanet's atmosphere is made of?

By Daniel Ruiz · Published 19 November 2026

No telescope has photographed the air of a planet around another star. Yet astronomers talk about carbon dioxide, sulfur and sodium on worlds hundreds of light-years away. The trick is the shadow a planet casts when it crosses its star, and the fact that this shadow changes size depending on the colour of the light.

A shadow that changes size with colour

When a planet passes in front of its star, it blocks a small part of the light. That is a transit. If the planet has an atmosphere, that thin layer of gas adds a little "apparent size", but only at the wavelengths its molecules absorb.

Picture looking at the star through glasses that split the colours. At a colour where the gas is transparent, the planet seems to have one radius. At a colour where the gas absorbs, it looks slightly bigger, because the atmosphere blocks light too. Measure that change colour by colour and you get a transmission spectrum, where each molecule leaves its fingerprint in a different place.

It is the same idea you can explore in the infrared spectroscopy lab: each molecule absorbs light at characteristic wavelengths, and those lines let you identify it from afar.

The calculation: how much light does a planet block?

Transit depth is the ratio of the planet's area to the star's: (Rp/Rs)². Let's try WASP-39b, a gas giant with a radius of 1.27 Jupiter radii orbiting a star of 0.895 solar radii (Faedi et al., 2011).

Using the IAU nominal values, the planet's radius is 1.27 × 71,492 km = 90,795 km, and the star's is 0.895 × 695,700 km = 622,652 km. The ratio is 90,795 / 622,652 = 0.1458, and squaring it gives 0.0213. The planet blocks a little over 2% of its star's light.

For comparison: Jupiter in front of the Sun blocks 71,492 / 695,700 = 0.1028, squared, or 1.06%. Earth in front of the Sun blocks 6,378 / 695,700 = 0.00917, squared: 84 parts per million, about 250 times less than WASP-39b. That is why starting with gas giants made sense.

And there is a further cut: the atmosphere's signal is only a small fraction of that total depth. You have to measure tiny differences on a brightness that already changes very little.

From Hubble to Webb: the first gases

The first exoplanet atmosphere was detected in 2002 with the STIS spectrograph on the Hubble Space Telescope. Charbonneau and colleagues saw neutral sodium in HD 209458b. The absorption was tiny: 0.023 ± 0.006% of the starlight during the transit.

That number shows the scale of the problem. The planet's shadow is already small, and the atmosphere contributes a sliver of it. Still, with a stable instrument and several transits it could be separated from the star.

Twenty years later came a leap in quality. The James Webb Space Telescope's (JWST) first science observation of exoplanets, of WASP-39b with the NIRSpec instrument, was taken on 10 July 2022. NASA announced the carbon dioxide on 25 August 2022.

WASP-39b: CO₂ at 26 sigma and light-driven chemistry

WASP-39b has a mass of 0.28 Jupiter masses, close to Saturn's, and a radius larger than Jupiter's. It lies about 700 light-years away and orbits at roughly one eighth of the Sun–Mercury distance, circling its star every 4.055 days. Its puffed-up atmosphere and frequent transits make it ideal for this technique.

The 3.0–5.5 micron spectrum showed a strong CO₂ absorption feature at 4.3 microns, detected at 26 sigma (Nature, February 2023). The Spitzer telescope had only hinted at CO₂ in exoplanets, never a definitive detection.

There was also a small feature near 4.05 microns. It turned out to be sulfur dioxide (SO₂), made by photochemistry: starlight destroys H₂S, releases sulfur radicals, and these oxidise step by step. It was the first clear evidence of photochemistry on an exoplanet (Tsai et al., Nature, 2023). Note that WASP-39b is a very hot gas giant, so its CO₂ says nothing about habitability.

K2-18b and DMS: a hint that remains unconfirmed

K2-18b is a sub-Neptune: about 8.6 Earth masses and a radius of around 2.6 Earth radii, between Earth and Neptune. It orbits in the habitable zone of a cool red dwarf, about 110 light-years away according to NASA. In 2023 JWST detected methane and carbon dioxide, plus a possible dimethyl sulfide (DMS) signal that the team itself described as less robust and in need of validation.

In April 2025 a Cambridge team (Madhusudhan et al.) presented new evidence with the MIRI instrument for DMS or DMDS at 2.9–3.2 sigma, below the usual 5-sigma threshold for a discovery. The authors themselves called for more observations and acknowledged that an unknown chemical process could be responsible.

Several independent reanalyses do not confirm the signal. A joint analysis of all three instruments concludes there is insufficient evidence for DMS or DMDS, and that about 25 more MIRI transits would be needed to reject a flat spectrum at 3 sigma. Another, published in The Astronomical Journal, attributes the apparent features very likely to red noise, a systematic effect, and argues that K2-18b does not meet the standards of evidence for life.

What it takes to talk about life

K2-18b is a good example of how a weak signal is debated: it is published, other teams reanalyse the same data, more telescope time is requested and, meanwhile, nothing is declared confirmed. A signal at around 3 sigma is a hint, not a finding.

Detecting a molecule isn't enough to claim life either. You need to rule out lifeless chemistry that makes the same thing, and repeat the observation with more data. It is a slow way of working, but it is what took us from the sodium of 2002 to the CO₂ and photochemistry of 2023. If you are curious how Andy Weir's novel plays with the idea of looking for signs of life from afar, see the chapter The Life Cycle in our guide.

Frequently asked questions

Can we see an exoplanet's atmosphere directly?

Not in these cases. What is measured is starlight filtered through the atmosphere during a transit, and the analysis looks at how the planet's shadow changes with wavelength.

What does "26 sigma" or "3 sigma" mean?

It measures how unlikely it is that the signal is just noise. 26 sigma, like the CO₂ on WASP-39b, is a very solid detection. 3 sigma, like the possible DMS on K2-18b, is below the usual 5-sigma threshold for a discovery.

Has life been found on K2-18b?

No. The possible DMS signal is disputed: several independent reanalyses do not confirm it, and one study attributes it very likely to systematic noise. More observations are needed.

More articles

See all articles →