Doppler effect calculator

Why does a siren drop in pitch as it passes? Enter the frequency of the sound and how fast the source and listener are moving to hear the Doppler shift in numbers.

Car horn about 400 Hz, siren 600–1,500 Hz
30 m/s is 108 km/h or 67 mph
0 if you are standing still
m/s
Air at 20 °C 343, at 0 °C 331, water about 1,480
Pitch heard while approaching–
Pitch heard while moving apart–
Drop in pitch as it passes–

See it for real: play Paint the Sky or play Make Sand Sing.

The formula

When a source of sound moves towards you, its waves are squashed together and you hear a higher pitch; as it moves away, they are stretched out and the pitch falls. For sound in still air:

f′ = f × (c + vo) / (c − vs)  approaching

f′ = f × (c − vo) / (c + vs)  moving apart

f is the frequency the source actually gives out, f′ the frequency you hear, c the speed of sound (343 m/s in air at 20 °C), vs the speed of the source and vo the speed of the observer (the listener), each measured along the line between them. The drop in pitch as it passes is given in semitones, the steps on a piano keyboard.

Why it works

A siren at 700 Hz sends out a crest every 1/700 of a second. If it is moving towards you at 30 m/s, in that time it chases its own last crest and closes 30/700 = 4.3 cm of the gap. Each wave is 4.3 cm shorter than the 49 cm it would be from a parked ambulance, so more crests reach you each second: a higher pitch. Behind it, each wave is 4.3 cm longer. A moving listener is slightly different: the waves are not squashed, but you run into them faster, which is why the source and listener speeds appear in different places in the formula. At everyday speeds the two give almost the same answer.

How big is the shift?

Source passing a still listenerSpeedPitch drop
Cyclist’s bell5 m/s (18 km/h)0.5 semitones
Car in town13 m/s (30 mph)1.3 semitones
Motorway traffic31 m/s (70 mph)3.1 semitones
Formula 1 car on a straight90 m/s (324 km/h)9.3 semitones
High-speed train83 m/s (300 km/h)8.5 semitones

That classic “neeeee-owww” of a racing car really does fall by most of an octave as it passes.

A brass band on a train

The Austrian physicist Christian Doppler predicted the effect in 1842. In 1845 the Dutch scientist Christophorus Buys Ballot tested it on the railway near Utrecht: horn players stood on an open wagon pulled past musicians with perfect pitch, who wrote down the notes they heard. The shift matched Doppler’s formula.

Doppler shifts of light

Light shows the same effect, although the formula is different because light needs no medium: for speeds much less than light, the fractional shift is simply v/c. Galaxies moving away from us look redder (redshift), which is how Edwin Hubble discovered in 1929 that the universe is expanding. Police speed guns and weather radar measure the tiny Doppler shift of microwaves bounced off cars or raindrops, and doctors use Doppler ultrasound to measure blood flow through arteries.

Assumptions and limits

Everyday uses

Hear how sound travels in Paint the Sky, where every firework’s boom arrives late because sound covers only 343 m each second, and play with pitch and resonance in Make Sand Sing.

Worked example

An ambulance siren sounds at 700 Hz and drives past you at 30 m/s (108 km/h, 67 mph). What pitch do you hear before and after it passes?

Frequency the source gives out700 Hz
Speed of the source30 m/s
Speed of the listener0 m/s
Speed of sound343 m/s
Pitch heard while approaching767.1 Hz
Pitch heard while moving apart643.7 Hz
Drop in pitch as it passes3.036 semitones

About 767 Hz coming towards you and 644 Hz going away: a drop of three semitones, a minor third, which is easy to hear. Turn it round and you can estimate a car’s speed from the drop in its engine note: each semitone is roughly 10 m/s.

Frequently asked questions

What is the Doppler effect formula for sound?
f′ = f (c + vₒ) / (c − vₛ) for a source and observer approaching each other, with c the speed of sound. A 500 Hz horn approaching at 20 m/s: 500 × 343 / 323 = 531 Hz.
Why does a siren change pitch as it goes past?
As it approaches, each wave is sent out a little closer to you than the last, so the crests arrive bunched up and the pitch is higher. As it moves away the crests are spread out and the pitch is lower. The siren itself never changes.
How much does the pitch of a passing car drop?
About one semitone for every 10 m/s of speed. A car at 30 mph (13.4 m/s) drops about 1.3 semitones; at 70 mph (31.3 m/s) about 3.1 semitones, a minor third.
Does it matter whether the source or the listener moves?
Slightly. A source moving towards you at 30 m/s raises a 700 Hz tone to 767 Hz; you moving towards a still source at 30 m/s hear 761 Hz. The difference grows as speeds approach the speed of sound.
What is redshift?
The Doppler effect for light from something moving away: its wavelength is stretched towards the red end of the spectrum. A galaxy receding at 3,000 km/s (1% of light speed) has its light stretched by about 1%.
What happens when the source moves faster than sound?
It overtakes its own sound waves, which pile up into a cone-shaped shock wave. You hear nothing until the cone sweeps over you as a sonic boom. That boom is why Concorde, cruising at about Mach 2, was only allowed to fly supersonic over the sea.

Sources

Related calculators

Play it