Education

How to Read a Star: Spectral Classification Explained

Published 5 May 2025
Updated 31 August 2026
5 min read
How to Read a Star: Spectral Classification Explained

In short

OBAFGKM is the most useful sequence in astronomy — a star's spectral class tells you its temperature, colour, mass, lifespan and likely fate. Here is where the letters came from, why they are out of order, and how to read one.

Every star gets a label like G2V or M5.5Ve or B8Ia. It looks like a part number. It is closer to a summary: temperature, colour, size, luminosity, mass, expected lifespan and eventual fate, compressed into a few characters.

Learning to read it is one of the highest-return pieces of astronomical literacy available.

Why the letters are in a strange order

The sequence runs O, B, A, F, G, K, M — hot to cool. The obvious question is why it is not alphabetical, and the answer is historical.

In the 1880s at Harvard College Observatory, stars were classified A through Q by the strength of their hydrogen absorption lines, with A having the strongest. It was a reasonable scheme, but hydrogen line strength turns out not to track temperature straightforwardly. Hydrogen lines are strongest in stars around 10,000 K, and weaken in both hotter and cooler stars — for different reasons. In very hot stars, hydrogen is mostly ionised and cannot absorb in the same way. In cool stars, most electrons sit in the ground state and cannot make the relevant transition.

Annie Jump Cannon, working at Harvard from the 1890s, recognised the problem. She dropped redundant classes, merged others, and reordered the survivors into a genuine temperature sequence. Cannon personally classified around 350,000 stars — a volume that is difficult to comprehend — and her system, refined at Harvard with colleagues including Antonia Maury and Henrietta Swan Leavitt, is essentially the one still used today.

More classes have since been appended for very cool objects: L, T and Y cover brown dwarfs, which are not massive enough to sustain ordinary hydrogen fusion. The coolest Y dwarfs are around room temperature.

The main sequence classes

Each letter is subdivided 0 to 9, with 0 hottest. The Sun is G2 — near the hot end of G.

ClassTemperatureColourMass (Suns)Main-sequence lifeShare of stars
O30,000–50,000 KBlue16+~10 million yr~0.00003%
B10,000–30,000 KBlue-white2.1–16~100 million yr~0.1%
A7,500–10,000 KWhite1.4–2.1~1 billion yr~0.6%
F6,000–7,500 KYellow-white1.04–1.4~4 billion yr~3%
G5,200–6,000 KYellow0.8–1.04~10 billion yr~7.6%
K3,700–5,200 KOrange0.45–0.8~30 billion yr~12%
M2,400–3,700 KRed0.08–0.45100 billion+ yr~76%

Two things in that table are worth sitting with.

Three-quarters of all stars are M dwarfs, and not one of them is visible to the naked eye. Every star you can see without equipment is unusually luminous. Proxima Centauri, the closest star to the Sun, requires a telescope. Our impression of the stellar population is drawn entirely from the rare bright outliers.

Lifespan runs opposite to mass. A massive star has vastly more fuel but burns it disproportionately faster, because the crushing pressure in its core drives fusion at an enormous rate. An O star exhausts itself in around ten million years. An M dwarf will burn for longer than the current age of the universe — no red dwarf has ever died of old age, anywhere, because there has not been time.

The mnemonic

The traditional one is "Oh Be A Fine Girl/Guy, Kiss Me", dating to the early twentieth century. Extended for the brown dwarf classes, it usually becomes "...Less Talk, Yes!"

It is not elegant, but it has kept the sequence in astronomers' heads for over a century.

The Roman numeral: luminosity class

Temperature alone is not enough. Two stars can share a surface temperature and differ enormously in size — a red giant and a red dwarf are both cool and red, and could hardly be less alike.

The Yerkes or MK luminosity class resolves this:

ClassTypeExample
0 / Ia+HypergiantExtremely rare
IaLuminous supergiantRigel (B8Ia), Deneb (A2Ia)
IabIntermediate supergiantBetelgeuse (M1-2Iab)
IbLess luminous supergiantAntares (M1.5Iab-Ib)
IIBright giantCanopus (A9II)
IIIGiantArcturus (K0III), Aldebaran (K5III)
IVSubgiantProcyon (F5IV-V)
VMain sequence (dwarf)The Sun (G2V), Vega (A0V)
VISubdwarfMetal-poor, halo population
VII / DWhite dwarfSirius B

This is why "dwarf" in astronomy is confusing. A main-sequence star of any size is a dwarf, including hot massive O and B stars far larger than the Sun. It means "on the main sequence", not "small".

The classification comes from spectral line shapes, not just their presence. Giants have extended, low-density atmospheres, so their absorption lines are narrow. Dwarfs have compact, high-pressure atmospheres, and collisions between atoms broaden the lines noticeably. A trained eye can distinguish a giant from a dwarf of identical temperature from the line profiles alone.

Suffixes

Lower-case letters after the class carry additional information:

  • e — emission lines present, usually indicating circumstellar material. Achernar is B6Ve.
  • m — abnormally strong metal lines
  • n — broad, "nebulous" lines, indicating rapid rotation
  • p — peculiar; something does not fit the standard pattern
  • v — variable spectrum

So M5.5Ve for Proxima Centauri decodes as: a cool red star near the bottom of the M range, on the main sequence, with emission lines from magnetic activity.

The Hertzsprung–Russell diagram

Plot stars with temperature on the horizontal axis (hot on the left, by convention inherited from the original spectral ordering) and luminosity on the vertical, and they do not scatter randomly. They fall into distinct groups.

The main sequence runs diagonally from hot and bright at the upper left to cool and faint at the lower right. Roughly 90% of stars sit on it, and its existence was the first strong evidence that stars follow a common evolutionary path.

Above and to the right sit the giants and supergiants — cool but enormously luminous, which is only possible if they are very large. Below and to the left are the white dwarfs — hot but faint, therefore tiny.

Developed independently by Ejnar Hertzsprung and Henry Norris Russell around 1910, the H–R diagram did for stellar physics roughly what the periodic table did for chemistry. It turned a catalogue into a structure with an explanation behind it.

Reading the sky with it

Stellar colour is visible to the naked eye once you know to look, and it is directly readable as temperature.

On a winter evening, compare Betelgeuse and Rigel in Orion. Betelgeuse is M1-2Iab: distinctly orange, a cool supergiant. Rigel is B8Ia: blue-white, far hotter. They are diagonally opposite in the same constellation, which makes the comparison immediate and unmistakable.

Then find Antares in summer — M1.5, orange, named for its resemblance to Mars — and Vega overhead, A0V, crisply blue-white.

Once you start noticing this, you are reading surface temperatures off the sky with no instrument at all. The colour of a star is not decoration; it is a measurement.

Sources and further reading