Doppler Shift & Radial Velocity Calculator

Measure the radial velocity of stars and galaxies from spectral line shifts using classical and relativistic Doppler formulas.

🌈 Doppler Shift & Radial Velocity Calculator
Spectral Line Preset
Rest Wavelength λrest
nm
Observed Wavelength λobs700.00 nm
nm
50 nm2000 nm
Spectral Line Preset
Rest Wavelength λrest
nm
Radial Velocity vr1,000 km/s
km/s
-100,000 km/s280,000 km/s
Redshift z
Wavelength Shift Δλ
Classical Radial Velocity
Relativistic Radial Velocity
Speed as % of c
Direction
Observed Wavelength λobs
Redshift z
Wavelength Shift Δλ
Speed as % of c
Direction

🌈 What is the Doppler Shift in Astronomy?

Astronomical Doppler shift is the change in the observed wavelength of light caused by the relative motion between a source and an observer. When a star or galaxy moves away from Earth, its light is stretched to longer (redder) wavelengths, producing a redshift. When it moves toward Earth, light is compressed to shorter (bluer) wavelengths, producing a blueshift. Astronomers quantify this shift with the dimensionless redshift parameter z, defined as z = (lambda_obs minus lambda_rest) divided by lambda_rest, where lambda_rest is the known laboratory wavelength and lambda_obs is the measured wavelength in the spectrum.

Radial velocity spectroscopy is one of the oldest and most productive techniques in observational astronomy. By comparing the observed positions of spectral lines to their laboratory rest values, astronomers can measure the line-of-sight (radial) velocity of virtually any luminous object. This technique has been used to discover thousands of exoplanets via the stellar wobble they induce, to map the rotation curves of spiral galaxies that provided the first evidence for dark matter, to confirm the expansion of the universe, and to detect supermassive black holes in galactic nuclei through extreme velocity dispersions in their surrounding gas.

The key distinction between classical and relativistic Doppler is important for high-redshift objects. The classical approximation v = z times c gives the correct answer to within 0.5% for z less than 0.1, but breaks down badly at high redshifts: at z = 2, it predicts a velocity of twice the speed of light, which is physically impossible. The relativistic formula v = c times ((1+z)^2 minus 1) divided by ((1+z)^2 plus 1) is always valid and should be used for any source with z > 0.1. This calculator computes both values side by side so users can see the divergence directly.

Spectral lines commonly used in radial velocity work include H-alpha (656.28 nm, the strongest hydrogen line in the optical), H-beta (486.13 nm), the calcium H and K doublet (396.85 and 393.37 nm), which trace cool stellar atmospheres, and Lyman-alpha (121.567 nm), which dominates quasar spectra at z > 1.7 where it shifts into the visible band. This calculator includes all eight of these standard lines as presets, with a custom input for any other wavelength.

📐 Formulas

z  =  (λobs − λrest) ÷ λrest  =  Δλ ÷ λrest
z = redshift (dimensionless; positive = receding, negative = approaching)
λobs = observed wavelength (nm, measured in the spectrum)
λrest = rest wavelength (nm, from laboratory or NIST atomic data)
Δλ = wavelength shift = λobs − λrest (nm)
vclassical  =  z × c     (valid for z < 0.1)
vrel  =  c × [(1+z)2 − 1] ÷ [(1+z)2 + 1]     (always valid)
c = speed of light = 299,792.458 km/s
vclassical = radial velocity from non-relativistic Doppler formula
vrel = radial velocity from special-relativistic Doppler formula
Inverse (Velocity → Wavelength):
λobs  =  λrest × √[(1+β) ÷ (1−β)]
β = vr / c (dimensionless velocity ratio; positive = receding)
Example: H-alpha at 656.28 nm, λobs = 700.0 nm → z = 0.066618, vrel = 19,307.70 km/s

📖 How to Use This Calculator

Steps

1
Choose a calculation mode Select Wavelength to Velocity to compute redshift and speed from two wavelengths, or Velocity to Wavelength to predict the observed wavelength from a known radial velocity.
2
Pick a spectral line or enter a custom rest wavelength Choose one of the 8 preset lines (H-alpha, H-beta, Lyman-alpha, Ca K, Ca H, Na D, O III, Mg II) or select Custom and type any rest wavelength in nm.
3
Enter the observed wavelength or radial velocity In Wavelength to Velocity mode, type the observed wavelength in nm or drag the slider. In Velocity to Wavelength mode, enter the radial velocity in km/s, using a negative value for an approaching source.
4
Read the results The calculator displays redshift z, wavelength shift delta-lambda, classical radial velocity, relativistic radial velocity, speed as a percentage of c, and the shift direction.

💡 Example Calculations

Example 1 — H-alpha Line from a Receding Galaxy Cluster (z = 0.067)

H-alpha rest: 656.28 nm, observed at 700.00 nm in a galaxy cluster spectrum

1
Compute the wavelength shift: Δλ = 700.00 − 656.28 = 43.72 nm (redshift, wavelength got longer).
2
Compute redshift: z = 43.72 / 656.28 = 0.066618.
3
Classical velocity: v = 0.066618 × 299,792.458 = 19,971.55 km/s.
4
Relativistic velocity: (1+z)2 = 1.137663; vrel = c × 0.137663 / 2.137663 = 19,307.70 km/s. The two values differ by about 3% at this redshift.
Redshift z = 0.066618  |  Radial Velocity = 19,307.70 km/s (6.4404% of c)  |  Redshifted (receding)
Try this example →

Example 2 — Lyman-alpha Line from a Quasar at z = 2.0

Lyman-alpha rest: 121.567 nm, observed at 364.701 nm in a high-redshift quasar spectrum

1
Wavelength shift: Δλ = 364.701 − 121.567 = 243.134 nm. The UV Lyman-alpha line has shifted into the near-UV optical window.
2
Redshift: z = 243.134 / 121.567 = 2.000000 (a clean z = 2 quasar).
3
Classical velocity would be z × c = 2 × 299,792.458 = 599,584.92 km/s, which exceeds the speed of light. This shows why the relativistic formula is necessary at high z.
4
Relativistic velocity: (1+2)2 = 9; vrel = c × (9−1)/(9+1) = 0.8c = 239,833.97 km/s. The quasar is receding at exactly 80% of the speed of light.
Redshift z = 2.000000  |  Relativistic Velocity = 239,833.97 km/s (80.0000% of c)  |  Redshifted (receding)
Try this example →

Example 3 — Predicting Observed H-alpha at 10,000 km/s Recession

H-alpha rest: 656.28 nm, source receding at 10,000 km/s (Velocity to Wavelength mode)

1
Compute β = v/c = 10,000 / 299,792.458 = 0.033356.
2
Apply relativistic formula: λobs = 656.28 × √[(1 + 0.033356) / (1 − 0.033356)] = 656.28 × √(1.033356 / 0.966644) = 656.28 × 1.033948 = 678.5487 nm.
3
Wavelength shift: Δλ = 678.5487 − 656.28 = 22.2687 nm. Redshift z = 0.033932.
Observed λobs = 678.5487 nm  |  z = 0.033932  |  Δλ = 22.2687 nm (3.3356% of c)
Try this example →

❓ Frequently Asked Questions

What is the Doppler shift formula used in astronomy?+
The fundamental formula is z = (lambda_obs minus lambda_rest) / lambda_rest, where z is the redshift, lambda_obs is the observed wavelength, and lambda_rest is the known laboratory rest wavelength. For nearby sources (z less than 0.1), the radial velocity is approximately v = z times c. For any source, the relativistic formula v = c times ((1+z)^2 minus 1) / ((1+z)^2 plus 1) must be used to avoid unphysical velocities exceeding the speed of light.
What does a positive or negative radial velocity mean?+
A positive radial velocity means the source is moving away from the observer (recession), resulting in a redshift where lambda_obs is greater than lambda_rest. A negative radial velocity means the source is approaching, resulting in a blueshift where lambda_obs is less than lambda_rest. The Andromeda Galaxy has a radial velocity of about -300 km/s, confirming it is on an approach trajectory toward the Milky Way. The sign convention follows astronomy standards where recession is positive.
Why does the classical Doppler formula break down at high redshift?+
The classical formula v = zc is derived from non-relativistic physics and assumes velocities much smaller than c. At z = 1, it predicts v = c; at z = 2, it predicts v = 2c. These values are physically impossible because no massive object can travel at or above the speed of light. The special-relativistic formula correctly accounts for time dilation and length contraction and gives v less than c for all finite z. For z = 2 the relativistic result is 0.8c = 239,834 km/s, compared to the classical 2c = 599,585 km/s.
How accurate is the classical Doppler formula for nearby galaxies?+
The classical formula v = zc is accurate to within 0.5% for z less than 0.1, corresponding to velocities below about 30,000 km/s. For galaxies in the nearby universe (z less than 0.01, such as those in the Virgo or Coma clusters), the error is less than 0.01%, which is negligible for most purposes. The relativistic formula should always be used for quasars, distant galaxies (z greater than 0.1), and any precision measurement where sub-percent accuracy matters.
What spectral line is best for measuring galaxy recession velocity?+
H-alpha (656.28 nm) is the preferred line for nearby emission-line galaxies and star-forming regions because it is strong and falls in the red optical window where CCDs are efficient. For absorption-line (elliptical) galaxies, the calcium H and K doublet (Ca H at 396.85 nm and Ca K at 393.37 nm) is strongest. For distant quasars and Lyman-break galaxies at z greater than 1.7, Lyman-alpha (121.567 nm) shifts into the optical and becomes the dominant identification line used in large surveys such as SDSS and DESI.
Can recession velocity exceed the speed of light?+
In cosmology, yes. The special-relativistic radial velocity in the source rest frame is always less than c, but the cosmological recession velocity defined by the Hubble flow (v = H_0 times d) can exceed c for objects beyond the Hubble sphere at d = c/H_0, approximately 4,200 Mpc. Galaxies at z greater than 1.7 are currently receding faster than c due to the expansion of space itself, not motion through space. This does not violate special relativity because the effect is global (metric expansion) rather than local motion.
How is Doppler shift used to detect exoplanets?+
The radial velocity method detects exoplanets by measuring the tiny periodic Doppler wobble a planet induces in its host star as both orbit their common center of mass. The stellar spectrum shifts back and forth with a period equal to the planet's orbital period. Jupiter-mass planets cause stellar wobbles of 12 to 50 m/s; Earth-mass planets cause wobbles of less than 0.1 m/s. Modern spectrographs such as HARPS and ESPRESSO achieve precision below 1 m/s, enabling detection of super-Earths. Over 4,000 exoplanets have been confirmed using this technique.
What is the highest confirmed spectroscopic redshift?+
As of mid-2024, the highest confirmed spectroscopic redshift belongs to JADES-GS-z14-0 at z = 14.32, observed by the James Webb Space Telescope. At this redshift, light left the galaxy only about 290 million years after the Big Bang. The Lyman-alpha line (121.567 nm rest frame) is observed at roughly 1,863 nm in the mid-infrared. The relativistic recession velocity at z = 14.32 is approximately 97.7% of the speed of light. JWST has opened up the epoch of reionization to routine spectroscopic study.
How is Doppler shift different from cosmological redshift?+
Kinematic Doppler shift arises from the actual motion of a source through space relative to the observer. Cosmological redshift arises from the expansion of space itself between the source and observer while the photon is in transit. For nearby galaxies (z less than 0.1), the distinction is negligible and both can be treated as Doppler shifts. At higher redshifts, cosmological redshift is the dominant effect and the photon's wavelength is stretched by a factor of (1+z) due to metric expansion, not local velocity. This calculator computes kinematic Doppler velocities, appropriate for stars, spectroscopic binaries, and nearby galaxies.
What is the Velocity to Wavelength mode used for?+
The Velocity to Wavelength mode is the inverse calculation: given a known radial velocity (from Hubble's Law, a previous measurement, or a simulation), it predicts where a specific spectral line will appear in the observed spectrum. This is useful for planning telescope observations (which wavelength to tune the spectrograph to), confirming redshift estimates from photometric surveys, and verifying that candidate spectral identifications are consistent with an assumed recession velocity. Enter a negative velocity to compute a blueshift for an approaching source.

What is the Doppler shift in astronomy?

The Doppler shift is the change in wavelength of light emitted by a source that is moving toward or away from the observer. In astronomy, it is used to measure the radial (line-of-sight) velocity of stars, galaxies, and gas clouds from the shift in their spectral lines. A shift toward longer wavelengths is called a redshift (source receding); a shift toward shorter wavelengths is a blueshift (source approaching). The fractional shift is defined as z = (lambda_obs - lambda_rest) / lambda_rest.

What is redshift z and how is it measured?

Redshift z is the dimensionless ratio of the wavelength shift to the rest wavelength: z = delta-lambda / lambda_rest. For a source with z = 0.066, the observed wavelength is 6.6% longer than the rest wavelength. Astronomers measure z by identifying known spectral lines (such as H-alpha at 656.28 nm) in a spectrum and comparing their observed positions to laboratory values. For cosmological sources, z also encodes the expansion of the universe, not only a Doppler velocity.

What is the difference between classical and relativistic Doppler formulas?

The classical Doppler formula v = z x c is valid only when the velocity is much less than the speed of light. For z < 0.1 it is accurate to better than 0.5%. The relativistic formula v_rel = c x ((1+z)^2 - 1) / ((1+z)^2 + 1) is exact at any speed and must be used for high-redshift objects. For a quasar at z = 2, the classical formula gives 599,585 km/s (twice c), which is physically impossible. The relativistic result is 239,834 km/s, or 80% of c, which is the correct recession velocity in the source rest frame.

What is radial velocity and how is it used in astronomy?

Radial velocity is the component of a source's velocity directed toward or away from the observer, measured in km/s. It is derived from the Doppler shift of spectral lines and is the primary tool for detecting stellar companions (spectroscopic binaries), measuring the expansion of the universe, searching for exoplanets (the radial velocity method), and mapping the rotation of galaxies. Modern spectrographs achieve radial velocity precision below 1 m/s, enabling detection of Earth-mass exoplanets.

Which spectral lines are most commonly used to measure radial velocity?

H-alpha (656.28 nm) is the strongest hydrogen emission line and the most widely used line in optical spectroscopy of nearby stars and galaxies. H-beta (486.13 nm) and the Ca H and K lines (396.85 and 393.37 nm) are used for stellar classification and galactic studies. Lyman-alpha (121.567 nm) dominates high-redshift quasar spectra, where it shifts into the optical window for z > 1.7. The Na D doublet (589 nm) traces cool gas and interstellar sodium absorption.

Can the recession velocity of a galaxy exceed the speed of light?

Yes, in cosmology it can. The classical Doppler formula v = z x c can give values larger than c for z > 1, but this is an artifact of applying a non-relativistic formula outside its range of validity. The special-relativistic radial velocity in the source rest frame is always less than c. However, in general relativity, the cosmological recession velocity at large distances can genuinely exceed c because space itself is expanding. Galaxies at z > 1.7 are receding faster than c due to cosmic expansion, not local motion through space.

What is the blueshift of the Andromeda Galaxy?

The Andromeda Galaxy (M31) shows a radial velocity of approximately -300 km/s, meaning it is approaching the Milky Way at about 300 km/s. This corresponds to a blueshift of z = -0.001, or a shift of -0.66 nm in the H-alpha line (from 656.28 nm to about 655.62 nm). The minus sign indicates approach rather than recession. Despite this approach velocity, the two galaxies are expected to merge in roughly 4.5 billion years due to the combination of radial and transverse motions.

What is the highest redshift galaxy ever observed?

As of 2024, the highest confirmed spectroscopic redshift belongs to JADES-GS-z14-0 at z = 14.32, observed by the James Webb Space Telescope. At this redshift, light we see today left the galaxy only about 290 million years after the Big Bang. The Lyman-alpha line (121.567 nm rest frame) appears at roughly 1,864 nm in the infrared, well beyond the optical window. The relativistic recession velocity at z = 14.32 is approximately 97.7% of c.

How is the Doppler shift used to detect exoplanets?

The radial velocity method detects exoplanets by measuring the tiny Doppler wobble a planet induces in its host star as both orbit their common center of mass. As the star moves toward us, its spectral lines blueshift slightly; as it moves away, they redshift. The amplitude of this wobble is proportional to the planet mass and inversely proportional to the orbital period. Jupiter-mass planets cause wobbles of about 12 m/s in solar-type stars; Earth-mass planets cause wobbles of less than 0.1 m/s, at the limit of current instruments.

What is the difference between redshift and blueshift?

A redshift (positive z, positive delta-lambda) means the observed wavelength is longer than the rest wavelength, indicating the source is receding. A blueshift (negative z, negative delta-lambda) means the observed wavelength is shorter, indicating the source is approaching. The terms come from the direction of the shift on the visible spectrum: red light has longer wavelengths, blue light shorter. In practice, redshifts in extragalactic astronomy are overwhelmingly more common because the universe is expanding and most distant galaxies are receding.