Doppler Effect Calculator

Find the pitch of a siren, horn or any sound as it is heard by a moving observer, and see how the pitch slides as a vehicle drives past.

🚑 Doppler Effect Calculator
Vehicle preset (illustrative)
Source frequency (f)
Hz
Speed unit
Medium
Wave speed (c)
m/s
Source speed (vs), in the unit chosen above
Source is moving
Observer speed (vo)
Observer is moving
Closest-approach distance (d)
m
Observed frequency
—
Shift
—
Ratio f'/f
—
Pitch change
—
Wavelength in front of the source
—
Wavelength at rest
—
Source Mach number
—
Mach cone half angle
—
Net closing speed
—

Pitch while approaching
—
Pitch while receding
—
Pitch at closest approach
—
Total drop
—
Drop in semitones
—
Ratio approach / recede
—
Slide time (90% to 10% of drop)
—
Source Mach number
—

🚑 What is the Doppler Effect?

The Doppler effect is the change in the observed frequency of a wave when the source and the observer are moving relative to each other. A siren seems higher in pitch as an ambulance approaches and lower as it moves away. The cause is simple: a source moving through the air emits successive wavefronts from points that are closer together in the direction it is travelling, so the wavelength ahead of it is shorter and the waves arrive more often. Behind the source the wavefronts are stretched, so they arrive less often. An observer moving toward the source also meets the wavefronts more frequently, even though the wavelength is unchanged.

The effect has many uses. Police radar guns and weather radars use the Doppler shift of reflected microwaves to measure speed and wind. Medical Doppler ultrasound measures blood flow by the frequency shift of echoes from moving red cells. Sonar and acoustic current profilers measure water motion, and musicians experience the effect with rotating speakers. In everyday life it is the pitch drop of passing trains, cars and aircraft, and it is a standard test of wave physics in schools.

This page covers the classical Doppler effect for sound and other waves in a medium at rest, where the wave speed c is fixed relative to the medium. That is why a moving source and a moving observer give different formulas: the medium picks out a preferred frame. Light has no medium and obeys the relativistic formula, covered in the relativistic Doppler effect calculator, while astronomers use the low-speed shift of spectral lines in the Doppler shift and radial velocity calculator. If you only need the wave speed of sound itself, use the speed of sound calculator.

The calculator has two modes. Source and observer gives the observed frequency for any combination of source and observer speeds and directions, plus the Mach number and the cone angle for supersonic sources. Passing vehicle models a source driving along a straight road past a stationary listener and shows the whole pitch curve, including how fast the pitch slides as the vehicle goes by.

📐 Formula

f'  =  f × ( c + vo ) / ( c − vs )
f' = observed frequency (Hz)
f = frequency emitted by the source (Hz)
c = speed of the wave in the medium (m/s), about 343 m/s for sound in air at 20 C and 1482 m/s in water
vo = observer speed toward the source (m/s), negative if moving away
vs = source speed toward the observer (m/s), negative if moving away. The formula needs vs < c when approaching.
Wavelength between source and observer: λ' = ( c − vs ) / f
Mach number and cone: M = vs / c, and for M > 1 the Mach cone half angle is asin( 1 / M )
Passing source at distance d: f' = f / ( 1 + ( v / c ) cos φ ), where φ is the angle between the velocity and the line from the source to the observer at emission
Example: f = 960 Hz, vs = 25 m/s toward a stationary observer, c = 343 m/s gives f' = 960 × 343 / 318 = 1035.47 Hz

📖 How to Use This Calculator

Steps

1
Choose a mode. Pick Source and observer for any motion, or Passing vehicle for a vehicle driving past a stationary listener.
2
Enter the sound and the speeds. Pick a vehicle preset or type the source frequency, choose the medium (or a wave speed), set the speed unit and enter the source speed. Then set the direction menus and the observer speed, or the closest-approach distance for a passing vehicle. The unit menu only labels the numbers you type; it does not convert them.
3
Read the result and the chart. See the observed frequency, the shift in hertz and semitones, the Mach number and the wavelengths, or the approaching and receding pitches and the slide time. The chart marks your values.

💡 Example Calculations

The siren frequencies and vehicle speeds are illustrative round values, not measurements of real vehicles.

Example 1 — Ambulance Approaching a Stationary Listener

960 Hz siren, source at 90 km/h (25 m/s) toward the observer, c = 343 m/s, observer at rest

1
Speeds: vs = 90 / 3.6 = 25.00 m/s, vo = 0, so c − vs = 318
2
f' = 960 × 343 / 318 = 1035.47 Hz
3
Shift = +75.47 Hz, ratio 1.0786 or +1.31 semitones. The wavelength ahead of the ambulance is 0.3312 m instead of 0.3573 m.
Observed frequency = 1035.47 Hz (+75.47 Hz)
Try this example →

Example 2 — The Same Ambulance Driving Away

960 Hz siren, source at 90 km/h (25 m/s) away from the observer, c = 343 m/s

1
For a receding source the sign flips: c + vs = 343 + 25 = 368
2
f' = 960 × 343 / 368 = 894.78 Hz
3
Shift = −65.22 Hz, ratio 0.9321 or −1.22 semitones. The approach is a bigger shift than the recession, so the two are not symmetric.
Observed frequency = 894.78 Hz (−65.22 Hz)
Try this example →

Example 3 — Source and Observer Both Approaching

500 Hz tone, source 30 m/s toward the observer, observer 20 m/s toward the source, c = 343 m/s

1
Numerator c + vo = 343 + 20 = 363 and denominator c − vs = 343 − 30 = 313
2
f' = 500 × 363 / 313 = 579.87 Hz
3
Shift = +79.87 Hz, ratio 1.1597 or +2.57 semitones. The net closing speed is 50.00 m/s.
Observed frequency = 579.87 Hz (+79.87 Hz)
Try this example →

Example 4 — Observer Walking Away from a Fixed Source

440 Hz source at rest, observer moving away at 10 m/s, c = 343 m/s

1
The observer term is c + vo = 343 − 10 = 333 and the source term is c − 0 = 343
2
f' = 440 × 333 / 343 = 427.17 Hz
3
Shift = −12.83 Hz or −0.51 semitones. The wavelength stays 0.7795 m because only the observer moves.
Observed frequency = 427.17 Hz (−12.83 Hz)
Try this example →

Example 5 — Supersonic Jet Moving Away

200 Hz source at Mach 1.2 (411.6 m/s) moving away from a stationary observer, c = 343 m/s

1
Mach number = 411.6 / 343 = 1.200, so the Mach cone half angle is asin(1/1.2) = 56.44°
2
For a receding source the formula still works: f' = 200 × 343 / (343 + 411.6) = 90.91 Hz
3
Shift = −109.09 Hz, a drop of 13.65 semitones. The same jet moving toward the observer cannot be described by the formula, since c − vs would be negative.
Observed frequency = 90.91 Hz, Mach cone half angle = 56.44°
Try this example →

Example 6 — Ambulance Driving Past 10 m Away

960 Hz siren, 90 km/h (25 m/s) along a straight road, closest approach d = 10 m, c = 343 m/s

1
Far on approach the pitch is 960 × 343 / 318 = 1035.47 Hz and far after passing it is 960 × 343 / 368 = 894.78 Hz
2
Total drop = 140.69 Hz, ratio 1.1572, which is 2.53 semitones
3
The slide from 90 percent to 10 percent of the drop takes 1.064 s at 10 m. At exactly closest approach the emitted pitch is the true 960 Hz.
Approaching 1035.47 Hz, receding 894.78 Hz, slide time 1.064 s
Try this example →

Example 7 — The Same Pass, Viewed from 50 m

960 Hz siren, 90 km/h (25 m/s), closest approach d = 50 m, c = 343 m/s

1
The approaching and receding pitches do not depend on distance: 1035.47 Hz and 894.78 Hz
2
The geometry stretches the slide in proportion to d, so the 90 to 10 percent time is 5 times longer: 5.319 s
3
A listener close to the road hears a sudden drop in pitch, and one far from it hears a slow glide.
Approaching 1035.47 Hz, receding 894.78 Hz, slide time 5.319 s
Try this example →

❓ Frequently Asked Questions

What is the formula for the Doppler effect in sound?+
The observed frequency is f' = f (c + vo)/(c - vs), where f is the source frequency, c the speed of sound in the medium, vo the observer speed toward the source and vs the source speed toward the observer. Use negative values for receding.
Why does a siren sound higher when it approaches?+
The source follows its own waves, so successive wavefronts are emitted closer together in the direction of motion. A shorter wavelength at the same wave speed reaches the listener at a higher frequency. After it passes the effect reverses.
How much does the pitch of an ambulance change?+
At 25 m/s (90 km/h) in air at 20 C a 960 Hz siren is heard at about 1035 Hz while approaching and 895 Hz while receding, a drop of about 141 Hz or about 2.5 semitones. The siren frequency here is an illustrative value.
Is the Doppler effect different if the source or the observer moves?+
Yes for sound. The wave speed is fixed relative to the air, so a moving source changes the wavelength while a moving observer changes only the rate of wavefronts met. The formulas differ slightly but agree for speeds much lower than the wave speed.
What happens when the source moves faster than sound?+
The source outruns its own waves and the Doppler formula for approach no longer applies. The waves overlap into a Mach cone with half angle asin(1/M), where M is the Mach number, and a listener hears a sonic boom as the cone passes.
What is the Doppler effect when both source and observer move?+
Use both terms: f' = f (c + vo)/(c - vs). A source approaching at 30 m/s and an observer approaching at 20 m/s in air at 343 m/s shift a 500 Hz tone to about 580 Hz.
Does the Doppler shift depend on the frequency?+
The ratio f'/f does not; only the speeds and the wave speed matter. The shift in hertz is proportional to the source frequency, so a 2000 Hz tone shifts twice as many hertz as a 1000 Hz tone.
Does the Doppler effect work in water?+
Yes, with the speed of sound in water, about 1482 m/s, in place of the air value. Because that speed is much higher, a given source speed produces a much smaller fractional shift than in air.
How is this different from the relativistic Doppler effect?+
Classical sound Doppler needs a medium and treats source and observer motion separately. Light has no medium, so it uses the relativistic Doppler formula, which depends only on relative velocity. See the relativistic and astrophysical Doppler pages.
Why does the pitch of a passing car drop smoothly?+
The component of the car's velocity along the line to the listener changes gradually as the car passes. The observed frequency is f / (1 + (v/c) cos of the angle), so it moves from the approaching value to the receding value over a time that scales with the distance of closest approach.
Are the vehicle presets exact?+
No. The ambulance, police and train presets give illustrative siren frequencies and speeds for demonstration. Real sirens sweep between frequencies and real speeds vary, so enter your own values for accurate work.
Does wind change the Doppler shift?+
Yes. The formula assumes still air and uses speeds measured relative to the air. With a steady wind, subtract the wind component along the line between source and observer from each velocity before entering it. This is an approximation for light winds.

What is the formula for the Doppler effect in sound?

The observed frequency is f' = f (c + vo)/(c - vs), where f is the source frequency, c the speed of sound in the medium, vo the observer speed toward the source and vs the source speed toward the observer. Use negative values for receding.

Why does a siren sound higher when it approaches?

The source follows its own waves, so successive wavefronts are emitted closer together in the direction of motion. A shorter wavelength at the same wave speed reaches the listener at a higher frequency. After it passes the effect reverses.

How much does the pitch of an ambulance change?

At 25 m/s (90 km/h) in air at 20 C a 960 Hz siren is heard at about 1035 Hz while approaching and 895 Hz while receding, a drop of about 141 Hz or about 2.5 semitones.

Is the Doppler effect different if the source or the observer moves?

Yes for sound. The wave speed is fixed relative to the air, so a moving source changes the wavelength while a moving observer changes only the rate of wavefronts met. The formulas differ slightly but agree for speeds much lower than the wave speed.

What happens when the source moves faster than sound?

The source outruns its own waves and the Doppler formula for approach no longer applies. The waves overlap into a Mach cone with half angle asin(1/M), where M is the Mach number, and a listener hears a sonic boom as the cone passes.

What is the Doppler effect when both source and observer move?

Use both terms: f' = f (c + vo)/(c - vs). A source approaching at 30 m/s and an observer approaching at 20 m/s in air at 343 m/s shift a 500 Hz tone to about 580 Hz.

Does the Doppler shift depend on the frequency?

The ratio f'/f does not, only the speeds and the wave speed matter. The shift in hertz is proportional to the source frequency, so a 2000 Hz tone shifts twice as many hertz as a 1000 Hz tone.

Does the Doppler effect work in water?

Yes, with the speed of sound in water, about 1482 m/s, in place of the air value. Because that speed is much higher, a given source speed produces a much smaller fractional shift than in air.

How is this different from the relativistic Doppler effect?

Classical sound Doppler needs a medium and treats source and observer motion separately. Light has no medium, so it uses the relativistic Doppler formula, which depends only on relative velocity. See the relativistic and astrophysical Doppler pages.

Why does the pitch of a passing car drop smoothly?

The component of the car's velocity along the line to the listener changes gradually as the car passes. The observed frequency is f / (1 + (v/c) cos of the angle), so it moves from the approaching value to the receding value over a time that scales with the distance of closest approach.

Are the vehicle presets exact?

No. The ambulance, police and train presets give illustrative siren frequencies and speeds for demonstration. Real sirens sweep between frequencies and real speeds vary, so enter your own values for accurate work.