Astronomy 2e · Analyzing Starlight
The Spectra of Stars (and Brown Dwarfs)
On this page 9 sections
In 30 seconds
When astronomers spread starlight into its full rainbow, they do not see a smooth smear of color: the spectrum is crossed by thin dark lines — absorption lines — that work like a barcode. This topic explains where those lines come from, how they are sorted into the spectral sequence O B A F G K M, and why the coolest objects, brown dwarfs, extend it into classes L, T, and Y. By the end you should be able to read a spectrum description, assign a rough Spectral class A letter (O through M, or L/T/Y) describing a star's spectrum and temperature Full entry →, and explain why "what a star is made of" and "how hot it is" get tangled together.
Why this matters
Spectral classification is the most powerful sorting tool in stellar astronomy: a star's class encodes its surface temperature, which connects to color, luminosity, radius, and evolutionary stage — the H–R diagram of Chapter 18 uses spectral class as its horizontal axis. Brown dwarfs matter differently: they fill the gap between planets and stars, are abundant nearby, glow mainly in the infrared, and force us to sharpen the definition of a star.
The college version
Core Concepts
Where dark lines come from
A star's visible "surface" is the photosphere — dense, hot gas emitting a smooth Continuous spectrum A smooth spread of light over many wavelengths, with no gaps Full entry →. Above it lie cooler, thinner layers. As photons stream outward, atoms there absorb light at very specific wavelengths — the energies at which electrons jump between allowed orbits (atomic physics of Chapter 5). Every absorbed wavelength is missing from the light we receive, so the rainbow arrives crossed by dark absorption lines. The mirror image, emission lines, appears when hot, thin gas glows at those same wavelengths, as in a nebula. Because each element has a unique set of electron jumps, each element leaves a unique line pattern.
Why the lines change with temperature
An atom can only absorb light if its electrons sit in the right states. Hydrogen's Balmer lines Hydrogen absorption lines in the visible part of the spectrum Full entry → (visible wavelengths) require electrons to start in the second energy level. In very hot stars (say 30,000 K), most hydrogen is ionized — stripped of electrons — so little remains in the second level and lines are weak. In very cool stars (3,000 K), almost all hydrogen sits in the ground state, so again few atoms can absorb. Only near 10,000 K, where a good fraction of hydrogen is in the second level, do the Balmer lines reach maximum strength. This rise-and-fall pattern means no single line tells the temperature; the pattern of many lines together does.
The spectral sequence: O B A F G K M
In the early 1900s, Annie Jump Cannon and colleagues at Harvard classified hundreds of thousands of stellar spectra by their line patterns. The original lettering was alphabetical, but the sequence was later re-ordered by temperature — most famously through Cecilia Payne-Gaposchkin's 1920s thesis work showing stars are mostly hydrogen and helium and that the classes differ by temperature. Hottest to coolest:
- O (roughly 30,000 K and up): ionized helium lines, weak hydrogen.
- B (about 10,000–30,000 K): neutral helium lines, hydrogen strengthening.
- A (about 7,500–10,000 K): hydrogen Balmer lines at maximum strength.
- F (about 6,000–7,500 K): hydrogen weakening; Ca II lines appearing.
- G (about 5,200–6,000 K): strong Ca II and metal lines; the Sun is G2 (commonly taught).
- K (about 3,700–5,200 K): metal lines dominate; titanium oxide (TiO) bands beginning.
- M (about 2,400–3,700 K): strong molecular bands such as TiO.
The mnemonic "Oh Be A Fine Guy/Girl, Kiss Me" preserves the hot-to-cool order; classes divide into tenths (G0, G2, G5), so G2 is slightly hotter than G5.
Temperature, not abundance
The classic trap is reading line strength as abundance. Hydrogen dominates essentially all stars, yet its lines are weak in O and M stars alike — not because hydrogen is scarce, but because its atoms are in the wrong states to absorb those wavelengths. Payne-Gaposchkin's great insight: a huge variety of stellar spectra are one composition viewed at many temperatures. Strong iron lines, for example, mean the star is cool enough for many iron electrons to be in useful states — not that it is iron-rich. Astronomers call all elements heavier than helium Metals In astronomy, all elements heavier than helium Full entry →, terminology that still surprises newcomers.
Brown dwarfs: classes L, T, and Y
A Brown dwarf An object too low in mass to fuse hydrogen steadily; classes L, T, Y Full entry → forms like a star — by gravitational collapse — but is too low in mass to sustain steady hydrogen fusion: below roughly 0.075–0.08 solar masses (a commonly taught boundary), cores never quite reach the fusion threshold. Brown dwarfs shine from leftover formation heat (plus a brief deuterium-burning phase), so they slowly cool and fade. Their cool atmospheres extend the classification sequence:
- L (about 1,300–2,400 K): dust and metal hydride features; TiO gone.
- T (about 700–1,300 K): methane (CH₄) and water vapor absorption.
- Y (below about 700 K): even cooler; ammonia and water dominate.
Because they are cool, brown dwarfs radiate mostly in the infrared — which is why they were not found until infrared surveys matured in the mid-1990s (the first confirmed examples, Teide 1 and Gliese 229B, were announced in 1995, a commonly taught milestone). The lithium test helps: brown dwarfs never get hot enough to destroy lithium, while low-mass stars burn it away early, so lithium in a cool spectrum marks a substellar candidate (caveats for very young objects).
How It Works / Step-by-Step Process
- Record the spectrum and identify the most prominent absorption features; match them to known atomic patterns (ionized helium, neutral helium, Balmer lines, Ca II, TiO bands).
- Place the pattern on the temperature ladder O B A F G K M; a star sits at the class where its strongest features match.
- If the object is very cool with methane, water, or ammonia absorption, consider an L, T, or Y brown dwarf; check for lithium as supporting evidence.
- Cross-check the class against color and luminosity when those measurements exist.
Common Confusions
| Do Not Confuse | With | Difference |
|---|---|---|
| Spectral class order (O B A F G K M) | Alphabetical or "discovery" order | The sequence is a temperature ladder — O hottest, M coolest; the letters are historical leftovers |
| Strong hydrogen lines | Hydrogen-rich composition | All stars are mostly hydrogen; lines are strong only where temperature puts electrons in the right states |
| Absorption lines | Emission lines | Absorption = missing light from cooler gas in front of a hot source; emission = glowing hot thin gas |
| Brown dwarf | Low-mass star | A star fuses hydrogen steadily; a brown dwarf (below ~0.075–0.08 solar masses) never does |
| Brown dwarf | Giant planet | Brown dwarfs form by collapse like stars and briefly fuse deuterium; planets form in disks — but the heaviest planets and lightest brown dwarfs overlap in mass, an unsettled boundary |

Eli explains
The same idea, in plain words
Explain it like I’m 10
A star's light is a rainbow with dark stripes cut out — the "fingerprints" of atoms in its outer layers: each element eats light of its own favorite colors, and which stripes are strong tells how hot the star is. Brown dwarfs are the coldest "almost-stars": too small to light up like the Sun, they glow faintly in infrared, with methane among their fingerprints.
Worked example
Suppose you are handed spectra for three objects. Object A shows hydrogen Balmer lines at their absolute maximum, with ionized calcium barely visible — an A star near 10,000 K, even though hydrogen is the most abundant element in all stars. Object B shows strong TiO bands and heavy Ca II lines — class M, a cool star near 3,000 K. Object C is faint, glows in the infrared, and shows methane absorption plus a lithium line — a T-class brown dwarf, not a star: too cool and low in mass to burn hydrogen, and its lithium survives because it never got hot enough to destroy it.
Key takeaways
- Absorption lines form when cooler gas above the photosphere removes specific wavelengths; each element leaves a unique pattern.
- Line strength is controlled mainly by temperature (which atomic states are populated), not by abundance — all stars are mostly hydrogen and helium.
- Spectral sequence, hottest to coolest: O B A F G K M; the Sun is a G2 star (commonly taught).
- Hydrogen Balmer lines peak in A stars (~10,000 K); ionized helium marks O stars; TiO molecular bands mark M stars.
- Brown dwarfs sit below roughly 0.075–0.08 solar masses, never fuse hydrogen steadily, and occupy spectral classes L, T, Y, brightest in the infrared.
- The lithium test helps distinguish brown dwarfs from low-mass stars.
Check yourself
5 review questions from the chapter. Try each one, then open the answer.
Why does a star's spectrum show dark lines instead of a smooth rainbow?
Show answer
Cooler gas above the photosphere absorbs light at the specific wavelengths where its atoms can make electron jumps, removing those wavelengths.
In which spectral class are hydrogen Balmer lines strongest, and why there specifically?
Show answer
A stars (roughly 7,500–10,000 K): hydrogen is hot enough to occupy the second energy level but not so hot that it is ionized, so the Balmer lines peak.
Arrange these classes hottest to coolest: M, A, O, G, K, B, F.
Show answer
O, B, A, F, G, K, M — the standard temperature sequence.
Why can a strong iron-line spectrum not be taken as proof that a star is iron-rich?
Show answer
Line strength depends mainly on temperature (which atomic states are populated), not on abundance. A cool star shows strong metal lines even though it is not especially metal-rich.
What three things make a brown dwarf different from an ordinary low-mass star?
Show answer
Brown dwarfs are below roughly 0.075–0.08 solar masses, never sustain hydrogen fusion, and slowly cool and fade; they are identified by very cool spectral classes (L, T, Y) and often by the lithium test.
Study tools & related lessonsKey vocabulary · Related
Key vocabulary
- Continuous spectrum
- A smooth spread of light over many wavelengths, with no gaps
- Absorption line
- A dark gap in a spectrum where atoms removed specific wavelengths
- Spectral class
- A letter (O through M, or L/T/Y) describing a star's spectrum and temperature
- Balmer lines
- Hydrogen absorption lines in the visible part of the spectrum
- Metals
- In astronomy, all elements heavier than helium
- Brown dwarf
- An object too low in mass to fuse hydrogen steadily; classes L, T, Y
Sources & references
This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

