Redshift Calculator - Wavelength, Frequency & Relativistic Velocity

Use this redshift calculator to quickly compute the redshift parameter (z), emitted and observed wavelengths or frequencies, and the corresponding relativistic recessional velocity of celestial bodies.

Updated: June 27, 2026 • Free Tool

Redshift Calculator

The rest wavelength of the light emitted by the source, measured in nanometers (nm).

The wavelength of the light as measured by the observer, in nanometers (nm).

The rest frequency of the emitted light, in terahertz (THz).

The frequency of the light as measured by the observer, in terahertz (THz).

The dimensionless redshift parameter. Positive values indicate redshift; negative values represent blueshift.

The recessional velocity of the source relative to the observer, in meters per second (m/s). Negative indicates approach.

The velocity of the source as a fraction of the speed of light (v/c). Values must be between -1 and 1.

Results

Redshift Parameter (z)
0
Velocity Ratio (v/c) 0
Recessional Velocity (v) 0m/s
Recessional Velocity (v) 0km/s
Emitted Wavelength (λ_emit) 0nm
Observed Wavelength (λ_obs) 0nm
Emitted Frequency (f_emit) 0THz
Observed Frequency (f_obs) 0THz

What Is Redshift?

A redshift calculator is a scientific tool used in astrophysics and cosmology to measure changes in the wavelength and frequency of electromagnetic radiation from a moving source. When an astronomical object, such as a star or a distant galaxy, moves away from us, the light it emits is stretched, shifting toward longer, redder wavelengths. Conversely, if it moves closer, the light is compressed, shifting to shorter, bluer wavelengths (blueshift). This tool allows students and astronomers to input observed parameters to determine the relative motion of celestial bodies.

  • Cosmological Expansion Analysis: Calculate how the expansion of space itself stretches light traveling across billions of light-years from the edge of the observable universe.
  • Galactic Velocity Mapping: Determine the local velocities of stars and galaxies within our local group, identifying whether they are receding or approaching us.
  • Spectroscopy Measurements: Compare laboratory spectral lines of common elements, such as hydrogen, with observed lines from remote stars to identify chemical shifts.
  • Astrophysics Education: Provide an interactive way for students and educators to visualize how electromagnetic waves change when subjected to high-speed relative motion.

In practical astronomy, redshift is designated by the letter z. It is a fundamental indicator used to construct maps of the universe. By measuring the redshift of distant galaxies, scientists apply Hubble's Law to estimate their distances. This relationship between redshift and distance revealed that the universe is expanding at an accelerating rate. The calculator acts as a gateway to exploring these cosmic scales, converting between raw wavelengths, frequencies, and recessional velocities.

Understanding whether a spectral shift represents relative local motion or cosmic expansion is vital. Local motion produces a Doppler shift, described by the relative velocity of the source. On a larger scale, cosmological redshift is caused by the stretching of the fabric of spacetime itself. Regardless of the physical cause, the mathematical definitions of z, wavelength, and frequency remain identical.

For calculations involving the fundamental wave properties of electromagnetic radiation at rest, the Frequency of Light Calculator provides the base physics equations relating speed, wavelength, and frequency.

How Redshift Works

The redshift calculator solves the mathematical relationships between the emitted light properties, observed light properties, and the recessional velocity of the source. By analyzing how much the wave has stretched, the calculator determines the shift parameter z, the relativistic velocity ratio beta, and the velocity v in meters per second.

z = (λ_obs - λ_emit) / λ_emit = (f_emit - f_obs) / f_obs ; 1 + z = sqrt((1 + β) / (1 - β))
  • λ_emit: The rest wavelength of the electromagnetic wave emitted by the source, typically measured in nanometers (nm).
  • λ_obs: The stretched wavelength of the electromagnetic wave detected by the observer, in nanometers (nm).
  • f_emit: The frequency of the wave at emission in the source's rest frame, measured in terahertz (THz).
  • f_obs: The frequency of the wave as measured by the observer, in terahertz (THz).
  • z: The dimensionless redshift parameter. Positive values indicate redshift; negative values represent blueshift.
  • v: The recessional velocity of the source relative to the observer, in meters per second (m/s).
  • β (v/c): The velocity ratio, representing the source's speed as a fraction of the speed of light (c = 299,792,458 m/s).

To relate velocity to redshift at high fractions of the speed of light, the relativistic Doppler formula is used instead of the classical approximation. Under the classical Doppler effect, z is simply equal to v/c. As the velocity approaches the speed of light, relativistic effects become significant. The calculator utilizes the relativistic Doppler shift equation to ensure high accuracy.

When computing frequencies, the inverse relationship between wavelength and frequency is maintained. Because the speed of light is constant, frequency shifts inversely compared to wavelength. When wavelength increases, frequency decreases, maintaining a consistent physical relationship.

Example 1: Measuring Redshift from Wavelength

An astronomer observes a hydrogen-alpha spectral line, which has a rest wavelength (λ_emit) of 656.3 nm, but detects it at an observed wavelength (λ_obs) of 721.93 nm.

Compute z = (721.93 - 656.3) / 656.3 = 0.100000. Next, calculate β = ((1 + z)^2 - 1) / ((1 + z)^2 + 1) = 0.0950226. The recessional velocity v = 0.0950226 * 299,792,458 ≈ 28,487,066 m/s.

z = 0.100000, Recessional Velocity v ≈ 28,487,066 m/s.

The galaxy hosting the source is moving away from us at approximately 9.5% of the speed of light, indicating it is affected by the expansion of the universe.

Example 2: Relativistic Velocity at High Speeds

A distant quasar is determined to be receding at a velocity ratio (β) of 0.60 relative to the speed of light.

Calculate z = sqrt((1 + 0.60) / (1 - 0.60)) - 1 = sqrt(4) - 1 = 1.000000.

Redshift z = 1.000000, Recessional Velocity v = 179,875,475 m/s.

A redshift of 1.0 means that the observed wavelengths of the light are exactly double the rest-frame emitted wavelengths.

According to NASA/IPAC Extragalactic Database, the redshift parameter z is mathematically defined as the change in wavelength divided by the emitted wavelength

When analyzing how the stretching of space reduces a photon's energy over cosmic distances, the Photon Energy Calculator shows the direct mathematical relation between energy, frequency, and wavelength.

Key Concepts Explained

Understanding the physics of spectral shifts requires familiarity with several core concepts in wave mechanics, relativity, and cosmology.

Electromagnetic Wave Stretching

Light behaves as a wave. When the source of light moves relative to the detector, the distance between wave crests changes. Movement away stretches the wave (red shift), while movement toward compresses it (blue shift).

Relativistic Doppler Effect

For high-speed objects, Einstein's theory of special relativity requires that time dilation be accounted for. The relativistic Doppler formula ensures that calculations remain physically valid even as velocities approach the speed of light.

Cosmological Redshift

Unlike the Doppler shift caused by local movement through space, cosmological redshift is caused by the expansion of space itself. Light waves stretch as they travel across the expanding universe.

Spectral Fingerprints

Chemical elements emit and absorb light at precise wavelengths. By comparing these known 'fingerprints' from laboratory experiments with the shifted lines observed in starlight, astronomers determine the exact value of z.

These core concepts show that redshift is a vital diagnostic tool. Whether measuring the expansion of the universe or tracking the rotation of a nearby galaxy, the mathematical framework of spectral shifting is one of the most powerful concepts in modern physics.

In observational astrophysics, measuring the orbital motion of binary star systems can lead to localized shifts, which can be compared with general cosmic motion using the Orbital Period Calculator.

How to Use the Redshift Calculator

This calculator allows you to input any known parameter to calculate all other variables. Follow these steps:

  1. 1 Identify Your Known Values: Decide whether you are starting with wavelengths, frequencies, the redshift parameter z, or the recessional velocity of the source.
  2. 2 Enter Wavelengths or Frequencies: Enter the emitted wavelength/frequency and the observed wavelength/frequency. The calculator will automatically solve for z and velocity.
  3. 3 Alternatively, Enter Redshift Directly: Type the redshift value (z) to calculate the corresponding velocity and see how it shifts a standard 500 nm green light.
  4. 4 Or, Input the Velocity: Enter the velocity in meters per second (m/s) or the velocity ratio (v/c) to find the resulting redshift and wave changes.
  5. 5 Analyze the Velocity Ratios: Review the velocity ratio beta (v/c). A positive beta indicates recession, while a negative beta indicates approach.
  6. 6 Interpret the Results: Use the calculated values to understand the physical state of the source, such as its speed and direction of travel.

If you observe the hydrogen-alpha line (656.3 nm rest wavelength) shifted to 700 nm, enter 656.3 in the emitted wavelength field and 700 in the observed wavelength field. The calculator displays a redshift z of 0.066585 and a recessional velocity of 19,531,105 m/s.

Analyzing the kinetic behavior and collision dynamics of distant objects moving at relativistic speeds can also involve the principles detailed in the Conservation of Momentum Calculator.

Benefits of Using the Redshift Calculator

Performing manual calculations involving relativistic square roots and light speed constants can be tedious and prone to errors. Here are the key advantages:

  • Relativistic Accuracy: It automatically applies the relativistic Doppler equation rather than the simplified classical formula, ensuring physically sound results at high velocities.
  • Dual Wavelength and Frequency Support: Allows you to work with either wavelength (nm) or frequency (THz) parameters, converting between them automatically based on standard light speed relations.
  • Bi-directional Solving: Input variables in any order. Whether you know the wavelengths, the z-value, or the velocity, the calculator resolves the rest of the variables.
  • Prevents Unphysical Inputs: Built-in validation checks ensure that inputs like negative wavelengths or velocities exceeding the speed of light are flagged.
  • Clear Visual Layout: Organized into logical input groups, making it easy to separate spectral wave measurements from relative velocity metrics.

These features make the calculator a useful resource for students preparing physics homework, amateur astronomers analyzing stellar spectra, and educators looking for a clean tool to demonstrate special relativity.

Factors That Affect Your Results

When analyzing spectral shifts in the real universe, several physical factors can influence or complicate the interpretation of your redshift results:

Peculiar Velocity vs. Hubble Flow

A galaxy's total redshift is a combination of its motion through space (peculiar velocity) and the expansion of space (cosmological redshift). For nearby galaxies, peculiar velocity can dominate.

Gravitational Redshift

General relativity dictates that light loses energy when escaping from a strong gravitational field, causing gravitational redshift which is unrelated to velocity.

Instrumental Effects

Observations from telescopes must correct for the Earth's orbital motion around the Sun and atmospheric distortion to ensure wavelength measurements are accurate.

Relativistic Limits

As the recessional velocity approaches the speed of light, the relativistic Doppler formula becomes highly sensitive, resulting in massive increases in redshift z.

  • This calculator assumes a flat spacetime and a straight-line relative motion. It does not account for complex gravitational fields or cosmological models with changing expansion rates over time.
  • The velocity calculations represent the radial velocity. Any transverse velocity does not contribute to the longitudinal Doppler shift, though it does produce a minor relativistic transverse Doppler shift.

By recognizing these factors, you can better contextualize the outputs of the calculator. While the mathematics of wave stretching are precise, translating a redshift parameter z into a physical distance requires careful consideration of the cosmological environment.

According to Swinburne University Cosmos, redshift occurs because the expansion of space stretches the wavelengths of light as it travels through the universe

A redshift calculator interface displaying input fields for emitted and observed wavelength, frequency, redshift parameter z, and recessional velocity.
A redshift calculator interface displaying input fields for emitted and observed wavelength, frequency, redshift parameter z, and recessional velocity.

Frequently Asked Questions

Q: What is redshift in simple terms?

A: Redshift is the stretching of light waves as an object moves away from the observer. Just as a siren's pitch drops as an ambulance drives away, the light from a receding star or galaxy shifts to longer, redder wavelengths, indicating it is moving away from us.

Q: How do you calculate redshift from wavelength?

A: To calculate redshift (z) from wavelength spectroscopic data, subtract the emitted wavelength (rest wavelength) from the observed wavelength, and then divide the result by the emitted wavelength: z = (λ_obs - λ_emit) / λ_emit.

Q: What is the difference between redshift and blueshift?

A: Redshift occurs when an object moves away from the observer, stretching light waves to longer wavelengths (positive z). Blueshift occurs when an object moves closer, compressing waves to shorter wavelengths (negative z).

Q: Can redshift be negative?

A: Yes, redshift can be negative, which represents a blueshift. A negative redshift indicates that the source is moving toward the observer instead of receding, compressing the electromagnetic waves to higher frequencies.

Q: What does a redshift of 1 mean?

A: A redshift of z = 1 means that the light has been stretched so that its observed wavelength is exactly double its emitted wavelength. In a cosmological context, it indicates that the universe has expanded to twice its size since the light was emitted.

Q: How is redshift related to velocity?

A: For low speeds, redshift is approximately velocity divided by the speed of light (z ≈ v/c). For high speeds, the relativistic Doppler formula must be used: 1 + z = sqrt((1 + beta)/(1 - beta)), where beta is the velocity ratio v/c.