Doppler Effect Calculator – Sirens, Radar Guns and Receding Galaxies
Everyone has heard an ambulance drop in pitch as it goes past, which makes the Doppler effectone of the most widely encountered pieces of physics and one of the most widely misunderstood. The usual intuition — that only the relative speed between source and listener matters — is simply false for sound. This Doppler shift calculator works the classical relation for a wave in a medium, inverts a measured shift back into a speed, hands off to shock-cone geometry at Mach 1, and switches to the relativistic formula the moment the wave is light.
The formula, and why the numerator and denominator differ
The general classical relation is f′ = f (v + w + v_o) / (v + w − v_s), with every speed measured relative to the undisturbed medium and wthe medium’s own velocity from source to observer. A moving source appears in the denominator; a moving observer appears in the numerator. Those are genuinely different functions, and they agree only to first order.
Take a 500 Hz siren and air at 343 m/s. A source approaching at 30 m/s gives 500 × 343 / 313 = 547.9233 Hz. An observer approaching a stationary source at the very same 30 m/s gives 500 × 373 / 343 = 543.7318 Hz. Identical closing speed, a 4.1915 Hz difference, and it is audible. Writing β = 30/343, the moving-observer case is exactly f(1 + β) while the moving-source case is f/(1 − β) = f(1 + β + β² + …). The gap is f β²/(1 − β) = 4.1915 Hz — exactly what the table shows.
Wind, and the myth that it changes the pitch
Wind does not shift a frequency by itself. It changes the effective wave speedalong the source–observer line, so you substitute v → v + w everywhere. With nothing moving, the formula collapses to f′ = f (v + w)/(v + w) = f for any wind whatsoever. With the same 30 m/s approaching source, a 10 m/s tailwind gives 546.4396 Hz and a 10 m/s headwind gives 549.5050 Hz: wind only ever modulates a shift real motion has already produced.
Turning a shift back into a speed
Invert the relation and a measurement falls out. A 500 Hz source heard at 550 Hz implies v_s = v(1 − f/f′) = 31.1818 m/s, or 112.25 km/h. A radar gun is different: it illuminates the target and receives the reflection, so the shift is applied twice and the beat note is Δf = 2 v f cos θ / c. A car at 30 m/s under a 24.125 GHz K-band beam returns 4828.34 Hz— an audible tone, which is why early guns had a loudspeaker.
cos θ. The cosine effect can never over-state a speed, which is why it always favours the driver.What happens at Mach 1
When v_s = vthe denominator is exactly zero. That is not a bug to trap: the source is keeping pace with its own wavefronts, so every crest emitted over the whole approach arrives at once, as a single pressure discontinuity. Above Mach 1 there is no observed frequency ahead of the source at all — it arrives before its sound does — and the useful output becomes geometry: μ = arcsin(1/M). At Mach 1.1662 the cone half-angle is 59.0370°, and at Mach 2 it is exactly 30°. The cone narrowsas speed rises, which is the opposite of most people’s intuition.
Light, redshift and the geometric mean
For an electromagnetic wave the correct relation is f′ = f √((1 − β)/(1 + β)) when receding. At β = 0.1 the hydrogen-alpha line stretches from 656.281 nm to 725.5459 nm, a redshift of z = 0.10554. The two naive classical treatments would give factors of 0.909091 and 0.900000, differing by 1 % — enough to reveal who was “really” moving, which no experiment has ever managed. The true factor, 0.904534, is exactly the geometric mean of the two, the missing piece being the 1/γ of time dilation applied symmetrically. At closest approach that leaves a pure transverse shift of 1/γ = 0.994987 with no line-of-sight motion at all.
From redshift to recession velocity
The inverse is β = ((1 + z)² − 1)/((1 + z)² + 1). The quasar 3C 273 at z = 0.158 gives 43 665 km/s, while the shortcut v = zc over-reads by 8.48 %. At z = 3 the shortcut returns 3c, which is impossible; the correct answer is β = 15/17. Note that at cosmological distances the redshift comes from the expansion of space rather than motion through it, so the velocity is a textbook conversion rather than a peculiar velocity — a distinction worth keeping in mind whenever a redshift calculator quotes kilometres per second.