Skip to main content
UNDER REVIEW
Optional sections
Reading width
Color theme

Spectra & Composition

Section 4 of 8

Line Strengths

Part 3: The OBAFGKM Sequence — Temperature, Not Composition

A Temperature Sequence in Disguise

In the early 1900s, astronomers at Harvard Observatory — led by Annie Jump Cannon and Williamina Fleming — classified hundreds of thousands of stellar spectra by eye, sorting them by the appearance and strength of their spectral lines. After much rearranging, the sequence settled into O, B, A, F, G, K, M — from strongest helium lines to strongest molecular bands. The classic mnemonic: “Oh Be A Fine Guy/Girl, Kiss Me.”

The breakthrough came when Cecilia Payne-Gaposchkin showed in her 1925 PhD thesis — arguably the most important doctoral dissertation in the history of astronomy — that stars are overwhelmingly hydrogen and helium, and that the spectral sequence is fundamentally a temperature sequence, not a composition sequence. This was so radical that her advisor, Henry Norris Russell, initially urged caution (he later acknowledged she was right). Stellar composition is remarkably uniform (about 74% hydrogen, 25% helium, 1–2% heavier elements by mass). What changes along the sequence is not what atoms are present but which quantum states those atoms occupy — and that depends on temperature.

Before you read the sequence as letters in a table, look at the sky the way an observer does first: stars already announce that they are not thermally identical. A real star field shows blue-white, yellow, and orange-red stars sharing the same patch of sky. Spectroscopy explains why those colors differ, but the diversity is visible before any prism enters the story.

Dense star field image with a bright cluster near the center and many stars of different apparent colors, including blue-white, yellow, and red-orange stars scattered across the frame.
Figure 7Real star fields are not monochrome. Even before we spread starlight into spectra, blue-white and orange-red stars tell us that stellar surfaces come in different temperature regimes.NASA/ESA/Hubble
Composite image of stellar spectra arranged vertically from O6.5 at top to M5 at bottom, with wavelength increasing left to right across the visible band. Each horizontal strip shows a rainbow-colored spectrum with dark absorption lines at different positions. Star catalog identifiers (HD numbers) are labeled on the right. Three additional spectra at the bottom show an F4 metal-poor star, an M4.5 emission star, and a B1 emission star.
Figure 8The spectral sequence from O (top, hottest) to M (bottom, coolest). Dark absorption lines shift across the sequence — hydrogen Balmer lines peak at A-type, helium lines dominate O and B, metal lines crowd in at G and K, and molecular bands appear at M. The bottom three rows show special cases: a metal-poor F star, an M star with emission lines, and a B star with emission.NOAO/AURA/NSF
Spectral TypeColorTemperature RangeMS PrevalenceDominant FeaturesExample
OBlue-violet0.00003%He II, weak HO4I (ζ Puppis), O9.5V (10 Lac)
BBlue-white10,000–30,000 K0.13%He I, strong HB8Ia (Rigel), B1III (Spica)
AWhite7,500–10,000 K0.6%Strongest H Balmer linesA1V (Sirius), A0V (Vega)
FYellow-white6,000–7,500 K3%Moderate H, weak metalsF5IV (Procyon A)
GYellow5,200–6,000 K7.6%Weak H, strong metal linesG2V (Sun)
KOrange3,700–5,200 K12.1%Very weak H, strong metals, molecular bands appearK1.5III (Arcturus)
MRed-orange76.5%Molecular bands (TiO), very weak HM2Ia (Betelgeuse), M5V (Proxima Cen)

Several examples are giants or supergiants rather than main-sequence dwarfs — those are the ones bright enough to have names. The prevalence column refers to main-sequence stars only.

Look at the prevalence column: M dwarfs make up over three-quarters of all main-sequence stars, yet they’re too faint to see with the naked eye. The bright stars that fill constellations — Rigel (B supergiant), Sirius (A dwarf), Arcturus (K giant) — are the rare luminous ones. The galaxy is dominated by cool, dim, long-lived M dwarfs.

Why Temperature Controls Line Strength

This is a critical conceptual point that trips up beginners: spectral type does NOT directly reflect composition. All main-sequence stars have roughly the same composition. What changes is which atomic transitions are active — and that depends on temperature through the Boltzmann distribution.

For an atom to absorb a photon at a given wavelength, an electron must already be in the right starting energy level. The fraction of atoms in any given level depends on temperature through the Boltzmann distribution:

where is the excitation energy — the energy above the ground state needed to reach level (always positive) — and is Boltzmann’s constant. For hydrogen, (the energy to excite from to ). Note is not the Bohr energy used earlier — it’s the gap , which is always positive.

Boltzmann distribution

The rule that the fraction of atoms in an excited level scales as , where is the excitation energy above the ground state. Its exponential sensitivity to temperature is why spectral type is a temperature sequence: temperature, not abundance, sets which levels are populated and therefore which lines appear.

The exponential is ruthless: even modest temperature changes dramatically shift which levels are populated. Higher excitation energy demands higher temperature for significant population. As a rough guide, every factor-of-two increase in temperature can boost high-energy level populations by orders of magnitude.

(More precisely, the full Boltzmann expression includes degeneracy factors and a partition function in the denominator, but the key physics — exponential sensitivity to — is captured above.)

Predict First

Commit to an answer before reading on.

The star-by-star walkthrough below confirms your reasoning.

How this creates the spectral sequence:

O stars (30,000+ K): so hot that collisions ionize most hydrogen — electrons are stripped free. No neutral hydrogen means weak Balmer lines. Instead we see lines of ionized helium (He II), which requires extreme temperatures. (The governing physics is the Saha equation, which we won’t derive — but the idea is simple: hot enough collisions knock electrons free entirely.)

A stars (7,500–10,000 K): the Goldilocks temperature for hydrogen Balmer absorption. Balmer strength reflects a competition between excitation and ionization: the Boltzmann factor sets what fraction of neutral atoms are in , while the Saha equation sets what fraction are neutral at all. At A-star temperatures, enough hydrogen stays neutral and enough of it is excited to that Balmer absorption is maximally efficient. H lines are strongest here.

G stars (5,800 K, like the Sun): Balmer lines are weaker — fewer atoms sit in . Metal absorption lines become prominent: ionized calcium (Ca II H & K at 393.4 and 396.8 nm), neutral iron, sodium (the D lines at 589.0 and 589.6 nm). The spectrum looks like a forest of metallic lines.

M stars (below 3,700 K): so cool that atoms stay neutral and even molecules form. Titanium oxide (TiO) produces broad absorption bands dominating the red and infrared. Balmer lines are very weak because almost no atoms are in .

Quick check

Your lab partner claims: “M stars have weak hydrogen lines because they have less hydrogen than A stars.” Construct a counterargument using the Boltzmann distribution. What fraction of hydrogen atoms are in at 3,000 K vs. 10,000 K?

Metallicity: A Secondary Effect

Metallicity () is the mass fraction of elements heavier than helium. The Sun has — about 1.4% of its mass is “metals” (everything heavier than He, in astronomical parlance; older references cite 0.02, since revised downward). High-metallicity stars show more and stronger metal absorption lines; low-metallicity stars appear “cleaner.” But metallicity is a second-order effect for classification: two stars at the same temperature with different metallicities have the same spectral type — the metal-line strengths differ, but the overall pattern is set by temperature.

Metallicity

The mass fraction of elements heavier than helium in a star or gas cloud (). It modulates the strength of metal absorption lines but, at fixed temperature, does not change a star’s spectral type — a second-order effect.

Quick check

  1. Which spectral type has the strongest hydrogen Balmer lines?
  2. Why are H lines weak in O stars — lack of hydrogen, or something else?
  3. Two stars have the same spectral type (G5). Must they have the same luminosity?
  4. A star’s spectrum shows strong TiO molecular bands. Is it hot or cool?

Part 3 takeaway: OBAFGKM is a temperature sequence. Composition is nearly uniform across stars — what changes is which energy levels are populated, exponentially sensitive to temperature. Spectral type tells you temperature; metallicity and luminosity class add refinement.

Select all that apply

Give two physically distinct reasons a star could show very weak H Balmer lines, other than having less hydrogen.