Doppler Effect Calculator: Sound, Pitch Change, Redshift and Radar Speed
By FindMySum · Last reviewed
When a siren races past, its pitch drops: higher as it comes toward you, lower as it goes away. The source has not changed; the motion has squeezed the waves together ahead of it and stretched them out behind. This Doppler effect calculator works out the frequency you hear for any combination of moving source and moving listener, finds a source's speed from the pitch you hear, applies the relativistic formula to light and redshift, and turns a radar gun's frequency shift into a speed.
The formula for sound
f′ = f × (v + vₒ) ÷ (v − vₛ)
- f is the frequency the source emits and f′ the frequency heard
- v is the speed of sound in the medium
- vₒ is the observer's speed, positive when moving toward the source
- vₛ is the source's speed, positive when moving toward the observer
Choose toward or away for each and the calculator applies the signs. The speed of sound in dry air follows from the temperature, v = √(γRT ÷ M), about 343 m/s at 20 °C and 331 m/s at 0 °C; choose a custom medium to enter another wave speed, such as about 1,480 m/s in water.
Worked example: a passing siren
The calculator opens with a 440 Hz siren (concert A) approaching a standing listener at 30 m/s, 108 km/h, in 20 °C air.
- v = 343.23 m/s
- f′ = 440 × 343.23 ÷ (343.23 − 30) = 482.14 Hz
That is 42 Hz higher, about 1.6 semitones, close to a B. Once the siren has passed, vₛ changes sign and the pitch falls to 440 × 343.23 ÷ 373.23 = 404.6 Hz. The total drop, from 482 to 405 Hz, is about three semitones, the familiar "eee-ooo" of a passing emergency vehicle.
The pass-by chart traces how that drop happens for a source that passes 10 m from you. Far away the pitch sits near the approaching value, it falls quickly around the moment of closest approach, and it levels off at the receding value. The chart uses the angle between the source's motion and your line of sight, f′ = f v ÷ (v − vₛ cos θ), and ignores the travel time of the sound.
Moving observers and the role of the medium
For sound, it matters who is moving. A listener rushing toward a still source at 30 m/s hears 478.5 Hz, a little less than the 482.1 Hz from a source approaching at the same speed. The difference arises because sound travels through air, which gives a preferred frame of reference. Light has no medium, so only the relative speed of source and observer enters its formula.
Speed from a change in pitch
If you know the true frequency of a horn or engine note and measure the pitch as it approaches, rearranging the formula for a still listener gives vₛ = v(1 − f ÷ f′). A 440 Hz horn heard at 480 Hz is approaching at 28.6 m/s, or 103 km/h. A negative result means the source is moving away. Recording the approaching and receding pitches, f₁ and f₂, gives the speed without knowing the true frequency: vₛ = v(f₁ − f₂) ÷ (f₁ + f₂).
Light and redshift
For light, the relativistic Doppler formula applies. For a source receding at a fraction β = v ÷ c of the speed of light,
1 + z = √((1 + β) ÷ (1 − β))
where z is the redshift, the fractional increase in wavelength. The observed frequency is f ÷ (1 + z). A source receding at 0.1c has z = 0.1055; one approaching gives a negative z, a blueshift. Enter a measured z instead and the calculator solves for the speed: z = 1, a doubling of wavelength, corresponds to 0.6c. For distant galaxies, most of the measured redshift comes from the expansion of space rather than motion through it, which needs cosmology rather than this formula.
Radar speed guns
A traffic radar gun sends out microwaves, often in the K band at 24.15 GHz, and compares the echo from a moving car with what it sent. The wave is shifted twice, on the way to the car and on its reflection, so for speeds far below light speed Δf = 2vf ÷ c. A shift of 4,475 Hz at 24.15 GHz means 27.8 m/s, or 100 km/h. Radar reads true speed only when the car drives straight toward or away from the gun; at an angle it reads low, by the cosine of the angle.
Limits
The sound formula assumes still air and motion along the line between source and observer. Wind adds to or subtracts from the speed of sound, sideways motion reduces the shift, and humidity changes the speed of sound slightly. When the source reaches the speed of sound, the waves pile into a shock wave and the formula no longer applies; the calculator stops there. For the speed of sound in other conditions, see the speed of sound calculator.
More questions
Who discovered the Doppler effect?
The Austrian physicist Christian Doppler proposed it in 1842 to explain the colours of double stars. In 1845 the Dutch scientist Buys Ballot tested it for sound by having trumpeters play a steady note on a moving train while musicians on the platform judged the pitch.
How is the Doppler effect used in medicine?
Doppler ultrasound bounces high-frequency sound off moving red blood cells. The shift in the echo's frequency gives the speed and direction of blood flow, which helps check heart valves, blood vessels and a fetus's circulation. Echocardiograms display it as colour on the image.
Do weather radars use the Doppler effect?
Yes. Doppler weather radars, such as Environment and Climate Change Canada's network, measure the shift of echoes from raindrops and snowflakes to find how fast precipitation moves toward or away from the radar. Rotation patterns in that velocity data can reveal developing tornadoes.
Why does a passing train's horn seem to drop suddenly?
The pitch changes fastest when the train is closest to you, because that is when its motion switches from mostly toward you to mostly away. If you stand right beside the track, the drop is almost instant; farther away, it is smoother. The pass-by chart shows this for any closest distance.
Can I hear the Doppler effect from my own movement?
Yes. Cycling or driving past a stationary bell, alarm or loudspeaker, you hear the pitch rise as you approach and fall as you leave. The shift is small at walking pace, about 0.4% at 5 km/h, but clear at highway speed, around 8% at 100 km/h.
How do astronomers find planets with the Doppler effect?
A planet makes its star wobble slightly, so the star's light is alternately redshifted and blueshifted. Spectrographs can detect the resulting velocity changes down to under 1 m/s. This radial-velocity method found many of the first known exoplanets, including 51 Pegasi b in 1995.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.