Choose your star

Star Types Explained: O, B, A, F, G, K, M

Astronomers sort stars into seven main classes by temperature, from blazing blue O stars to dim red M dwarfs. What each type means for the planets around it, from habitable zones to lifespans.

Before you build a planet you need a star, and stars come in very different models. Astronomers sort them by surface temperature into seven main classes, written as the letters O, B, A, F, G, K, M — from hottest to coolest. Generations of students have remembered the order with the phrase “Oh Be A Fine Girl/Guy, Kiss Me”.

The seven classes at a glance

The figures below are typical for ordinary stars in the long, stable “main sequence” stage of life, where stars spend most of their time. Luminosity is compared with the Sun (Sun = 1).

ClassColourSurface temperatureBrightnessLifespanShare of stars
OBlueabove 30,000 °Ctens of thousands to a million × Suna few million yearsextremely rare
BBlue-white10,000–30,000 °Croughly 25 to tens of thousands × Suntens to hundreds of millions of yearsabout 0.1%
AWhite7,500–10,000 °Cabout 5–25 × Sunabout 1–3 billion yearsunder 1%
FYellow-white6,000–7,500 °Cabout 1.5–5 × Sunabout 3–7 billion yearsabout 3%
GYellow5,200–6,000 °Cabout 0.6–1.5 × Sunabout 10 billion yearsabout 7–8%
KOrange3,700–5,200 °Cabout 0.08–0.6 × Suntens of billions of yearsabout 12%
MRed2,400–3,700 °Cless than 0.08 × Sunhundreds of billions to trillions of yearsabout three-quarters

The Sun is a G-type star. The “colour” describes the light the star gives off most strongly; to the eye, the Sun looks white from space.

What the star decides for your planet

Where the habitable zone is

A brighter star pushes the habitable zone farther out; a dimmer star pulls it in close. Around a red dwarf, a planet with liquid water may need to orbit closer than Mercury does to the Sun — with a “year” of just days or weeks. Around a bright A star, the zone lies beyond the distance of Mars. Try it in the habitable zone calculator.

How much time you have

Massive stars burn their fuel furiously and die young. An O or B star may explode as a supernova after only a few million years — far too soon for a planet to cool, form oceans and develop life. Sun-like stars last about ten billion years. Red dwarfs last far longer than the current age of the universe (about 13.8 billion years); none has yet reached old age.

What the sky looks like

Under an orange K star, daylight would look warmer. Under a red dwarf it would be dimmer and redder, and plants — if any evolved — might use a different colour of light for photosynthesis. Under an F star, there would be more ultraviolet light.

How dangerous the neighbourhood is

Hot stars flood nearby planets with ultraviolet radiation. Small red dwarfs, especially young ones, often produce powerful flares. See planets around red dwarfs.

The best star for a living planet?

G stars like the Sun are the only type we know for sure can host life. Some astronomers argue that K-type orange dwarfs may be even better: they are calmer than red dwarfs, more common than Sun-like stars and live two to several times longer, giving life more time to develop. These are sometimes called “Goldilocks stars”.

Builder's choice

  • O, B: spectacular but short-lived. Not recommended for long projects.
  • A, F: bright and roomy habitable zones, shorter lifespans, more ultraviolet.
  • G: the proven option.
  • K: possibly the best long-term choice.
  • M: the most common stars by far, with very long lives — but tricky for planets, as the next page explains.

Last updated 2026-11-05