How We Know What Stars Are Made Of: Spectroscopy
In 1835 Auguste Comte called stellar composition unknowable. Spectroscopy read it from starlight within 30 years and found helium in the Sun.
Table of Contents
The Prediction That Aged Worst in Science
In 1835, in the nineteenth lesson of his Cours de philosophie positive, the French philosopher Auguste Comte went looking for an example of something science could settle and something it never could. For the first he chose the shapes, distances, sizes and motions of the stars. For the second he chose their chemistry: we would never know, he wrote, how to study by any means their chemical composition or their mineralogical structure.
He could hardly have picked worse. Within twenty-five years two men in a Heidelberg laboratory had made stellar chemistry routine, and within thirty-three astronomers had found an element in the Sun that nobody had ever seen on Earth. Today one night on an 8-metre telescope yields abundances for thirty elements in a star 10,000 light years away. The whole thing rests on one fact: light keeps a record of what it passed through.
Why Every Element Carries Its Own Barcode
Heat a gas and it glows, but not across all colours. It glows in a precise set of narrow colours, always the same set for the same element, and pass white light through that gas when cool and you get darkness at exactly those colours. Emission and absorption are two views of one ledger.
The reason is that electrons in an atom cannot have any energy they like. They occupy discrete levels, and an atom can only absorb or emit a photon whose energy exactly matches the gap between two of them. Since photon energy is fixed by frequency through E = hf, and frequency by wavelength through λ = c/f, each permitted jump corresponds to one sharp wavelength. The level structure depends on the nuclear charge and the number of electrons, so it differs for every element and every ionisation state. Hydrogen’s visible jumps follow the Balmer formula, 1/λ = R(1/4 − 1/n²) with R = 1.097 × 10⁷ m⁻¹, giving 656.3 nm, 486.1 nm and 434.0 nm. That quantised ladder is the whole mechanism, and it is the subject of the Bohr model of the atom.
A barcode cannot be faked, and it does not care how far away the gas sits. That was the loophole Comte missed.
Fraunhofer Catalogued the Lines Without Knowing What They Were
William Hyde Wollaston noticed a few dark gaps in the solar spectrum in 1802 and made little of them. Joseph von Fraunhofer, a Bavarian optician grinding the best glass in Europe, turned his prisms on sunlight in 1814 and found hundreds, mapping more than 570 and labelling the strongest with capital letters from the red end: A, B, C, D, E, F, G, H, K.
Fraunhofer had no idea what caused them. He was building better lenses and needed fixed reference wavelengths to measure the refractive index of glass; reproducible sharp lines were ideal. So he numbered the alphabet of the Sun without reading it. His labels survive: the D lines are sodium, C and F are hydrogen’s Hα and Hβ, H and K are ionised calcium, and A and B are oxygen in Earth’s own atmosphere.
Kirchhoff’s Laws and the First Element Named in Starlight
Robert Bunsen had a burner with a nearly colourless flame, so anything dropped into it showed its own colours cleanly. Gustav Kirchhoff had the spectroscope. Working together in Heidelberg from 1859 they catalogued the emission spectra of element after element, and in October 1859 Kirchhoff noticed something decisive: the bright yellow doublet given off by sodium sat at exactly the wavelengths of Fraunhofer’s dark D lines, 589.0 nm and 589.6 nm. Pass sunlight through a sodium flame and the dark lines got darker still.
From this Kirchhoff drew the three rules that founded the subject. A hot dense body gives a continuous spectrum; a hot thin gas gives bright emission lines; a cool thin gas in front of a continuous source absorbs at exactly the wavelengths it would otherwise emit. A star is the first case wrapped in the third: a dense opaque interior radiating close to a black-body continuum, seen through its own cooler atmosphere, whose dark lines list what it contains. Comte had been dead for two years.
Helium: Found in the Sun 27 Years Before Earth
On 18 August 1868 a total solar eclipse crossed India, and Jules Janssen set up a spectroscope at Guntur to watch the chromosphere, the thin layer visible once the disc is covered. He recorded a bright yellow line close to the sodium doublet but not on it. Norman Lockyer, working in London with a method that showed the chromosphere without an eclipse, found the same line on 20 October and labelled it D3, since it sat just beyond Fraunhofer’s D1 and D2. Modern measurements put it at 587.6 nm.
No terrestrial substance produced it. Lockyer and the chemist Edward Frankland could not reproduce the line in the laboratory, and Lockyer proposed that it belonged to an element present in the Sun and unknown on Earth. They called it helium, from Helios. The suggestion drew suspicion for a quarter of a century, until in 1895 William Ramsay dissolved the uranium mineral cleveite in acid and collected a gas whose spectrum showed the D3 line exactly where Lockyer had put it. Twenty-seven years after it was found in sunlight, helium was finally in a jar.
A Spectrum Tells You Far More Than Composition
Composition was only the beginning. Run a modern spectrum through the full analysis and it yields most of what there is to know about a star.
Temperature comes twice over. The continuum follows Planck’s law, peaking at λ_max = 2.898 × 10⁻³ m·K / T, so a 3200 K red dwarf peaks near 900 nm in the infrared and a 30,000 K O star near 97 nm in the ultraviolet. The lines give a sharper answer, because which ionisation states appear depends steeply on temperature. That is what the OBAFGKM sequence measures. Annie Jump Cannon ordered the classes by hydrogen line strength, which looked arbitrary until Cecilia Payne-Gaposchkin showed in 1925 that it runs from roughly 40,000 K down to 2500 K. Hydrogen lines peak in A stars near 9500 K, not because A stars hold the most hydrogen but because that is where enough atoms sit in the n = 2 level to absorb visible photons without being ionised.
Motion comes from the Doppler effect: a star receding at speed v shifts every line by Δλ/λ = v/c, so a 0.22 nm shift in Hα means 100 km s⁻¹. This is how binaries are weighed and how the first exoplanet around a Sun-like star turned up in 1995.
Surface gravity comes from line width. In a dense photosphere collisions blur the energy levels and broaden the lines; in the puffed-out atmosphere of a red giant pressures are low and the lines stay narrow. Since surface gravity is GM/R², a width measurement separates a giant from a dwarf of identical temperature, which is how a spectrum alone fixes a star’s size and its place in the life cycle of stars. Rotation shows up as a symmetric broadening, one limb approaching and the other receding. Magnetic fields split lines through the Zeeman effect in proportion to field strength, which is how sunspot fields of around 0.3 tesla are measured from 150 million kilometres away.
Line depths also give metallicity, the abundance of everything heavier than helium, written as a logarithm relative to the Sun. That is a clock. The Big Bang made only hydrogen, helium and a trace of lithium, so every iron atom was forged inside a star and returned to the gas by winds and supernovae, and the interstellar medium has grown steadily richer ever since. Halo stars at one hundred-thousandth of the Sun’s iron fraction formed in the first few hundred million years; the Sun’s high value marks it as a latecomer. Applied across the electromagnetic spectrum, the same reasoning dates whole stellar populations.
Comte’s Line in the Wrong Place
Comte’s error was not stupidity. He reasoned that chemistry needs a sample and you cannot fetch a sample of a star. What he missed is that light is a sample: every photon escaping a stellar atmosphere has been filtered by the energy levels of the atoms it passed, and those levels are fixed by quantum mechanics identically here and in Andromeda.
He drew his boundary around the methods he could imagine, and the methods changed. Fraunhofer had catalogued the answer twenty-one years earlier; nobody had yet learned to read it.
Sources and Further Reading
- J. B. Hearnshaw, Auguste Comte’s blunder: an account of the first century of stellar spectroscopy, Journal of Astronomical History and Heritage 13, 90 (2010)
- NIST Atomic Spectra Database — the reference wavelengths used in the figure.
- Physics Today: First observation of helium in the Sun’s spectrum
- W. B. Jensen, Why helium ends in -ium, Journal of Chemical Education 81, 944 (2004)
- C. H. Payne, Stellar Atmospheres (Harvard Observatory Monograph No. 1, 1925)
- How solar eclipses work — the 1868 eclipse that revealed helium
Frequently Asked Questions
How do we know what stars are made of?
From spectroscopy. Starlight is spread out by a prism or a diffraction grating into a continuous rainbow crossed by narrow dark gaps called absorption lines. Each line sits at a wavelength where atoms in the star's cooler outer atmosphere absorbed photons, and because electrons in an atom occupy discrete energy levels, the wavelengths an element can absorb are fixed and unique to it. Sodium absorbs at 589.0 and 589.6 nanometres, hydrogen at 656.3, 486.1 and 434.0 nanometres, ionised calcium at 393.4 and 396.8 nanometres. Measuring which lines are present and how deep they are gives the chemical composition of the star, and modern analysis routinely recovers abundances for 20 to 30 elements to a few per cent. Gustav Kirchhoff and Robert Bunsen established the method in Heidelberg from 1859, identifying sodium in the Sun that October.
Why was helium discovered in the Sun before it was found on Earth?
Because the spectroscope can see an element at a distance that chemistry cannot isolate at home. During the total solar eclipse of 18 August 1868, observed from Guntur in India, Jules Janssen recorded a bright yellow line in the Sun's chromosphere close to but not matching the sodium doublet. Norman Lockyer independently found the same line on 20 October 1868 and named it D3; it lies at 587.6 nanometres. No substance in any laboratory would produce it, so Lockyer and Edward Frankland proposed a new element and called it helium after Helios, the Sun. Helium is chemically inert and so light that it escapes Earth's atmosphere, which is why it was so hard to find in terrestrial samples. William Ramsay finally isolated it from the mineral cleveite in 1895, 27 years later, confirming the identification from its spectrum.
Why is the OBAFGKM sequence a temperature sequence?
The classes were originally ordered by the strength of the hydrogen absorption lines, which looked arbitrary. Cecilia Payne-Gaposchkin showed in 1925 that the sequence actually tracks surface temperature, running from about 40,000 kelvin for O stars down to about 2500 kelvin for M stars. What changes along it is not composition but ionisation and excitation. Hydrogen lines peak in A-type stars near 9500 kelvin because that is where the largest fraction of hydrogen atoms sit in the n equals 2 level, able to absorb visible photons without being stripped of their electron. Hotter O and B stars ionise most of their hydrogen, so its lines weaken and helium lines appear instead. Cooler K and M stars leave hydrogen in the ground state, where it absorbs only ultraviolet, so metal lines and molecular bands dominate. Nearly all stars are about three quarters hydrogen by mass.
What can you measure from a stellar spectrum besides composition?
Almost everything. Temperature comes from the shape of the continuum, whose peak follows Wien's law at lambda-max equals 2.898 times 10 to the minus 3 metre-kelvin divided by T, and more precisely from which ionisation states appear in the lines. Radial velocity comes from the Doppler shift, with delta-lambda over lambda equal to v over c, so a 0.22 nanometre shift in the 656.3 nanometre hydrogen line means 100 kilometres per second. Surface gravity comes from pressure broadening, since collisions in a dense photosphere widen the lines while a red giant's thin atmosphere leaves them narrow, and that separates giants from dwarfs of the same temperature and hence gives stellar radius. Rotation produces a symmetric broadening because one limb approaches and the other recedes. Magnetic field strength comes from Zeeman splitting. Metallicity, written as the iron-to-hydrogen ratio, dates the gas the star formed from.