GestureSynth.me

Music calculator

Doppler Effect Sound Calculator

Calculate the sound frequency heard by a moving listener from emitted pitch, radial source and listener velocities, and sound speed.

doppler effect sound calculator

Doppler Effect Sound Calculator guide

A passing sound changes pitch because the source changes wavefront spacing and the listener changes how quickly those wavefronts arrive. Enter the velocity component along the line connecting the two at the instant of interest.

Play the instrument ↑
Default result
467.24458 Hz heard

Calculation and units

The observed frequency is f × (c + vo)/(c − vs). A positive source speed means motion toward the listener and a positive listener speed means motion toward the source. Velocities are relative to the medium. A negative speed means recession for that input.

Worked examples

Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.

Approaching source

Emitted frequency (Hz) = 440 · Source speed toward listener (m/s) = 20 · Listener speed toward source (m/s) = 0 · Sound speed (m/s) = 343.

467.24458 Hz heard. Frequency ratio 1.0619195. Pitch shift 104.0093 cents relative to the emitter.

A source traveling toward a fixed microphone bunches wavefronts together in the air.

Receding source

Emitted frequency (Hz) = 440 · Source speed toward listener (m/s) = -20 · Listener speed toward source (m/s) = 0 · Sound speed (m/s) = 343.

415.75758 Hz heard. Frequency ratio 0.9449036. Pitch shift -98.1132 cents relative to the emitter.

Reverse only the source sign. Its period at the microphone increases as the source recedes.

Moving listener

Emitted frequency (Hz) = 440 · Source speed toward listener (m/s) = 0 · Listener speed toward source (m/s) = 20 · Sound speed (m/s) = 343.

465.65598 Hz heard. Frequency ratio 1.058309. Pitch shift 98.1132 cents relative to the emitter.

A listener moving into the incoming waves crosses more wavefronts per second.

Both approach

Emitted frequency (Hz) = 440 · Source speed toward listener (m/s) = 20 · Listener speed toward source (m/s) = 10 · Sound speed (m/s) = 343.

480.86687 Hz heard. Frequency ratio 1.0928793. Pitch shift 153.7608 cents relative to the emitter.

Both radial velocities raise the received pitch, but they enter different places in the formula.

Equal co-motion

Emitted frequency (Hz) = 440 · Source speed toward listener (m/s) = 20 · Listener speed toward source (m/s) = -20 · Sound speed (m/s) = 343.

440 Hz heard. Frequency ratio 1. Pitch shift 0 cents relative to the emitter.

These signed inputs represent the same velocity in one direction for source and listener. Their frequency shifts cancel.

Stationary reference

Emitted frequency (Hz) = 1000 · Source speed toward listener (m/s) = 0 · Listener speed toward source (m/s) = 0 · Sound speed (m/s) = 343.

1000 Hz heard. Frequency ratio 1. Pitch shift 0 cents relative to the emitter.

Use the unchanged reference as a check before entering a measured source or listener speed.

Interpreting the result

For a roadside recording, set listener speed to zero and use the source's radial component. Compare the same speed with opposite signs on approach and departure. For a moving microphone, put its own radial motion in the listener field.

To compare with a recording, mark two short segments where the source tone is steady and the direction of travel is clear. Measure the strongest fundamental in each segment and avoid mixing a harmonic from one segment with the fundamental from the other. An engine that changes speed can change the emitted pitch as well as the radial speed. A constant-frequency siren mode or a calibrated tone gives a cleaner comparison. A trajectory passing beside a listener produces a gradual transition: the radial component tends toward zero near the side-on position, even when the vehicle's forward speed stays almost constant.

Measurement and model limits

The classical expression assumes uniform sound speed and subsonic radial velocities. Curved paths require a new radial projection as direction changes. A frequency ratio alone cannot determine source and listener speeds independently.

Answers before you play

Common questions

What if both endpoints are stationary?

The frequency ratio is one and the pitch in cents stays unchanged.

Why are the velocity terms different?

Source motion changes spacing between emitted wavefronts. Listener motion changes the rate at which the receiver meets those wavefronts.

What if velocity is perpendicular to the line of sight?

Its instantaneous radial component is zero. Enter zero for that motion component.

How is the musical shift calculated?

Multiply log base two of the frequency ratio by 1200. A doubling corresponds to one octave or 1200 cents.