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
Interactive simulation
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.
- 1Press Play and watch the grid stretch: every galaxy moves away from the Milky Way, and the farther ones move faster.
- 2Tap galaxies at different distances and compare their recession velocity and redshift readouts.
- 3Watch the hydrogen-alpha line in the spectrum panel shift to the red as you pick more distant galaxies.
- 4Press View from selected galaxy: the arrows rearrange, but the pattern, and the fitted H₀, stay the same.
- 5Change 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.
| Galaxy | Distance (Mpc) | Velocity (km/s) | v / d | Note |
|---|---|---|---|---|
| Andromeda (M31) | 0.78 | −300 | approaching | Pulled toward us by gravity; will merge with the Milky Way |
| Centaurus A | 3.8 | +550 | ≈ 145 | Peculiar motion still dominates this close |
| NGC 4258 | 7.6 | +450 | ≈ 60 | Distance from water masers, a key calibrator |
| M87 (Virgo cluster) | 16.4 | +1,280 | ≈ 78 | Falls into the Virgo cluster at its own speed |
| Coma cluster | ≈ 100 | +6,900 | ≈ 69 | Far enough that the Hubble flow dominates |
| Quasar 3C 273 | ≈ 750 | z = 0.158 | – | cz = 47,000 km/s; at this z, v ≈ cz is only an approximation |
Common misconception: galaxies flying apart from a centre
Is the Hubble time the age of the universe?
Real-world measurements and missions
Hubble and Lemaître (1927 to 1929)
Hubble Space Telescope Key Project
The Hubble tension
JWST
Accelerating expansion
3D maps of the universe
Practice problems
Problem 1: From a spectrum to a distance
Show solutionHide 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
Show solutionHide solution
t_H = 977.8 / H₀ = 977.8 / 67.4
about 14.5 billion years
Problem 3: When v ≈ cz breaks down
Show solutionHide 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.