Redshift Calculator – z, Recession Velocity (Classical & Relativistic)
Use this free Redshift Calculator to find the redshift z of a galaxy from the emitted and observed wavelengths of a spectral line, and estimate how fast the galaxy is receding from us — with both the simple classical formula and the relativistic one.
Formula
The redshift is z = (λobs − λ) / λ = Δλ/λ. For slow galaxies the recession speed is roughly v = cz (Hubble's law). For accuracy at high speed, special relativity gives 1 + z = √((1 + β)/(1 − β)), which can be rearranged to β = ((1+z)² − 1)/((1+z)² + 1), where β = v/c. A negative z (observed wavelength shorter) is a blueshift — the object is approaching.
How to use
- Enter the rest wavelength of a known spectral line (H-alpha is 656.3 nm).
- Enter the wavelength at which the line is actually observed in the galaxy's spectrum.
- Click "Calculate Redshift" to get z plus the classical and relativistic recession speeds.
Worked example
A galaxy's H-alpha line, emitted at 656.3 nm, is observed at 700 nm.
z = (700 − 656.3)/656.3 = 0.0666.
Classical speed: v = cz = 0.0666 × 3 × 10⁸ = 19,976 km/s.
Relativistic: β = ((1.0666)² − 1)/((1.0666)² + 1) = 0.0644, so v = 19,312 km/s.
At this modest redshift the two answers differ by only ~3%, but for z near 1 and beyond the classical formula fails badly (it would claim v > c).
FAQ
Is redshift really caused by the Doppler effect?
For nearby galaxies it behaves like one, but cosmologists describe it as the stretching of light by the expansion of space itself while the light travels. The formulas here still give the standard working values.
How do astronomers get distances from z?
Through Hubble's law, v = H₀ × d: with H₀ ≈ 70 km/s per megaparsec, the example galaxy at ~19,500 km/s lies roughly 280 million parsecs (about 900 million light-years) away.
What does a blueshift mean?
A negative z: the lines shift to shorter wavelengths because the object moves toward us. The Andromeda galaxy is blueshifted (z ≈ −0.001) and is heading for a future encounter with the Milky Way.