Skip to main content
Calcimator

Cosmological Distance Calculator

Calculate luminosity distance, comoving distance, angular diameter distance, and lookback time using cosmological models.

About this calculator

In an expanding universe, "distance" isn't a single number — how far away something is depends on what you're measuring for. This calculator starts from redshift, the stretching of light wavelengths caused by cosmic expansion, and applies two different formulas depending on its size: for small redshifts (z < 0.1) it uses the simple linear Hubble law d ≈ (c/H₀)×z, and for larger redshifts it switches to a second-order correction term that folds in matter density (Ω_m) and dark energy density (Ω_Λ) to account for how the expansion rate has changed over cosmic history. From that luminosity distance — the distance implied by how faint a standard-brightness object appears — it derives comoving distance (dividing by 1+z, giving the "present-day" distance if you could freeze expansion) and angular diameter distance (dividing again by 1+z, which is why very distant objects can paradoxically appear larger on the sky than the comoving-distance math alone would suggest).

Lookback time — how far in the past you're looking — is estimated here with a simple proportional scaling against the universe's 13.8-billion-year age rather than full integration of the expansion history, so treat it as a rough approximation rather than a precision figure, especially at high redshift. The default Ω_m = 0.3 and Ω_Λ = 0.7 reflect the standard ΛCDM concordance model. A common point of confusion: redshift is not literally "how far the object has moved away" — it's a measure of how much the universe has expanded since the light was emitted, and all four distance measures answer subtly different physical questions even though they derive from the same z.

Inputs

km/s/Mpc

Results

Luminosity Distance

458.25 Mpc

Comoving Distance

416.59 Mpc

Lookback Time

13.8 billion years

Angular Diameter Distance378.72 Mpc
Age at Emission0 billion years
Recessional Velocity32,077.79 km/s
How to Use This Calculator
  1. Enter the Redshift (z) of the object — from spectroscopic observations; nearby galaxies z ≈ 0.01–0.1, high-z quasars z > 2.
  2. Set the Hubble Constant (km/s/Mpc): Planck value is 67.4; SH0ES measurement is 73.0.
  3. Adjust Matter Density (Ω_m) and Dark Energy Density (Ω_Λ): standard ΛCDM uses 0.3 and 0.7 respectively.
  4. Read Luminosity Distance (Mpc) for flux-based calculations and Comoving Distance (Mpc) for volume statistics.
  5. Use Lookback Time (billion years) to determine the cosmic epoch you are observing and Age at Emission for context.

How the result changes with Redshift (z)

Redshift (z)Luminosity DistanceComoving DistanceLookback Time
0.05214.14 Mpc203.94 Mpc6.9 billion years
0.08321.21 Mpc298.8 Mpc10.35 billion years
0.15709.87 Mpc617.27 Mpc20.7 billion years
0.251,258.06 Mpc1,006.45 Mpc34.5 billion years

What each input means

Redshift (z)
Cosmological redshift
Hubble Constant
Hubble constant
Matter Density (Ω_m)
Matter density parameter
Dark Energy Density (Ω_Λ)
Dark energy density parameter

How this is calculated

Formula

d_L ≈ (c/H_0) × z × [1 + 0.5(1 - Ω_m + Ω_Λ)z]

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Redshift (z) = 0.1, Hubble Constant = 70, Matter Density (Ω_m) = 0.3, Dark Energy Density (Ω_Λ) = 0.7 = 4 input(s) provided
  2. Calculate Luminosity Distance
    Luminosity Distance
    458.25 = 458.25
  3. Calculate Comoving Distance
    Comoving Distance
    416.59 = 416.59
  4. Calculate Lookback Time
    Lookback Time
    13.8 = 13.8
  5. Calculate Angular Diameter Distance
    Angular Diameter Distance
    378.72 = 378.72
  6. Calculate Age at Emission
    Age at Emission
    0 = 0

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does the calculator use a different formula above redshift 0.1?

Below z = 0.1 the code uses the simple linear Hubble law, d ≈ (c/H₀)×z, which is accurate enough when the universe's expansion rate hasn't changed appreciably during the light's travel. Past that threshold it switches to a second-order correction, d ≈ (c/H₀)×z×[1 + 0.5(1 − Ωm + ΩΛ)z], which folds in matter and dark energy density so the growing error from ignoring how the expansion rate has evolved doesn't accumulate at larger redshifts.

Why are luminosity distance, comoving distance, and angular diameter distance all different numbers for the same object?

They answer different physical questions from the same redshift. Luminosity distance (used here as the base calculation) reflects how faint a standard-brightness object appears; comoving distance divides by (1+z) to give the "distance today if expansion froze"; angular diameter distance divides by (1+z) again, which is why very distant objects can appear larger on the sky than the raw comoving distance alone would suggest. All three converge to the same value only in the limit of very small redshift.

Why is the lookback time estimate here called an approximation rather than exact?

The calculator scales lookback time proportionally against the universe's 13.8-billion-year age using your redshift relative to 0.1, rather than numerically integrating the full expansion history the way a rigorous cosmological calculation would. That proportional scaling is reasonable at low redshift but becomes progressively less accurate as z grows, since it doesn't account for how the expansion rate itself has changed over time.

Does changing the Hubble constant affect all the outputs, or just some?

It affects nearly everything: luminosity distance, comoving distance, angular diameter distance, and recessional velocity are all computed directly from your chosen H₀, since it sets the overall distance scale of the universe. A lower H₀ (like Planck's 67.4) stretches all these distances larger than a higher H₀ (like SH0ES's 73.0) for the same redshift — this is the substance of the ongoing "Hubble tension" debate in cosmology.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.