Stellar Classification & the Hertzsprung-Russell Diagram
Understanding stellar populations through spectral classification, the HR diagram, stellar structure equations, and evolutionary pathways from the main sequence to compact remnants
1. Spectral Classification (OBAFGKM)
The modern classification of stars by their spectra dates to the work of Annie Jump Cannon at Harvard in the early 20th century. The Morgan-Keenan (MK) system arranges stars into spectral classes ordered by decreasing surface temperature: O, B, A, F, G, K, M. The famous mnemonic “Oh Be A Fine Girl/Guy, Kiss Me” encodes this sequence. Each class is further subdivided with a digit 0–9 (e.g., G2 for the Sun).
Spectral Classes and Their Properties
| Class | T_eff (K) | Color | Key Spectral Features | Example |
|---|---|---|---|---|
| O | 30,000–50,000+ | Blue | He II, N III, C III ionized lines | 10 Lacertae |
| B | 10,000–30,000 | Blue-white | He I, H Balmer (strong) | Rigel, Spica |
| A | 7,500–10,000 | White | H Balmer (maximum), some metals | Sirius, Vega |
| F | 6,000–7,500 | Yellow-white | Ca II (H & K), weakening H | Canopus, Procyon |
| G | 5,200–6,000 | Yellow | Ca II (strong), Fe I, CH G-band | Sun (G2V) |
| K | 3,700–5,200 | Orange | Ca I, Fe I, molecular bands begin | Arcturus, Aldebaran |
| M | 2,400–3,700 | Red | TiO, VO molecular bands dominate | Betelgeuse, Proxima Cen |
1.1 Wien's Displacement Law
The peak wavelength of a star's blackbody emission is directly related to its surface temperature through Wien's displacement law:
For the Sun ($T_{\text{eff}} = 5778$ K), this gives $\lambda_{\max} \approx 501$ nm (green-yellow), while an O-type star at 40,000 K peaks at $\lambda_{\max} \approx 72$ nm (far ultraviolet).
1.2 Luminosity Classes
The MK system adds a luminosity class denoting the evolutionary state and surface gravity of the star. Luminosity classes are determined from the width of spectral lines — lower surface gravity in giants and supergiants produces narrower, sharper lines due to reduced pressure broadening:
- Ia, Ib — Luminous and less-luminous supergiants ($L \sim 10^4 - 10^6 \, L_\odot$)
- II — Bright giants
- III — Normal giants ($L \sim 10^1 - 10^3 \, L_\odot$)
- IV — Subgiants (transitioning off the main sequence)
- V — Main sequence (dwarfs) — the Sun is classified G2V
2. The Hertzsprung-Russell Diagram
2.1 Historical Development
In 1911, the Danish astronomer Ejnar Hertzsprung plotted the absolute magnitudes of stars in the Pleiades and Hyades clusters against their spectral types, discovering that most stars fell along a diagonal band. Independently, the American astronomer Henry Norris Russell presented a similar diagram in 1913 using nearby stars with known parallaxes. The resulting Hertzsprung-Russell (HR) diagram became one of the most important tools in all of astrophysics — a Rosetta Stone connecting observable properties to the underlying physics of stellar structure and evolution.
2.2 Axes and Layout
The HR diagram plots luminosity (in solar units, $L/L_\odot$) on the vertical axis against effective temperature $T_{\text{eff}}$ on the horizontal axis. By convention, temperature increases to the left, so hot blue stars appear on the left and cool red stars on the right. The main features of the diagram are:
- Main Sequence — A diagonal band running from hot, luminous O-stars (upper left) to cool, faint M-dwarfs (lower right). About 90% of all stars reside here, burning hydrogen in their cores.
- Red Giant Branch (RGB) — Upper right region populated by evolved stars with exhausted hydrogen cores but hydrogen-burning shells. Radii of $\sim 10 - 100 \, R_\odot$.
- Horizontal Branch (HB) — Stars burning helium in their cores after the helium flash, approximately constant luminosity at $L \sim 50 \, L_\odot$.
- Asymptotic Giant Branch (AGB) — Double-shell-burning stars ascending the giant branch a second time, luminosities up to $\sim 10^4 \, L_\odot$.
- White Dwarf Region — Lower left, hot but extremely faint due to tiny radii ($R \sim R_\oplus$). These are the exposed cores of low/intermediate mass stars.
2.3 The Mass-Luminosity Relation
For main-sequence stars, there is a tight relationship between mass and luminosity that follows from the physics of stellar interiors:
The steep dependence means a star twice as massive as the Sun is roughly $2^4 = 16$ times more luminous, drastically shortening its lifetime.
2.4 The Stefan-Boltzmann Law
A star's luminosity, radius, and effective temperature are connected by the Stefan-Boltzmann law:
where $\sigma = 5.670 \times 10^{-8}$ W m$^{-2}$ K$^{-4}$ is the Stefan-Boltzmann constant. Lines of constant radius on the HR diagram are diagonal lines from upper-left to lower-right.
2.5 Magnitudes and Color Index
Astronomers often work with magnitudes rather than luminosities. The distance modulus relates apparent magnitude $m$ and absolute magnitude $M$ to the distance $d$:
The color index $B - V$ measures the difference in apparent magnitude between the blue (B) and visual (V) filters. Hot O/B stars have $B - V \approx -0.3$, the Sun has $B - V = 0.65$, and cool M-stars have $B - V \approx 1.5 - 2.0$.
3. Stellar Structure Equations
The internal structure of a star in hydrostatic equilibrium is governed by four coupled differential equations, supplemented by an equation of state and opacity law. These equations determine how pressure, mass, luminosity, and temperature vary as functions of radius.
3.1 Hydrostatic Equilibrium
At every shell within the star, the inward pull of gravity must be balanced by the outward pressure gradient:
This is the fundamental equation of stellar structure. Violation of this balance leads to dynamical collapse (free-fall timescale $\tau_{\rm ff} \sim (G\bar{\rho})^{-1/2}$) or explosion.
3.2 Mass Continuity
The mass enclosed within radius $r$ increases with each spherical shell of density $\rho$.
3.3 Radiative Energy Transport
In radiative zones, photons carry energy outward through a temperature gradient determined by the opacity $\kappa$:
where $a = 4\sigma/c$ is the radiation constant. High opacity or luminosity steepens the temperature gradient. If the gradient becomes too steep, convection sets in (Schwarzschild criterion).
3.4 Energy Generation
where $\varepsilon$ is the energy generation rate per unit mass. Nuclear reactions are the dominant energy source on the main sequence.
3.5 Equation of State and Nuclear Reactions
For main-sequence stars, the equation of state is well-approximated by an ideal gas:
where $\mu \approx 0.62$ is the mean molecular weight for solar composition.
The two dominant hydrogen-burning pathways have dramatically different temperature sensitivities:
- pp-chain (dominant for $M \lesssim 1.3 \, M_\odot$):$$\varepsilon_{\rm pp} \propto \rho \, T^4$$Moderate temperature sensitivity; operates in the Sun's core at $T_c \approx 1.57 \times 10^7$ K.
- CNO cycle (dominant for $M \gtrsim 1.3 \, M_\odot$):$$\varepsilon_{\rm CNO} \propto \rho \, T^{16}$$Extremely steep temperature dependence, making the CNO cycle the dominant energy source in massive stars. The high sensitivity drives convective cores.
4. Stellar Evolution
4.1 Main Sequence Lifetime
A star's time on the main sequence is set by its fuel supply (proportional to mass) divided by its fuel consumption rate (luminosity):
The Sun has $\tau_{\rm MS} \approx 10$ Gyr. A 10 $M_\odot$ star with $L \sim 10^{3.5} L_\odot$ lasts only $\sim 20$ Myr, while a 0.1 $M_\odot$ red dwarf can burn for trillions of years.
4.2 Post-Main-Sequence Evolution by Mass
Low Mass ($M < 0.5 \, M_\odot$): Red Dwarfs
Fully convective, so they mix hydrogen throughout and burn nearly all of it. Main sequence lifetimes exceed the current age of the universe. Eventually contract to become helium white dwarfs, though none have yet formed in nature.
Intermediate Mass ($0.5 - 8 \, M_\odot$)
This is the evolutionary path followed by the Sun and similar stars:
- Main Sequence → core hydrogen exhaustion
- Red Giant Branch (RGB) → hydrogen shell burning, degenerate He core grows
- Helium Flash (for $M \lesssim 2 M_\odot$) → explosive ignition of degenerate He core
- Horizontal Branch → stable core He burning + H shell burning
- Asymptotic Giant Branch (AGB) → double shell burning, thermal pulses
- Planetary Nebula → envelope ejection, exposing the hot core
- White Dwarf → C/O degenerate remnant, slowly cooling
High Mass ($M > 8 \, M_\odot$): Massive Stars
Massive stars burn through successive nuclear fuels (H, He, C, Ne, O, Si) in an onion-shell structure. The final iron core cannot release energy through fusion. When the core exceeds the Chandrasekhar mass, electron degeneracy pressure fails:
- Core-collapse supernova — the iron core collapses in milliseconds, rebounding into a powerful shock wave
- Neutron star ($M_{\rm remnant} \lesssim 2-3 \, M_\odot$) — supported by neutron degeneracy pressure
- Black hole ($M_{\rm remnant} \gtrsim 2-3 \, M_\odot$) — complete gravitational collapse
4.3 Critical Mass Limits
Chandrasekhar Limit
Maximum mass of a white dwarf supported by electron degeneracy pressure ($\mu_e = 2$for C/O composition).
Tolman-Oppenheimer-Volkoff Limit
Maximum mass of a neutron star. The exact value depends on the nuclear equation of state, which remains an active area of research. Observations of massive pulsars ($\sim 2.0 \, M_\odot$) constrain the lower bound.
5. Python Simulation: Interactive HR Diagram
The following Python script generates a synthetic Hertzsprung-Russell diagram with approximately 1,000 stars distributed across the main sequence, red giant branch, white dwarf region, and supergiant population. Notable stars are marked and labeled, and the spectral class boundaries are indicated along the temperature axis.
Synthetic HR Diagram Generator
PythonGenerates a detailed HR diagram with ~1000 stars across multiple evolutionary populations, proper color mapping by temperature, and labeled notable stars.
Click Run to execute the Python code
Code will be executed with Python 3 on the server
Expected Output
The script produces a publication-quality HR diagram on a dark background with:
- Main sequence band: 700 stars with realistic scatter from mass-luminosity and mass-temperature relations
- Red giant branch: 150 stars in the upper-right, with cooler giants being more luminous
- White dwarfs: 100 stars in the lower-left, hot but faint
- Supergiants: 50 stars across the top of the diagram
- Notable stars: Sun, Sirius A, Betelgeuse, Rigel, Proxima Centauri, Vega, and Sirius B annotated with arrows
6. Fortran Simulation: Stellar Structure
This Fortran program solves the Lane-Emden equation for an $n = 3$ polytrope (appropriate for radiation-pressure-supported stellar interiors) and uses scaling relations to compute physical properties — central temperature, central pressure, effective temperature, and main sequence lifetime — for stars ranging from 0.1 to 80 solar masses.
Polytropic Stellar Structure Solver
FortranSolves the Lane-Emden equation for n=3 polytrope and computes central temperature, pressure, luminosity, and main sequence lifetime for stars of different masses.
Click Run to execute the Fortran code
Code will be compiled with gfortran and executed on the server
Expected Output
The program outputs:
- Lane-Emden solution: $\xi_1 \approx 6.897$ for $n = 3$
- Stellar properties table: mass, luminosity, radius, effective temperature, central temperature, central pressure, and main sequence lifetime for 12 representative masses
- Mass-luminosity verification: confirming the piecewise power-law exponents
- Remnant mass limits: Chandrasekhar (1.44 $M_\odot$) and TOV (~2–3 $M_\odot$)
7. Video Resources
The Hertzsprung-Russell Diagram Explained
Professor Dave Explains provides a clear overview of how the HR diagram is constructed and what the different regions tell us about stellar properties.
Stellar Evolution: Life Cycle of a Star
A comprehensive overview of stellar evolution from protostellar collapse through the main sequence to white dwarfs, neutron stars, and black holes.
Spectral Classification of Stars
An educational walkthrough of the OBAFGKM spectral classification system, including how absorption lines arise from atomic physics and what they reveal about stellar atmospheres.
MIT 8.901 — Stellar Structure and Evolution
A lecture from MIT's graduate astrophysics course covering the equations of stellar structure, polytropic models, and the physics underlying the mass-luminosity relation.
8. Summary
Key Equations of Stellar Astrophysics
Wien's Displacement Law
Stefan-Boltzmann Law
Hydrostatic Equilibrium
Mass-Luminosity Relation
Main Sequence Lifetime
Chandrasekhar Limit
The Physical Picture
1. Stars are classified by the OBAFGKM spectral sequence, ordered by decreasing temperature from >30,000 K (O-type) to <3,700 K (M-type), with luminosity classes I–V distinguishing supergiants from dwarfs.
2. The HR diagram reveals that ~90% of stars lie on the main sequence, a tight band in luminosity-temperature space governed by the mass-luminosity relation $L \propto M^{3.5\text{-}4}$.
3. Stellar interiors are described by four structure equations (hydrostatic equilibrium, mass continuity, energy transport, energy generation) coupled with an equation of state.
4. The pp-chain ($\varepsilon \propto T^4$) dominates in solar-type stars, while the CNO cycle ($\varepsilon \propto T^{16}$) drives convective cores in massive stars.
5. Post-main-sequence evolution depends critically on mass: low-mass stars become white dwarfs (below the Chandrasekhar limit of 1.44 $M_\odot$), while massive stars undergo core collapse to form neutron stars or black holes.
6. The steep mass-luminosity relation means massive stars live fast and die young ($\sim$Myr), while red dwarfs can burn for trillions of years — far exceeding the current age of the universe.