Redshift Calculator
Expansion rate of the universe in km/s per Megaparsec
Enter Your Values
Select a mode above, enter wavelengths or a redshift value, and the calculator will instantly show recession velocity, cosmological distances, lookback time, and more.
How to Use the Redshift Calculator
Choose Your Input Mode
Select Wavelength Mode if you have spectroscopic measurements (observed and rest wavelengths), Redshift Mode if you already know the z value from a catalog or database, or Velocity Mode to convert a recession velocity into redshift and distance. Click the mode tab above the calculator to switch.
Enter Your Values
In Wavelength Mode, type the observed wavelength and use the spectral line presets to fill in common rest wavelengths like H-alpha (656.3 nm) or Lyman-alpha (121.6 nm). In Redshift Mode, click an object preset (M31, Coma, CMB) or type any z value. The calculator updates automatically as you type.
Review the Results
The results panel shows the redshift z, recession velocity as a fraction of the speed of light (with a ProgressRing gauge), cosmological distances (comoving, luminosity, and angular diameter) as labeled bars, and a lookback time chart showing how far back in cosmic history you are observing.
Adjust Cosmology and Export
Use the Hubble Constant selector to compare Planck 2018 vs SH0ES values, or expand Advanced Settings to enter custom Ω_m and Ω_Λ values. Once satisfied, click Export CSV to download all calculated quantities, or Print Results to save a printer-friendly copy.
Frequently Asked Questions
What is redshift and how is it different from blueshift?
Redshift (positive z) means the observed wavelength is longer than the emitted wavelength — the light source is moving away from us or the space between us is expanding, stretching the light. Blueshift (negative z) means the source is approaching and the wavelength is compressed toward shorter (bluer) wavelengths. In our cosmic neighborhood, the Andromeda Galaxy (M31) is the most famous example of a blueshifted object at z ≈ −0.001. Most distant galaxies show redshift due to the expansion of the universe. Gravitational redshift, where light climbing out of a gravitational well loses energy, is a third mechanism but is significant mainly for compact objects like neutron stars and black holes.
Can recession velocity exceed the speed of light?
Yes — and this does not violate special relativity. Cosmological recession velocities exceeding the speed of light are common for objects at z > 1.5 or so. The key distinction is that it is space itself expanding between galaxies, not matter moving through space. Special relativity forbids objects from moving faster than light through space, but the metric expansion of space has no such limit. The relativistic Doppler formula used in this calculator gives the component of recession velocity attributable to motion, which always remains less than c. Hubble's Law v = H₀ × d is a useful approximation for low z but should not be extrapolated beyond z ≈ 0.1 without the relativistic correction.
What is the difference between comoving, luminosity, and angular diameter distance?
These three distances answer different physical questions. Comoving radial distance is the proper distance measured in a coordinate system that expands with the universe — it is what you would measure if you could freeze cosmic expansion and lay down a ruler. Luminosity distance is larger than comoving distance by a factor of (1+z) and is used to relate observed flux to intrinsic luminosity; it is what you infer from a standard candle. Angular diameter distance is smaller than comoving distance by (1+z) and tells you how large an object appears; strikingly, for z > about 1.6, it decreases with increasing redshift, so very distant objects can appear larger than moderately distant ones. Distance modulus is the logarithmic luminosity distance used when working with magnitudes.
What is lookback time and how does it relate to the age of the universe?
Lookback time is the time elapsed between when the observed light was emitted and now. For a galaxy at z = 1, the lookback time is roughly 7.7 billion years (depending on cosmological parameters), meaning you are seeing the galaxy as it was 7.7 billion years ago — when the universe was about 6 billion years old. The age of the universe at emission is the total age of the universe minus the lookback time. The total age of the universe (z = 0) with Planck 2018 parameters is approximately 13.8 billion years. The cosmic microwave background at z = 1089 has a lookback time of nearly 13.8 billion years and was emitted just 380,000 years after the Big Bang.
What is the Hubble tension and why does it matter?
The Hubble tension refers to a significant discrepancy between two independent measurements of the present-day Hubble constant H₀. The Planck 2018 analysis of the cosmic microwave background gives H₀ ≈ 67.4 km/s/Mpc, while local distance ladder measurements (e.g., SH0ES, using Cepheid variables and Type Ia supernovae) consistently give H₀ ≈ 73 km/s/Mpc. This ~10% difference has grown to statistical significance above 5σ and cannot be explained by measurement errors. If real, it may indicate new physics beyond the standard ΛCDM model — such as early dark energy, additional radiation species, or modified gravity. The tension directly affects distance and lookback time estimates, so this calculator lets you compare results under both assumptions.
How accurate are the distance and time calculations in this calculator?
The calculations use numerical integration (Simpson's rule) of the Friedmann equation with 1,000 to 10,000 integration steps depending on the redshift. For moderate redshifts (z < 100), accuracy is better than 0.1% compared to analytic or high-precision numerical solutions. For very high redshifts like the CMB (z = 1089), the tool omits the radiation density term (Ω_R ≈ 9×10⁻⁵), which introduces a ~1% error in lookback time near z = 1089. For practical astronomical purposes — matching published values for well-known objects, checking catalog distances, or coursework — the results are reliable to 3–4 significant figures for z < 10 and to 2–3 significant figures near z = 1089.