Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 37 · Star Life Cycles

Main Sequence Stars and Mass

Learn why a star's mass sets its brightness, color and lifetime, with the spectral classes and a calculator for luminosity and main-sequence lifetime.

About 90% of the stars you see are on the main sequence: they are steadily fusing hydrogen into helium in their cores. Our Sun is one. The most important fact about a main sequence star is its mass. Mass decides how bright it is, how hot its surface is, and how long it lives. In this lesson you will see how.

Why the main sequence is stable

Inside a star two forces balance each other, a state called hydrostatic equilibrium:

  • Gravity pulls inward.
  • The pressure of hot gas from fusion pushes outward.

If the core got too hot, fusion would speed up, the star would expand and cool, and fusion would slow down again. This natural thermostat keeps a main sequence star steady for millions or billions of years.

In stars like the Sun, hydrogen fuses through the proton-proton chain: four protons end up as one helium nucleus. A tiny fraction of the mass (about 0.7%) turns into energy, following Einstein's E = mc². In heavier stars the CNO cycle, which uses carbon, nitrogen and oxygen as catalysts, takes over because it is much more sensitive to temperature.

Spectral classes

Astronomers sort stars by surface temperature into classes O, B, A, F, G, K, M (hottest to coolest). A classic memory phrase is "Oh Be A Fine Guy/Girl, Kiss Me".

Class Surface temperature (K) Color Example
O above 30,000 blue (rare, very luminous)
B 10,000 to 30,000 blue-white Rigel
A 7,500 to 10,000 white Sirius, Vega
F 6,000 to 7,500 yellow-white Procyon
G 5,200 to 6,000 yellow the Sun (about 5,800 K)
K 3,700 to 5,200 orange Arcturus (a giant)
M 2,400 to 3,700 red Proxima Centauri

Each class is split into subclasses 0 to 9, so the Sun is G2. Color follows temperature: a hot object glows blue-white, a cooler one orange-red. Wien's law gives the wavelength of peak emission, λ_max = b / T with b = 2.898 × 10⁻³ m·K.

Python Star color from temperature (Wien's law)

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice that a hot star peaks in the ultraviolet, and still looks blue-white to us because it emits a lot of visible light too.

Mass controls everything

More massive stars have more gravity pressing on the core, so the core is hotter and denser, and fusion runs much faster. The result is dramatic:

  • Luminosity (power output) rises very steeply with mass. A common approximation, with L and M in solar units:
    • L ≈ 0.23 M^2.3 for M < 0.43
    • L ≈ M^4 for 0.43 ≤ M < 2
    • L ≈ 1.4 M^3.5 for 2 ≤ M < 55
  • Lifetime depends on fuel divided by burn rate. Fuel is proportional to mass, burn rate to luminosity, so t ≈ 10 billion years × (M / L).

These are approximate fits, but they capture the trend: a star with 10 times the Sun's mass is thousands of times brighter, so it lives only a few tens of millions of years.

Python Luminosity and lifetime by mass

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The table shows the key point: the brightest stars burn out fastest. A red dwarf of 0.1 solar masses will shine for trillions of years, longer than the present age of the universe (about 13.8 billion years), so no red dwarf has died yet.

Size and the Stefan-Boltzmann law

Luminosity also depends on size and surface temperature: L = 4π R² σ T⁴, with σ = 5.670 × 10⁻⁸ W m⁻² K⁻⁴. In solar units this becomes L/L☉ = (R/R☉)² (T/5772 K)⁴. If you know any two of L, R, T, you can find the third.

Python Radius of a star from luminosity and temperature

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Reading the main sequence

If you plot every star by luminosity and temperature, most fall on a diagonal band. This is the Hertzsprung-Russell (H-R) diagram, and the band is the main sequence. You will build one in the H-R diagram project.

Mass sets the star

Mass The one input that matters
Brightness Rises steeply with mass
Temperature Hotter core, hotter surface
1 / 2

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What balances gravity inside a main sequence star?

    Hydrostatic equilibrium means the outward gas pressure from fusion energy balances the inward pull of gravity.
  2. 2. Which spectral class is the hottest?

    The sequence O, B, A, F, G, K, M runs from hottest (above 30,000 K) to coolest.
  3. 3. Why do massive stars have shorter lives?

    Luminosity rises much faster than mass, so a heavier star uses up its larger fuel supply in far less time.
  4. 4. Which law links luminosity, radius and temperature?

    L = 4πR²σT⁴ is the Stefan-Boltzmann law for a glowing sphere.

Summary

  • Main sequence stars fuse hydrogen in their cores and sit in hydrostatic equilibrium.
  • Spectral classes O, B, A, F, G, K, M run from hot and blue to cool and red; the Sun is G2.
  • Luminosity rises very steeply with mass, so lifetime falls steeply with mass.
  • L = 4πR²σT⁴ links brightness, size and temperature.

Next: Red Giants and Planetary Nebulae