How We Know What Stars Are Made Of
In 1835, the French philosopher Auguste Comte published his Cours de philosophie positive โ a work arguing that certain questions were permanently beyond the reach of science. Among them, he wrote, was the chemical composition of stars. They were too far away, too hot, too unreachable. No instrument could ever collect a sample, no experiment could ever probe their interiors. The chemical nature of stars, Comte concluded, was "forever denied to us."
Thirty years later, spectroscopy had not merely answered the question โ it had given us the ability to read the composition of every star in the observable universe from their light alone. Comte had identified one of science's hardest problems and was wrong in thirty years. The story of how is one of the most satisfying in all of physics.
The dark lines in sunlight
In 1814, a Bavarian optician named Joseph von Fraunhofer was making very high-quality prisms and gratings for telescopes. He passed sunlight through a prism to spread it into a spectrum, intending to measure the precise positions of the different colors. What he found, when he looked carefully, was unexpected: the solar spectrum was crossed by hundreds of dark lines โ specific wavelengths at which the sunlight was mysteriously absent.
These became known as Fraunhofer lines. He catalogued over 570 of them, labeling the most prominent with letters A through K. He noticed they were always at the same positions regardless of the time of day, season, or the purity of his optics. Something in the Sun was removing specific wavelengths of light. He had no idea what.
In the 1850s, the German physicist Gustav Kirchhoff and chemist Robert Bunsen โ the same Bunsen who invented the burner โ made the decisive connection. They burned known elements in a flame and examined their light through a spectroscope. Sodium produced two bright yellow lines at very specific wavelengths. Iron produced dozens of lines. Each element had a unique spectral fingerprint โ an emission spectrum โ as distinctive as a barcode.
Then Kirchhoff made the crucial observation: the dark lines in the solar spectrum โ Fraunhofer's mysterious absences โ were at exactly the same wavelengths as the bright emission lines from known elements, just inverted. The Sun's atmosphere was absorbing those wavelengths. The dark lines were signatures of elements. Fraunhofer had been looking at a chemical composition readout for forty years without knowing it.
Why atoms leave fingerprints in light
The physical reason for spectral lines wasn't understood until quantum mechanics. Each element has a unique electron configuration โ a unique set of allowed energy levels. When an electron drops from a higher energy level to a lower one, it emits a photon of exactly the energy difference: E = hf. When photons pass through a gas of atoms, any photon with exactly the right energy to kick an electron to a higher level is absorbed. These precise energy differences are determined by the element's nuclear charge and electron arrangement, which are unique to each element.
The result is a precise, reproducible spectral barcode for every element โ a set of wavelengths at which that element either emits or absorbs light, and no other wavelengths. The pattern is identical everywhere: hydrogen's spectral lines in a laboratory discharge tube are identical to hydrogen's lines in the spectrum of a star 10 billion light-years away. Atomic physics is universal.
Hydrogen's visible emission lines โ the Balmer series โ fall at 656 nm (red, Hฮฑ), 486 nm (blue-green, Hฮฒ), 434 nm (violet, Hฮณ), and 410 nm (violet, Hฮด). These are produced by electron transitions to the n=2 energy level from n=3, 4, 5, and 6. The Hฮฑ line at 656 nm is one of the most important lines in astrophysics โ it's everywhere in stellar and nebular spectra, because hydrogen is everywhere. The beautiful red color of emission nebulae like the Orion Nebula is almost entirely Hฮฑ. When you look at a photo of a star-forming region, the red glow is hydrogen atoms in the process of recombination, emitting light at precisely the wavelength that quantum mechanics dictates for that particular electron transition.
Reading the universe
Once the connection between spectral lines and chemical elements was established, the program of stellar spectroscopy expanded rapidly. By the late 19th century, astronomers had catalogued thousands of stellar spectra. The Harvard Observatory โ under director Edward Pickering, with a team of women astronomers who became known as "Pickering's Harem" or later the "Harvard Computers" โ classified hundreds of thousands of stellar spectra. Annie Jump Cannon alone classified around 350,000 stars.
Cecilia Payne-Gaposchkin made what may be the most important discovery in astrophysics. In her 1925 PhD thesis at Harvard, she analyzed stellar spectra using the newly developed quantum mechanical tools for understanding how atoms behave at different temperatures. Her finding: the overwhelming composition of stars was hydrogen and helium โ far more than anyone had expected, and far more than in Earth's crust. Stars weren't made of the heavy elements that dominated terrestrial chemistry. They were almost entirely hydrogen, with helium second.
Payne-Gaposchkin's 1925 thesis concluded that hydrogen was the dominant element in the Sun โ roughly one million times more abundant than assumed. Her committee included Henry Norris Russell, the most prominent American astrophysicist of the era. He persuaded her to insert a line in the thesis calling her own result "spurious" โ he believed it couldn't be right because it contradicted the received wisdom that stars had the same composition as Earth. Two years later, Russell published essentially the same finding himself with full credit, acknowledging Payne's priority only in a footnote. He later called her original work "the most brilliant PhD thesis ever written in astronomy." The hydrogen abundance she found is now considered one of the foundational facts of stellar physics.
Beyond composition, spectroscopy reveals stellar temperature (from which lines are present โ different ions and molecules form at different temperatures), surface gravity (from line broadening), rotation speed (from Doppler broadening), magnetic field strength (from Zeeman splitting of lines), and velocity toward or away from us (from Doppler shift of the entire spectrum). A single spectrum contains an extraordinary amount of information about a star it has never been possible to physically visit.
The Doppler shift and the expanding universe
Spectral lines don't just identify elements. Their positions can be shifted. If a light source is moving toward you, the Doppler effect compresses the wavelengths โ the lines shift toward shorter wavelengths (blueshift). If it's moving away, the lines shift toward longer wavelengths (redshift). The amount of shift is proportional to the velocity.
In the 1910s and 1920s, astronomer Vesto Slipher measured the spectra of dozens of "spiral nebulae" โ objects that were later identified as other galaxies. Almost all of them showed redshifted spectra. They were receding. In 1929, Edwin Hubble combined these recession velocities with independent distance measurements and found a linear relationship: the farther a galaxy, the faster it receded. Hubble's Law: v = Hโยทd, where Hโ is the Hubble constant, approximately 70 km/s per megaparsec.
This was the discovery of the expanding universe โ not by looking at anything with a telescope in the conventional sense, but by reading the chemical fingerprints of hydrogen and other elements in distant galaxies and noticing that they were shifted from where they should be. Spectroscopy, developed to identify elements in the Sun, revealed that the entire universe was expanding โ the consequence being, when run backward, that it began in a single hot dense point: the Big Bang.
๐ค How do we know the spectral lines from distant galaxies actually correspond to the same elements, not different ones?
โผBecause the pattern of lines is preserved even when shifted. Hydrogen produces lines in very specific ratios โ not just a single line, but a series: Hฮฑ, Hฮฒ, Hฮณ... at wavelengths in exact ratios determined by quantum mechanics. When we see a galaxy's spectrum shifted, we see the entire pattern shifted together, maintaining those ratios exactly. The pattern is unmistakable regardless of how far it's shifted. This also tells us the same quantum mechanics operates everywhere in the observable universe โ the energy levels of hydrogen in a galaxy 10 billion light-years away (and 10 billion years ago) produce identical line ratios. The constancy of atomic physics across space and time is itself a profound empirical result.
๐ค What is the most distant thing we've ever identified with spectroscopy?
โผAs of the mid-2020s, the James Webb Space Telescope has confirmed galaxies at redshifts above z=13, corresponding to light emitted roughly 300 million years after the Big Bang โ when the universe was about 2% of its current age. At z=13, every wavelength we observe has been stretched by a factor of 14 โ ultraviolet emission from hydrogen, which we can see with ground-based telescopes in nearby galaxies at 121 nm, arrives at us at over 1,700 nm (near infrared). JWST was specifically designed with infrared sensitivity to observe these highly redshifted early galaxies. Every identification โ this is a galaxy at this distance with this composition โ is made by recognizing spectral line patterns through their redshift. Comte's "permanently unknowable" has been extended to the edge of the observable universe.