🔬
🔬 Science & engineering

Hubble’s Law & Redshift Calculator

Results update as you type.

Your numbers

Understanding the Hubble's law and redshift calculator — concept and principle

Light from distant galaxies is shifted to longer wavelengths because the universe is expanding. This calculator takes a redshift z and a Hubble constant H₀ and gives a recession velocity, the simple cz velocity and an approximate distance from Hubble's law. It is useful for getting a quick sense of how far away a galaxy with a measured redshift is.

Redshift and Hubble distanceAt z = 0.05 every wavelength is 5% longer, so the 656.3 nm hydrogen line appears at 689.1 nm; cz ÷ H₀ gives about 214 Mpc.Redshift: the galaxy’s light is stretchedus≈ 214 Mpc ≈ 700 million lymoving away656.3 nmlabgalaxy× 1.05689.1 nmcz = 299,792 × 0.0514,990 km/sd = cz ÷ H₀ = ÷ 70214 MpcRelativistic speed: 14,615 km/s (about 5% of light speed)
A redshift of 0.05 means a recession speed of about 15,000 km/s and a distance of about 214 Mpc.

How it is calculated

The principle

In 1929 Edwin Hubble found that more distant galaxies recede faster, v = H₀d. In an expanding universe, the distance between galaxies grows in proportion to their separation, so the recession speed is proportional to distance. For small z, the Doppler shift gives v ≈ cz, and combining the two gives d ≈ cz/H₀. At larger redshift, cosmological redshift is really the stretching of space while light travels, and distances depend on the full expansion history (matter, dark energy), not on a single velocity.

Worked example

  1. Defaults: z = 0.05, H₀ = 70 km/s/Mpc.
  2. (1 + z)² = 1.1025. Relativistic v = 299,792.458 × 0.1025 ÷ 2.1025 = 14,615.32792 km/s.
  3. cz = 299,792.458 × 0.05 = 14,989.6229 km/s.
  4. d ≈ 14,989.6229 ÷ 70 = 214.13747 Mpc, about 700 million light-years.
How Recession velocity, relativistic (km/s) changes with Redshift zHow Recession velocity, relativistic cha…05,00010,00015,00020,00025,00030,0000.01250.0250.03750.050.06250.0750.1Example: 14,615.32792Redshift z
Each point is the calculator re-run with only “Redshift z” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Redshift zRecession velocity, relativistic (km/s)
0.01253,723.986246
0.0257,401.154861
0.037511,031.56836
0.0514,615.32792
0.062518,152.57085
0.07521,643.46826
0.128,487.06614

How to read the result

Up to z of about 0.1, cz/H₀ is a reasonable distance estimate; beyond that use a cosmology calculator. The choice of H₀ matters: measurements from the cosmic microwave background (Planck, about 67.4) and from the local distance ladder (SH0ES, about 73) disagree by several percent, the so-called Hubble tension, so distances scale by the same percentage. For nearby galaxies (within a few Mpc), their own motions of a few hundred km/s can swamp the expansion.

Common mistakes

Keep in mind: This is a low-redshift approximation. It ignores peculiar velocities and the expansion history, so treat results as rough estimates for learning, not as published distances.

Frequently asked questions

What does 1/H₀ mean?

It is the Hubble time; for 70 km/s/Mpc it is about 14 billion years, close to (but not the same as) the age of the universe.

Can galaxies recede faster than light?

In cosmology yes, for very distant galaxies; that is space expanding, not motion through space, so it does not break relativity.

Why does the Andromeda galaxy have a blueshift?

It is close enough that its motion towards the Milky Way is larger than the local expansion.

Sources: Hubble E., A relation between distance and radial velocity among extra-galactic nebulae, PNAS 15, 168 (1929) · Planck Collaboration, Planck 2018 results VI. Cosmological parameters, A&A 641, A6 (2020) · Riess A.G. et al., A comprehensive measurement of the local value of the Hubble constant, ApJ Letters 934, L7 (2022)

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →