Hubble's Law and the Expanding Universe

Stretch space between galaxies, measure their redshifts and fit Hubble's law to estimate the age of the universe

Intermediate

Interactive simulation

70 km/s/Mpc
25
15%

Scatter in measured distances; velocities from redshift are precise

Tap a galaxy in the field to select it.

Fitted H₀
67.4 ± 2.1
Hubble time 1/H₀
14.5 Gyr
Scale factor a
1.00
Galaxies in fit
25
Selected distance
137.6 Mpc
Recession velocity
9,635 km/s
Redshift z
0.0321
Hα observed
677.4 nm
  • Recession velocity, v = H₀d
  • Galaxies in the survey
  • Least-squares fit through the origin
  • True H₀

Galaxies sit at fixed positions on a grid that stretches by the scale factor a; their distances are a times their distances at a = 1. The Hubble diagram shows the survey at a = 1, with velocities v = H₀d from redshift and distances scattered by the chosen error. The ringed marker follows the selected galaxy as space expands. Redshift uses v ≈ cz, valid for small z; the Hubble time is 977.8 / H₀ billion years.

How the expanding universe works

On large scales the universe expands uniformly: the distance between any two distant galaxies is multiplied by the same scale factor a as time passes. If every distance grows by 1% in some time, a galaxy 100 Mpc away moves 1 Mpc further while a galaxy 200 Mpc away moves 2 Mpc. Recession speed is therefore proportional to distance, which is Hubble's law, v = H₀d.

We cannot see galaxies move, but we can measure their speed from their light. Atoms absorb and emit at precise wavelengths, such as the hydrogen-alpha line at 656.3 nm. In a receding galaxy every line is shifted to longer, redder wavelengths by the factor 1 + z. For small z the recession velocity is v ≈ cz.

Distances are much harder and come from standard candles: Cepheid variable stars and Type Ia supernovae whose true brightness is known. Plot velocity against distance for many galaxies, fit a straight line through the origin, and the slope is H₀. Its inverse, the Hubble time, is roughly the age of the universe.

  1. 1
    Press Play and watch the grid stretch: every galaxy moves away from the Milky Way, and the farther ones move faster.
  2. 2
    Tap galaxies at different distances and compare their recession velocity and redshift readouts.
  3. 3
    Watch the hydrogen-alpha line in the spectrum panel shift to the red as you pick more distant galaxies.
  4. 4
    Press View from selected galaxy: the arrows rearrange, but the pattern, and the fitted H₀, stay the same.
  5. 5
    Change the distance error and the number of galaxies and see how well the fit recovers the true H₀ and the Hubble time.

Key formulas

Hubble’s law

v = H₀ d

v
recession velocity in km/s
d
distance in megaparsecs (1 Mpc ≈ 3.26 million light-years)
H₀
Hubble constant, about 70 km/s/Mpc

Redshift

z = (λobs − λrest) / λrest,  v ≈ cz for z ≪ 1

z
redshift
λobs, λrest
observed and laboratory wavelengths
c
speed of light, 299,792 km/s

Strictly, 1 + z is the factor by which the universe has stretched while the light travelled: 1 + z = a(now) / a(emitted).

Fitting a line through the origin and the Hubble time

H₀ = Σ dᵢvᵢ / Σ dᵢ²,  t_H = 1 / H₀ ≈ 977.8 / H₀ billion years

dᵢ, vᵢ
measured distance and velocity of galaxy i
t_H
Hubble time, the age if the expansion rate had never changed

With H₀ = 70 km/s/Mpc, 1/H₀ = 3.086 × 10¹⁹ km ÷ 70 km/s = 4.4 × 10¹⁷ s, about 14.0 billion years.

Some galaxies, their distances and velocities

Approximate values. Nearby galaxies are dominated by their own motions; Hubble’s law only shows up clearly beyond a few tens of megaparsecs.

GalaxyDistance (Mpc)Velocity (km/s)v / dNote
Andromeda (M31)0.78−300approachingPulled toward us by gravity; will merge with the Milky Way
Centaurus A3.8+550≈ 145Peculiar motion still dominates this close
NGC 42587.6+450≈ 60Distance from water masers, a key calibrator
M87 (Virgo cluster)16.4+1,280≈ 78Falls into the Virgo cluster at its own speed
Coma cluster≈ 100+6,900≈ 69Far enough that the Hubble flow dominates
Quasar 3C 273≈ 750z = 0.158–cz = 47,000 km/s; at this z, v ≈ cz is only an approximation

Common misconception: galaxies flying apart from a centre

The Big Bang was not an explosion at one point with galaxies flying outward through space. Space itself stretches everywhere at once, carrying galaxies with it like raisins in rising dough. Every galaxy sees all the others receding, so there is no centre and no edge. Gravity still holds galaxies, the Solar System and you together, so they do not expand.

Is the Hubble time the age of the universe?

Only by coincidence. The expansion slowed down for billions of years under gravity and is now speeding up because of dark energy. The two effects nearly cancel, so the measured age of 13.8 billion years is close to 1/H₀.

Real-world measurements and missions

Hubble and Lemaître (1927 to 1929)

Georges Lemaître predicted and Edwin Hubble showed, with Milton Humason’s redshifts, that more distant galaxies recede faster. Hubble’s first value was about 500 km/s/Mpc because his distances were too small.

Hubble Space Telescope Key Project

Measured Cepheid variable stars in nearby galaxies to calibrate the distance ladder and found H₀ = 72 ± 8 km/s/Mpc in 2001, ending a decades-long factor-of-two dispute.

The Hubble tension

Cepheids and supernovae give about 73 km/s/Mpc, while the Planck satellite’s map of the cosmic microwave background implies about 67. The gap is one of the big open questions in cosmology.

JWST

Its sharp infrared images separate Cepheids from crowded neighbouring stars and test the distance ladder with other standard candles, and it sees galaxies at redshifts above 10.

Accelerating expansion

Type Ia supernovae at high redshift turned out fainter than expected in 1998: the expansion is speeding up, which points to dark energy and led to the 2011 Nobel Prize.

3D maps of the universe

Surveys such as SDSS and DESI measure millions of redshifts and use Hubble’s law to turn them into distances, mapping the large-scale structure of galaxies.

Practice problems

Problem 1: From a spectrum to a distance

In a galaxy's spectrum the hydrogen-alpha line (656.3 nm in the lab) is at 662.9 nm. How fast is it receding, and how far away is it if H₀ = 70 km/s/Mpc?
Show solution

z = (662.9 − 656.3) / 656.3 = 0.0101

v ≈ cz = 299,792 × 0.0101 = 3,010 km/s

d = v / H₀ = 3,010 / 70

about 3,000 km/s and 43 Mpc

Problem 2: The Hubble time

The Planck satellite's data imply H₀ = 67.4 km/s/Mpc. What Hubble time does that give?
Show solution

t_H = 977.8 / H₀ = 977.8 / 67.4

about 14.5 billion years

Problem 3: When v ≈ cz breaks down

Light left a galaxy when the universe was two thirds of its present size. What is its redshift, and what would v ≈ cz give?
Show solution

1 + z = a(now) / a(then) = 1 / (2/3) = 1.5, so z = 0.5

cz = 0.5 × 299,792 = 150,000 km/s, half the speed of light

z = 0.5, far too large for v ≈ cz to be accurate

Spotted a mistake on this page?

Wrong formula, broken animation or confusing wording. Tell us and we will fix it.