Cosmological Redshift Calculator

Compute cosmological redshift from spectral line shifts, or enter z to find scale factor, recession velocity, and CMB temperature at that cosmic epoch.

🌠 Cosmological Redshift Calculator
Known spectral line
Rest wavelength (λem)
nm
Observed wavelength (λobs)
nm
Cosmological redshiftz = 1.0000
z
z = 0z = 10
Redshift z
Scale Factor a
Recession Velocity
Wavelength Stretch
Scale Factor a
Recession Velocity
CMB Temp at this Epoch
Wavelength Stretch

🌠 What is Cosmological Redshift?

Cosmological redshift is the systematic increase in the wavelength of light caused by the expansion of the universe. As a photon travels from a distant galaxy to Earth, the space it traverses expands, stretching the photon's wavelength in direct proportion to the growth of the scale factor. If the universe has expanded by a factor (1+z) since the photon was emitted, every wavelength in the galaxy's spectrum arrives (1+z) times longer than when it left. This redshift z is the most fundamental observable in observational cosmology and serves as a proxy for distance, lookback time, and the state of the universe at the time of emission.

Cosmological redshift is distinct from Doppler redshift, which is caused by an object's motion through space. In an expanding universe, galaxies are not moving through space like rockets; rather, space itself is stretching between them. For nearby galaxies (within the Local Group), peculiar velocities through space dominate and can even produce a blueshift, as seen in the Andromeda galaxy approaching at 110 km/s. For galaxies beyond about 10 Mpc, the cosmological recession dominates over typical peculiar velocities of a few hundred km/s.

The quantitative measure is the redshift parameter z = (lambda_obs - lambda_em) / lambda_em, where lambda_em is the wavelength emitted in the galaxy's rest frame (the laboratory wavelength of a known spectral line such as H-alpha at 656.28 nm) and lambda_obs is the wavelength measured on Earth. The scale factor a = 1/(1+z) gives the relative size of the universe at the time of emission compared to today. At z = 1 the universe was half its current size; at z = 3, one-quarter; at the epoch of CMB emission (z approximately 1089), about 0.092 percent of today's size.

The CMB temperature at any redshift scales as T = T_0 x (1+z), where T_0 = 2.725 K today. At the surface of last scattering (z approximately 1089), T was about 2970 K, consistent with hydrogen recombination at approximately 3000 K. The most distant galaxy spectroscopically confirmed by JWST (JADES-GS-z14-0) lies at z = 14.32, when the universe was only 290 million years old. This calculator handles both directions: converting a spectral line shift to z and all derived cosmological quantities, or deriving scale factor and physical properties from a known z.

📐 Formula

z  =  (λobs − λem) / λem   |   a  =  1 / (1 + z)   |   v  =  c × [(1+z)2 − 1] / [(1+z)2 + 1]
z = cosmological redshift (dimensionless; z = 0 today, positive for receding sources)
λem = rest wavelength of the spectral line (e.g. H-alpha = 656.28 nm in the lab)
λobs = observed wavelength on Earth; λobs = λem × (1 + z)
a = scale factor = relative size of universe at emission vs. today; a = 1/(1+z)
v = relativistic recession velocity in km/s (valid for all z, not just z < 1)
TCMB = CMB temperature at redshift z = 2.725 × (1 + z) K
Example: H-alpha at 656.28 nm observed at 984.42 nm: z = (984.42 − 656.28)/656.28 = 0.5000; a = 0.6667; v = c × (1.52 − 1)/(1.52 + 1) = 0.3846c = 115,317 km/s

📖 How to Use This Calculator

Steps

1
Select a calculation mode — choose From Wavelength to compute z from an observed spectral line shift, or From Redshift z to find scale factor, velocity, and CMB temperature for a known z value.
2
Enter your values — in From Wavelength mode, select a preset line (H-alpha, Lyman-alpha, Ca K, etc.) or enter a custom rest wavelength, then enter the observed wavelength from your spectrum. In From Redshift mode, type z directly or use the slider (range 0 to 10).
3
Read the outputs — the calculator shows redshift z, scale factor a (universe size at emission as a fraction of today's size), recession velocity in km/s and as a percentage of c, CMB temperature at that epoch (From Redshift mode), and the wavelength stretch factor (1+z).

💡 Example Calculations

Example 1 — H-alpha at z = 0.5 (Nearby Galaxy Cluster)

A galaxy's H-alpha line (rest 656.28 nm) is observed at 984.42 nm. What is its redshift?

1
z = (984.42 − 656.28) / 656.28 = 328.14 / 656.28 = 0.5000.
2
Scale factor: a = 1 / (1 + 0.5) = 0.6667. The universe was 66.67% of its current size when this light was emitted.
3
Recession velocity (relativistic): v = c × (1.52 − 1)/(1.52 + 1) = c × 1.25/3.25 = 0.3846c = 115,317 km/s. Wavelength stretch: 1.5x.
z = 0.5000, a = 0.6667 (66.67% of today), v = 115,317 km/s (38.46% c)
Try this example →

Example 2 — Lyman-alpha at z = 1.0 (Deep Survey Galaxy)

Lyman-alpha (121.567 nm) is observed at 243.134 nm. What is the redshift and recession velocity?

1
Select Lyman-alpha preset (λem = 121.567 nm). Enter λobs = 243.134 nm.
2
z = (243.134 − 121.567) / 121.567 = 121.567 / 121.567 = 1.000.
3
a = 0.5000 (universe was 50% of today). v = c × (4 − 1)/(4 + 1) = 0.600c = 179,875 km/s. CMB at this epoch: 2.725 × 2 = 5.450 K.
z = 1.000, a = 0.5000 (50% of today), v = 179,875 km/s (60.00% c)
Try this example →

Example 3 — From Redshift z = 2.0 (Epoch of Peak Quasar Activity)

A quasar has spectroscopic redshift z = 2.0. Find the scale factor, velocity, and CMB temperature at that epoch.

1
Switch to From Redshift mode. Enter z = 2.
2
Scale factor: a = 1/(1+2) = 0.3333 (universe was 33.33% of today's size). Lookback time: approximately 10.5 Gyr (z = 2 is roughly 10.5 billion years ago in LCDM).
3
Recession velocity: v = c × (9 − 1)/(9 + 1) = 0.800c = 239,834 km/s. CMB temperature: 2.725 × 3 = 8.175 K. Wavelength stretch: 3x (all wavelengths arrive 3 times longer).
z = 2.000, a = 0.3333, v = 239,834 km/s (80.00% c), TCMB = 8.175 K
Try this example →

Example 4 — CMB Epoch z = 1089 (Surface of Last Scattering)

The CMB was emitted at z approximately 1089. What were the conditions of the universe at that time?

1
Enter z = 1089 in From Redshift mode.
2
Scale factor: a = 1/1090 = 9.174 × 10−4. The universe was only 0.092% of today's size.
3
CMB temperature: 2.725 × 1090 = 2970 K (consistent with hydrogen recombination at ~3000 K). Recession velocity approaches c asymptotically: v = c × (10902 − 1)/(10902 + 1) ≈ 0.999999c. Photons are stretched 1090x from near-infrared to microwave.
z = 1089, a = 9.17 × 10−4, TCMB = 2,970 K, v ≈ c (99.9999%)
Try this example →

❓ Frequently Asked Questions

What is cosmological redshift?+
Cosmological redshift is the stretching of photon wavelengths caused by the expansion of the universe. As a photon travels through expanding space, the space it occupies grows, increasing the wavelength proportionally. For a source at redshift z, every wavelength is stretched by factor (1+z). This is distinct from Doppler redshift, which arises from motion through space rather than expansion of space.
What is the scale factor a and how does it relate to redshift?+
The scale factor a describes the relative size of the universe at a given time compared to today (a = 1 today). At redshift z, a = 1/(1+z). At z = 1, the universe was half its current size (a = 0.5). At z = 3, it was one-quarter (a = 0.25). The CMB at z = 1089 was emitted when a was about 0.00092 (less than 0.1% of today's size).
How is recession velocity calculated from redshift?+
This calculator uses the relativistic Doppler formula v = c[(1+z)^2 - 1] / [(1+z)^2 + 1], which gives the speed an object would need (special relativity) to produce the same redshift. For small z, this approximates v = cz. At z = 1: v = 0.6c; at z = 2: v = 0.8c; at z = 10: v = 0.9835c. Recession velocities from the Hubble law (v = H0 x d) can exceed c for large distances.
Why does the CMB temperature change with redshift?+
All photon wavelengths are stretched by (1+z) as the universe expands. A blackbody spectrum stays a blackbody but at a lower temperature: T = T0 / a = T0 x (1+z). The CMB today is T0 = 2.725 K. At z = 1089 (recombination), T was 2.725 x 1090 = 2970 K. This prediction of LCDM cosmology has been verified by observations of the CMB temperature at intermediate redshifts via the Sunyaev-Zeldovich effect.
What is the difference between cosmological and Doppler redshift?+
Doppler redshift arises from motion through space (special relativity). Cosmological redshift arises from the expansion of space itself. For nearby galaxies, peculiar velocities (motion through space) dominate and can produce blueshifts (like Andromeda at -110 km/s). For distant galaxies beyond roughly 10 Mpc, cosmological recession dominates. Both effects add to produce the total observed redshift.
What are the redshifts of famous astronomical objects?+
Andromeda (M31): z = -0.001 (blueshift, approaching). Virgo Cluster: z = 0.004. Coma Cluster: z = 0.023. 3C 273 (brightest quasar): z = 0.158. Most distant quasar J0313-1806: z = 7.64. JADES-GS-z14-0 (highest-z galaxy confirmed): z = 14.32. CMB (surface of last scattering): z approximately 1089.
What preset spectral lines does this calculator include?+
H-alpha (656.28 nm), H-beta (486.13 nm), Lyman-alpha (121.567 nm, used for high-z quasars and Lyman break galaxies), Ca K (393.366 nm, used in galaxy surveys), O III (500.684 nm, emission line in HII regions), and Mg II (279.8 nm, UV doublet used for quasar absorption systems). Any custom wavelength can also be entered.
Can recession velocity exceed the speed of light?+
Yes, in the sense of Hubble's law v = H0 x d, recession velocities exceed c for distances beyond about 4,400 Mpc (z approximately 1.5 in LCDM). This does not violate special relativity because it is space expanding, not objects moving through space. We can still receive light from these regions because the Hubble distance has grown over cosmic time. The CMB from z = 1089 comes from regions that were receding at about 62c when they emitted it.
What is the Lyman break and how does redshift shift it?+
Neutral hydrogen in a galaxy's interstellar medium absorbs all photons with wavelengths shorter than 912 angstroms (91.2 nm), the Lyman limit. This creates a sharp drop (the Lyman break) in the galaxy's spectrum. At redshift z, this break shifts to 91.2 x (1+z) nm. At z = 3, the break falls at 364.8 nm in the UV-optical, making the galaxy invisible in the U-band but visible redward. Lyman break galaxies (LBGs) are selected this way to find high-z objects photometrically.
What is the relationship between redshift and lookback time?+
Lookback time depends on the cosmological model. In flat LCDM with H0 = 67.4 km/s/Mpc and Omega_m = 0.315: z = 0.5 gives about 5.2 Gyr lookback; z = 1 gives about 7.9 Gyr; z = 2 gives about 10.5 Gyr; z = 10 gives about 13.3 Gyr. Precise values require numerical integration of the Friedmann equation, which this calculator does not perform. Online tools like Ned Wright's Cosmology Calculator provide lookback times.
What is the highest redshift ever measured?+
As of mid-2024, the highest spectroscopically confirmed galaxy is JADES-GS-z14-0 at z = 14.32, discovered by JWST. At this redshift the universe was about 290 million years old (2% of its current age) and the scale factor was a = 1/15.32 = 0.0653. Some photometric candidates at z greater than 16 have been reported but await spectroscopic confirmation. The absolute record is the CMB itself at z approximately 1089.
What is cosmological blueshift and does it exist?+
Cosmological blueshift would require contracting space. In the current accelerating universe, all sufficiently distant galaxies are redshifted. However, nearby galaxies can show net blueshift if their peculiar velocity toward us exceeds the cosmological recession. Andromeda (M31) at 770 kpc is approaching at 110 km/s despite a cosmological recession of only a few km/s at that distance. It will merge with the Milky Way in roughly 4.5 Gyr.

What is cosmological redshift?

Cosmological redshift is the stretching of light wavelengths caused by the expansion of the universe. As a photon travels through expanding space, the space it occupies stretches, increasing the photon's wavelength proportionally. For a galaxy at redshift z, every wavelength has been stretched by a factor of (1+z) relative to its emitted value. This is distinct from Doppler redshift, which is caused by an object's velocity through space.

What is the scale factor a and how does it relate to redshift?

The scale factor a describes the relative size of the universe at a given cosmic time compared to today. Today a = 1 by definition. At redshift z, the scale factor was a = 1/(1+z). At z = 1, the universe was half its current size (a = 0.5). At z = 3, it was one-quarter the current size (a = 0.25). The CMB was emitted at z approximately 1089, when a was about 0.00092.

How is the recession velocity calculated from redshift?

For cosmological redshift, the concept of recession velocity is frame-dependent, but a useful definition uses the relativistic Doppler formula: v = c[(1+z)^2 - 1] / [(1+z)^2 + 1]. This gives the velocity an object would need in special relativity to produce the same redshift. For small z (z less than 0.1), the linear approximation v = cz is accurate to a few percent. Note that recession velocities can exceed c for z greater than about 1.5.

Why does the CMB temperature change with redshift?

The CMB temperature scales as T = T0 x (1+z), where T0 = 2.725 K is today's CMB temperature. This is because the CMB photons are stretched by the same factor (1+z) as all wavelengths in an expanding universe. At z = 1089 (recombination), T was approximately 2.725 x 1090 = 2970 K, consistent with the hydrogen recombination temperature of about 3000 K.

What is the difference between cosmological and Doppler redshift?

Doppler redshift arises from an object moving through space (special relativity). Cosmological redshift arises from space itself expanding between emitter and observer. In the real universe both effects can be present: peculiar velocities (motion through space) add a Doppler component on top of the cosmological redshift from expansion. For distant galaxies, the cosmological component dominates; for nearby galaxies in clusters, peculiar velocities can dominate.

What are the redshifts of famous astronomical objects?

The Virgo Cluster: z approximately 0.004 (1200 km/s). The Coma Cluster: z approximately 0.023. The most distant quasar J1030+0524: z = 6.30. The most distant galaxy JADES-GS-z14-0: z = 14.32. The CMB: z approximately 1089. At z = 1089 the universe was 380,000 years old; at z = 14.32 it was only about 290 million years old.

What preset spectral lines does this calculator use?

The calculator includes: H-alpha (Balmer series, 656.28 nm, rest), H-beta (486.13 nm), Lyman-alpha (121.567 nm, UV, used for high-z quasars), Ca K (393.366 nm, used for galaxy surveys), O III (500.684 nm, emission line), and Mg II (279.8 nm, UV doublet). Any custom wavelength can also be entered in the rest wavelength field.

What is the Lyman break and how does it relate to redshift?

Lyman-alpha (121.567 nm) is the shortest-wavelength photon that neutral hydrogen can emit. At shorter wavelengths (Lyman limit at 91.2 nm), hydrogen becomes opaque. When a galaxy is at redshift z, its Lyman break shifts to 91.2 x (1+z) nm and Lyman-alpha shifts to 121.567 x (1+z) nm. At z = 3, the Lyman break falls at 364.8 nm (visible), making the galaxy disappear in blue filters. This Lyman break technique identifies high-z galaxies photometrically.

Can recession velocity exceed the speed of light?

Yes. Galaxies with redshift z greater than about 1.5 have recession velocities exceeding c in the sense of Hubble's law v = H0 x d. This is not a violation of special relativity because the recession is due to space expansion, not motion through space. Light from these galaxies can still reach us because the expansion was slower in the past. The observable universe extends to z approximately 1089 (the CMB), well into the superluminal regime.

What is the relationship between redshift and lookback time?

The lookback time (how long ago the light was emitted) depends on the cosmological model. In the standard flat LCDM model (H0 = 67.4, Omega_m = 0.315, Omega_Lambda = 0.685), z = 1 corresponds to about 7.9 Gyr lookback time (universe was 5.9 Gyr old), z = 3 to about 11.5 Gyr, and z = 10 to about 13.3 Gyr. Precise lookback times require numerical integration of the Friedmann equation.

What is the wavelength stretch factor (1+z)?

Every photon emitted at redshift z arrives with its wavelength multiplied by (1+z). If a galaxy emits H-alpha at 656.28 nm and is at z = 0.5, we observe it at 656.28 x 1.5 = 984.42 nm (near-infrared). Photon energy is proportional to 1/wavelength, so photons arrive with 1/(1+z) of their emitted energy. At z = 1, each photon carries half its original energy. The CMB photons were emitted as near-infrared at recombination and are now microwaves: stretched by factor 1090.

What is cosmological blueshift and does it exist?

Cosmological blueshift would require space to be contracting rather than expanding. In the current accelerating universe, cosmological blueshift does not occur for distant galaxies. However, galaxies in the Local Group (Andromeda, Triangulum) show blueshift due to their peculiar velocities toward the Milky Way being larger than the small cosmological recession at their distance. Andromeda shows a blueshift of about 110 km/s and will merge with the Milky Way in roughly 4.5 Gyr.

What is the highest redshift ever observed?

As of 2024, the highest-confirmed galaxy redshift is JADES-GS-z14-0 at z = 14.32, observed by the James Webb Space Telescope. This galaxy existed when the universe was only about 290 million years old. Some candidate galaxies at z greater than 16 have been reported but need spectroscopic confirmation. The absolute record is the CMB at z approximately 1089, the surface of last scattering.