How the Doppler Effect Calculator Works
A source sends out waves at a steady rate, f per second, and each wave spreads through still air at the speed of sound v. If the source moves, it travels a little way between one wave and the next. Ahead of it the waves are squeezed together; behind it they are stretched apart.
λ behind = (v + vs) / f
The pitch you hear is how many waves reach you each second. A listener moving toward the source meets the waves faster, at v + v_o instead of v. Putting both together gives the frequency heard while the two approach, and while they move apart:
f′ = f (v + vo) / (v − vs)
Moving apart:
f′ = f (v − vo) / (v + vs)
Everything rests on the wave equation, v = f λ. The speed of sound in dry air depends only on temperature:
(T in °C)
At and Beyond the Speed of Sound
When v_s reaches v, the approaching formula divides by zero, and that is a real signal: every wave is released right at the front of the last one, so they stack into a single shock. Faster still, no sound gets ahead of the source at all. The waves pile up along a cone whose half-angle θ satisfies sin θ = v / v_s = 1 / M, where M is the Mach number. The calculator reports these cases in words rather than a meaningless number.
Worked Example: An Ambulance Siren
A 700 Hz siren passes at 29 m/s (about 65 mph) on a 20 °C day.
- Speed of sound: v = 331.3 √(1 + 20 / 273.15) = 343.2 m/s.
- Approaching: f' = 700 × 343.2 / (343.2 − 29) = 764.6 Hz.
- Moving away: f' = 700 × 343.2 / (343.2 + 29) = 645.5 Hz.
- Wavelengths: 0.4489 m ahead and 0.5317 m behind, against 0.4903 m for a parked ambulance.
If you drive toward it at 25 m/s, you hear 820.3 Hz as you close in and 598.4 Hz once you have passed each other. Try it in the calculator.
A jet at Mach 2 in −50 °C air at cruising height (sound speed 299.4 m/s) trails a shock cone with a half-angle of 30°. Nothing is heard on the ground until that cone arrives.
Common Mistakes
- Mixing up the signs. Rather than memorizing plus and minus, ask whether the motion should raise or lower the pitch. Approaching raises it, so the fraction must come out larger than 1.
- Treating source and listener motion as the same. 30 m/s of source motion and 30 m/s of listener motion give different answers, because only the source changes the wavelength in the air.
- Using the source frequency to find the wavelength ahead. λ = v / f only holds for a still source. Ahead of a moving source, the wavelength is (v − v_s) / f.
- Forgetting temperature. 343 m/s is the value at 20 °C. On a freezing day sound moves at about 331 m/s, which changes every answer.
- Expecting the pitch to change gradually as it approaches. For a source coming straight at you, the pitch stays at the higher value and drops only as it passes. The gradual slide you hear by a road comes from the angle changing as the vehicle goes by.
Questions
Why does a passing siren drop in pitch?
While the vehicle approaches, each wave starts a little closer to you than the one before, so the waves arrive bunched up and the pitch is higher. Once it passes, the waves are stretched out and the pitch falls. A 700 Hz siren at 65 mph drops by about 2.9 semitones as it goes by.
Does the sound get louder because of the Doppler effect?
No. The Doppler effect changes the pitch, not the loudness. The sound gets louder as the source approaches simply because it is getting closer.
Why is moving the source different from moving the listener?
Sound travels through air, so motion relative to the air matters. A moving source changes the wavelength in the air; a moving listener leaves the wavelength alone but meets the waves more or less often. At low speeds the two effects are almost equal; near the speed of sound they are very different.
What causes a sonic boom?
A source moving faster than sound outruns every wave it makes. The waves pile up along a cone that trails behind it, and the pressure jump along that cone is the boom. It is not a one-time event at the moment of breaking the sound barrier: the cone travels with the aircraft and sweeps across everyone underneath its path.
Does this work for light?
Not with these formulas. Light needs no medium and its speed is the same for every observer, so the relativistic Doppler formula applies. The idea is the same, though: approaching sources look bluer and receding ones redder.