Why a passing siren changes pitch

An ambulance sounds higher as it approaches and lower after it passes. The siren itself did not change. The pitch you hear depends on how many wave crests reach your ear each second, and motion changes that count. This is the Doppler effect for sound. The page computes the observed frequency from the emitted frequency, the speed of sound and the speeds of the source and listener along the line between them. The method follows OpenStax College Physics on the Doppler effect and sonic booms. It suits classroom problems about sirens, passing trains and moving listeners, and it helps build intuition for how much pitch shifts at ordinary speeds.

Observed frequency for a moving source and listener

The observed frequency is f' = f × (c + vl) / (c - vs). Here f is the emitted frequency in hertz, c is the speed of sound, vl is the listener speed toward the source and vs is the source speed toward the listener, all in m/s. A listener moving toward the source raises the numerator, which raises the pitch. A source moving toward the listener lowers the denominator, which also raises it. Moving away reverses each effect, so you enter a negative value for that speed. The medium is assumed to be still, and the speeds are measured relative to it, which is why the sound speed appears in both terms.

The default case

The page begins with c of 340 m/s, an emitted frequency of 1,000 Hz, a listener moving toward the source at 10 m/s and a source moving toward the listener at 20 m/s. The numerator is 340 + 10 = 350 and the denominator is 340 - 20 = 320, so the observed frequency is 1,000 × 350 / 320 = 1,093.75 Hz. The pitch rises by 93.75 Hz, a bit more than a semitone, since a semitone corresponds to a frequency ratio of about 1.0595 and this ratio is 1.0938. Both motions work together in this setup, since each one raises the pitch.

An ambulance passing a bystander

Suppose a siren at 700 Hz is on a vehicle moving at 25 m/s, with c at 343 m/s and a standing listener. While the ambulance approaches, the observed frequency is 700 × 343 / (343 - 25), about 755.03 Hz. After it passes, the source speed is entered as -25 and the page gives 700 × 343 / (343 + 25), about 652.45 Hz. The pitch drops by roughly 102.6 Hz as the vehicle passes, a change of more than a whole tone. This explains the familiar drop in pitch heard from emergency vehicles. The sound speed of 343 m/s is typical for air at 20 °C.

A moving listener and a still source

Now keep the source fixed at 440 Hz and let a listener walk toward it at 10 m/s with c at 343 m/s. The observed frequency is 440 × 353 / 343, about 452.83 Hz. The shift is smaller than the equal-speed source case would produce, because the formulas are not symmetric. Walking toward a stationary source at a given speed changes the pitch by a slightly different amount than the source moving toward you at the same speed, though at small speeds the difference is tiny. At speeds comparable to the speed of sound, the two cases differ visibly, which is why the page keeps them as separate inputs.

Sign conventions and typical mistakes

Both speed inputs are defined as toward the other party. A positive value means approaching, and a negative one means moving away. The most common mistake is to enter a positive speed for a receding vehicle and then wonder why the pitch went up. The second is to enter speeds in km/h, which makes the shift far too large. A source at 90 km/h is 25 m/s. The third is to forget that the page gives the frequency heard, not the pitch name. To find a musical interval, take the logarithm of the ratio of the frequencies. Check that your answer moves in the direction you expect.

Speed of sound

The sound speed is an input because it depends on the medium. In dry air it is about 331.3 m/s at 0 °C and rises by roughly 0.6 m/s for each degree Celsius, giving around 343 m/s at 20 °C. In fresh water it is near 1,480 m/s and in steel more than 5,000 m/s. Entering the right value matters most when the source is fast. For a 25 m/s source, using 340 instead of 343 changes the observed frequency by only about 0.1 Hz, but for a jet near the speed of sound the choice becomes critical. The default of 340 m/s is a rounded figure for air.

Source speed near the speed of sound

The denominator c - vs shrinks as the source speed approaches the speed of sound. At vs equal to c the formula divides by zero, and the page cannot return a finite value. This is the point where the waves pile up in front of the source and form a shock front, which is heard as a sonic boom when it passes. Beyond it, the simple formula no longer applies. Sources must therefore move more slowly than the sound speed in this model. At 300 m/s in 343 m/s air, a 700 Hz source would be heard at 700 × 343 / 43, about 5,584 Hz, which shows how sharply the shift grows.

Limits of the classical model

The page uses the classical one-dimensional model for sound in a stationary medium. Motion must lie along the line joining source and listener. Wind, which moves the medium, and motion at an angle are not handled. Light and radio waves follow a different relativistic Doppler formula, and this page does not apply to them. All outputs must be finite. Real sirens also change loudness and have harmonics, so the heard change is more complex than a single frequency shift. The results are educational estimates, not acoustic measurements.Ratios of frequency map onto musical intervals, and the observed frequency over the emitted frequency tells you how large the change sounds. A ratio of 2 is an octave and each equal-tempered semitone is a ratio of about 1.0595. The default ratio of 1.09375 is a little over 1.5 semitones. The ambulance example runs from 755.03 Hz approaching to 652.45 Hz receding, a ratio of 1.157, or about 2.5 semitones between the two passes. These comparisons help when you want to know whether a shift will be noticeable. Most listeners notice a difference of a few tenths of a semitone in a steady tone, so even slow vehicles produce an audible change.