Astronomy · Unit 5: Galaxies & Cosmology · Activity 5.2.1

Deep Dive: Redshift and Hubble's Law

🔬 Deep Dive
This is your textbook for this topic. Take your time. Read it more than once.
OpenStax Astronomy 2e · 5.6, 26.5Concept

Starlight Shifts

You've heard the Doppler effect: an ambulance siren sounds higher-pitched as it comes toward you and drops lower as it drives away. The motion squeezes the sound waves together in front and stretches them out behind.

Light does the same thing. If a galaxy is moving away from us, its light waves get stretched to longer wavelengths — toward the red end of the spectrum. That's a redshift. If it's moving toward us, its light is squeezed to shorter wavelengths: a blueshift. The faster the motion, the bigger the shift.

⚠️Common mix-up: a redshifted galaxy doesn't look red. For nearby galaxies the shift is far too small to change the color you'd see. What moves is the pattern of spectral lines — the same fingerprints you learned to read in Unit 4 — sliding along the spectrum.

Shift a spectrum

The top strip is a lab spectrum at rest. The bottom strip is the same set of lines from a galaxy. Change the galaxy's speed and watch the whole pattern slide.

Velocity
LAB (AT REST)CaHβMgNaHαGALAXY400450500550600650700wavelength (nm)
v = 7,000 km/sHα: 656.3 → 671.6 nmz = 0.0233redshift — receding
OpenStax Astronomy 2e · 5.6, 26.5SkillExample

Measuring Redshift

Because every element has a known pattern of lines, astronomers can recognize the pattern in a galaxy's spectrum even after it shifts, then measure how far each line moved. The size of the shift, compared with the line's original wavelength, is the redshift, written z:

z = Δλ ÷ λ₀  ·  v = c × z

Here λ₀ is the line's wavelength in the lab, Δλ is how far it moved, and c is the speed of light, about 300,000 km/s. The second equation turns a redshift into a speed — it works well as long as z is small (under about 0.1), which covers every galaxy in this unit's problems.

StepWorked example
MeasureA galaxy's hydrogen-alpha line (lab: 656.3 nm) appears at 671.6 nm, so Δλ = 15.3 nm
Redshiftz = 15.3 ÷ 656.3 ≈ 0.0233
Velocityv = 300,000 × 0.0233 ≈ 7,000 km/s, moving away from us
OpenStax Astronomy 2e · 26.5ConceptSkill

Hubble's Law

Starting in 1912, Vesto Slipher measured the spectra of spiral "nebulae" and found something strange: almost all of them were redshifted, many at hundreds of kilometers per second. Once Hubble showed in 1924 that these were distant galaxies, he set out to measure their distances too. In 1929, he plotted velocity against distance and found a straight-line pattern: the farther away a galaxy is, the faster it's moving away. (Georges Lemaître had predicted the same relationship from theory two years earlier, and it's now officially called the Hubble–Lemaître law.)

v = H₀ × d

The slope of that line, H₀ ("H-naught"), is the Hubble constant: how fast the universe is expanding today. Modern measurements put it at about 70 km/s per megaparsec. A megaparsec (Mpc) is a distance unit astronomers use for galaxies — about 3.26 million light-years. So a galaxy 1 Mpc away recedes at about 70 km/s, one 10 Mpc away at about 700 km/s, and so on.

Fit the line yourself

Each dot is a galaxy with a measured distance and velocity. Tilt the line until it runs through the middle of the dots — its slope is the Hubble constant.

Slope (H₀)
010020030005,00010,00015,00020,000distance (megaparsecs)velocity (km/s)
H₀ = 45 km/s/Mpcfit: Not a good fit1 ÷ H₀ ≈ 21.7 billion years
💡Different measurement methods give H₀ values between about 67 and 73 km/s/Mpc, and the gap between them — the "Hubble tension" — is one of the hottest open questions in astronomy today. We use 70.
OpenStax Astronomy 2e · 26.4, 26.5Skill

Using the Law

Measuring distances to galaxies is hard. Measuring redshifts is easy — you just need a spectrum. So once H₀ is known, Hubble's law becomes a distance tool. Rearranged:

d = v ÷ H₀

The galaxy from the worked example, receding at 7,000 km/s, is about 7,000 ÷ 70 = 100 Mpc away, or roughly 330 million light-years — about the distance of the Coma Cluster. That's three steps from a single spectral line to a distance: redshift → velocity → distance.

Run all three steps

Type in where a galaxy's hydrogen-alpha line shows up (lab value: 656.3 nm) and follow the three steps.

1Redshift: z = Δλ ÷ λ₀ = (682.5 − 656.3) ÷ 656.3z ≈ 0.0399
2Velocity: v = c × z = 300,000 km/s × 0.0399v ≈ 11,976 km/s
3Distance: d = v ÷ H₀ = 11,976 ÷ 70d ≈ 171 Mpc ≈ 558 million ly
⚠️Watch out: Hubble's law only works for galaxies far enough away that the expansion dominates. Nearby galaxies also move on their own, pulled by their neighbors' gravity. Andromeda is blueshifted — it's approaching the Milky Way — so you can't use Hubble's law on it at all.
OpenStax Astronomy 2e · 26.5, 29.1Concept⚠ Watch Out

Expanding Space

If nearly every galaxy is moving away from us, are we at the center of the universe? No. Picture a loaf of raisin bread rising in the oven. Every raisin moves away from every other raisin, and raisins twice as far apart separate twice as fast — no matter which raisin you pick as "home." Galaxies are the raisins, and space itself is the dough. An astronomer in any galaxy would see the same Hubble's law, so there is no center.

⚠️Common mix-up: the expansion isn't galaxies flying outward through empty space from an explosion. Space itself is stretching, carrying galaxies apart — and it stretches the light traveling through it, which is why distant galaxies are redshifted. Gravity holds smaller things together: galaxies, the Local Group, even you don't expand.

Run the movie backward and everything gets closer together. If galaxies have always moved apart at about today's rate, the time it took them to reach their current distances is just distance ÷ velocity — which is 1 ÷ H₀. For H₀ = 70 km/s/Mpc, that works out to about 14 billion years. Careful modern measurements give 13.8 billion years for the age of the universe — remarkably close. The expansion points back to a beginning: the Big Bang.

🔑Redshift gives speed, Hubble's law gives distance, and the expansion rate gives an age. In Activity 5.2.2 you'll see what else galaxy motions reveal — including something invisible that outweighs all the stars.
← Back to Activity 5.2.1📝 Formative Activity →Up next: Activity 5.2.2, Dark Matter and Dark Energy.