Home ↓
CalculatorsVerified

Physics & Chemistry

Redshift Calculator (Velocity and Hubble Distance)

When a source of light moves away from us, its light is stretched to longer, redder wavelengths. Astronomers measure this redshift, written z, by comparing the wavelengths of known spectral lines with their laboratory values: z equals the observed wavelength minus the emitted wavelength, divided by the emitted wavelength. In the 1920s, Edwin Hubble and others found that galaxies' redshifts increase with their distance, evidence that the universe is expanding. For small redshifts, the recession velocity is approximately the speed of light multiplied by z, and Hubble's law gives the distance as that velocity divided by the Hubble constant, the expansion rate of the universe today. The constant is measured in kilometres per second per megaparsec; current measurements cluster between about 67 and 73, with different methods disagreeing slightly, an unresolved puzzle known as the Hubble tension. For larger redshifts the simple velocity formula breaks down. The relativistic Doppler formula, which keeps velocities below the speed of light, is one improvement, but for cosmological redshifts the stretching is really caused by the expansion of space itself, and accurate distances require a cosmological model with assumptions about the universe's matter and energy content. This calculator returns the velocity from both formulas, the velocity as a fraction of light speed, and the Hubble-law distance in megaparsecs and millions of light-years, with a note on whether the simple estimate is appropriate. A galaxy with a redshift of 0.01 recedes at about 3,000 kilometres per second and lies roughly 43 megaparsecs, or 140 million light-years, away for a Hubble constant of 70. A redshift of 1 corresponds, in the relativistic Doppler formula, to 60 percent of the speed of light.

How to use this calculator

  1. Enter the redshift z from spectroscopy or a catalogue.
  2. Enter the Hubble constant you want to use, for example 70.
  3. Read the recession velocity by both formulas.
  4. Read the Hubble-law distance for nearby galaxies.
  5. For z above about 0.1, use a cosmology calculator for distances.

Peculiar velocities

Galaxies also move through space because of the gravity of their neighbours, with speeds of a few hundred kilometres per second. For very nearby galaxies, these peculiar velocities can be comparable to the expansion velocity, which is why some nearby galaxies, such as Andromeda, are actually approaching us and show a blueshift.

Hubble's law is therefore most reliable for galaxies far enough away that expansion dominates, yet near enough that the simple linear relation still holds, roughly between a few tens and a few hundred megaparsecs.

Cosmological distances

At high redshift, several different distance measures exist, such as comoving distance, luminosity distance and angular diameter distance, and they give very different values. The most distant galaxies observed by modern telescopes have redshifts above 10, meaning their light left them when the universe was only a few hundred million years old.

Cosmology calculators based on standard models with dark matter and dark energy convert redshift into these distances and into the age of the universe at the time the light was emitted.

Formula & method

Classical velocity v = c × z (valid for small z)Relativistic Doppler: v = c × ((1 + z)² − 1) ÷ ((1 + z)² + 1)Hubble’s law: distance = v ÷ H₀ (using c × z for nearby galaxies)For z above about 0.1, cosmological distances need a full cosmological model

z = (λ_obs − λ_emit) ÷ λ_emit. v ≈ c z. Relativistic Doppler: v = c((1 + z)² − 1)/((1 + z)² + 1). Hubble's law: d = v ÷ H₀, with c = 299,792.458 km/s.

Worked example

A nearby galaxy at z = 0.01

  1. c z = 299,792.458 × 0.01 = 2,997.92 km/s.
  2. d = 2,997.92 ÷ 70 = 42.83 Mpc.
  3. 42.83 × 3.26 = 139.7 million light-years.

Answer: The galaxy is about 43 Mpc, or 140 million light-years, away.

Frequently asked questions

What is redshift?

The fractional increase in wavelength of light from a receding source, written z.

How do I convert redshift to velocity?

For small z, multiply by the speed of light; for larger z, use the relativistic formula.

What is the Hubble constant?

The current expansion rate of the universe, about 67–73 km/s per megaparsec.

Why does the calculator warn at high z?

Hubble's simple law and Doppler formulas don't give accurate distances beyond about z = 0.1.

Can redshift be negative?

Yes; a blueshift means the object is approaching, like the Andromeda galaxy.

What is the Hubble tension?

The disagreement between different measurements of the Hubble constant.