Home / Learn / Science / Astronomy / Lesson 3.5
All lessons

Module 3: Stars · Lesson 3.5 · about 25 min

Variable stars: Cepheids and the cosmic yardstick

Some stars change brightness: pulsating Cepheids, red giants like Mira, and eclipsing pairs. Henrietta Leavitt found that a Cepheid's period gives its true power, which turned these stars into distance markers.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 3 · about 25 minutes · read first: 1.5 Flux, luminosity and the inverse square law, 3.3 How stars shine and age · maths: logs and the distance modulus. You’ll be able to name the main kinds of variable star, use the period-luminosity rule, and find the distance to a Cepheid.

Some stars change brightness in step with their size or because a partner blocks them, and for pulsating Cepheids the period reveals the true power, which turns them into distance markers.

1. Why this matters

In 1912 Henrietta Swan Leavitt, studying photographic plates at Harvard, noticed that brighter Cepheids in the Small Magellanic Cloud pulsed more slowly. That single pattern let Edwin Hubble show in 1924 that the Andromeda “nebula” is a separate galaxy, and Cepheids still anchor today’s measurements of the expansion of the universe (in the cosmology course). Amateurs also contribute: tens of thousands of variable stars are watched by volunteers (Lesson 5.9).

2. Kinds of variable

  • Pulsating stars: the star itself swells and shrinks. Cepheids (periods of 1 to 100 days, very luminous), RR Lyrae stars (half a day, all about the same power), and long-period variables like Mira (about a year, red giants).
  • Eclipsing binaries: two stars take turns blocking each other.
  • Explosive variables: novae and supernovae flare up suddenly.

A graph of brightness against time is a light curve. Finding its period is the first job (Lesson 5.2).

Try it: find the distance to a Cepheid
absolute magnitude M from the rule
distance modulus m − M
distance (ignoring dust)
Top: a made-up light curve shaped like a real Cepheid's (quick rise, slow fade), drawn with brighter upwards. Bottom: the rule M ≈ −2.43 (log₁₀ P − 1) − 4.05, a published calibration from Hubble and Gaia-era parallaxes, rounded. Longer period means a more powerful star. Real work also corrects for dust, which makes stars look fainter and further away.

Things to notice:

  • Cepheids brighten quickly and fade slowly, so their light curves look like a saw tooth.
  • On the lower panel, a 10-day Cepheid is about 2.4 magnitudes, or 9 times, more powerful than a 1-day one.
  • The same period with a fainter measured magnitude means a more distant star.

Use a Cepheid to measure a distance:

Watch it pulse. Measure the star's brightness on many nights. It brightens and fades every 30 days.
Leavitt's law. Henrietta Leavitt found in 1912 that longer-period Cepheids are more luminous. Here MV = −2.43 × (log 30 − 1) − 4.05 = −5.2.
How bright it looks. Its average apparent magnitude is m = 15.8.
Distance modulus. m − M = 21.0, so d = 1021.0/5 + 1 = 160,000 pc: in a neighbouring galaxy.
Why it matters. This is how Hubble showed in 1925 that Andromeda is a separate galaxy far beyond the Milky Way.
Maths and principle

Period-luminosity rule (Leavitt’s law), rounded calibration in visible light, period P in days:

MV≈−2.43(log10⁡P−1)−4.05

Distance from the distance modulus (Lesson 1.5):

d=10(m−M)/5+1 pc

Try it: a 30-day Cepheid: MV=−2.43×(1.477−1)−4.05=−5.21.

3. What it means physically

A Cepheid pulsates because a layer of helium in it acts like a valve. When the star is squeezed, that helium gets more ionised and more opaque, trapping heat, which pushes the layer out; as it expands it becomes clearer, lets the heat escape and falls back. Bigger stars are fluffier, so they take longer to swing in and out, like a longer pendulum. Bigger also means more luminous, which is why period and power go together.

P
Pulsation period in days.
MV = −2.43(log P − 1) − 4.05
Leavitt's law: the period gives the absolute magnitude.
d = 10(m − M)/5 + 1 pc
Distance from how bright the star looks compared with how bright it truly is.
Physical meaning
A Cepheid breathes in and out like a balloon whose valve sticks: its outer layers trap heat, swell, release it and fall back. Bigger, brighter Cepheids are larger balloons that breathe more slowly, so the rhythm gives away the size and power.

“A variable star is one that is dying.” Most variable stars are in a normal, long stage of life. Cepheids pulse for millions of years, and eclipsing binaries are perfectly healthy stars that simply pass in front of each other.

4. Worked example

A Cepheid in a distant galaxy has a period of 10 days and average apparent magnitude 25.0. How far is the galaxy?

MV=−2.43×(1−1)−4.05=−4.05,m−M=25.0−(−4.05)=29.05
d=1029.05/5+1=106.81=6.5×106 pc

About 6.5 million parsecs, or 21 million light-years. (Dust would make it look fainter; real work corrects for it.)

5. Practice

More practice (answers below):

  1. What is MV for a 3-day Cepheid?
  2. A 10-day Cepheid has m = 15.0. How far away is it?
  3. Why are RR Lyrae stars useful even though their period doesn’t tell you their power?
Answers
  1. −2.43×(0.477−1)−4.05=−2.78.
  2. m−M=19.05, d=104.81=65,000 pc (65 kpc), about as far as the Magellanic Clouds.
  3. They all have nearly the same power (MV≈+0.6), so they are standard candles too, though fainter ones.
  • Pulsating variables (Cepheids, Mira) change size and brightness; eclipsing binaries are blocked by a partner.
  • Leavitt’s law: a Cepheid’s period gives its absolute magnitude.
  • With M and the observed m, d = 10(m − M)/5 + 1 pc.
  • Cepheids are the second rung of the distance ladder, after parallax.

Try it with real numbers: find periods in light curves with the period finder, and log your own estimates with the variable star log.

New words: variable star, Cepheid, RR Lyrae, light curve, period-luminosity relation, standard candle.

Check yourself

1A Cepheid with a longer period is:
2Why are Cepheids called standard candles?
3An eclipsing binary changes brightness because:

Sources

  • Leavitt, H. S. and Pickering, E. C. (1912), Harvard College Observatory Circular 173
  • Cepheid period-luminosity calibration (V band, rounded): Benedict, G. F. et al. (2007), AJ 133, 1810

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Numbers in the examples are made up to show the idea unless a source is given. Simulations run in your browser on made-up data; nothing you type is sent anywhere. Astronomy only: nothing here is astrology.