Doppler Effect
calculator.
A passing siren drops in pitch and far galaxies look redder: work out both shifts.
- Ratio to emitted
- 1.0958
- Wavelength here
- 0.44714 m
- Change
- +67.093 Hz
The pitch you hear is higher by 1.5846 semitones, where 12 semitones is a doubling of frequency. As the source passes, it falls from 767.09 to 643.7 Hz.
Speeds are positive toward each other and negative apart.
Pitch against source speed
Drag the point to change the speedThe pitch you hear against the source's speed toward you. At 30 m/s it is 767.09 Hz. It rises faster as the source nears the speed of sound.
What the waves are doing
Each ring is a crest, and the dot is the source. The source is moving at 8.7464% of the speed of sound, so crests bunch up on your side.
Who is moving?
Same speed, different pitch, because sound travels through a medium. The gap is 5.8682 Hz here, and it grows as the speed nears 343 m/s.
Speed of sound in your medium
Pitch before and after it passes
| Speed (m/s) | Before (Hz) | After (Hz) | Drop |
|---|---|---|---|
| 5Drop 0.50477 st | 710.36 | 689.94 | 0.50477 |
| 10Drop 1.0098 st | 721.02 | 680.17 | 1.0098 |
| 20Drop 2.0212 st | 743.34 | 661.43 | 2.0212 |
| 30yoursDrop 3.0362 st | 767.09 | 643.7 | 3.0362 |
| 50Drop 5.0835 st | 819.45 | 610.94 | 5.0835 |
| 100Drop 10.396 st | 988.07 | 541.99 | 10.396 |
Working
- 1Doppler rule for sound, with speeds positive toward each otherf′ = f ×c + voc − vs
- 2Put your numbers in, in hertz and m/sf′ = 700 ×343343 − 30= 767.09 Hz
- 3Pitch change: 12 semitones for each doubling of frequency12 log₂767.09700= 1.5846 semitones
- 4Check: turn the pitch back into the source speedvs = 343 −700 × 343767.09= 30 m/s
How it's worked out
Sound travels through a medium, usually air, so it matters who is moving. A moving source squeezes the waves together on one side. A moving listener meets the same waves more or less often.
Here f is the frequency the source sends, c is the speed of sound, v with the small o is your speed toward the source, and v with the small s is the source's speed toward you. Use a negative speed for motion apart. The speed of sound in air is about 343 m/s at 20 °C, and fresh water carries sound at about 1,480 m/s.
Light is different. It needs no medium and every observer measures the same speed for it, so only the speed between you and the source counts. The formula comes from special relativity, and β is the speed divided by the speed of light, positive here when the source approaches.
Redshift z is the stretch as a share of the original wavelength. Positive z means the light got longer, which is a redshift, and negative z is a blueshift. OpenStax writes the same formula with v positive for motion away, so check the sign before you compare with a textbook.
To turn a shift back into a speed, the same rule runs in reverse. Two pitches heard from one spot, before and after a passing source, give its speed without its own frequency, because the unknown frequency cancels when you divide one by the other.
Worked examples
Maya hears an ambulance go by
A siren at 700 Hz comes toward Maya at 30 m/s, about 108 km/h. She hears 767.09 Hz. Once it has passed and is moving away at the same speed, she hears 643.7 Hz.
The rise on approach is 67.09 Hz and the fall on the way out is 56.3 Hz, so the two shifts are not equal. Together they make a drop of 3.04 semitones, roughly three neighboring piano keys.
Jon works out a car's speed from its horn
Jon stands beside a road and matches a car's horn to notes on a phone tuner, about 466 Hz as it comes and 415 Hz as it goes. He does not know the horn's real frequency, and he does not need it.
The speed comes out at 19.86 m/s, which is 71.5 km/h or 44.4 mph. The horn itself sends about 439 Hz. Being one semitone off on the first pitch moves the answer by about 10 m/s, so treat this as a rough check rather than a speed trap.
Priya reads a line in a galaxy's spectrum
Hydrogen gives off a red line at 656.28 nm. In a galaxy moving away at 1,000 km/s, Priya sees it at 658.47 nm, a redshift of z = 0.00334.
At this speed the low-speed estimate, speed divided by the speed of light, gives 0.00334, almost the same. Working backward from her reading returns 1,000 km/s, which matches.
Reading your result
A semitone is a useful size. In air at 343 m/s, a source needs about 19.3 m/s toward you to raise its pitch by one semitone, the step between neighboring piano keys. The Handbook for Acoustic Ecology puts this at about 42 mph. An experiment near the Dutch town of Maarsen in 1845 had trained musicians listen to trumpets on a passing train.
Temperature moves the answer a little. Air at −10 °C carries sound at about 324.9 m/s and air at 30 °C at about 348.7 m/s. The same 30 m/s siren is heard at 771.2 Hz in the cold and 765.9 Hz in the heat, so a difference that small rarely matters outside a lab.
The low-speed estimate fails near light speed. A source moving away at half the speed of light takes a 500 nm line to 866 nm, a z of 0.732. Speed divided by light speed says 0.5, so use the full formula above about a tenth of light speed.
A very large redshift is not a speed through space. For the most distant galaxies, redshift comes mostly from the expansion of space, and astronomers read it with a cosmology model rather than this formula.
Common mistakes
- Treating a moving listener like a moving source. At 20 m/s, a moving listener hears 740.8 Hz from a 700 Hz siren, while a moving source gives 743.3 Hz. In air the two are not the same.
- Getting the signs backward. Here a speed is positive toward the other party, in both places. A source moving away takes a negative value, which makes the bottom of the fraction bigger and the pitch lower.
- Using it past the speed of sound. A source at or above the speed of sound outruns its own waves and piles them into a shock wave, so the calculator refuses that case rather than give a wrong number.
- Forgetting that only motion along the line counts. A source that passes beside you has a speed along your line of sight that shrinks to zero at the closest point, which is why the pitch slides down rather than jumps.
- Mixing units. Both speeds and the speed of sound must share a unit in the formula. The boxes here convert for you, so you can mix mph with m/s.
Questions people ask
Sources
- OpenStax, University Physics Volume 1, section 17.7 The Doppler Effect
- OpenStax, University Physics Volume 1, section 17.2 Speed of Sound
- OpenStax, University Physics Volume 3, section 5.7 Doppler Effect for Light
- NIST, speed of light in vacuum
- Handbook for Acoustic Ecology, Simon Fraser University: Doppler effect