Skip to main content
Calcimator

Redshift Calculator

Calculate cosmological redshift, recessional velocity, distance, and lookback time using Hubble's law.

About this calculator

This calculator applies the definition of cosmological redshift, z = (lambda_obs - lambda_rest) / lambda_rest, comparing the wavelength you actually observe against the same spectral line's rest-frame wavelength -- H-alpha, 656.3 nm, is the default because it is one of the most commonly measured lines in galaxy spectra. Because that formula only involves the two wavelengths, Redshift (z) and the derived Velocity from Redshift respond only to Observed Wavelength and Rest Wavelength -- Recessional Velocity has no effect on either, even though it sits on the same page. Recessional Velocity instead drives a separate branch of outputs entirely: Distance (in megaparsecs and gigalight-years) and Lookback Time come from Hubble's Law, distance = velocity / H0, using a fixed Hubble constant of 70 km/s/Mpc, and Relativistic Redshift comes from the special-relativistic Doppler formula sqrt((1+v/c)/(1-v/c)) - 1.

Neither wavelength input touches those three outputs. This split matters practically: at the velocities typical of nearby galaxies the simple velocity-from-redshift approximation (z times the speed of light) tracks the fully relativistic result closely, but the two diverge as Recessional Velocity climbs toward the speed of light, which is why both are shown separately rather than collapsed into one number. The calculator does not correct for cosmological effects beyond a flat Hubble's Law -- no dark energy, no time-varying expansion rate -- so treat Distance and Lookback Time beyond a few hundred megaparsecs as a first estimate, not a precision cosmological distance from a full Friedmann-model calculation.

Inputs

nm
nm
km/s

Results

Redshift (z)

0

Velocity from Redshift

0 km/s

Distance

142.86 Mpc

Lookback Time

0.14 billion years

Relativistic Redshift0.033932
Distance0.14 Gly
How to Use This Calculator
  1. Enter the Observed Wavelength (nm) of the spectral line measured in the spectrum of the galaxy or quasar.
  2. Enter the Rest Wavelength (nm) — the lab-frame wavelength of the same line; H-alpha is 656.3 nm.
  3. The Redshift (z) is computed automatically from (λ_obs − λ_rest) / λ_rest.
  4. Alternatively, enter a Recessional Velocity (km/s) to compute the separate Relativistic Redshift figure; it does not change the wavelength-based Redshift (z) above.
  5. Read Distance (Mpc and Gly) and Lookback Time (billion years) to place the object in cosmic context.

How the result changes with Rest Wavelength

Rest WavelengthRedshift (z)Velocity from RedshiftDistance
3281.000915300,066.66 km/s142.86 Mpc
4920.333943100,113.62 km/s142.86 Mpc
984-0.333028-99,839.42 km/s142.86 Mpc
1,641-0.600061-179,893.74 km/s142.86 Mpc

What each input means

Observed Wavelength
Observed wavelength of spectral line
Rest Wavelength
Rest wavelength of spectral line (e.g., H-alpha = 656.3 nm)
Recessional Velocity
Recessional velocity of object

How this is calculated

Formula

z = (λ_obs - λ_rest) / λ_rest

Worked example, using the default values

  1. Identify Input Parameters
    Observed Wavelength = 656.3, Rest Wavelength = 656.3, Recessional Velocity = 10000 = 3 input(s) provided
  2. Calculate Redshift
    Redshift
    0 = 0
  3. Calculate Velocity from Redshift
    Velocity from Redshift
    0 = 0
  4. Calculate Distance
    Distance
    142.86 = 142.86
  5. Calculate Relativistic Redshift
    Relativistic Redshift
    0.033932 = 0.033932
  6. Calculate Distance
    Distance
    0.14 = 0.14

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 doesn't Recessional Velocity change the Redshift (z) reading?

Redshift here is computed purely from the two wavelengths as z = (observed - rest) / rest -- it is a direct spectroscopic measurement, not a derived quantity. Recessional Velocity is a separate input used only for the Hubble's-Law distance and relativistic-redshift branch of the calculator, so moving it leaves the wavelength-based Redshift and Velocity from Redshift outputs completely unchanged.

Why doesn't the Distance output move when I change the wavelengths?

Distance is calculated from Recessional Velocity alone using Hubble's Law (distance = velocity / 70 km/s/Mpc); the Observed and Rest Wavelength inputs never enter that formula. If you want a distance derived from an observed spectrum, convert your measured redshift to a velocity first and enter that velocity directly.

How reliable is the Distance figure for far-away objects?

It uses a flat Hubble's Law with a fixed constant of 70 km/s/Mpc and no correction for dark energy or a changing expansion rate over cosmic time, so it is a reasonable first estimate for relatively nearby galaxies but increasingly inaccurate at large redshifts, where a full Friedmann-equation cosmological model is needed for a trustworthy distance.

Why are Velocity from Redshift and Relativistic Redshift shown as two separate numbers?

Velocity from Redshift is the simple non-relativistic approximation z times the speed of light, while Relativistic Redshift uses the full special-relativistic Doppler formula. The two nearly agree at the low velocities typical of nearby galaxies but diverge increasingly as Recessional Velocity approaches the speed of light, so both are kept visible rather than merged into a single figure.

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

More in Science & Physics.