Audited ·Last updated 27 Jul 2026·4 citations·Tier 2·0 uses

Redshift Calculator

Calculate redshift z from wavelengths, plus BOTH classical (v=cz) and relativistic recession velocity — with a clear guide on which one to trust.

Redshift Calculator

The wavelength the source actually emits, in its own rest frame.
The wavelength actually measured. Greater than the emitted wavelength means redshift; smaller means blueshift.
Redshift (z)
0.15
z = (λ_obs − λ_emit)/λ_emit — dimensionless; negative values indicate blueshift.
Recession velocity (classical, km/s)
44,968.8687
Recession velocity (relativistic, km/s)
41,628.8774
Recession velocity (classical, m/s)
44,968,868.7
Recession velocity (relativistic, m/s)
41,628,877.3757
Which formula to trust here
Use the relativistic formula — classical v = cz overstates the recession velocity at this redshift.

Background.

Redshift, denoted z, measures how much a spectral line's wavelength has shifted between when light was emitted by a distant source and when it was observed here: z = (λ_observed − λ_emitted) / λ_emitted. This calculator computes z directly from those two wavelengths, then reports recession velocity two different ways — the simple classical (Doppler) approximation v = cz, and the correct relativistic Doppler formula v = c·[(1+z)² − 1]/[(1+z)² + 1] — because most competing redshift calculators only offer the classical formula, and that formula silently gives wrong, sometimes physically impossible, answers once z grows past roughly 0.1.

The honesty gap is dramatic and easy to demonstrate: for a quasar's Lyman-alpha line redshifted from 121.6 nm to 486.4 nm — a real, observationally realistic redshift of exactly z = 3 — the classical formula v = cz predicts a recession velocity of about 3.00 times the speed of light, an outright physical impossibility. The relativistic formula, applied to the identical z = 3 input, correctly returns about 0.882c, a value that respects special relativity's speed limit at every redshift, no matter how large. This calculator computes both values side by side and adds a plain-language recommendation — 'classical is fine here' or 'use the relativistic figure' — based on whether |z| has crossed the roughly 0.1 threshold past which the two formulas meaningfully diverge, so you never have to remember the threshold yourself or wonder which number is trustworthy for your specific input.

A note on scope, in the same spirit of honesty: the relativistic-Doppler formula implemented here describes a source receding directly away from an observer through flat spacetime under special relativity. That is an excellent approximation for many practical purposes and is exactly the formula astronomy references present as the 'more accurate' alternative to v = cz. It is not, however, identical to a full cosmological-redshift calculation for very distant galaxies, which properly requires general relativity's FRW (Friedmann–Robertson–Walker) spacetime metric and a specific cosmological model — the expansion of space itself, not an object's motion through pre-existing space, is what drives redshift at truly cosmological distances. Swinburne University's astronomy encyclopedia makes exactly this distinction, and this calculator's content follows it rather than blurring the two physically distinct pictures together.

Redshift shows up everywhere in astrophysics: it is how astronomers estimate how fast (and, via Hubble's law, how far away) galaxies are receding from us, how they detect exoplanets through the tiny periodic Doppler wobble a planet induces in its host star's spectrum, and how they measure orbital velocities within our own galaxy. Positive z (redshift, longer observed wavelength) means the source is receding; negative z (blueshift, shorter observed wavelength) means it is approaching — the Andromeda Galaxy, famously, is blueshifted, because it is one of the relatively few galaxies moving toward the Milky Way rather than away from it under cosmic expansion.

What is redshift calculator?

Redshift is defined purely from an observed change in wavelength: z = (λ_observed − λ_emitted) / λ_emitted, where λ_emitted is the wavelength a spectral line has in the source's own rest frame (a value physicists and chemists have measured precisely in laboratories for essentially every atomic transition) and λ_observed is the wavelength actually measured by a telescope or spectrograph here. Because z is built from a ratio of two wavelengths, it is dimensionless — a pure number, with no units — which makes it convenient to compare across observations made at completely different parts of the electromagnetic spectrum, from radio to gamma rays, as long as the same spectral line's rest wavelength is known.

Astronomers distinguish two physically different causes of redshift, and this calculator's content is careful not to conflate them. Doppler redshift arises from an object's actual motion through space relative to the observer — the same physical effect that makes a passing ambulance's siren drop in pitch as it moves away. Cosmological redshift, by contrast, arises from the expansion of space itself stretching a photon's wavelength during its long journey to us, even for a source that is not, in any meaningful sense, 'moving' through the space immediately around it. At low redshift the two effects are numerically almost indistinguishable, which is why the classical v = cz Doppler formula works fine for nearby galaxies; at high redshift they genuinely diverge, and the relativistic Doppler formula this calculator uses is the correct special-relativistic treatment of an object's motion — a substantial improvement over v = cz, but still distinct from a full general-relativistic cosmological treatment at the very largest observed redshifts.

How to use this calculator.

  1. Enter the rest-frame (emitted) wavelength of the spectral line you're measuring, in nanometers.
  2. Enter the observed wavelength actually measured.
  3. Read the redshift z — positive means the source is receding (redshifted), negative means approaching (blueshifted).
  4. Compare the classical and relativistic recession-velocity estimates, and follow the plain-language recommendation for which one to trust at your specific z.

The formula.

z = (λobs − λemit) ⁄ λemit

Redshift is computed directly from the two wavelengths: z = (λ_obs − λ_emit)/λ_emit. A positive result means the observed wavelength is longer than the rest wavelength (redshift, consistent with a receding source); a negative result means the observed wavelength is shorter (blueshift, consistent with an approaching source).

The classical (low-velocity) Doppler approximation treats redshift as directly proportional to velocity as a fraction of light speed: z ≈ v/c, which rearranges to the familiar v = cz. This is an excellent approximation when v is much smaller than c — equivalently, when |z| is small — but it is only an approximation, and it has no built-in mechanism to prevent v from exceeding c as z grows, which is exactly the failure this calculator demonstrates at z = 3.

The relativistic Doppler formula instead accounts properly for special relativity's velocity-addition rules and time dilation, giving v = c·[(1+z)² − 1]/[(1+z)² + 1]. As z grows without bound, this expression approaches c but mathematically never reaches or exceeds it — the (1+z)² term grows in both the numerator and denominator, and the ratio [(1+z)² − 1]/[(1+z)² + 1] is bounded strictly below 1 for every finite z, which is exactly the behavior a correct relativistic formula must have. Both wavelength inputs must be strictly positive — a wavelength of zero or less has no physical meaning — and that single guard is sufficient to guarantee both formulas stay well-defined and finite for every valid input, including blueshifted (negative-z) sources.

A worked example.

Example

A spectral line with a rest wavelength of 500 nm is observed at 575 nm — a redshift chosen specifically to sit just past the point where the classical and relativistic formulas start to meaningfully disagree. z = (575 − 500)/500 = 75/500 = 0.15 exactly. The classical estimate gives v = c × 0.15 ≈ 44,968.87 km/s. The relativistic estimate, using (1+z)² = 1.3225, gives v = c × (1.3225 − 1)/(1.3225 + 1) = c × 0.3225/2.3225 ≈ 41,628.88 km/s. The two estimates differ by about 7.4% at this redshift — a small but real gap that grows dramatically at higher z. Because |z| = 0.15 has crossed the calculator's 0.1 threshold, the recommendation flags the relativistic figure as the one to trust, rather than the higher classical estimate.

observed Wavelength575
emitted Wavelength500

Frequently asked questions.

Why does the classical formula v = cz break down at high redshift?
v = cz comes from the low-velocity limit of the Doppler effect, where z ≈ v/c is a good approximation precisely because v is small compared to c. As the true recession velocity grows toward a substantial fraction of light speed, that linear approximation stops tracking the actual relativistic physics, and the formula has no mechanism to enforce the universal speed limit — it will happily report v > c for any z greater than 1, which is a clear signal that the approximation, not physical reality, has broken down. The relativistic Doppler formula this calculator also computes is built to respect that speed limit at every redshift.
Does the relativistic formula on this page give a full cosmological-redshift calculation for very distant galaxies?
Not quite — it is the correct special-relativistic Doppler formula for a source receding through flat spacetime, which is a substantial and important improvement over the classical v = cz approximation, and matches what most astronomy references mean by 'the relativistic velocity' at a given z. A fully rigorous cosmological treatment at very high redshift (distant galaxies and quasars) additionally requires general relativity's expanding-spacetime (FRW) framework and a specific cosmological model with parameters like the Hubble constant and the universe's matter and dark-energy density — genuinely more machinery than a wavelength-ratio calculator alone can provide. This page states that distinction explicitly rather than implying the relativistic-Doppler output is a complete cosmological-distance calculation.
Can redshift be negative?
Yes — a negative z simply means the observed wavelength is shorter than the emitted (rest) wavelength, which is called blueshift and indicates the source is approaching the observer (or, in a cosmological context, that any expansion-driven redshift is outweighed by the object's own motion toward us). The Andromeda Galaxy is a well-known real example: unlike the vast majority of distant galaxies, which are redshifted due to cosmic expansion, Andromeda is close enough, and moving toward the Milky Way fast enough, that its spectrum is measurably blueshifted.
What's a typical redshift for a nearby star versus a distant galaxy?
A star's radial velocity within our own galaxy — the kind of motion used to detect orbiting exoplanets, for instance — typically produces redshifts on the order of z ≈ 0.0001 to 0.001 or smaller, corresponding to velocities of tens of kilometers per second, comfortably inside the regime where the classical formula is essentially exact. Distant galaxies and quasars, by contrast, can have redshifts ranging from a few hundredths for nearby galaxies up to z > 10 for some of the most distant confirmed galaxies observed, where the classical approximation is not just slightly off but qualitatively wrong (predicting velocities many times the speed of light), which is exactly why professional astronomy always uses relativistic or fully cosmological treatments at these distances.
Why do astronomers quote redshift (z) instead of just reporting velocity in km/s?
Redshift is what is actually measured directly from a spectrum — a ratio of wavelengths — so quoting z avoids baking in an assumption about which velocity formula (classical, relativistic, or full cosmological) should be used to convert it, letting different researchers apply whichever conversion is appropriate for their specific distance regime and cosmological model. Redshift is also naturally dimensionless and comparable across completely different types of observations (different spectral lines, different instruments, different wavebands from radio to gamma-ray), whereas a velocity in km/s already presumes a particular interpretation of what that redshift physically means.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon