Astronomy BasicsNEW

How Webb Uses Spectroscopy to Measure the Distance of a Distant Galaxy

Learn how NASA’s James Webb Space Telescope uses infrared spectra and redshift to estimate the distance and cosmic era of a galaxy hosting a distant fast radio burst.

October 23, 2026Neela AsmanAstronomy guide
NASA graphic comparing the wavelength ranges observed by Webb’s four science instruments, including NIRSpec
Webb’s instruments cover different ranges of red and infrared light; NIRSpec is designed for near-infrared spectroscopy. Credit: NASA, ESA, CSA, STScI. Official NASA image source.

A telescope can collect light from a distant galaxy, but astronomers need more than a pretty image to estimate how far away it is. Spectroscopy spreads light into its component wavelengths, revealing patterns that act like fingerprints. In October 2026, NASA described how Webb used this technique to measure the redshift of the galaxy hosting fast radio burst FRB 20240304B.

Key result: Webb’s NIRSpec instrument measured a redshift of 2.148 for the burst’s host galaxy. NASA reports that the galaxy is being observed as it was roughly three billion years after the Big Bang.

What is a spectrum?

A spectrum shows how much light arrives at different wavelengths. When astronomers split a galaxy’s light into a spectrum, they can look for features associated with atoms and ions. Certain elements absorb or emit light at characteristic wavelengths, giving researchers clues about the galaxy’s composition and physical conditions.

In a distant galaxy, the wavelengths measured by a telescope may be longer than the wavelengths at which the same features are produced in a laboratory. This shift is called redshift.

How redshift helps measure cosmic distance

The universe has expanded throughout its history. As light travels through expanding space, its wavelength stretches. Astronomers compare the observed position of known spectral features with their rest wavelengths to calculate redshift.

Redshift is not a simple ruler that gives an exact distance by itself in every context. To interpret it, scientists use a cosmological model and account for the expansion history of the universe. For very distant galaxies, a measured redshift also tells astronomers that they are looking far back in cosmic time.

Why Webb’s infrared instruments matter

Light from the early universe is stretched toward longer wavelengths by the time it reaches us. Webb is designed to observe infrared light, making it particularly useful for studying faint, distant galaxies that are difficult to measure with visible-light instruments.

For FRB 20240304B, Webb’s Near-Infrared Camera helped identify the host galaxy, and its Near-Infrared Spectrograph measured the spectrum. These instruments answered related but different questions: imaging helped locate the galaxy, while spectroscopy provided a measurement of its redshift.

Webb NIRSpec spectrum showing oxygen and hydrogen features and a redshift of 2.148
Webb’s spectrum shows features used to determine the galaxy’s redshift. Credit: NASA, ESA, CSA, Joseph Olmsted (STScI). Official image source.

What do oxygen and hydrogen lines reveal?

The NASA spectrum highlights features associated with oxygen and hydrogen. Astronomers identify these features by matching their measured wavelengths to known atomic transitions. Their positions can be used to calculate how much the spectrum has shifted.

Lines can also reveal physical conditions within a galaxy, including the presence of particular elements and, with more detailed analysis, information about gas temperature, density and motion. A single spectrum rarely answers every question, so researchers compare multiple lines and observations.

Why this measurement matters for fast radio bursts

Fast radio bursts last only milliseconds, and their origins remain uncertain. Pinpointing a burst and identifying its host galaxy allows researchers to place it in a wider cosmic setting. In this case, the host was a small, actively star-forming dwarf galaxy, different from what researchers had expected based on many previously identified FRB host galaxies.

That unexpected environment is useful evidence when comparing possible explanations, including magnetars and neutron-star mergers. The measurement does not establish a single origin for all FRBs, but it gives scientists a stronger way to test ideas about how these bursts are produced.

What redshift does not tell us on its own

Redshift is a powerful clue, but astronomers combine it with other information to infer a galaxy’s distance, age and properties. The galaxy’s environment, brightness, spectrum and star-formation activity all help build a fuller picture.

Webb’s observation shows why spectroscopy is essential to modern astronomy: imaging can find a faint source, while its spectrum can reveal how far back in cosmic history we are looking.

Frequently asked questions

What does redshift 2.148 mean?

It is a measurement of how much the galaxy’s light has been stretched by cosmic expansion. NASA relates this redshift to a time when the universe was about three billion years old.

What is NIRSpec?

NIRSpec is Webb’s Near-Infrared Spectrograph, an instrument that separates infrared light by wavelength.

Can a spectrum show which elements are present?

Yes. Emission and absorption features can be matched to characteristic wavelengths of elements and ions, although interpretation requires scientific analysis.

Did Webb detect the radio flash?

No. Radio telescopes detected the burst. Webb studied the faint host galaxy and measured its spectrum.

Trusted sources and further reading

Image note: The featured image is credited to its original NASA/ESA/STScI or mission team source. Please review the source page for the applicable credit and reuse guidance.