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
Results
Redshift (z)
0
Velocity from Redshift
0 km/s
Distance
142.86 Mpc
Lookback Time
0.14 billion years
How to Use This Calculator
- Enter the Observed Wavelength (nm) of the spectral line measured in the spectrum of the galaxy or quasar.
- Enter the Rest Wavelength (nm) — the lab-frame wavelength of the same line; H-alpha is 656.3 nm.
- The Redshift (z) is computed automatically from (λ_obs − λ_rest) / λ_rest.
- Alternatively, enter a Recessional Velocity (km/s) to compute the separate Relativistic Redshift figure; it does not change the wavelength-based Redshift (z) above.
- 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 Wavelength | Redshift (z) | Velocity from Redshift | Distance |
|---|---|---|---|
| 328 | 1.000915 | 300,066.66 km/s | 142.86 Mpc |
| 492 | 0.333943 | 100,113.62 km/s | 142.86 Mpc |
| 984 | -0.333028 | -99,839.42 km/s | 142.86 Mpc |
| 1,641 | -0.600061 | -179,893.74 km/s | 142.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) / λ_restWorked example, using the default values
- Identify Input ParametersObserved Wavelength = 656.3, Rest Wavelength = 656.3, Recessional Velocity = 10000 = 3 input(s) provided
- Calculate RedshiftRedshift0 = 0
- Calculate Velocity from RedshiftVelocity from Redshift0 = 0
- Calculate DistanceDistance142.86 = 142.86
- Calculate Relativistic RedshiftRelativistic Redshift0.033932 = 0.033932
- Calculate DistanceDistance0.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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Cosmological Distance Calculator
Calculate luminosity distance, comoving distance, angular diameter distance, and lookback time using cosmological models.
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 & AstronomyCosmology Suite Calculator
Complete cosmology calculations. Hubble's law, cosmic distances, Big Bang timeline, dark matter/energy, CMB analysis, and black hole physics.
More in Science & Physics.