Doppler Shift and Radial Velocity: Redshift, Blueshift and Worked Calculations

Calculate redshift and radial velocity from spectral lines, compare optical, radio and relativistic conventions, and check units, uncertainty and frames.

Panchang methods and notationArticle · 11 min readहिंदी में पढ़ें ↗

Written and published by: Astrogyana

· Revised:

Editorial policy · Corrections policy

How do spectral lines give radial velocity?

Measure a spectral line's observed wavelength λobs and compare it with its rest wavelength λ₀ on the same wavelength scale. The redshift is z = (λobs−λ₀)/λ₀. For motion much slower than light, radial velocity is approximately v ≈ cz, with positive values for recession. For purely radial special-relativistic motion, use v/c = ((1+z)²−1)/((1+z)²+1).

The measured ratio and the physical interpretation are separate steps. Redshift is dimensionless; velocity has units and a reference frame. At large shifts, an optical or radio “velocity” convention need not equal the physical relative speed of a simple moving-source model.

This guide uses invented spectral lines and c = 299,792.458 km/s. It teaches calculations rather than claiming measurements of named stars. The ESA radial-velocity overview explains how stellar spectra reveal motion along the line of sight.

Redshift and blueshift describe a relative wavelength change

If λobs is greater than λ₀, then z is positive: the feature is redshifted. If λobs is smaller, z is negative and the feature is blueshifted. The label describes a shift relative to the identified rest feature; it does not require the star to look visibly red or blue to the eye.

A cool star can have a red-looking overall spectrum while approaching. Its continuum colour and the displacement of an identified spectral line are different observables. The line's reference wavelength is essential; a bright or dark feature at 500 nm alone is not a velocity measurement.

For this article, both rest and observed wavelengths are vacuum wavelengths. If a dataset uses another wavelength convention, convert consistently before taking a ratio. Matching units such as nanometres is necessary but does not by itself guarantee the same wavelength scale or calibration.

Seven line-position examples around 500 nm

Invented vacuum line: rest wavelength 500 nm
λobs (nm)Δλ (nm)zcz (km/s)Relativistic v (km/s)
499.500-0.500-0.001000-299.792458-299.942354
499.950-0.050-0.000100-29.979246-29.980745
499.995-0.005-0.000010-2.997925-2.997940
500.0000.0000.0000000.0000000.000000
500.0050.0050.0000102.9979252.997910
500.0500.0500.00010029.97924629.977747
500.5000.5000.001000299.792458299.642562

The rest wavelength 500 nm is chosen for easy arithmetic and is not assigned to a real atomic transition. In the row with λobs = 500.050 nm, Δλ = 0.050 nm and z = 0.0001. The low-speed estimate is 299,792.458 × 0.0001 = 29.9792458 km/s.

The relativistic result is slightly smaller, about 29.977747 km/s. Whether that difference matters depends on the required accuracy. “Small compared with the speed of light” is a scale comparison, not permission to ignore an error larger than the precision of the question.

The mirrored wavelength shifts at 499.950 and 500.050 nm produce equal and opposite cz values. Their exact relativistic velocities are not perfectly symmetric because equal positive and negative z are not reciprocal wavelength ratios.

Keep digits through the ratio and round the final result. Subtracting nearly equal wavelengths after rounding them too coarsely can erase the shift entirely. A displayed 500.0 nm value may be insufficient for a tens-of-kilometres-per-second calculation.

Use consistent units and distinguish speed from redshift

NASA JPL's constants page lists c = 299,792,458 m/s, equivalent to 299,792.458 km/s. Use the version whose velocity unit you intend to report. The ratio z does not change when both wavelengths are converted by the same factor.

For example, 500.000 to 500.050 nm is the same fractional shift as 5000.00 to 5000.50 Å, or 0.500000 to 0.500050 micrometres. All give z = 0.0001. Mixing 500 nm with an observed value in Å would create an enormous false shift.

Do not write “z = 30 km/s.” The redshift is 0.0001 in this example; approximately 30 km/s is its low-speed velocity interpretation. Similarly, β = v/c is dimensionless and is not itself a wavelength.

Frequency moves in the opposite direction

Wavelength and frequency change in opposite directions for the same line
λobs (nm)νobs (THz)λobs/λ₀νobs/ν₀
499.500600.1851011010.9990001.001001001
500.000599.5849160001.0000001.000000000
500.500598.9859300701.0010000.999000999

For light in vacuum, νλ = c. With a positive wavelength shift, the observed frequency decreases. If R = λobs/λ₀, then νobs/ν₀ = 1/R, so z = ν₀/νobs − 1.

It is tempting to replace wavelength with frequency in z = (observed−rest)/rest, but that would reverse the sign and use the wrong denominator for the same z. The reciprocal relation must be carried through the algebra.

At λobs = 500.5 nm, the wavelength ratio is 1.001 while the frequency ratio is approximately 0.999000999. Their product is one. This provides a useful check when a catalogue supplies frequencies but a worksheet was originally written for wavelengths.

Several lines should agree in fractional shift

The same z = 0.0001 in three invented lines
λ₀ (nm)λobs (nm)Δλ (nm)cz (km/s)
400400.04000.040029.979246
500500.05000.050029.979246
700700.07000.070029.979246

These three invented features share z = 0.0001. Their absolute wavelength shifts differ: 0.04, 0.05 and 0.07 nm. A common Doppler factor multiplies wavelengths, so equal physical motion does not require the same additive shift at every wavelength.

If correctly identified, similarly calibrated lines disagree strongly in z, investigate the identification, blending, calibration and the physical region producing the feature. Averaging unexplained mismatches is not automatically an improvement.

A line's width and its centre also convey different information. The calculation here uses a centre position. A broad feature is not evidence that the entire star has the centre velocity at every emitting location, and a width should not be substituted for Δλ in the centre-shift equation.

The radial relativistic formula and its inverse

For a single relative velocity directed along the line of sight, set β = v/c with −1 < β < 1 and positive β for recession. The wavelength ratio is R = √((1+β)/(1−β)). Squaring and rearranging gives β = (R²−1)/(R²+1).

The Astropy relativistic convention gives the equivalent relation in frequency. Converting frequency to wavelength produces the equations used here. The conditions matter: this is not a general instruction to turn every cosmological redshift into a unique local speed.

At β = 0.6, R = √(1.6/0.4) = 2 and z = 1. At β = −0.6, R = 0.5 and z = −0.5. Reversing the velocity replaces R by its reciprocal, not z by its negative.

For every positive finite R, the inverse formula remains between −1 and +1. Near zero, its leading term is β ≈ z. That limiting behaviour explains why the simpler expression works at low speed and why its validity should be checked against the accuracy required.

See where the straight-line approximation separates

Original plot comparing relativistic redshift with the straight line z equals v divided by c. Across velocities from minus 0.8c to plus 0.8c, the curves nearly meet near zero but diverge; at plus 0.6c the relativistic redshift is 1 rather than 0.6.
Original model with 321 samples on each curve. Blue uses the radial relativistic wavelength ratio; orange uses z = β. The calculation assumes pure radial motion and does not model cosmological expansion.
Nine checkpoints from the chart
β = v/cλobs/λ₀Relativistic zLinear z
-0.80.333333333-0.666666667-0.800000000
-0.60.500000000-0.500000000-0.600000000
-0.30.733799386-0.266200614-0.300000000
-0.10.904534034-0.095465966-0.100000000
01.0000000000.0000000000.000000000
0.11.1055415970.1055415970.100000000
0.31.3627702880.3627702880.300000000
0.62.0000000001.0000000000.600000000
0.83.0000000002.0000000000.800000000

The curves touch at the origin and are close for small magnitudes of β. On the receding side, the exact redshift grows more rapidly. At 0.8c it is 2, corresponding to three times the rest wavelength.

The vertical axis is redshift, not kilometres per second. A value of z = 2 therefore does not mean a physical speed of 2c in this model. Using the exact inverse returns β = 0.8.

Optical, radio and relativistic velocities are different conventions

The optical convention defines vopt/c = z. The radio convention defines vradio/c = (ν₀−νobs)/ν₀ = z/(1+z). The relativistic convention uses the inverse ratio above.

One measured z, three velocity conventions; values in units of c
zvopt/cvradio/cvrel/c
-0.5-0.500000000-1.000000000-0.600000000
-0.1-0.100000000-0.111111111-0.104972376
00.0000000000.0000000000.000000000
0.0010.0010000000.0009990010.000999500
0.10.1000000000.0909090910.095022624
11.0000000000.5000000000.600000000
22.0000000000.6666666670.800000000

At small shifts the three are close, but at z = 1 they give 1, 0.5 and 0.6 in units of c. These are three ways to label the same measured spectral ratio. Calling all three the exact physical speed would be inconsistent.

The optical convention can produce a value above c, and the radio convention can give a sufficiently negative value below −c. That does not demonstrate superluminal local motion; it shows why a convention-defined velocity must retain its label. A catalogue's column name and reference frame should be read together.

Estimate the effect of a small wavelength uncertainty

With an exact rest wavelength and a small independent line-centre uncertainty σλ, the low-speed expression gives σv ≈ cσλ/λ₀. The next table isolates that one contribution for the invented 500 nm line.

Small line-centre uncertainty at 500 nm, considered alone
σλ (nm)σv ≈ cσλ/λ₀ (km/s)
0.00010.059958492
0.0010.599584916
0.0052.997924580
0.015.995849160

For σλ = 0.005 nm, the velocity uncertainty from that term is about 2.998 km/s. The central shift of 0.050 nm would then be ten times that line-centre uncertainty. This ratio is an arithmetic illustration, not a claim about a real instrument's detection significance.

Real uncertainty also depends on the rest reference, calibration and correlated effects. If λ₀ is uncertain, its derivative in z is −λobs/λ₀², so its uncertainty must also be propagated. A table of calculator digits does not establish equivalent measurement precision.

Instrumental or observer corrections should follow the data product's documented convention. A topocentric measurement and a barycentric value can refer to different observers; copying one into a column labelled with the other does not perform a correction.

Keep radial motion, total motion and cosmic expansion separate

A radial velocity measures the line-of-sight component in the stated frame. It does not require a visible change in angular position. The proper-motion guide explains the transverse component and why distance is needed to turn angular drift into physical speed.

For low-speed stellar kinematics, transverse and radial components can be combined in one consistent frame. That does not make the purely radial relativistic formula a universal description of arbitrary three-dimensional relativistic motion.

NASA's spectroscopy guide distinguishes Doppler motion from cosmological redshift caused by the expansion of space. Inferring distance or a cosmological recession rate requires the appropriate cosmological model, not only the algebra for a locally moving source.

A reliable worksheet records the line identification, wavelength convention, rest and observed values, units, sign convention, velocity definition, reference frame and uncertainty. Those details make the answer reproducible and explain why two correct catalogues may display different velocity numbers for the same spectral shift.

Frequently asked questions

What is the basic redshift formula?

Use z = (observed wavelength − rest wavelength)/rest wavelength, with both wavelengths on the same scale and in matching units. Redshift is dimensionless.

When can radial velocity be approximated by cz?

For a Doppler interpretation at speeds much smaller than light, provided the approximation error is acceptable for the required accuracy. The optical velocity convention also defines cz as a label even when it is not the exact physical speed.

Why does redshift mean lower frequency?

For light in vacuum, frequency and wavelength are reciprocally related. A larger wavelength ratio means a smaller frequency ratio; use z = rest frequency/observed frequency − 1.

Are equal positive and negative redshifts opposite velocities?

Not exactly in the relativistic formula. Opposite radial velocities have reciprocal wavelength ratios. For example, +0.6c gives z = 1, while −0.6c gives z = −0.5.

Why do radio and optical velocities disagree?

They use different definitions for converting the same spectral ratio into a velocity label. They agree closely at small shifts but diverge at larger shifts, so retain the convention and frame.

Can this formula turn a galaxy's cosmological redshift directly into distance?

No. Cosmological redshift involves expansion of space, and distance inference needs a cosmological model. The radial special-relativistic formula here describes a different, specified physical situation.

Sources and references

Stay connected with Astrogyana on Google

Choose Astrogyana as a preferred source in Google Search.

Add as a Preferred Source on Google