HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Galaxies, Distances and Redshift
  1. 1The kinds of galaxy and our neighbours
  2. 2Measuring the distance to galaxies
  3. 3Redshift and Hubble's law
  1. Space Science and Astronomy
  2. /Galaxies, Distances and Redshift
  3. /Measuring the distance to galaxies

Course 9.2·Lesson 2 of 3

Measuring the distance to galaxies

A star's brightness depends on both its luminosity and its distance, as F=L/(4πd2)F = L/(4\pi d^2)F=L/(4πd2)

Lesson 2 of 3Show all lessonsHide
Galaxies, Distances and Redshift
  1. 1The kinds of galaxy and our neighbours
  2. 2Measuring the distance to galaxies
  3. 3Redshift and Hubble's law

Try the code and the simulations beside the lesson.

Faint because far, or faint because small?

Two street lamps look equally bright at night. One is a weak lamp close by and the other is a strong lamp far away. From the brightness alone you cannot tell which is which. You need to know how strong each lamp really is.

It is the same for stars and galaxies. Luminosity LLL is the total power that a star gives out, in watts. The Sun's luminosity is 3.828×10263.828 \times 10^{26}3.828×1026 W. Brightness FFF is the power that reaches each square metre at the Earth, in W/m². It depends on how far away the star is.

The inverse square law

Light spreads out in all directions. At a distance ddd from the star, the power is spread over a sphere of area 4πd24\pi d^24πd2. So the brightness is

F=L4πd2\displaystyle F = \dfrac{L}{4\pi d^2}F=4πd2L​

If we know LLL and measure FFF, we can find the distance:

d=L4πF\displaystyle d = \sqrt{\dfrac{L}{4\pi F}}d=4πFL​​

Double the distance and the brightness falls to a quarter. A star 101010 times further away looks 100100100 times fainter.

A source whose luminosity we know is called a standard candle. We need one that we can recognise and that is bright enough to see in other galaxies.

Cepheid variables

A Cepheid variable is a large, bright star that pulses. It swells and shrinks in a regular rhythm, and its brightness rises and falls with it. The time between two peaks is its period, from a day or so up to about 100100100 days. The star Delta Cephei, which gave the group its name, has a period of about 5.45.45.4 days. Polaris is a Cepheid too, with a period of about 444 days.

In 1912 Henrietta Leavitt studied Cepheids in the Small Magellanic Cloud. All of them are at nearly the same distance from us, so a Cepheid that looked brighter really was more luminous. She found that the longer the period, the greater the luminosity. A Cepheid is therefore a standard candle: measure its period, and you know LLL.

Two graphs side by side. The left graph shows the brightness of a Cepheid variable star rising and falling in a regular wave over 30 days, with one full cycle taking 10 days. The right graph shows the luminosity of Cepheids, from 0 to 12 000 times the Sun's, against their period from 0 to 30 days: a straight line that rises from the bottom left to the top right, with three marked points at periods of 3, 10 and 30 days.

For the calculations of this course we use a simple model, close to the real relation for periods of about 333 to 303030 days:

L=400×P solar luminosities\displaystyle L = 400 \times P\ \text{solar luminosities}L=400×P solar luminosities

where PPP is the period in days. The real relation is not exactly a straight line.

Finding a distance

Worked example. A Cepheid in a galaxy has a period of 101010 days. Its brightness at the Earth is 2.2×10−16 W/m22.2 \times 10^{-16}\ \text{W/m}^22.2×10−16 W/m2.

  1. The luminosity. L=400×10=4000L = 400 \times 10 = 4000L=400×10=4000 times the Sun's, which is 4000×3.828×1026=1.53×10304000 \times 3.828 \times 10^{26} = 1.53 \times 10^{30}4000×3.828×1026=1.53×1030 W.
  2. The distance in metres. d=1.53×10304π×2.2×10−16=2.35×1022d = \sqrt{\dfrac{1.53 \times 10^{30}}{4\pi \times 2.2 \times 10^{-16}}} = 2.35 \times 10^{22}d=4π×2.2×10−161.53×1030​​=2.35×1022 m.
  3. In light-years. 2.35×1022/9.461×1015=2.5×1062.35 \times 10^{22} / 9.461 \times 10^{15} = 2.5 \times 10^{6}2.35×1022/9.461×1015=2.5×106 ly.
  4. Check. That is 2.52.52.5 million light-years, the distance of the Andromeda Galaxy.

In 1923 and 1924 Hubble found Cepheids in the Andromeda Galaxy with the largest telescope of the time. Their periods gave their luminosities, and their brightness gave the distance. The answer was far greater than the size of the Milky Way. His first number, about 900 000900\,000900000 light-years, was too small, because the first calibration of the Cepheids was not right. It was corrected later. The result stayed: the spirals are galaxies, far outside ours.

The distance ladder

No method works at every distance. Astronomers climb a ladder, and each rung is calibrated with the one below it.

MethodReachesNeeds
Parallaxnearby starsthe Earth's orbit
Cepheidsnearby galaxiesthe period
Type Ia supernovaefar galaxiesa known peak

A Type Ia supernova is the explosion of a white dwarf. They all reach nearly the same peak luminosity, about 555 billion times the Sun's, so they are standard candles. They can be seen across billions of light-years.

Practise with new numbers

Try it in Python

The program turns a period and a brightness into a distance.

Predict first. If the brightness is four times bigger for the same period, will the distance be larger or smaller, and by how much? Then run it. Check with Show the answer.

1. Add (40, 4.4e-16) to the list. How far away is that Cepheid?

2. A Cepheid of period 101010 days looks 100100100 times fainter than the first one. How far is it?

Common mistakes

  • Using the distance in place of its square. The brightness goes as 1/d21/d^21/d2, so 101010 times further means 100100100 times fainter.
  • Forgetting the 4π4\pi4π. The light spreads over a whole sphere.
  • Mixing up the period and the distance. The period tells us the luminosity. The brightness and the luminosity together tell us the distance.
  • Thinking a brighter star is always nearer. A bright star far away can look fainter than a weak one close by.

Remember these

  • Luminosity LLL is the power of a star. Brightness FFF is the power that reaches each square metre.
  • F=L/(4πd2)F = L/(4\pi d^2)F=L/(4πd2), so d=L/(4πF)d = \sqrt{L/(4\pi F)}d=L/(4πF)​.
  • A standard candle has a known luminosity.
  • Cepheids pulse with a period that gives their luminosity: longer period, more luminous.
  • The distance ladder goes from parallax to Cepheids to Type Ia supernovae.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A Cepheid is moved to three times its distance. What happens to its brightness at the Earth?
  1. What do astronomers measure to find the luminosity of a Cepheid?
  1. Why was Hubble's result about Andromeda so important?
  1. Why do astronomers need Type Ia supernovae as well as Cepheids?

References

  • OpenStax Astronomy 2e, Chapter 19 Celestial Distances, section 19.3 Variable Stars: One Key to Cosmic Distances.
  • OpenStax Astronomy 2e, Chapter 26 Galaxies, section 26.4 The Extragalactic Distance Scale.

Enroll free in Galaxies, Distances and Redshift

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

A Cepheid in a nearby galaxy has a period of 20 days…Easy · High School (9–10) · by StemPy Lab
A Cepheid with a period of 15 days is seen in a galaxy…Medium · High School (9–10) · by StemPy Lab
In 1924, announced at the start of 1925, Hubble's first distance to the Andromeda Galaxy was about…Hard · High School (9–10) · by StemPy Lab
Next: lesson 3Redshift and Hubble's law
← Galaxies, Distances and Redshift
← The kinds of galaxy and our neighboursRedshift and Hubble's law →

Discussion (0)

Log in to join the discussion.

Loading…

. A standard candle has a known luminosity, so its distance follows from its brightness. Cepheid variable stars are standard candles: the longer their period, the more luminous they are. Hubble used them to show that Andromeda is far outside our Galaxy.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

A Type Ia supernova reaches a peak luminosity of 5.0 × 10⁹ times that of the Sun, and Lodot = 3.828…Medium · High School (9–10) · by StemPy Lab

Python Labs (1)

A distance finder in codePython Lab · by StemPy Lab