About this Doppler effect calculator
Everyone has heard the Doppler effect, even if they never learned its name. An ambulance races towards you with its siren screaming high, then the pitch drops suddenly as it passes and recedes into the distance, even though the siren itself never changed its note. A Doppler effect calculator turns that familiar experience into numbers: give it the emitted frequency, the speed of sound, and the speeds of the source and the listener, and it returns the frequency that is actually heard, together with the size of the shift in hertz and in percent. The calculation is short, but the intuition behind it reaches from traffic noise to weather radar to the expansion of the universe itself.
The reason the pitch changes is wave compression. A stationary siren sends out sound waves evenly in all directions, like ripples from a stone dropped in a pond. When the source moves, it chases its own waves in the forward direction, squeezing them closer together, which your ear hears as a higher frequency, and it stretches them out behind, which you hear as a lower frequency. The formula captures this exactly: the heard frequency equals the emitted frequency multiplied by the speed of sound plus the observer's speed, divided by the speed of sound minus the source's speed for an approaching source, with the signs reversed for a receding one. This calculator applies that formula, and it refuses impossible inputs, such as a source moving at or above the speed of sound, where the simple formula breaks down and shock waves take over.
Using the tool starts with the emitted frequency, which is the note the source actually produces: a typical siren or a musical A at 440 hertz are good starting points. The speed of sound defaults to 343 metres per second, which is correct for air at about 20 degrees Celsius, but you can change it for hotter or colder air, or for a different medium. Then enter the source speed and, if the listener is also moving, the observer speed, and choose whether the source is approaching or receding. The preset buttons recreate the classic cases, an ambulance at highway speed, a receding train whistle, and a stationary siren for comparison, and the history keeps each run so you can see how the shift grows as the speed rises.
A worked example shows how large the effect really is. Take a 440 hertz tone, the musical note A, from a source approaching at 34.3 metres per second, which is one tenth of the speed of sound. The heard frequency is 440 multiplied by 343 divided by 308.7, which comes to about 488.89 hertz, a rise of nearly 49 hertz, or about 11 percent, which any listener would notice instantly as a distinctly higher note. The same source receding at the same speed gives 440 multiplied by 343 divided by 377.3, which is exactly 400 hertz, a fall of 40 hertz. The two shifts are not mirror images, because the denominators differ, and that asymmetry is a good check that a calculation has been done properly rather than guessed.
The same physics, applied to light instead of sound, is how astronomers know the universe is expanding. Light from distant galaxies is shifted towards the red end of the spectrum, meaning its wavelength has been stretched by the motion of its source away from us, and the size of the redshift tells astronomers how fast a galaxy is receding. Closer to home, weather radar uses the Doppler shift of reflected radio waves to measure wind speeds inside storms, and police speed guns bounce radio waves off moving cars and read the shift to get a speed. Medical ultrasound uses the effect in yet another form, measuring the shift in echoes from moving blood to check circulation without any surgery. In every case the principle is the same: motion changes the spacing of waves, and the change in spacing reveals the motion.
Students often trip over the same few details, so they are worth naming plainly. First, the source speed and the observer speed are not interchangeable in the formula, because the source changes the wavelength while the observer changes how often waves arrive, and the two effects enter differently. Second, the sign convention matters: approaching means the source speed subtracts in the denominator, which raises the frequency, while receding adds, which lowers it. Third, the speed of sound itself changes with temperature, rising roughly 0.6 metres per second for each degree Celsius, so a precise calculation should use the speed for the actual conditions rather than always assuming 343. Finally, remember that the effect is about the frequency you hear, not the loudness: a receding siren sounds lower, but it also sounds quieter for the separate reason that it is getting further away.
Practically, this tool earns its keep in three kinds of moment. A student can verify a textbook problem in seconds and, just as valuably, can play with the numbers to build intuition, watching the shift grow as the source speed climbs towards a tenth or a fifth of the speed of sound. A teacher can generate a set of consistent examples for a worksheet without hand-computing each one. And anyone curious about the world can put numbers to an experience they have every day, from the passing ambulance to the descending whine of a racing car on television. Try the ambulance preset, then double the speed, then set the observer moving too, and the abstract formula becomes something you can feel in your ears the next time a siren goes past.
A second worked example with a moving observer shows why the two speeds enter the formula differently. Suppose a stationary ambulance sounds a 1000-hertz tone while you drive towards it at 20 metres per second, with the speed of sound at 343 metres per second. The heard frequency is 1000 times 363 divided by 343, which is about 1058.31 hertz, a rise of about 5.8 percent. Now compare a source moving towards a stationary observer at the same 20 metres per second: the heard frequency is 1000 times 343 divided by 323, which is about 1061.92 hertz, slightly higher. The difference is small at low speeds but grows as speeds rise, and it is a genuine physical distinction, not a rounding artifact, because a moving source changes the wavelength while a moving observer changes the rate at which waves are encountered.
The effect is named for the Austrian physicist Christian Doppler, who described it in 1842 for both sound and light, and it was confirmed for sound in a delightfully direct experiment in 1845, when the Dutch scientist Buys Ballot placed trumpeters on a moving train and had musicians with perfect pitch on the platform record the notes they heard. The light version took longer to confirm, but by the early twentieth century the American astronomer Vesto Slipher had measured the redshifts of spiral nebulae, and Edwin Hubble showed that the redshift grows with distance, which became the first evidence that the universe is expanding. Every time you hear a siren drop in pitch, you are hearing the same physics that revealed the expanding universe, which is a pleasing thought for such an everyday sound.