Anyone who has stood on a sidewalk as an ambulance races past has heard the Doppler effect first-hand: the siren sounds higher-pitched as it approaches, then noticeably lower once it passes and drives away. This article explains the physics behind that shift, why both the source's and the observer's motion matter independently, where the classical formula breaks down, and how the same idea shows up in light as redshift and blueshift.
Compressed and stretched wavefronts
A stationary sound source emits wavefronts as evenly spaced expanding spheres, like ripples from a pebble dropped in still water. If the source moves, each new wavefront is emitted from a slightly different position. A source moving toward the listener emits each wavefront a little closer to the previous one — the waves pile up ahead of it, shortening the wavelength and raising the frequency the listener hears. A receding source does the opposite: it emits each wavefront a little farther from the last, stretching the wavelength and lowering the frequency. This is a purely geometric effect — it happens even though the source itself never changes the pitch it's actually emitting.
Why the observer's motion matters separately
The source isn't the only thing that can move. An observer moving toward the source encounters wavefronts more frequently than a stationary listener would, simply because they're closing the gap and meeting each wavefront sooner — this also raises the perceived frequency, through a different mechanism than the source-side compression. An observer moving away encounters wavefronts less often, lowering the perceived frequency. Because these are independent effects, they can reinforce each other (both approaching, as in this calculator's third example) or partially cancel (one approaching while the other recedes) — which is exactly why the calculator lets you set source and observer direction separately rather than assuming only one side moves.
The sonic-boom limit
The classical Doppler formula f' = f0(v ± vₒ)/(v ∓ vₛ) has a hard mathematical limit: if an approaching source's speed reaches the speed of sound, the denominator (v − vₛ) hits zero and the formula predicts an infinite frequency. Physically, this is the sonic boom threshold — a source traveling at or beyond the speed of sound doesn't produce a rising pitch at all; it outruns its own wavefronts and creates a shockwave instead, a completely different phenomenon this calculator doesn't attempt to model. That's why the calculator flags an error rather than a number once source speed reaches the speed of sound.
The same idea in light: redshift and blueshift
Light waves show an analogous effect, which astronomers use constantly: a light source moving toward an observer shifts toward higher frequency (bluer light, hence "blueshift"), and one moving away shifts toward lower frequency ("redshift"). The underlying intuition — toward raises the observed frequency, away lowers it — carries straight over from sound. The math is different, though: because light doesn't need a medium and its speed is the same for every observer, the relativistic Doppler formula replaces the classical v ± vₒ / v ∓ vₛ ratio with one built from the Lorentz factor. That's a separate calculation this tool doesn't perform, but the physical picture — a source or observer's motion compressing or stretching the wave the other one perceives — is the same story told twice.