An impossible sample, an available beam
We cannot take a bottle to a star. Even the Sun's surface is hostile to spacecraft, and the next stars are light-years away. Yet astronomers can say that stars contain hydrogen and helium, identify traces of iron or calcium, and compare the chemical histories of stellar generations. Their evidence arrives as light.
A spectrograph separates that light by wavelength, producing a spectrum: a spread of colours or, beyond human vision, ultraviolet and infrared radiation. Across the spread lie narrow dark marks. They are missing wavelengths, absorbed as light passes through gas in a star's outer layers. The pattern makes a chemical inventory possible.¹
Why are there lines in the rainbow?
An atom's electrons can occupy particular energy states. To jump between them, they must absorb or emit photons of particular energies. Since photon energy corresponds to wavelength, each element produces a characteristic pattern of spectral lines. NASA illustrates this with hydrogen: its set of allowed transitions leaves a recognisable signature in absorbed or emitted light.²
Think of a piano that plays only certain notes. A different atom has a different keyboard. The comparison is useful, though incomplete: atoms can be ionised, molecules have additional patterns, and conditions inside a star broaden or strengthen the “notes”. Astronomers therefore compare an observed spectrum against laboratory measurements and calculated spectra rather than spotting one line and declaring victory. NIST maintains a reference database of atomic spectral lines for precisely this kind of work.³
The Sun made the method famous. Its spectrum contains many dark absorption lines. Some come from its atmosphere; others can come from Earth's atmosphere as sunlight reaches a ground-based telescope. Separating those contributions is part of the analysis. Space telescopes avoid much of the terrestrial interference and can observe wavelengths that our atmosphere blocks.
From a fingerprint to an abundance
Finding a line can establish that an element is present. Estimating how much is there is harder. The strength and shape of a line depend not only on abundance but also on temperature, pressure, the state of ionisation and the behaviour of the stellar atmosphere. A weak iron line might mean little iron, or it might reflect conditions in which fewer iron atoms can absorb at that wavelength. Astronomers fit many lines together and model those physical conditions. ESA's Gaia team uses stellar spectra to estimate chemical abundances across enormous samples of stars.⁴
Motion adds another complication and another opportunity. A star moving towards us shifts its spectral pattern to shorter wavelengths; one moving away shifts it towards longer wavelengths. Once identified, the pattern can be shifted back to compare with laboratory wavelengths, while the amount of shift reveals the star's line-of-sight speed. Spectroscopy thus measures both chemistry and motion from the same light.¹
A useful distinction is between a star's surface composition and everything inside it. Most ordinary stellar spectra are formed in outer layers. We do not directly read the core by looking at those absorption lines. To learn about the interior, astronomers combine spectra with models of stellar evolution, brightness, mass and, for some stars, oscillations. The chemical story is powerful precisely because researchers know which part is directly observed and which part is inferred.
What the elements say about history
In astronomical language, any element heavier than helium is often called a “metal”, including carbon and oxygen. A star's metallicity is a shorthand for how enriched its material is by earlier generations of stars. ESA explains that Gaia's chemical measurements help distinguish populations and reconstruct the history of star formation in the Milky Way.⁴
The logic runs backwards through time. A star forms from a cloud of gas. Its outer composition preserves clues about that cloud, although some elements can be altered as the star evolves. Early cosmic gas was dominated by hydrogen and helium. Later stars formed from material enriched by earlier stellar lives and deaths. A lower abundance of heavier elements can therefore point to older, less chemically enriched birth material, but it does not by itself provide an exact birthday. Position, motion and stellar properties help complete the picture.
Different elements carry different histories. Some were forged in stellar interiors; others are associated with explosive events or neutron-capture processes. Measuring their relative abundances can test those origin stories. Spectra have become a way to do archaeology without digging: the “artefacts” are atoms embedded in stellar atmospheres.
The limits of reading light
The method has biases. Faint stars provide noisier spectra; hot stars show different useful lines from cool ones; dust can alter observed light; and close binary stars can blend their signatures. A single spectrum also represents a particular time and direction. Large surveys repeat observations and cross-check instruments to manage these problems.
Even with those limits, spectroscopy is an unusually testable form of remote knowledge. Scientists can reproduce the same atomic lines in the laboratory, predict where multiple lines should appear and check whether a model fits independent observations. An element is not identified because its line looks vaguely familiar; it is identified because a consistent pattern survives comparison.
The answer to the impossible sampling mission is therefore wonderfully practical: collect the photons a star already sends. Split them, measure what is missing, and ask which atoms under which conditions could leave those marks. A star will never fit in a specimen jar, but its light can arrive with a barcode.
