Astronomy Olympiad / Level 1 · NSEA / Stars

Stars · lesson 7 of 23 · 35 min

Spectral classes O B A F G K M

After this lesson you can:
  • List the classes O B A F G K M in falling temperature with typical ranges.
  • Name the lines that dominate each class (He II, H, Ca II, TiO).
  • Add luminosity classes (I–V): the Sun is G2 V.

Before this lesson: Atoms and spectral lines; the Balmer series · Star colours and spectral classes

1. Concept

Spectral type is a star’s ID card; ordering classes by temperature is an easy NSEA mark that many still lose.

Before you start. This lesson builds on Star colours and spectral classes (Level 0), where the first ideas are explained simply. Here the topic is taken to NSEA level.

The Hydrogen-Line Puzzle

We have just learned that temperature affects the state of atoms in a star’s atmosphere. Now consider hydrogen. Hydrogen is abundant in stars, so it might seem reasonable to expect the hottest stars to show the strongest hydrogen absorption lines. But this is not what we observe.

The reason becomes clear when we remember what is required to produce a Balmer absorption line: the electron in a hydrogen atom must already be in the second energy level before it can absorb the appropriate light. The strength of the Balmer lines therefore depends on how many hydrogen atoms have electrons in that particular level.

In a relatively cool star, there is not enough thermal energy to place many hydrogen electrons in the second level. Most remain in the lowest energy level, so relatively few atoms are able to produce strong Balmer absorption.

As the temperature rises, more electrons are lifted into the second energy level. At a certain range of temperatures, a large number of hydrogen atoms are in exactly the right state to absorb visible Balmer wavelengths. The Balmer lines therefore become very strong.

But if the temperature becomes extremely high, another effect takes over. The atoms receive so much energy that many hydrogen atoms lose their electrons completely. This process is called ionization. Once a hydrogen atom has lost its electron, it can no longer produce the ordinary hydrogen absorption lines we are discussing.

So the strength of the hydrogen lines follows a simple physical story:

Too cool → too few electrons in the second level

Intermediate temperature → many electrons in the second level → strong Balmer lines

Very hot → much hydrogen becomes ionized → weaker Balmer lines

This is why the strongest Balmer absorption does not occur in the hottest stars. The strength of a spectral line depends on having atoms in the right physical state, not simply on how much of the element is present.

That idea is important far beyond hydrogen: a spectral line can become weaker either because the element is less abundant or because the physical conditions are no longer suitable for producing that line.

Why Balmer Lines Peak Near A-Type Stars

We have now seen that the strength of a hydrogen absorption line depends on the number of hydrogen atoms whose electrons are in the second energy level. Temperature controls this number, and this explains why Balmer lines are not strongest in either the coolest or the hottest stars.

In relatively cool stars, most hydrogen electrons remain in the lowest energy level. Too few are in the second level, so there are relatively few atoms ready to absorb the visible wavelengths that produce Balmer lines.

As the temperature rises, collisions and thermal energy move more electrons into the second energy level. Around 10,000 K, the conditions are especially favourable: a large number of hydrogen atoms have electrons in the second level, so Balmer absorption becomes particularly strong. Stars in the A spectral class are found around this temperature range, and they therefore show the strongest Balmer lines.

If the temperature rises much further, however, many hydrogen atoms become ionized. Their electrons are completely removed from the atoms, so those atoms can no longer produce the Balmer absorption lines in the usual way. The lines therefore become weaker again in very hot stars.

The important lesson is that a spectral line does not simply become stronger and stronger as temperature increases. A particular line is strongest when the physical conditions are just right for producing it.

For hydrogen’s Balmer lines, the sequence is therefore:

Cool → weak Balmer lines

Around 10,000 K → strongest Balmer lines

Extremely hot → weak Balmer lines again because of ionization

Fraction of hydrogen atoms able to absorb Balmer lines (neutral, with the electron in level n=2) for a typical stellar atmosphere: it peaks near 10,000 K
Figure 1. Fraction of hydrogen atoms able to absorb Balmer lines (neutral, with the electron in level n=2n=2) for a typical stellar atmosphere: it peaks near 10,000 K

This gives us a much deeper understanding of stellar spectra. The pattern of lines in a star’s spectrum can act as a clue to its temperature because different temperatures create different populations of atoms and ions in the atmosphere.

We can now take the next step: if different temperatures produce different spectral patterns, astronomers can use those patterns to classify stars into a systematic sequence of spectral types.

Subclasses and Luminosity Classes

Each spectral class is divided into ten subclasses, numbered 0 (hottest) to 9 (coolest): B0, B1, …, B9, A0, A1, and so on. The Sun is a G2 star. A popular memory aid for the sequence is “Oh Be A Fine Girl/Guy, Kiss Me”.

Stars of the same temperature can have very different sizes and luminosities: a cool giant and a cool dwarf may share a spectral class. Their spectra still differ in detail, because the gas in a giant’s extended atmosphere is at much lower pressure, which makes its absorption lines narrower. The Morgan–Keenan (MK) system uses these differences to add a luminosity class written in Roman numerals:

Luminosity class Type of star Example
Ia, Ib Supergiants (brighter and less bright) Rigel (B8 Ia), Betelgeuse (M1–2 Ia)
II Bright giants Canopus (A9 II)
III Giants Aldebaran (K5 III)
IV Subgiants Procyon (F5 IV–V)
V Main-sequence stars (“dwarfs”) Sun (G2 V), Sirius A (A1 V), Vega (A0 V)

A full MK type such as G2 V therefore tells us both the temperature (from the letter and number) and the position on the HR diagram (from the luminosity class). White dwarfs are classified separately (types beginning with D).

Reading the Sequence in Either Direction

The spectral sequence

O – B – A – F – G – K – M

is arranged from hottest to coolest. Once we know this, determining the relative temperatures of two stars becomes straightforward. A star of an earlier spectral type in this sequence is generally hotter than a star of a later type. Thus, an O-type star is hotter than a B-type star, a B-type star is hotter than an A-type star, and so on until we reach the cooler M-type stars.

Sometimes, however, we are asked to arrange objects in increasing temperature, which means starting with the coolest and moving toward the hottest. In that case, we simply read the sequence in reverse:

M → K → G → F → A → B → O

This is worth understanding rather than memorizing as a second separate sequence. There is only one temperature scale; we are simply reading it in the opposite direction.

The same idea helps when familiar descriptions such as red, yellow, or blue are used. Broadly, cooler stars tend toward the redder end of the visible spectrum, while hotter stars tend toward the bluer end. Thus, a cool red star belongs toward the K–M end, the Sun lies around the G class, and very hot blue stars lie toward the O–B end.

There is one more useful extension. Objects cooler than ordinary M-type stars include brown dwarfs, whose cooler spectral types are labelled L, T and Y. These objects extend into even lower-temperature regimes, although they are not ordinary hydrogen-fusing stars like the main sequence stars we have been discussing.

So, the essential skill is simple: know what direction the sequence is being read, and remember that the O–B–A–F–G–K–M sequence runs from hotter to cooler.

But temperature classification is only one way of describing a star. A star can also change its brightness with time, and that leads us to a different kind of classification altogether.

Key results.

  • O > 30 000 K, B 10 000–30 000, A 7500–10 000, F 6000–7500, G 5200–6000, K 3700–5200, M 2400–3700 K
  • Sun: G2 V

Common mistakes. Each of these is false:

  • ✗ The letters are in alphabetical temperature order.
  • ✗ Different classes mean different compositions.

Going deeper (Olympiad)

Saha ionisation explains the sequence (NSEA 2024 Q13); L, T, Y brown dwarfs; Cecilia Payne and the composition of stars.

2. Explore it

Try it. Put in order of temperature: K, B, G, O.

Exam-style practice. A star shows strong TiO bands. Class and colour?

3. Worked examples

Example 1. λ_max = 290 nm → T = 2.898 × 10⁻³ / 2.90 × 10⁻⁷ = 9990 K → A0, like Vega.

Example 2. In which spectral class do hydrogen Balmer absorption lines reach their peak strength?

(a) O-type
(b) A-type
(c) G-type
(d) M-type

Solution. Answer: (b). A-type

Balmer absorption lines are strongest in A-type stars.

These stars have surface temperatures of roughly 10,000 K, which provide favorable conditions for a large number of hydrogen atoms to have electrons in the second energy level.

Electrons in this level can then absorb photons and produce strong Balmer absorption lines.

Therefore, the correct option is (b).

4. From a past paper

NSEA 2023, Rajasthan paper, Question 10 (official paper: IAPT). In very hot stars, the hotter the star, the weaker its hydrogen lines. Why? (a) strong helium lines hide the hydrogen lines (b) the hydrogen is locked up in molecules (c) the star has already turned its hydrogen into helium (d) most of the hydrogen is ionised

Our solution. Answer: (d). Too much of the hydrogen is ionized

The Balmer lines are absorbed by hydrogen atoms in the n=2n=2 level. In very hot stars most hydrogen is ionized, so few atoms are left to absorb and the lines weaken; they are strongest near 10 000 K (A-type stars). (The question says “emission spectra”; the lines in question are the absorption lines of the stellar spectrum, but the reasoning is the same.)

5. Quick check

Q1. Regarding the hydrogen Balmer lines in stellar spectra, which of the following are valid physical reasons for their weakness in certain stars? (Choose all that are correct.)

Q2. Which of the following statements regarding stellar spectra and classification are correct? (Choose all that are correct.)

Q3. In which spectral class are lines of ionised helium strongest?

6. Next