Doppler Effect Simulator
Enter a source frequency, source speed, and observer speed to see how motion changes the perceived pitch. The simulator shows compressed and stretched wavefronts with full step-by-step math.
Wavefront Diagram
Parameters
Results
Step-by-Step Calculation
1. Doppler Formula (approaching)
2. Frequency Shift
3. Source Wavelength
4. Perceived Wavelength
Reference Guide
The Doppler Formula
When a sound source and observer move relative to each other, the observed frequency changes. The general formula is
The upper signs apply when source and observer approach each other, and the lower signs when they move apart.
Approaching vs Receding
When a source approaches, wavefronts compress ahead of it, producing a higher-pitched sound. When it recedes, wavefronts stretch out and the pitch drops.
This is why a passing ambulance siren sounds higher in pitch as it approaches and lower as it drives away.
Mach Number and Sonic Boom
The Mach number is the ratio of the source speed to the speed of sound.
When , the source outruns its own wavefronts. All the compressed waves pile up into a shock wave, producing a sonic boom.
Everyday Examples
The Doppler effect is everywhere. Ambulance sirens, train horns, and passing cars all demonstrate the pitch shift. Bats use the Doppler shift of their ultrasonic calls to track flying insects.
In astronomy, the same principle applies to light waves. A galaxy moving away from us has its light shifted toward the red end of the spectrum (redshift).