Skip to content
Omnikalc

Hubble law calculator: how fast is a galaxy receding?

Enter the distance to a galaxy and the Hubble constant to get the recession velocity, the redshift and the Hubble time.

Updated on
Your inputs

Value out of range

km/s/Mpc

Value out of range

Results

Recession velocity

7,000 km/s

A nearby galaxy: the linear law is a good approximation
Speed as a share of the speed of light
2.33%
Redshift z (relativistic Doppler)
0.0236
Hubble time (1 ÷ H0)
13.97 Gyr
Distance in millions of light-years
326 Mly

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.

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.

Frequently asked questions

What is Hubble's law?

Distant galaxies move away from us at a speed proportional to their distance: v = H0 × d. It is the observation that the universe is expanding, and H0 is the Hubble constant, now measured at about 67 to 74 km/s per megaparsec.

What is a megaparsec?

A parsec is about 3.26 light-years, and a megaparsec is a million parsecs, or 3.26 million light-years. It is the usual unit for distances between galaxies. The Andromeda galaxy is at about 0.78 Mpc.

Why do two values of the Hubble constant exist?

Measures from the early universe (the cosmic microwave background) give about 67, while those from nearby supernovae give about 73. The gap, called the Hubble tension, is an open question in cosmology.

What is the Hubble time?

It is 1 ÷ H0, about 14 billion years, a rough age of the universe if the expansion had been constant. The real age, 13.8 billion years, is close because the slowing down and the speeding up of the expansion have partly offset each other.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.