Doppler Effect Calculator
Light
Sound
- The source moves at β = v/c = 30,000 ÷ 299,792.458 = 0.1001 of light speed. The relativistic Doppler formula stretches the wavelength by √((1+β)/(1−β)) = 1.1056, so 550 nm arrives as 608.09 nm — a redshift of z = 0.1056.
- The classical formula λ(1 + v/c) gives 605.04 nm — close at everyday speeds, but astronomy uses the relativistic version because galaxy redshifts are measured to several decimal places.
A doppler effect calculator lets you find the observed wavelength or frequency when a source of light or sound is moving toward or away from you. For light, it uses the relativistic Doppler formula, which stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s. Enter the emitted wavelength and the source velocity, and the calculator returns the observed wavelength and the redshift z, defined by astronomers as (λ_observed − λ_emitted)/λ_emitted. For sound, it applies f′ = f × c ÷ (c − v) when approaching and f × c ÷ (c + v) when receding, with c ≈ 343 m/s in air at 20 °C. A 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz; hydrogen-alpha light at 656.3 nm from a source approaching at 150 km/s arrives at 655.97 nm, a blueshift of z = −0.0005.
The relativistic formula is the accepted standard for light because the classical formula λ(1 + v/c) under-reads: light of 550 nm from a source receding at 30,000 km/s (β ≈ 0.10007) arrives at 608.09 nm with the relativistic formula, a redshift of z = 0.1056, while the classical formula gives only 605.04 nm. The expanding universe makes distant galaxies' light arrive redshifted, so astronomers rely on the relativistic approach. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.
Worked examples
Green light, 550 nm, from a galaxy receding at 30,000 km/s
At 10% of light speed the relativistic formula stretches it to 608.09 nm (z = 0.1056) — visibly redder; the classical formula under-reads at 605.04 nm. (Light — redshift / blueshift · 550 nm · 30000 km/s · 440 Hz · 30 m/s · Approaching the listener · 343 m/s)
| Observed wavelength (relativistic) | 608.09 nm |
| Redshift z | 0.1056 |
| Observed wavelength (classical approximation) | 605.04 nm |
| Speed as a share of light speed | 10.007% |
Hydrogen-alpha light approaching at 150 km/s
A gentle blueshift: 656.3 nm arrives at 655.97 nm (z = −0.0005) — the kind of shift stellar spectrographs measure to find exoplanets. (Light — redshift / blueshift · 656.3 nm · -150 km/s · 440 Hz · 30 m/s · Approaching the listener · 343 m/s)
| Observed wavelength (relativistic) | 655.97 nm |
| Redshift z | -0.0005 |
| Observed wavelength (classical approximation) | 655.97 nm |
| Speed as a share of light speed | -0.050% |
A 440 Hz siren approaching at 30 m/s (about 108 km/h)
The pitch climbs to 482.17 Hz — nearly a semitone and a half sharp — then drops below 440 the moment it passes. (Sound — moving source · 550 nm · 30000 km/s · 440 Hz · 30 m/s · Approaching the listener · 343 m/s)
| Observed frequency | 482.17 Hz |
| Emitted frequency | 440 Hz |
| Shift | 42.17 Hz (higher — approaching) |
One name, two different physics
The Doppler effect describes a shift in observed frequency or wavelength when a source and observer move relative to each other. But the same name covers two physically distinct phenomena. Sound is a mechanical wave that travels through a medium such as air, so its Doppler shift depends on the motion of the source, the listener, and the medium itself. Light, by contrast, is an electromagnetic wave that needs no medium at all. Its Doppler shift is governed by special relativity, not by classical mechanics. That distinction is why a single doppler effect calculator cannot apply one universal formula to both cases — this page treats them separately so you get the correct result for each.
For sound, a moving source changes the observed frequency according to straightforward classical formulas. When a source approaches, the observed frequency rises: f′ = f × c ÷ (c − v). When it recedes, the observed frequency drops: f′ = f × c ÷ (c + v). Here c represents the speed of sound, which is approximately 343 m/s in air at 20 °C. As a verified example, a 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz. The classical approach works because sound propagates through a physical medium at speeds well below the speed of light, so no relativistic corrections are needed.
Light demands a different approach. Because electromagnetic radiation travels at a constant speed regardless of the observer's frame of reference, the relativistic Doppler formula must be used. For light, the relativistic Doppler formula stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s. The classical formula λ(1 + v/c) does not produce the same result. Consider light of 550 nm from a source receding at 30,000 km/s, which corresponds to β ≈ 0.10007. The relativistic formula shows it arrives at 608.09 nm, producing a redshift of z = 0.1056. The classical formula gives only 605.04 nm and under-reads. For an approaching source, the shift goes the other way: hydrogen-alpha light at 656.3 nm from a source approaching at 150 km/s arrives at 655.97 nm, a blueshift of z = −0.0005.
Astronomers quantify these shifts using redshift, defined as z = (λ_observed − λ_emitted)/λ_emitted. The expanding universe makes distant galaxies' light arrive redshifted, and measuring z allows astronomers to estimate how fast those galaxies are moving away from us. Because the relativistic formula is essential for accuracy at astronomical speeds, any reliable doppler effect calculator must keep the physics of sound and light distinct.
Worked examples
The table below shows three verified scenarios that a doppler effect calculator can handle, covering both light and sound. For light, the relativistic Doppler formula stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s. Astronomers define redshift z = (λ_observed − λ_emitted)/λ_emitted, and the expanding universe makes distant galaxies' light arrive redshifted. For sound, a moving source changes the observed frequency: f′ = f × c ÷ (c − v) when approaching, and f × c ÷ (c + v) when receding, with c ≈ 343 m/s in air at 20 °C.
The first example shows light of 550 nm from a source receding at 30,000 km/s. Here β ≈ 0.10007, and the relativistic formula gives an observed wavelength of 608.09 nm, a redshift of z = 0.1056. The classical formula λ(1 + v/c) gives 605.04 nm and under-reads, which is why relativistic corrections matter at high speeds. The second example involves hydrogen-alpha light at 656.3 nm from a source approaching at 150 km/s, which arrives at 655.97 nm — a blueshift of z = −0.0005. At this low speed, the difference between classical and relativistic results is negligible.
The third example shifts to sound. A 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz, using the sound formula with c ≈ 343 m/s. This illustrates how the same principle applies across very different wave types, though the formulas differ because light requires relativistic treatment while sound depends on the medium.
| Source type | Emitted value | Source speed | Observed value | Redshift z |
|---|---|---|---|---|
| Light (receding) | 550 nm | 30,000 km/s | 608.09 nm | 0.1056 |
| H-alpha (approaching) | 656.3 nm | 150 km/s | 655.97 nm | −0.0005 |
| Sound siren (approaching) | 440 Hz | 30 m/s | 482.17 Hz | — |
Redshift and the expanding universe
Astronomers define redshift with the symbol z, where z = (λ_observed − λ_emitted) / λ_emitted. When z is positive, the observed wavelength is longer (redder) than the emitted one; when z is negative, the light is blueshifted. A doppler effect calculator can work through the arithmetic, but the underlying physics matters here because light is not sound.
In the 1920s Edwin Hubble found that distant galaxies' spectra are systematically redshifted, and that the farther away a galaxy is, the larger its z. That observation is the foundation of the expanding-universe picture: the space between galaxies is stretching, and the light traveling through it stretches too, arriving at our telescopes shifted toward the red end of the spectrum. Galaxy spectra are the evidence because each element absorbs or emits at known wavelengths, so a measured shift in those lines reveals directly how much the light has been stretched.
It is tempting to treat this as the classical Doppler shift, the same effect that raises a siren's pitch as it approaches and lowers it as it recedes. For sound, a moving source changes the observed frequency: f′ = f × c ÷ (c − v) when approaching, f × c ÷ (c + v) when receding, with c ≈ 343 m/s in air at 20 °C. A 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz. But light follows the relativistic Doppler formula, which stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s.
The difference is measurable. Light of 550 nm from a source receding at 30,000 km/s (β ≈ 0.10007) arrives at 608.09 nm, giving z = 0.1056. The classical formula λ(1 + v/c) gives 605.04 nm and under-reads. For a source approaching at 150 km/s, hydrogen-alpha light at 656.3 nm arrives at 655.97 nm, a blueshift of z = −0.0005. At that low speed the classical and relativistic results nearly agree, but at cosmological distances the classical picture breaks down. The expanding universe is not galaxies flying through static space; it is space itself stretching, which is why the redshift of distant galaxies is not just the classical Doppler shift applied to light.
Classical vs relativistic: when it matters
When you use a Doppler effect calculator, one key decision is whether to apply the classical or relativistic formula. For light, the relativistic Doppler formula stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s. The classical formula simply multiplies wavelength by (1 + v/c). At everyday speeds the two agree to many decimals, so the choice rarely matters for slow-moving sources. The difference only becomes meaningful as speeds approach a meaningful fraction of the speed of light.
The gap is visible at cosmic speeds. Verified testing shows that light of 550 nm from a source receding at 30,000 km/s (β ≈ 0.10007) arrives at 608.09 nm using the relativistic formula — a redshift of z = 0.1056. The classical formula λ(1 + v/c) gives 605.04 nm and under-reads by roughly 3 nm. That 3 nm gap is small in percentage terms but matters in precision astronomy, where researchers measure wavelength shifts to identify distant galaxies and calculate their recession velocities. Astronomers define redshift as z = (λ_observed − λ_emitted)/λ_emitted, and the expanding universe makes distant galaxies' light arrive redshifted, so getting the formula right is essential.
At terrestrial speeds, the classical and relativistic results converge so closely that the difference vanishes into rounding. Verified testing shows that hydrogen-alpha light at 656.3 nm from a source approaching at 150 km/s arrives at 655.97 nm — a blueshift of z = −0.0005. At that speed the classical and relativistic formulas produce the same result to many decimal places, so either one works fine. This is why a Doppler effect calculator can safely use the simpler classical approach for everyday scenarios like radar guns, weather radar, and slow astronomical objects within our galaxy.
Sound waves behave differently from light because they travel through a medium rather than through empty space. For sound, a moving source changes the observed frequency: f′ = f × c ÷ (c − v) when approaching, and f × c ÷ (c + v) when receding, with c ≈ 343 m/s in air at 20 °C. Verified testing confirms that a 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz. These formulas are purely classical — relativity does not enter the picture for sound at all, because sound always moves relative to its medium rather than relative to the observer in the way light does.
The passing siren, quantified
Picture an ambulance speeding toward you at 30 m/s with its siren wailing at 440 Hz. Using the sound formula f′ = f × c ÷ (c − v), with c ≈ 343 m/s in air at 20 °C, a doppler effect calculator returns 482.17 Hz as the frequency you actually hear. Once the ambulance passes and recedes at the same speed, the formula flips to f × c ÷ (c + v), and the pitch drops to about 405 Hz. That gap between approach and recession is the drop you hear — roughly a whole tone — and it is the same physics that makes a passing train horn slide downward as the engine rolls by.
The siren example works because sound travels through air at a fixed speed, so a moving source literally compresses the waves in front of it and stretches the waves behind. But the Doppler effect also applies to light, where there is no medium at all. Astronomers define redshift as z = (λ_observed − λ_emitted) / λ_emitted, and the expanding universe makes distant galaxies' light arrive redshifted. For light, the relativistic Doppler formula stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s.
To see why the relativistic formula matters, compare it with the classical one. Verified light of 550 nm from a source receding at 30,000 km/s (β ≈ 0.10007) arrives at 608.09 nm using the relativistic formula — a redshift of z = 0.1056. The classical formula λ(1 + v/c) gives 605.04 nm and under-reads. At everyday speeds the difference vanishes. Verified hydrogen-alpha light at 656.3 nm from a source approaching at 150 km/s arrives at 655.97 nm, a blueshift of z = −0.0005. Whether the source is a siren or a star, the principle is the same: motion changes the frequency you receive.
Radial velocity: the exoplanet tool
Radial velocity is the technique that has revealed hundreds of exoplanets, and it works by detecting tiny shifts in starlight. When a planet orbits a star, the pair both orbit their common center of mass, so the star wobbles slightly. If that wobble has a component along our line of sight, the star's light is alternately blueshifted as it moves toward us and redshifted as it moves away. A doppler effect calculator built for visible light can turn those wavelength shifts into the star's radial velocity.
The scale of the effect is far smaller than everyday intuition suggests. Astronomers define redshift as z = (λ_observed − λ_emitted) / λ_emitted, and real spectrographs measure stellar wobbles of mere metres per second. Consider hydrogen-alpha light emitted at 656.3 nm: if the source is approaching at 150 km/s, the light arrives at 655.97 nm, a blueshift of z = −0.0005. That is a shift of just 0.33 nm across a spectrum hundreds of nanometres wide, yet modern instruments resolve it routinely.
For light, the relativistic Doppler formula stretches wavelength by √((1+β)/(1−β)), where β = v/c and c = 299,792.458 km/s. At the modest speeds of stellar wobbles the distinction between relativistic and classical formulas barely matters, but it becomes significant at cosmological scales. Verified calculations show that light of 550 nm from a source receding at 30,000 km/s (β ≈ 0.10007) arrives at 608.09 nm, giving a redshift of z = 0.1056. The classical formula λ(1 + v/c) gives 605.04 nm and under-reads by more than 3 nm, so any doppler effect calculator aimed at extragalactic work must use the relativistic expression.
The same principles govern sound, though the numbers look very different. For sound, a moving source changes the observed frequency: f′ = f × c ÷ (c − v) when approaching, and f × c ÷ (c + v) when receding, with c ≈ 343 m/s in air at 20 °C. A 440 Hz siren approaching at 30 m/s is heard at 482.17 Hz, a shift of roughly 10 percent. Stellar radial velocity demands detecting shifts thousands of times smaller, which is why exoplanet spectrographs are among the most precise optical instruments ever built.
The expanding universe adds a further complication: distant galaxies' light arrives redshifted simply because space itself has stretched during the journey, not because the galaxy has a peculiar velocity through space. Disentangling that cosmological component from genuine radial velocity requires care, and a reliable doppler effect calculator helps by making the wavelength-to-velocity conversion transparent and reproducible.
FAQs
What is the redshift of light receding at 30,000 km/s?
Using the relativistic formula, a source receding at 30,000 km/s gives a redshift of z = 0.1056. A spectral line emitted at 550 nm arrives at 608.09 nm. This stretching of wavelength is what astronomers measure to determine how fast distant galaxies are moving away from us.
What is the difference between redshift and blueshift?
Receding sources stretch light to longer (redder) wavelengths, giving z > 0. Approaching sources compress it to shorter (bluer) wavelengths, giving z < 0. For example, a 656.3 nm line approaching at 150 km/s arrives at 655.97 nm, showing the slight blueshift from motion toward the observer.
Why does a siren's pitch drop as it passes?
As the source approaches, the waves bunch up, raising the pitch: 440 Hz is heard as 482.17 Hz at 30 m/s. As it recedes, the waves stretch out, lowering the pitch. The switch happens at the moment of passing, when the relative velocity component along the line of sight reverses.
When can I use the classical Doppler formula?
Whenever speeds are far below light speed, the classical and relativistic answers agree closely. At 0.1c they already differ by about 3 nm on a 550 nm line. For everyday objects like cars or trains, the classical formula is sufficient; for astronomical speeds, use the relativistic formula.
Does the Doppler effect change the speed of light or sound?
No. The wave speed stays fixed. Motion of the source changes the wavelength and frequency at which crests arrive at the observer. Light always travels at c in a vacuum, and sound travels at its medium-dependent speed; only the spacing and arrival rate of the wave crests change.
What is β (beta) in the relativistic formula?
Beta is the velocity as a fraction of light speed. For a source moving at 30,000 km/s, divide by 299,792.458 km/s to get β ≈ 0.10007. This dimensionless ratio appears in the relativistic Doppler formula and simplifies calculations involving high velocities.