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
Results
Luminosity Distance
458.25 Mpc
Comoving Distance
416.59 Mpc
Lookback Time
13.8 billion years
How to Use This Calculator
- Enter the Redshift (z) of the object — from spectroscopic observations; nearby galaxies z ≈ 0.01–0.1, high-z quasars z > 2.
- Set the Hubble Constant (km/s/Mpc): Planck value is 67.4; SH0ES measurement is 73.0.
- Adjust Matter Density (Ω_m) and Dark Energy Density (Ω_Λ): standard ΛCDM uses 0.3 and 0.7 respectively.
- Read Luminosity Distance (Mpc) for flux-based calculations and Comoving Distance (Mpc) for volume statistics.
- 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 Distance | Comoving Distance | Lookback Time |
|---|---|---|---|
| 0.05 | 214.14 Mpc | 203.94 Mpc | 6.9 billion years |
| 0.08 | 321.21 Mpc | 298.8 Mpc | 10.35 billion years |
| 0.15 | 709.87 Mpc | 617.27 Mpc | 20.7 billion years |
| 0.25 | 1,258.06 Mpc | 1,006.45 Mpc | 34.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
- Identify Input Parameters4 parametersRedshift (z) = 0.1, Hubble Constant = 70, Matter Density (Ω_m) = 0.3, Dark Energy Density (Ω_Λ) = 0.7 = 4 input(s) provided
- Calculate Luminosity DistanceLuminosity Distance458.25 = 458.25
- Calculate Comoving DistanceComoving Distance416.59 = 416.59
- Calculate Lookback TimeLookback Time13.8 = 13.8
- Calculate Angular Diameter DistanceAngular Diameter Distance378.72 = 378.72
- Calculate Age at EmissionAge at Emission0 = 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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Redshift Calculator
Calculate cosmological redshift, recessional velocity, distance, and lookback time using Hubble's law.
Astrophysics & AstronomyStellar Luminosity Calculator
Calculate stellar luminosity using Stefan-Boltzmann law. Find absolute magnitude, main sequence lifetime, and stellar parameters.
AstronomyHubble's Law Calculator
Calculate recession velocity and distance from cosmological redshift using Hubble's Law. Includes lookback time, scale factor, and relativistic corrections.
Astrophysics & AstronomyOrbital Period Calculator
Calculate orbital period using Kepler's laws. Find orbital velocity, angular velocity, and perihelion/aphelion distances.
More in Science & Physics.