Redshift Calculator

Calculate wavelength redshift, relativistic radial velocity, and a Hubble-law distance estimate for an astronomical source.

Spectral redshift and distance
Enter observed and laboratory wavelengths in the same unit; nanometres are used here for clarity.

About astronomical redshift

Redshift measures how much a known spectral feature is observed at a longer wavelength than its laboratory value. It is defined as z = (observed wavelength - rest wavelength) / rest wavelength, equivalently observed divided by rest minus one. A positive value is redshift, while a negative value is blueshift. Because the ratio is dimensionless, both wavelengths may use nanometres, angstroms, or another unit as long as they match. For motion along the line of sight, this calculator converts redshift to radial velocity with the special-relativistic Doppler relation. The exact expression uses beta = ((1 + z) squared - 1) / ((1 + z) squared + 1), then velocity = beta times the speed of light. At very small redshift this approaches the familiar approximation velocity = cz. The relativistic form prevents inferred speed from exceeding light speed as redshift grows. A distance estimate is then produced with Hubble's law, distance = velocity / H0. The default Hubble constant is 70 kilometres per second per megaparsec, a convenient rounded value for educational estimates. This means a galaxy one megaparsec away participates in cosmic expansion at roughly 70 kilometres per second in the local linear model. Different observational methods and cosmological analyses yield somewhat different H0 values, so the field is editable. Doppler velocity and Hubble-law distance are useful approximations, especially for nearby galaxies moving mainly with cosmic expansion. They are not a complete cosmological distance calculation. At moderate and high redshift, the relationship among redshift, lookback time, comoving distance, luminosity distance, and angular-diameter distance depends on matter density, dark energy, curvature, and the expansion history. Peculiar velocities caused by local gravity can also dominate the Hubble flow for nearby objects. Spectral identification is essential. Astronomers compare recognizable absorption or emission lines such as hydrogen alpha with calibrated rest wavelengths. Measurement uncertainty, line blending, instrument calibration, air versus vacuum wavelength conventions, and incorrect line identification all affect z. Using several lines provides a stronger result than relying on a single feature. Use this calculator for classroom work, quick checks of spectra, and intuition about redshift and recession. Do not use its linear Hubble distance as a precision result for high-redshift cosmology. Professional analysis normally fits a cosmological model and reports the reference frame, wavelength convention, uncertainty, and adopted parameters so another researcher can reproduce the calculation.

Redshift examples

Wavelength pairs use the same units and distance examples assume H0 = 70 km/s/Mpc.

Observed and rest wavelengthRedshiftInterpretation
550 nm observed, 500 nm restz = 0.1The wavelength is ten percent longer than its laboratory value.
656.3 nm observed, 656.3 nm restz = 0No measured wavelength shift gives zero radial velocity in this model.
700 nm observed, 656.3 nm restz ≈ 0.06659A redshifted hydrogen-alpha line indicates recession.

How to calculate redshift

  1. Identify a spectral line and record its observed wavelength.
  2. Enter the line's laboratory rest wavelength in the same unit.
  3. Keep the default Hubble constant or enter the value required by your source.
  4. Select Calculate redshift and review z, relativistic radial velocity, and the approximate distance.

Redshift FAQ

What does a positive redshift mean?

It means the observed wavelength is longer than the rest wavelength. In many astronomical contexts this indicates recession or cosmological expansion.

Can redshift be negative?

Yes, a shorter observed wavelength produces negative z and is called blueshift. It commonly indicates approach in a local Doppler interpretation.

Why use a relativistic velocity formula?

The simple velocity equals cz approximation becomes inaccurate as redshift increases. The relativistic Doppler relation remains physically bounded below light speed.

Is Hubble-law distance exact?

No, it is a local linear estimate that ignores detailed cosmological parameters and peculiar velocity. High-redshift distance work requires an adopted cosmological model.

Do wavelength units matter?

The two wavelengths must use the same unit, but the chosen unit cancels in the ratio. Entering one in nanometres and the other in angstroms would produce an incorrect result.