Cosmology Calculator — Age, Lookback Time & Distances

Calculate key cosmological quantities from redshift. Private by design—everything runs locally in your browser.

Inputs & Actions

Tip: Press Ctrl/Cmd + Enter to calculate. URL updates so you can bookmark or share your inputs.

Results

5 Fun Facts about Cosmology & Redshift

The Universe’s baby photo

The cosmic microwave background is light from when the Universe was only a few hundred thousand years old—at redshift z ≈ 1100. Try a huge z in the calculator to see how young the cosmos was!

CMB • z≈1100

Farther can look bigger

The angular diameter distance peaks around z ≈ 1–2, so beyond that, the same ruler can appear larger on the sky. Your DA result will show the curve.

Angular size trick

Then vs. now distances

Lookback time × c isn’t today’s distance. Space expanded while the light traveled, so comoving distance is larger—this tool lists both side-by-side.

Lookback ≠ Comoving

One arcsecond, galaxy-scale

Around z ≈ 1–3, 1″ ≈ few–10 kpc—the scale of galaxy features. Check the “kpc per arcsec” line to turn images into real sizes.

Size on the sky

Play with the Hubble tension

Debate time: is H₀ ≈ 67 or ≈ 73 km/s/Mpc? Toggle the Planck vs SH0ES presets to watch ages, DL, DA, and volumes shift.

H₀ presets

Embed this Calculator

Paste this iframe into any webpage to embed the Cosmology Calculator.

Open embed file

Tip: If your CMS needs a fixed height, start with height="650" and enable auto-resize messages from the iframe.

Understanding the Calculator

This calculator uses the Friedmann–Lemaître–Robertson–Walker (FLRW) metric to model a homogeneous and isotropic universe. By providing the key parameters of this model, you can determine various properties of the universe at a specific redshift (z).

This tool is a modern implementation based on the foundational equations from the original JavaScript Cosmology Calculator created by Prof. Edward L. (Ned) Wright, whose work has been a valuable resource for the astronomical community for many years.

Key Cosmological Parameters

  • Hubble Constant (H0): The current rate of expansion of the universe, measured in km/s/Mpc. It tells us how fast galaxies are moving away from us.
  • Omega Matter (ΩM): The density of all matter (both normal and dark matter) in the universe, relative to the critical density needed to halt expansion.
  • Omega Vacuum (ΩΛ): The density of dark energy (cosmological constant) in the universe, relative to the critical density. This component is responsible for the accelerated expansion of the universe.
  • Redshift (z): A measure of how much the light from a distant object has been stretched by the expansion of the universe. Higher redshift means the object is farther away and its light was emitted earlier in cosmic history.

Calculated Cosmic Properties

  • Age of the Universe: The total time elapsed since the Big Bang, based on the input parameters.
  • Age at Redshift z: How old the universe was when the light from the object at redshift ‘z’ was emitted.
  • Light Travel Time: The time it took for light emitted from an object at redshift ‘z’ to reach us. This is also known as the “lookback time”.
  • Comoving Radial Distance: The distance between us and an object at redshift ‘z’ that remains constant over time if both we and the object are moving with the Hubble flow (i.e., it accounts for the expansion of the universe).
  • Angular Size Distance (DA): A distance measure used to relate an object’s physical size to its apparent angular size in the sky. Due to cosmic expansion, objects can appear larger than expected at very high redshifts.
  • Luminosity Distance (DL): A distance measure used to relate an object’s intrinsic brightness (luminosity) to its observed brightness (flux). Objects at high redshift appear dimmer than their physical distance would suggest. It is related to the angular size distance by the formula DL = DA(1+z)2.

FAQs

Which cosmology does this implement?

Standard FLRW with adjustable H0, ΩM, and ΩΛ. Curvature (ΩK) and a small radiation term are handled consistently from these inputs.

What distances are reported?

Comoving radial distance, angular diameter distance (DA), and luminosity distance (DL), plus age, age at z, and lookback time.

Are calculations private?

Yes—everything runs locally in your browser.

What units are used?

Distances in Mpc (with helpful conversions), ages in Gyr/Myr/yr depending on magnitude.

Explore more tools