Redshift Calculator

Redshift (z)0.1001
Recession velocity (relativistic)28,516 km/s
Recession velocity (z x c approx.)30,011 km/s
How this was calculated
  1. Redshift is the fractional stretch of light: z = (observed - rest) / rest = (722.0 - 656.3) / 656.3 = 0.1001.
  2. The simple Doppler estimate v = z x c gives 30,011 km/s — serviceable at small z, but it overstates the speed once z grows past about 0.1.
  3. The relativistic Doppler formula gives beta = ((1 + z)^2 - 1) / ((1 + z)^2 + 1) = 0.0951, so v = 28,516 km/s.
  4. For galaxies, most of the redshift is not motion through space at all but the expansion of space itself — converting z to a distance needs a cosmological model (the Hubble-law page works the nearby-universe version).
  5. Negative z is a blueshift: the source approaches. Only a handful of nearby galaxies, Andromeda among them, show one.

A redshift calculator takes the observed wavelength and rest wavelength of a spectral line and returns redshift z, defined as (observed wavelength - rest wavelength) / rest wavelength — the fractional amount by which light has been stretched on its way to us. The same z that gives recession also stretches time (a supernova at z = 1 fades twice as slowly) and dims surface brightness, making redshift astronomy's master key. Famous lines carry the measurements: hydrogen-alpha at 656.3 nm in the visible and Lyman-alpha at 121.6 nm in the ultraviolet, stretched into the visible and infrared for distant galaxies. A negative z is a blueshift — approach rather than recession — as with Andromeda, falling toward the Milky Way, which shows z of about -0.001.

The naive velocity v = zc is a small-z approximation, but the special-relativistic Doppler formula, beta = ((1+z)² - 1) / ((1+z)² + 1), stays honest at any z — at z = 3 it gives 0.88c where the naive formula claims 3c. For galaxies, most redshift is cosmological — space itself expanded while the light travelled — so converting z to a distance needs a cosmological model, not just a velocity. This page shows the formula, step-by-step workings, worked examples, and sources.

Worked examples

H-alpha from a mid-distance galaxy

Primary result: 0.1001 — z = 0.1001 — the relativistic recession velocity is 28,515 km/s, not the naive 30,011. (722 · 656.3)

Redshift (z)0.1001
Recession velocity (relativistic)28,516 km/s
Recession velocity (z x c approx.)30,011 km/s

Lyman-alpha at z = 3

Primary result: 3.0000 — Lyman-alpha stretched fourfold: z = 3.0000 and 88% of light speed on the relativistic formula. (486.4 · 121.6)

Redshift (z)3.0000
Recession velocity (relativistic)264,523 km/s
Recession velocity (z x c approx.)899,377 km/s

A nearby, gentle shift

Primary result: 0.0102 — z = 0.0102 — nearby-universe territory where z x c is still a fair estimate. (595 · 589)

Redshift (z)0.0102
Recession velocity (relativistic)3,038 km/s
Recession velocity (z x c approx.)3,054 km/s

How redshift is calculated

Redshift is defined as z = (observed wavelength - rest wavelength) / rest wavelength: the fractional amount by which light has been stretched on its way to us. A redshift calculator takes that definition and applies it to real spectral lines, letting astronomers convert a measured wavelength back into a velocity or distance. The catch is that "velocity" means different things depending on how far away the object sits.

Start close to home. Andromeda, falling toward the Milky Way, shows z of about -0.001. Negative z is a blueshift — approach rather than recession. The naive velocity v = zc gives roughly -300 km/s, and the special-relativistic Doppler formula, beta = ((1+z)² - 1) / ((1+z)² + 1), gives essentially the same answer. At such small z the simple approximation and the relativistic result agree, so no correction is needed for nearby galaxies.

Move out to a moderately distant galaxy and the gap starts to open. Hydrogen-alpha sits at 656.3 nm in the visible. At z = 0.1 that line is observed at about 722 nm, still in the visible but pushed toward the red end. The naive formula gives v = 0.1c, or 30,000 km/s. The relativistic formula gives roughly 0.0995c — close, but already slightly below the naive value. For galaxies, most redshift is cosmological — space itself expanded while the light travelled — so converting z to a distance needs a cosmological model, not just a velocity.

Push to z = 3 and the naive formula breaks completely. Lyman-alpha sits at 121.6 nm in the ultraviolet, stretched into the visible and infrared for distant galaxies. At z = 3 it appears at about 486 nm, squarely in the blue-green visible band. The naive velocity v = zc claims 3c — three times the speed of light, which is impossible. The special-relativistic Doppler formula stays honest at any z — at z = 3 it gives 0.88c where the naive formula claims 3c. Even that 0.88c is a kinematic shorthand; the real story is that the universe expanded by a factor of four while the light was in transit.

  • z = (observed wavelength - rest wavelength) / rest wavelength
  • Naive velocity: v = zc — small-z approximation only
  • Relativistic velocity: beta = ((1+z)² - 1) / ((1+z)² + 1) — valid at any z
  • Andromeda (z ≈ -0.001): naive and relativistic agree at about -300 km/s
  • H-alpha at 656.3 nm, z = 0.1: naive gives 0.1c, relativistic gives 0.0995c
  • Lyman-alpha at 121.6 nm, z = 3: naive gives 3c (impossible), relativistic gives 0.88c
Redshift is astronomy's master key: the same z that gives recession also stretches time (a supernova at z = 1 fades twice as slowly) and dims surface brightness.

Three kinds of redshift

A redshift calculator works with one basic measurement. Redshift z is defined as (observed wavelength - rest wavelength) / rest wavelength: the fractional amount by which light has been stretched on its way to us. That single number can come from three physically different situations, and astronomers have to determine which one they are looking at before they can interpret it.

The first kind is Doppler redshift, caused by motion through space. The naive velocity v = zc is a small-z approximation. The special-relativistic Doppler formula, beta = ((1+z)^2 - 1) / ((1+z)^2 + 1), stays honest at any z — at z = 3 it gives 0.88c where the naive formula claims 3c. Negative z is a blueshift — approach rather than recession. Andromeda, falling toward the Milky Way, shows z of about -0.001. The second kind is cosmological redshift. For galaxies, most redshift is cosmological — space itself expanded while the light travelled — so converting z to a distance needs a cosmological model, not just a velocity. The third kind is gravitational redshift, produced when light climbs out of a strong gravitational field rather than moving through expanding space or traveling at high speed.

Astronomers tell the three kinds apart using context and spectral clues. Famous lines carry the measurements: hydrogen-alpha at 656.3 nm in the visible, and Lyman-alpha at 121.6 nm in the ultraviolet, stretched into the visible and infrared for distant galaxies. A single line gives you z, but the pattern of many lines confirms which atomic transitions are present, ruling out simple Doppler shifts from local motion when the full spectrum matches a cosmological source. Gravitational redshift is identified mainly in compact objects like white dwarfs and neutron stars, where the field strength is high enough to produce a measurable shift on its own.

Redshift is astronomy's master key: the same z that gives recession also stretches time (a supernova at z = 1 fades twice as slowly) and dims surface brightness. Because these effects all scale with z in predictable ways, a redshift calculator can cross-check whether a measured value is consistent with cosmological expansion, local Doppler motion, or a gravitational origin. Matching the observed dimming and time dilation to the predicted values helps astronomers separate a distant cosmological source from a nearby object moving away at high speed.

From redshift to distance

Redshift z = (observed wavelength - rest wavelength) / rest wavelength: the fractional amount by which light has been stretched on its way to us. That stretch is a direct, model-free measurement — a spectral line we recognize has simply moved from where it used to be to where we see it now. Famous lines carry the measurements: hydrogen-alpha at 656.3 nm in the visible, and Lyman-alpha at 121.6 nm in the ultraviolet, stretched into the visible and infrared for distant galaxies. But z itself is not a distance, and it is not even a velocity. It is a stretch factor, and turning it into something familiar requires extra assumptions.

The naive velocity v = zc is a small-z approximation. It works well enough for nearby galaxies but breaks down quickly. The special-relativistic Doppler formula, beta = ((1+z)² - 1) / ((1+z)² + 1), stays honest at any z — at z = 3 it gives 0.88c where the naive formula claims 3c. So even the velocity you assign to a redshift depends on which formula you choose, and for large z the choice matters enormously. Negative z is a blueshift — approach rather than recession. Andromeda, falling toward the Milky Way, shows z of about -0.001. A redshift calculator that simply multiplies z by c is fine in the neighborhood of our Local Group but misleading beyond it.

For galaxies, most redshift is cosmological — space itself expanded while the light travelled — so converting z to a distance needs a cosmological model, not just a velocity. Hubble's law, v = H₀ × d, connects recession velocity to distance, and it holds well in the nearby universe where z is small and the naive v = zc is acceptable. Pair that with Hubble's law and you get a distance that is trustworthy for modest redshifts. But as z grows, the relationship between stretch and distance becomes model-dependent: you need assumptions about the Hubble constant, the density of matter, the density of dark energy, and how those have evolved over cosmic time. Two reasonable models can turn the same z into noticeably different distances.

This is why redshift is astronomy's master key: the same z that gives recession also stretches time (a supernova at z = 1 fades twice as slowly) and dims surface brightness. It tells you more than how far away something is — it tells you how much the universe has changed while that light was in transit. Any redshift calculator that reports a single distance for a high-z object is quietly choosing a cosmological model on your behalf, and the honest answer is a range that depends on parameters astronomers still work to refine.

Reading a spectrum

Every chemical element leaves a telltale signature in starlight. When electrons jump between energy levels in an atom, they absorb or emit light at specific, unchanging wavelengths. Hydrogen, helium, sodium, and the rest each produce a unique pattern of bright and dark lines — a fingerprint fixed by the laws of quantum physics. Because those fingerprints are the same in a laboratory on Earth as they are in a distant galaxy, astronomers know the rest wavelength of each line with extraordinary precision. That known rest wavelength is the anchor a redshift calculator needs.

A single shifted line is suggestive, but a whole pattern shifting together is proof. If hydrogen-alpha sits at 656.3 nm in the visible spectrum at rest, and every neighboring line in the hydrogen series has moved by the same fractional amount, the measurement is secure. The same logic holds for Lyman-alpha at 121.6 nm in the ultraviolet, which distant galaxies stretch into the visible and infrared. When the entire family of lines moves in lockstep, random effects such as instrument error or a single misidentified feature cannot explain the pattern. The consistent shift confirms that the light has been stretched on its journey to us.

The redshift z is simply the fractional amount of that stretch: z equals the observed wavelength minus the rest wavelength, divided by the rest wavelength. Because line patterns act as reliable fingerprints, the rest wavelength is never a guess — it is read directly from decades of laboratory work. A positive z means the light has been stretched toward the red; a negative z is a blueshift, meaning the source is approaching rather than receding. Andromeda, for instance, is falling toward the Milky Way and shows a z of about -0.001.

For galaxies, most of what a redshift calculator measures is cosmological — space itself expanded while the light traveled — so converting z to a distance requires a cosmological model, not just a velocity. The naive velocity v = zc is only a small-z approximation. The special-relativistic Doppler formula, beta = ((1+z)² - 1) / ((1+z)² + 1), stays honest at any z: at z = 3 it gives 0.88c, where the naive formula would absurdly claim 3c. Redshift is astronomy's master key, and the same z that gives recession also stretches time — a supernova at z = 1 fades twice as slowly — and dims surface brightness.

FAQs

What is redshift?

Redshift is the fractional stretching of light from a distant source. The formula is z = (observed - emitted) / emitted wavelength. A value of z = 1 means wavelengths doubled. It quantifies how much light has stretched as space expanded between the source and the observer.

How do I calculate redshift?

Subtract the rest wavelength from the observed wavelength, then divide by the rest wavelength. For example, (721.9 - 656.3) / 656.3 = 0.1001. Here, 656.3 is the rest wavelength, 721.9 is what you observe, and 0.1001 is the redshift value.

How fast is a galaxy at z = 0.1 receding?

The relativistic formula gives about 28,500 km/s for a galaxy at z = 0.1. The simple z x c estimate gives 30,000 km/s and already overstates it. At this redshift the difference is modest, but it grows as redshift increases and velocities approach the speed of light.

Can redshift exceed 1?

Yes. Distant galaxies are measured past z = 10. A redshift above 1 means wavelengths stretched more than tenfold, not motion faster than light. Redshift measures the total stretching factor of light, so values above 1 are normal for very distant objects in cosmology.

What is a blueshift?

A blueshift is a negative redshift. It occurs when wavelengths are compressed by approach, as with the Andromeda galaxy moving toward us. Instead of stretching, the light shifts toward shorter, bluer wavelengths because the source and observer are getting closer together.

Is redshift the same as distance?

No. Redshift is measured directly from the observed shift in spectral lines. Distance is inferred through Hubble's law nearby, and through a cosmological model far away. Redshift tells you how much light stretched; converting that to a distance requires additional assumptions about the universe's expansion history.

Sources

Related calculators

Hubble's Law Calculator
Recession velocity from distance, or distance from velocity, with your choice of Hubble constant.
Doppler Effect Calculator
Two Dopplers in one: the relativistic redshift of light from a moving source (with the classical value beside it), and the everyday pitch shift of sound from a passing siren.
Photon Energy Calculator
Energy of a single photon from its wavelength or frequency — in electron-volts and joules, using the exact SI values of Planck's constant and the speed of light.
Schwarzschild Radius Calculator
The radius a mass would have to be squeezed inside to become a black hole — for kilograms, Suns, Earths or Jupiters.