Comoving Distance & Lookback Time Calculator
Compute comoving distance, lookback time, luminosity distance, and angular diameter distance for any redshift in flat ΛCDM cosmology.
🌌 What is Comoving Distance?
Comoving distance is the spatial separation between two objects measured in coordinates that stretch with the expansion of the universe. If two galaxies are at rest with respect to the cosmic expansion (no peculiar velocity), their comoving distance remains constant over time regardless of how fast the universe is expanding. The comoving distance to a galaxy at redshift z also equals the proper distance today (at the current cosmic time), making it the most useful measure for cosmological calculations.
To compute the comoving distance in an expanding universe, you cannot simply multiply the speed of light by the age of the object's light. As photons travel from a distant galaxy to Earth, the universe expands underneath them, stretching their wavelengths (producing the redshift) and adding extra path length. The comoving distance integral accounts for this: d_C = (c/H₀) × ∫₀^z dz′/E(z′), where E(z) = H(z)/H₀ is the dimensionless Hubble parameter. In the standard flat ΛCDM model, E(z) = √(Ω_m(1+z)³ + Ω_Λ). The denominator E(z) is larger at high redshift (where matter dominates and expansion was faster), so each unit of redshift at high z contributes less comoving distance than the same unit at low z.
Lookback time t_L is the time elapsed since the light was emitted. A lookback time of 13 Gyr means you are seeing the galaxy as it appeared 13 billion years ago. It is computed by a similar integral: t_L = (1/H₀) × ∫₀^z dz′/[(1+z′)E(z′)]. The extra factor (1+z′) converts from redshift to cosmic time. This calculator simultaneously computes four standard cosmological distances for any input redshift: comoving distance d_C, lookback time t_L, luminosity distance d_L = (1+z)d_C (used for flux measurements), and angular diameter distance d_A = d_C/(1+z) (used for angular size calculations).
This calculator uses numerical integration (Simpson's rule, 1,000 to 8,000 steps depending on z) with any of four standard cosmologies: Planck 2018 (H₀ = 67.4 km/s/Mpc, Ω_m = 0.315, Ω_Λ = 0.685), Planck 2015, WMAP9, or the SH0ES local measurement. The Hubble tension — the 5σ disagreement between Planck and SH0ES — directly affects the distance scale: the SH0ES value gives distances about 8% smaller than Planck at the same redshift.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Virgo Cluster (z = 0.00366)
Nearest galaxy cluster, Planck 2018 cosmology. At z = 0.00366, the expansion correction is negligible.
Example 2 — Quasar 3C 273 (z = 0.158)
Brightest known quasar, Planck 2018 cosmology. At z = 0.158, the expansion history begins to matter.
Example 3 — Galaxy GN-z11 (z = 10.957)
One of the most distant known galaxies, discovered by Hubble. At z = 10.957, the universe was only ~420 million years old.
Example 4 — CMB Last Scattering Surface (z = 1100)
The cosmic microwave background is the most distant light we can observe, emitted 380,000 years after the Big Bang when the universe first became transparent.
❓ Frequently Asked Questions
🔗 Related Calculators
What is the comoving distance?
The comoving distance d_C between two objects is the spatial separation measured in coordinates that expand with the universe, so that the distance between two objects at rest in the Hubble flow is constant over time. It equals the proper distance today (at the current cosmic time). For a flat ΛCDM universe, d_C = (c/H₀) × ∫₀^z dz'/E(z') where E(z) = √(Ω_m(1+z)³ + Ω_Λ). It is the most natural measure of distance for cosmological calculations.
What is lookback time?
Lookback time is the time elapsed since light left the source and arrived at Earth. It equals the age of the universe minus the age of the universe when the light was emitted. For Planck 2018 cosmology and a galaxy at z = 1, the lookback time is about 7.7 Gyr — meaning you are observing the galaxy as it appeared 7.7 billion years ago. Lookback time is computed as t_L = (1/H₀) × ∫₀^z dz'/[(1+z')E(z')].
What is the difference between comoving distance and proper distance?
The proper distance is the physical separation between two objects at a given moment in cosmic time. For a galaxy at rest in the Hubble flow, the proper distance today equals the comoving distance, but the proper distance at the time of emission was d_proper(t_emit) = d_C / (1+z), which is the angular diameter distance. In other words: comoving distance is the present-day separation, angular diameter distance is the separation at the time the light was emitted, and luminosity distance is a larger quantity that preserves the inverse-square law for flux.
What is the luminosity distance?
The luminosity distance d_L relates the observed flux F of an object to its intrinsic luminosity L via L = 4πd_L²F. For a flat universe d_L = (1+z) × d_C. The extra (1+z) factor comes from two effects: the photon energies are redshifted by 1/(1+z) and the photon arrival rate is also reduced by 1/(1+z). The luminosity distance is used to calibrate Type Ia supernovae and underpins the discovery of dark energy.
What is the angular diameter distance?
The angular diameter distance d_A is defined so that a rod of physical size D at redshift z subtends an angle θ = D/d_A (in radians) on the sky. It equals d_A = d_C / (1+z) for a flat universe. The angular diameter distance has a counterintuitive property: it reaches a maximum at z ≈ 1.5 in Planck 2018 cosmology and then decreases at higher redshifts. This means very high-z galaxies subtend a larger angle per unit physical size than those at z ~ 1, making them appear bigger.
What is the Hubble tension?
The Hubble tension is the 5σ disagreement between the value of H₀ measured by Planck (67.4 km/s/Mpc) from the CMB power spectrum and the value measured by the SH0ES collaboration (73.04 km/s/Mpc) from Type Ia supernovae calibrated with Cepheid distances. A higher H₀ means the universe is expanding faster, making it younger and assigning smaller distances to high-z objects. The tension is unresolved as of 2025 and may indicate new physics beyond the standard ΛCDM model.
What is the comoving distance to the CMB?
The CMB photons last scattered at z ≈ 1100 when the universe was 380,000 years old. In Planck 2018 cosmology, the comoving distance to the last scattering surface is approximately 14,163 Mpc = 46,200 Mly. This is also known as the radius of the observable universe. The diameter of the observable universe is therefore about 93 Gly. Objects beyond 14,163 Mpc comoving are in principle unobservable, as their light has not had time to reach us.
Why does E(z) appear in the comoving distance formula?
E(z) = H(z)/H₀ is the dimensionless Hubble parameter. The Hubble parameter H(z) gives the expansion rate of the universe at redshift z. In flat ΛCDM, E(z) = √(Ω_m(1+z)³ + Ω_Λ). The comoving distance integral 1/E(z) is large where E(z) is small (the expansion is slow, so light travels far per unit redshift), and small where E(z) is large (rapid expansion at high z). This is why most of the comoving distance to the CMB is accumulated at low-to-moderate redshifts.
What does Ω_m + Ω_Λ = 1 mean?
In the Friedmann equation, the total energy density determines the spatial curvature of the universe. Ω_m is the fractional density in matter (baryonic + dark matter), Ω_Λ is the fractional density in dark energy (cosmological constant). If Ω_m + Ω_Λ = 1, the universe is spatially flat (zero curvature). CMB observations from Planck confirm flatness to within 0.5%. A flat universe means parallel geodesics stay parallel, and the sum of angles in a large triangle is exactly 180 degrees.
How is comoving distance different from light-travel distance?
The light-travel distance (sometimes called the lookback distance) is c × t_L, the speed of light times the lookback time. For z = 1 in Planck 2018 cosmology: t_L ≈ 7.73 Gyr, so light-travel distance ≈ 7.73 Gly. But the comoving distance to z = 1 is about 3,310 Mpc ≈ 10,800 Mly. The difference arises because space itself was expanding while the light was travelling, so the source is now much farther away than the distance implied by how long the light travelled.
What is a megaparsec?
A megaparsec (Mpc) is one million parsecs. One parsec equals 3.0857 × 10¹³ km = 3.2616 light-years. One megaparsec = 3.2616 million light-years = 3.0857 × 10²² metres. Cosmological distances are routinely measured in Mpc: the Milky Way and Andromeda are about 0.77 Mpc apart, the Virgo Cluster is about 16 Mpc away, and the observable universe extends to about 14,163 Mpc comoving.
Can this calculator handle redshifts above z = 1100?
This calculator supports z up to 2,000. For z > 1100 you enter the radiation-dominated era where the Ω_r(1+z)⁴ term becomes significant and cannot be ignored. The E(z) formula used here omits the radiation density Ω_r (≈ 9.4 × 10⁻⁵), which introduces < 0.01% error for z < 100 but grows to a few percent near z = 1100. For the CMB at z = 1100, the error from neglecting Ω_r is about 1% in comoving distance and negligible for lookback time (which is dominated by low-z cosmic time).