Hubble's Law Distance Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What This Hubble's Law Distance Calculator Does

This calculator uses the simple, linear form of Hubble's Law to estimate how far away a distant galaxy or quasar is, based on its redshift and an assumed value of the Hubble constant. It is designed for educational use and quick order-of-magnitude distance estimates at relatively low redshift.

When you enter a redshift z and a value for the Hubble constant H0, the tool first converts redshift to recessional velocity using the low-redshift approximation, and then converts that velocity to a distance in megaparsecs (Mpc) and light-years. This makes the connection between cosmic expansion, redshift, and distance more concrete.

What Is Hubble's Law?

In the late 1920s, Edwin Hubble and other astronomers noticed that most galaxies appear to be moving away from us, and that their recessional velocity increases roughly in proportion to their distance. This empirical relationship is known as Hubble's Law.

In its simplest (linear) form, Hubble's Law is written as:

Hubble's Law (velocity–distance relation)

v = H 0 d

where:

The Hubble constant acts like a proportionality factor linking distance to recession speed. A commonly used rounded value is about 70 km/s/Mpc, meaning that for every megaparsec of distance, recession speed increases by roughly 70 km/s.

How Redshift Relates to Velocity

Light from distant galaxies is observed to be shifted toward longer (redder) wavelengths. This cosmological redshift, denoted by z, is defined as the fractional change in wavelength:

z = λ λ0 λ0

Here, λ is the observed wavelength and λ0 is the rest (laboratory) wavelength of the same spectral line.

For relatively small redshifts (typically z ≲ 0.1), cosmological redshift can be related to recessional velocity with a simple approximation:

v z c

where c is the speed of light, approximately 299,792 km/s. Combining this with Hubble's Law gives a convenient expression for distance in the low-redshift regime:

d z c H 0

This is the approximation used by this calculator.

How This Calculator Estimates Distance

The calculator follows a straightforward sequence of steps when you click the compute button:

  1. Input redshift z: You supply a measured redshift, typically obtained from spectroscopy of a galaxy or quasar. The redshift is dimensionless.
  2. Input the Hubble constant H0: By default, the field is set to 70 km/s/Mpc. This is a rounded, commonly used estimate consistent with many modern cosmological measurements.
  3. Compute recessional velocity v: The tool uses the approximation v ≈ z × c, with c taken as 299,792 km/s. This gives a velocity in km/s.
  4. Compute distance d in megaparsecs: Using Hubble's Law, it divides the recessional velocity by H0:
    • dMpc = v / H0.
  5. Convert Mpc to light-years: One megaparsec is approximately 3.26156 million light-years. The calculator multiplies the distance in Mpc by 3.26156 × 106 to express the distance in light-years.

The result is typically presented in both megaparsecs and light-years, which helps connect the cosmic distance scale to more familiar units.

Key Quantities and Units

Worked Example

To see how the pieces fit together, consider a galaxy with a measured redshift of z = 0.02. Suppose we adopt the default Hubble constant:

  1. Compute recessional velocity using v ≈ z × c:
    • v ≈ 0.02 × 299,792 km/s ≈ 5,996 km/s (often rounded to about 6,000 km/s).
  2. Compute distance in Mpc from Hubble's Law:
    • dMpc = v / H0 ≈ 5,996 / 70 ≈ 85.7 Mpc.
  3. Convert Mpc to light-years:
    • 1 Mpc ≈ 3.26156 million light-years.
    • dly ≈ 85.7 × 3.26156 million ≈ 279.6 million light-years.

The calculator will carry out these steps instantly and display the result. The key point is that a seemingly small redshift of 0.02 already corresponds to a galaxy hundreds of millions of light-years away.

Interpreting the Results

The numeric output from a Hubble's Law distance calculation can be placed into a few broad categories:

Because the calculator also returns distances in light-years, you can directly compare the result to the age of the universe (~13.8 billion years) to get an intuitive sense of scale. However, remember that the light-travel distance in light-years is not the same as the true cosmological distance in an expanding universe; the calculator provides only a linear approximation.

Comparison: Example Distances for Different Redshifts

The table below shows approximate distances for several small redshift values using a Hubble constant of 70 km/s/Mpc. The values are rounded and assume the same low-redshift approximation used in the calculator.

Redshift z Approx. velocity v (km/s) Distance d (Mpc) Distance (million light-years)
0.005 ≈ 1,500 ≈ 21 ≈ 68
0.010 ≈ 3,000 ≈ 43 ≈ 140
0.020 ≈ 6,000 ≈ 86 ≈ 280
0.050 ≈ 15,000 ≈ 214 ≈ 700
0.100 ≈ 30,000 ≈ 429 ≈ 1,400

These values are meant as rough guides, not precision cosmological distances. At redshifts approaching 0.1 and beyond, full cosmological models that include matter density, dark energy, and curvature give more accurate results than the simple linear formula used here.

The Hubble Constant Debate (Brief Overview)

The default Hubble constant of 70 km/s/Mpc is a convenient rounded value that lies between two major families of modern measurements:

The tension between these methods is an active area of research in cosmology. This calculator does not attempt to resolve that debate; instead, it lets you see how choosing different plausible values of H0 affects the inferred distances. For a given redshift, a larger Hubble constant produces a smaller distance, and a smaller Hubble constant produces a larger distance.

Limitations and Assumptions

This tool makes several simplifying assumptions that are important to keep in mind when interpreting its results:

For more accurate work at higher redshifts, astronomers use full cosmological distance calculators that integrate the expansion history of the universe under a specified cosmological model (often ΛCDM, which includes dark energy and cold dark matter).

Practical Uses and Next Steps

Despite its simplicity, Hubble's Law remains a powerful conceptual tool and a useful approximation in several contexts:

To go further, you might compare the distances from this simple tool with those from more complete cosmology distance tools that include luminosity distance, angular-diameter distance, and comoving distance. You can also explore related unit converters for parsecs, light-years, and kilometers to build intuition about astronomical scales.

Enter redshift and Hubble constant to estimate distance.

Embed this calculator

Copy and paste the HTML below to add the Hubble's Law Distance Calculator - Estimate Cosmic Expansion to your website.