Question
What Is a Spectral Class? O, B, A, F, G, K and M Stars

A spectral class is a letter that sorts stars mainly by their surface temperature. The main classes run from hottest to coolest as O, B, A, F, G, K and M, and each is divided into subclasses numbered 0 to 9. The Sun is a G-type star, and astronomers record its class as G2 V.
Contents
The full answer
Astronomers classify stars by the pattern of dark absorption lines in their light spectrum. The Chandra X-ray Observatory’s education pages describe the system as sorting stars by temperature, from hottest to coolest, as O, B, A, F, G, K and M. NASA’s Astronomy Picture of the Day explains that the spectral type was first used in the 1800s to classify the strength of hydrogen absorption lines, and that a few of the types still used today best describe temperature.
Each main class has its own spectral pattern, and the letter tells you where the star sits on the temperature scale. O stars are the hottest, and M stars are the coolest. The class by itself does not give the size or brightness of a star, because two stars of the same temperature can differ greatly in luminosity.
How are the subclasses numbered?
Each letter is divided into ten subclasses, from 0 for the hottest to 9 for the coolest within that class. Chandra’s page gives the example that the hottest B stars are B0 and the coolest are B9, followed by A0. This means a number such as G2 is a little cooler than G0 and a little hotter than G5.
The system is also combined with a luminosity class written in Roman numerals. Chandra lists the classes from most to least luminous as I and II for supergiants and bright giants, III for giants, IV for subgiants, V for main sequence stars, VI for subdwarfs and VII for white dwarfs. A main sequence star is marked V, so a full classification has two parts, such as G2 V.
Where is the Sun on the scale?
NASA’s Astronomy Picture of the Day states that the Sun has spectral type G. The NASA Sun fact sheet gives its spectral type as G2 V and its effective surface temperature as 5,772 K, about 5,500 °C (9,900 °F). The Sun is a main sequence star in the middle of the range, cooler than the O and B stars and hotter than the K and M stars. Chandra’s page says stellar luminosities range from one million times that of the Sun down to one ten-thousandth of it, and that each major spectral class has its own unique spectra.
For the Sun’s distance and its light travel time, see how long sunlight takes to reach Earth. For how the Sun compares in size with other stars, see how big the Sun is compared to other stars.
How do the classes appear on the sky?
The classes are easiest to see on the Hertzsprung-Russell diagram, which plots luminosity against spectral class. Chandra’s page notes that the main sequence runs from the hot, bright O and B stars at the top left to the cool, dim K and M stars at the lower right. About 90 percent of stars lie within this band. Chandra’s page says that from a star’s position on the diagram, its luminosity, spectral type, color, temperature, mass, age and evolutionary history can be inferred. Spectral class is therefore the first step in reading a star’s life story rather than a label on its own.
Sirius, at a declination of -16.7 degrees in SIMBAD, can be seen from Europe and North America, where it reaches about 23 degrees above the horizon at 50 degrees north. SIMBAD lists Sirius A as an A-type star, which is hotter than the Sun. Its SIMBAD visual magnitude of -1.46 is brighter than Canopus (-0.74), so it is the brightest star in the night sky.
Extended classes and the mnemonic
Chandra notes that several extended classes have been added to the sequence. These include L for cool dwarfs, T for brown dwarfs and D for white dwarfs. Each of these is a separate kind of object, and the classes are used together on the same chart.
The traditional way to remember the order is the phrase “Oh Be A Fine Girl/Guy Kiss Me.” NASA’s Astronomy Picture of the Day notes that the phrase is historical and that classroom contests have produced many other versions.
Common misconceptions
One misconception is that the letters follow the alphabet in a logical way. The letters are a historical naming scheme, and the sequence is now understood as a temperature order, so the letters themselves do not show the order of discovery.
Another is that a star’s class tells you its size. The class mainly reflects surface temperature. A giant and a main sequence star of the same class can differ enormously in luminosity, which is why the Roman numeral luminosity class is added to the full classification.
Frequently asked questions
What is a spectral class?
A spectral class is a letter that classifies a star mainly by its surface temperature. The main classes from hottest to coolest are O, B, A, F, G, K and M, and each is divided into subclasses numbered 0 to 9.
What spectral class is the Sun?
The Sun is a G-type star. NASA's Sun fact sheet gives its spectral type as G2 V, which means a G2 star on the main sequence, and it gives the Sun's effective surface temperature as 5,772 K.
What does the mnemonic for spectral classes mean?
The classes are often remembered with the phrase Oh Be A Fine Girl/Guy Kiss Me, which NASA's Astronomy Picture of the Day describes as a historical mnemonic. Classroom contests have produced many other versions of the phrase.
Are brown dwarfs part of the spectral sequence?
Yes. The sequence has been extended with cool dwarfs of class L and brown dwarfs of class T. Class D is used for white dwarfs, which are classified separately.
What spectral class is Sirius?
SIMBAD lists Sirius A as an A-type star, which is hotter than the Sun. Its SIMBAD visual magnitude of -1.46 makes it the brightest star in the night sky.
Sources and further reading
- Chandra X-ray Observatory, "Chandra :: Educational Materials :: The Hertzsprung-Russell Diagram"
- NASA Science, "Stellar Spectral Types: OBAFGKM" (Astronomy Picture of the Day, 30 May 2001)
- NASA Space Science Data Coordinated Archive, "Sun Fact Sheet"
- SIMBAD Astronomical Database, "Sirius"
Cite this page
“What Is a Spectral Class? O, B, A, F, G, K and M Stars.” Space Atlas, https://space.bigworldlist.com/questions/what-is-a-spectral-class/.