In 1929 Edwin Hubble found that the farther away a galaxy is, the faster it recedes. Hubble’s law puts it in a line: velocity = H0 × distance. This calculator turns a distance into a recession velocity, a redshift and the Hubble time, an estimate of the age of the universe.
How the calculation works
- Recession velocity v = H0 × distance
- Share of the speed of light β = v ÷ c, with c = 299,792 km/s
- Redshift z = √((1 + β) ÷ (1 − β)) − 1 (relativistic Doppler)
- Hubble time = 1 ÷ H0 = 977.8 ÷ H0 billion years
- Distance in light-years = Mpc × 3.26156 million
Example
A galaxy is 100 Mpc away, about 326 million light-years. With H0 = 70 km/s/Mpc, it recedes at 7,000 km/s, 2.33 % of the speed of light. Its redshift is 0.0236. The Hubble time is 13.97 billion years, close to the accepted age of the universe.
Why it matters
The law is the foundation of modern cosmology. It lets astronomers estimate the distance to a galaxy from its redshift, which is easy to measure, and it showed that the universe had a beginning. Changing H0 by a few km/s/Mpc changes the size and age of the universe that we infer.
Good to know
The straight-line law is valid for relatively nearby galaxies, up to redshifts of about 0.1. At larger distances the expansion history matters, and recession speeds can exceed the speed of light without any contradiction, since space itself is expanding. Galaxies in the local group move with their own velocities that are not part of the expansion. This tool is for education.
In practice
Astronomers use the law in reverse: they measure the redshift of a galaxy from its spectrum, convert it to a velocity and divide by H0 to find the distance. Try entering different values of H0, such as 67 and 73, with the same distance: the difference in the Hubble time, about a billion years, shows why the exact value of the constant matters so much.
Related tools
The star distance calculator uses parallax and magnitude, the angular size calculator links size and distance, and the orbital period calculator handles motion under gravity.