📘 CodingMarble Learn

Stars: Colour, Brightness, Distance and the H-R Diagram

A star is a huge ball of hot gas that shines by nuclear fusion. Its colour shows its surface temperature: red stars are cool, blue stars are hot (Wien's law: λmax × T = 2.9 × 10⁻³ m K). Stars are sorted into spectral classes O B A F G K M, hottest to coolest. How bright a star looks (apparent magnitude) depends on its real power (luminosity) and its distance, because light weakens as 1/d². Nearby distances are found by parallax: d (pc) = 1/p (arcsec). Luminosity depends on size and temperature (L = 4πR²σT⁴). The H-R diagram plots luminosity against temperature and shows the main sequence, giants and white dwarfs.

🎬 Step-by-step story

  1. A star's colour tells its temperature. Red is cool, yellow is like the Sun, blue is hottest.
  2. Spectral classes: O B A F G K M, from hottest to coolest. The Sun is a G star.
  3. Light spreads out with distance. Twice as far means one quarter as bright.
  4. Parallax: a near star seems to shift as Earth orbits. Distance in parsecs = 1 ÷ p.
  5. The H-R diagram: luminosity against temperature. Main sequence, giants and white dwarfs.
  6. Free play: change the temperature. Watch the colour, the class and the peak wavelength.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is a hot star blue when blue feels cool in daily life?

In daily life we call blue a cool colour, but in physics hotter objects give out more short-wavelength (blue) light. A gas flame is blue where it is hottest.

Why is the order O B A F G K M and not alphabetical?

The letters were first given by line strength, then rearranged by temperature once scientists understood that temperature controls the lines. The old letters stayed.

If a star looks faint, is it small?

Not always. It may be very powerful but very far away. Brightness falls as 1/d², so distance matters a lot.

Why measure parallax 6 months apart?

Earth is then on opposite sides of its orbit, about 300 million km apart. A bigger baseline gives a bigger, easier-to-measure shift.

Why is temperature backwards on the H-R diagram?

It follows the old spectral order O to M, written left to right. O stars are hottest, so hot ends up on the left.

How can a white dwarf be hot but dim?

It is tiny, about the size of Earth. Luminosity depends on R² as well as T⁴, so a very small surface gives little total light.

What is a star? Colour and temperature

A star is a giant ball of hot gas, mostly hydrogen and helium, that makes its own light by nuclear fusion in its core. The Sun is our nearest star.

Hot objects glow. As they get hotter, the colour shifts from red to yellow to white to blue. Stars behave like this too (scientists call them black bodies).

Wien's law: the wavelength where a star is brightest gets shorter as it gets hotter:
λmax × T = 2.9 × 10⁻³ m K

For the Sun, T ≈ 5,800 K, so λmax ≈ 500 nm (green-yellow light; the Sun looks white from space).

Spectra and spectral classes

Spreading starlight through a prism or grating gives a spectrum: a rainbow crossed by thin dark lines. Each element (hydrogen, helium, iron...) absorbs its own set of wavelengths, so the lines tell us what a star is made of.

The pattern of lines also depends on temperature. Stars are sorted into classes:

Each class is split 0–9 (the Sun is G2). A luminosity class (I supergiant ... V main sequence) is added from line widths: the Sun is G2 V.

Brightness, magnitude and distance

Luminosity and apparent brightness

Luminosity L is the total power a star gives out (watts). Apparent brightness b is the power reaching each square metre here: b = L / (4πd²). So brightness falls as 1/d².

Magnitudes

Astronomers also use magnitude. Smaller numbers mean brighter. A difference of 5 magnitudes = 100 times in brightness, so 1 magnitude ≈ 2.512 times.

Distance by parallax

From two sides of Earth's orbit (6 months apart), a nearby star shifts against distant ones. The parallax angle p is half this shift. d (pc) = 1 / p (arcsec). 1 pc ≈ 3.26 light-years ≈ 3.09 × 10¹⁶ m. A light-year is the distance light travels in a year, about 9.46 × 10¹⁵ m. Parallax works well only for fairly near stars because far stars shift too little to measure.

Size and the H-R diagram

Size from temperature and luminosity

Stefan–Boltzmann law: L = 4πR²σT⁴, σ = 5.67 × 10⁻⁸ W m⁻² K⁻⁴. If a red star is much more luminous than the Sun even though it is cooler, it must be much bigger: a giant.

The Hertzsprung–Russell (H-R) diagram

A graph of luminosity (or absolute magnitude) up the side, and temperature (or spectral class) along the bottom, hot on the left.

A star's place on the diagram changes as it ages (see the lesson on stellar evolution).

Try it

On a clear night, find three bright stars of different colours. Rank them from hottest to coolest by colour, then check their spectral classes in a star app.

Key formulas and definitions

Worked examples

1. A star's light peaks at 290 nm. Find its surface temperature.

T = 2.9 × 10⁻³ ÷ λmax = 2.9 × 10⁻³ ÷ (290 × 10⁻⁹) = 10,000 K. It is a hot white or blue-white star (class A/B).

2. A star has a parallax of 0.25 arcseconds. How far is it in parsecs and light-years?

d = 1 / p = 1 / 0.25 = 4 pc. In light-years: 4 × 3.26 ≈ 13 ly.

3. Star A is 3 times farther away than star B, and both have the same luminosity. Compare their apparent brightness.

Brightness ∝ 1/d². A is 3² = 9 times fainter than B.

4. Star X has apparent magnitude +1 and star Y has +6. How many times brighter does X look?

The difference is 5 magnitudes, which is exactly 100 times. X looks 100 times brighter. (Smaller magnitude = brighter.)

5. A red giant has the same temperature as a red dwarf but is 10,000 times more luminous. How many times bigger is its radius?

L = 4πR²σT⁴. With T the same, L ∝ R². R ratio = √10,000 = 100. The giant's radius is 100 times larger.

6. A star at 100 pc has apparent magnitude m = +7. Find its absolute magnitude.

m − M = 5 log₁₀(d/10) = 5 log₁₀(10) = 5. So M = 7 − 5 = +2. It is more luminous than the Sun (M = +4.8).

Common mistakes

Practice quiz

1. Which star colour shows the highest surface temperature?
2. The Sun's spectral class is:
3. A star with parallax 0.5″ is at:
4. On the H-R diagram, white dwarfs are found:
5. If you double the distance to a star, its apparent brightness becomes:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the spectral classes of stars?

O, B, A, F, G, K, M, from hottest (blue, above 30,000 K) to coolest (red, below about 3,700 K). The Sun is a G2 star.

What is the difference between apparent and absolute magnitude?

Apparent magnitude is how bright a star looks from Earth. Absolute magnitude is how bright it would look from a standard distance of 10 parsecs, so it compares true power.

What does the H-R diagram show?

It plots stars' luminosity against surface temperature (hot on the left). It shows the main sequence, giants and supergiants, and white dwarfs, and helps us understand how stars change as they age.

Where this is taught

South Korea중학교 2학년Stars and the universe
South Korea중학교 3학년Stars and universe
South Korea고등학교 2학년Solar system bodies, stars and cosmic evolution
South Korea고등학교 3학년Stars and exoplanet systems
Russia11 классAstronomy and astrophysics
Russia11 классElements of astronomy and astrophysics

Learn first

Learn next

Related lessons

All Physics lessons