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
  • 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
Cosmology: Redshift, Hubble's Law and the Big Bang
  1. 1Standard candles and the distance ladder
  2. 2Redshift, Hubble's law and the age of the universe
  3. 3The Big Bang, the cosmic microwave background and dark matter
  1. Physics
  2. /Cosmology: Redshift, Hubble's Law and the Big Bang
  3. /Redshift, Hubble's law and the age of the universe

Course 31.3·Lesson 2 of 3

Redshift, Hubble's law and the age of the universe

The light of distant galaxies is shifted to longer wavelengths. For small redshifts, v=czv = czv=cz. Hubble's law v=H0dv = H_0dv=H0​d

Lesson 2 of 3Show all lessonsHide
Cosmology: Redshift, Hubble's Law and the Big Bang
  1. 1Standard candles and the distance ladder
  2. 2Redshift, Hubble's law and the age of the universe
  3. 3The Big Bang, the cosmic microwave background and dark matter

Try the code and the simulations beside the lesson.

Dots on a balloon

Draw dots on a balloon and blow it up. Every dot moves away from every other dot. Two dots that started twice as far apart move apart twice as fast. No dot is the centre. This is how galaxies move.

Redshift

The spectrum of a galaxy shows the lines of hydrogen, calcium and other elements, shifted to longer wavelengths. The redshift zzz is

z=λ−λ0λ0\displaystyle z = \dfrac{\lambda - \lambda_0}{\lambda_0}z=λ0​λ−λ0​​

where λ0\lambda_0λ0​ is the wavelength measured in a laboratory. For zzz much less than 111, the galaxy's speed away from us is

v=cz\displaystyle v = czv=cz

This is the rule Δλ/λ≈v/c\Delta\lambda/\lambda \approx v/cΔλ/λ≈v/c of Cambridge A-Level.

Worked example: a shifted line

A galaxy shows the hydrogen line of 656.3 nm656.3\ \text{nm}656.3 nm at 676.0 nm676.0\ \text{nm}676.0 nm.

  1. The redshift. z=(676.0−656.3)/656.3=0.0300z = (676.0 - 656.3)/656.3 = 0.0300z=(676.0−656.3)/656.3=0.0300.
  2. The speed. v=cz=0.0300×3.00×105 km/s=9.00×103 km/sv = cz = 0.0300 \times 3.00 \times 10^5\ \text{km/s} = 9.00 \times 10^3\ \text{km/s}v=cz=0.0300×3.00×105 km/s=9.00×103 km/s.

Hubble's law

A graph of the recession speed of galaxies, from 0 to 25 000 km/s, against their distance, from 0 to 350 megaparsecs. About fifteen dots scatter closely about a straight line through the origin. The slope of the line is labelled H0 = 70 km/s per Mpc. One dot is labelled as an example, at 200 Mpc and 14 000 km/s.

In 1929 Hubble plotted the speeds of galaxies against their distances. The points lay near a straight line:

v=H0d\displaystyle v = H_0dv=H0​d

The slope H0H_0H0​ is the Hubble constant. Modern values lie between about 676767 and 73 km/s per Mpc73\ \text{km/s per Mpc}73 km/s per Mpc. Measurements from the cosmic microwave background give the lower value and the distance ladder gives the higher one. This disagreement is called the Hubble tension, and it is not yet settled. We use 70 km/s per Mpc70\ \text{km/s per Mpc}70 km/s per Mpc.

The galaxy of the worked example is at

d=9.00×103 km/s70 km/s per Mpc\displaystyle d = \dfrac{9.00 \times 10^3\ \text{km/s}}{70\ \text{km/s per Mpc}}d=70 km/s per Mpc9.00×103 km/s​
d=129 Mpc\displaystyle d = 129\ \text{Mpc}d=129 Mpc

Once H0H_0H0​ is known, a redshift alone gives a distance. That is the top rung of the distance ladder.

The age of the universe

If every galaxy has always moved at its present speed, then all were together a time d/v=1/H0d/v = 1/H_0d/v=1/H0​ ago. This is the Hubble time. Change H0H_0H0​ to s−1\text{s}^{-1}s−1:

H0=70×103 m/s3.086×1022 m\displaystyle H_0 = \dfrac{70 \times 10^3\ \text{m/s}}{3.086 \times 10^{22}\ \text{m}}H0​=3.086×1022 m70×103 m/s​
H0=2.27×10−18 s−1\displaystyle H_0 = 2.27 \times 10^{-18}\ \text{s}^{-1}H0​=2.27×10−18 s−1

So 1/H0=4.41×1017 s1/H_0 = 4.41 \times 10^{17}\ \text{s}1/H0​=4.41×1017 s, which is 14.014.014.0 billion years. The best estimate of the true age, from many kinds of data, is 13.813.813.8 billion years. The expansion has not been steady, but the Hubble time is a good first estimate.

Space itself stretches

The galaxies are not flying through space away from a centre. Space itself expands. Let RRR be the scale factor, the size of the universe on some chosen ruler. As light travels, its wavelength stretches with space:

1+z=λλ0=RnowRthen\displaystyle 1 + z = \dfrac{\lambda}{\lambda_0} = \dfrac{R_\text{now}}{R_\text{then}}1+z=λ0​λ​=Rthen​Rnow​​

Light with z=1z = 1z=1 left when the universe was half its present size. For large zzz, the rule v=czv = czv=cz fails, because it would give speeds above ccc. The scale factor is the right way to read such redshifts.

Where this sits in your syllabus. Cambridge A-Level teaches redshift, Hubble's law and the Big Bang. The olympiads use the scale factor and the Hubble time.

Keep d=100 Mpcd = 100\ \text{Mpc}d=100 Mpc and move H0H_0H0​ from 676767 to 737373. How much does the Hubble time change? Which value of H0H_0H0​ gives an older universe?

Practise with new numbers

Try it in Python

The program fits Hubble's law, a straight line through the origin, to six galaxies. Their distances and speeds are made up but realistic. Then it prints H0H_0H0​ and the Hubble time.

Predict first. Is the fitted H0H_0H0​ near 70 km/s per Mpc70\ \text{km/s per Mpc}70 km/s per Mpc? Then run it. Check with Show the answer.

1. Change the last speed from 21500 to 25000. How does H0H_0H0​ change?

2. Why does the fit use a line through the origin?

Common mistakes

  • Dividing by the wrong wavelength. z=Δλ/λ0z = \Delta\lambda/\lambda_0z=Δλ/λ0​, with the rest wavelength.
  • Using v=czv = czv=cz for large zzz. It holds only for zzz much less than 111.
  • Forgetting the units of H0H_0H0​. Change km/s per Mpc to s−1\text{s}^{-1}s−1 before you invert it.
  • Thinking we are at the centre. Every observer sees all galaxies moving away.
  • Thinking galaxies themselves grow. Gravity holds galaxies together. Only the space between galaxies stretches.

Remember these

  • Redshift: z=(λ−λ0)/λ0z = (\lambda - \lambda_0)/\lambda_0z=(λ−λ0​)/λ0​, and v=czv = czv=cz for small zzz.
  • Hubble's law: v=H0dv = H_0dv=H0​d, with H0≈70 km/s per MpcH_0 \approx 70\ \text{km/s per Mpc}H0​≈70 km/s per Mpc.
  • In SI: 70 km/s per Mpc=2.27×10−18 s−170\ \text{km/s per Mpc} = 2.27 \times 10^{-18}\ \text{s}^{-1}70 km/s per Mpc=2.27×10−18 s−1.
  • Hubble time: 1/H0≈141/H_0 \approx 141/H0​≈14 billion years.
  • Scale factor: 1+z=Rnow/Rthen1 + z = R_\text{now}/R_\text{then}1+z=Rnow​/Rthen​.

Check yourself

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

  1. A galaxy moves away at 3500 km/s3500\ \text{km/s}3500 km/s. How far is it, with H0=70 km/s per MpcH_0 = 70\ \text{km/s per Mpc}H0​=70 km/s per Mpc?
  1. A larger Hubble constant would mean an older or a younger universe?
  1. A quasar has z=2z = 2z=2. How large was the universe, compared with now, when its light left?
  1. Why is a galaxy at z=2z = 2z=2 not moving away at 2c2c2c?

References

  • OpenStax Astronomy 2e, Chapter 26 Galaxies, on the expanding universe.
  • OpenStax Astronomy 2e, Chapter 29 The Big Bang, on the age of the universe.

Enroll free in Cosmology: Redshift, Hubble's Law and the Big Bang

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)

In the spectrum of an elliptical galaxy, the hydrogen line with a rest wavelength of 656.3 nm…Hard · High School (11–12) · by StemPy Lab
Measurements from the cosmic microwave background give H₀ = 67.4 km/s per Mpc…Advanced · High School (11–12) · by StemPy Lab
A quasar is the bright core of a very distant galaxy…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 3The Big Bang, the cosmic microwave background and dark matter
← Cosmology: Redshift, Hubble's Law and the Big Bang
← Standard candles and the distance ladderThe Big Bang, the cosmic microwave background and dark matter →

Discussion (0)

Log in to join the discussion.

Loading…

says that speed grows in step with distance. With
H0≈70 km/s per MpcH_0 \approx 70\ \text{km/s per Mpc}H0​≈70 km/s per Mpc
, the Hubble time
1/H01/H_01/H0​
is about
141414
billion years.
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.

Four galaxies have distances from Cepheids and supernovae, and redshifts from their spectra…Hard · High School (11–12) · by StemPy Lab

Python Labs (1)

Hubble's law in codePython Lab · by StemPy Lab