Redshift to Distance Calculator | Calculate Cosmological Distances


Redshift to Distance Calculator

An essential tool for astronomers and cosmologists for calculating distance using redshift values and standard cosmological parameters.



A unitless measure of how much the light from a distant object has been stretched.

Please enter a valid non-negative number.



The current expansion rate of the universe, in km/s/Mpc.


The fraction of the universe’s energy density that is matter. Unitless.


The fraction of the universe’s energy density that is dark energy. Unitless.


Choose the unit for the calculated distances.


Chart depicting the relationship between Redshift (z) and Comoving Distance for the selected cosmological parameters.

What is Calculating Distance Using Redshift?

Calculating distance using redshift is a fundamental technique in cosmology for determining the vast distances to galaxies and other celestial objects. The term ‘redshift’ refers to the phenomenon where light from an object moving away from an observer is stretched, shifting its wavelength towards the red end of the electromagnetic spectrum. This is not a Doppler shift in the classical sense, but rather a cosmological redshift caused by the expansion of space itself. As the universe expands, the fabric of spacetime stretches, and the wavelengths of photons traveling through it are stretched as well. The amount of this stretching is quantified by the redshift value, ‘z’. A higher redshift indicates that the object is farther away and that its light has traveled for a longer time through the expanding universe.

This method is crucial for mapping the large-scale structure of the universe, understanding its expansion history, and studying the properties of distant galaxies. However, the relationship between redshift and distance is not a simple linear one. It depends on the expansion history of the universe, which is governed by cosmological parameters like the Hubble Constant (H₀), matter density (Ωm), and dark energy density (ΩΛ). Our calculator uses the standard ΛCDM (Lambda-Cold Dark Matter) model to perform these complex calculations. For more information on the expanding universe, you might be interested in the Hubble’s Law explained article.

The Formula for Calculating Distance from Redshift

For small redshifts, the distance can be approximated by Hubble’s Law (d = v/H₀ = cz/H₀). However, for the distant universe (high z), a more rigorous approach is needed that integrates over the expansion history. The primary distance measure, the **comoving distance (D_C)**, is calculated by integrating the Friedmann equation. This distance represents the separation between two objects that remains constant with the expansion of the universe. The formula is:

DC(z) = DH0z dz’ / E(z’)

Where E(z’) = √[ ΩM(1+z’)3 + Ωk(1+z’)2 + ΩΛ ]

This calculator performs a numerical integration of this formula to provide accurate results. From the comoving distance, other important metrics like Luminosity Distance and Angular Diameter Distance are derived.

Variables in Cosmological Distance Calculation
Variable Meaning Unit Typical Range
DC Comoving Distance Mpc, Gly 0 – ~14,000 Mpc
DH Hubble Distance (c/H₀) Mpc ~4,300 Mpc
z Redshift Unitless 0 – ~1100
H₀ Hubble Constant km/s/Mpc 67 – 74
ΩM Matter Density Parameter Unitless 0.2 – 0.4
ΩΛ Dark Energy Density Parameter Unitless 0.6 – 0.8
Ωk Curvature Density (1 – ΩM – ΩΛ) Unitless ~0 (Flat Universe)

Practical Examples

Example 1: A Moderately Distant Galaxy

Let’s consider a galaxy with a measured redshift of z = 0.5. Using the default cosmological parameters (H₀ = 69.8, ΩM = 0.308, ΩΛ = 0.692):

  • Input Redshift (z): 0.5
  • Calculated Comoving Distance: ~1,950 Mpc or ~6.36 Gigalight-years
  • Calculated Lookback Time: ~5.04 Billion years

This means the light from this galaxy has traveled for over 5 billion years to reach us, and its “stationary” distance from us today, accounting for expansion, is about 6.36 billion light-years.

Example 2: A High-Redshift Quasar

Now, let’s analyze a very distant quasar, one of the brightest objects in the early universe, with a redshift of z = 4.0.

  • Input Redshift (z): 4.0
  • Calculated Comoving Distance: ~6,481 Mpc or ~21.14 Gigalight-years
  • Calculated Lookback Time: ~12.14 Billion years

Observing this quasar is like looking back in time over 12 billion years, seeing the universe when it was only about 1.6 billion years old. Its current comoving distance is immense due to the vast expansion of space that occurred while its light was in transit. To explore related topics, see our guide to astrophysics data.

How to Use This Redshift to Distance Calculator

  1. Enter Redshift (z): Start by inputting the measured redshift of your astronomical object. This is a dimensionless quantity.
  2. Adjust Cosmological Parameters: The calculator is pre-filled with recent consensus values from Planck satellite data. However, you can adjust the Hubble Constant (H₀), Matter Density (Ωm), and Dark Energy Density (ΩΛ) to test different cosmological models. For a flat universe, Ωm + ΩΛ should equal 1.
  3. Select Output Units: Choose whether you want the distance results displayed in Megaparsecs (Mpc) or Gigalight-years (Gly).
  4. Interpret the Results: The calculator will instantly provide four key distance metrics:
    • Comoving Distance: The primary result. This is the distance between the object and us that does not change over time due to cosmic expansion.
    • Lookback Time: The time it took for the object’s light to reach us, which is how far back in time we are seeing the object.
    • Luminosity Distance: This distance relates an object’s intrinsic brightness to its observed brightness. It’s larger than the comoving distance because expansion redshifts the light and dims it.
    • Angular Diameter Distance: This distance relates an object’s actual size to its apparent size in the sky. Counter-intuitively, objects at very high redshifts can appear larger than those at intermediate redshifts.
  5. Analyze the Chart: The dynamic chart visualizes how comoving distance changes with redshift, giving you a clear picture of the universe’s expansion.

Key Factors That Affect Redshift Distance Calculations

The accuracy of calculating distance using redshift is highly dependent on the precision of our cosmological parameters.

  • Hubble Constant (H₀): This value sets the overall scale of the universe and its current expansion rate. A higher H₀ results in a younger universe and smaller calculated distances for a given redshift. The ongoing “Hubble Tension” highlights the difficulty in pinning down its exact value.
  • Matter Density (Ωm): This includes both normal (baryonic) matter and dark matter. The gravitational pull of matter slows down the expansion of the universe. A higher matter density would mean the expansion was faster in the past and has slowed more significantly.
  • Dark Energy Density (ΩΛ): Represented by the cosmological constant (Lambda), this is the component responsible for the accelerated expansion of the universe. A higher dark energy density means the expansion is speeding up more rapidly.
  • Curvature of the Universe (Ωk): In this calculator, we assume a flat universe (Ωk = 0), which is strongly supported by observations of the Cosmic Microwave Background. In this model, Ωm + ΩΛ = 1. If the universe were curved, the geometric relationship between redshift and distance would change.
  • Peculiar Velocity: For nearby galaxies, their individual motion (peculiar velocity) relative to the “Hubble flow” can add a small Doppler shift on top of the cosmological redshift, introducing a minor error. For distant objects, this effect is negligible.
  • Gravitational Lensing: The light from very distant objects can be bent by the gravity of massive objects (like galaxy clusters) in the foreground. This can magnify and distort the object, affecting distance measurements based on luminosity or angular size. Delve deeper with our article on gravitational lensing effects.

Frequently Asked Questions

1. Is redshift the only way to measure cosmic distances?

No, but it’s the primary method for very distant objects. For closer objects, astronomers use methods like parallax, standard candles (like Cepheid variables and Type Ia supernovae), and the “standard ruler” method. These methods help calibrate the redshift-distance relationship. Learn more about the cosmic distance ladder.

2. Why are there so many different types of distance in cosmology?

In an expanding and non-Euclidean universe, our everyday concept of distance breaks down. Different distance measures are needed for different types of measurements. For example, Luminosity Distance is needed for brightness calculations (standard candles), while Angular Diameter Distance is for size calculations (standard rulers).

3. Can redshift be negative (a blueshift)?

Yes. A few very nearby galaxies, like the Andromeda Galaxy, are gravitationally bound to our own Milky Way and are actually moving towards us. Their light is blueshifted. However, on a large scale, every distant galaxy is moving away from every other distant galaxy, so all cosmological shifts are redshifts.

4. What is the highest redshift ever observed?

As of recent observations with the James Webb Space Telescope (JWST), galaxies have been tentatively identified with redshifts as high as z ≈ 13. The ultimate limit is the Cosmic Microwave Background (CMB), the afterglow of the Big Bang, which has a redshift of z ≈ 1100.

5. How does this calculator handle the math?

The core of the calculation is a numerical integration. The calculator breaks the integral from 0 to z into many small steps and sums the results (using the trapezoidal rule) to find an accurate value for the comoving distance. This avoids the need for complex analytical solutions which don’t exist for the standard cosmological model.

6. Why does Angular Diameter Distance decrease at high redshift?

This is a strange and counter-intuitive effect of an expanding universe. Light from an object at z > ~1.6 was emitted when the universe was much smaller and closer. The object’s apparent size is determined by its distance at the time the light was emitted. This leads to a turnover point where more distant objects can actually appear larger on the sky. You can learn about other unusual space phenomena in our resources.

7. What is the difference between comoving distance and proper distance?

Proper distance is the distance between two points at a specific moment in cosmic time, as if you could pause expansion and measure with a ruler. Comoving distance is the proper distance at the present time (z=0). For a distant galaxy, its proper distance when it emitted the light we see now was much smaller than its current comoving distance.

8. Are the cosmological parameters fixed?

No, they are measured values from experiments and are refined over time. The values in this calculator are based on the 2018 Planck satellite data release, which are widely used, but slight variations exist between different experiments. Adjusting them allows you to see how sensitive the results are to these changes.

© 2026 – A tool for calculating distance using redshift. For educational and research purposes.



Leave a Reply

Your email address will not be published. Required fields are marked *