Science & Engineering

Doppler Effect Calculator (Sound and Light)

Calculate the Doppler shift for sound waves and for electromagnetic waves with the relativistic formula. It includes air, water, and custom media plus redshift z for astronomy.

Reviewed and updated

How to use
  1. Choose sound waves or electromagnetic waves.
  2. Enter the source frequency and the relevant speeds.
  3. Pick a medium for sound, or enter velocity for light.
For study and estimation. Verify against authoritative data before relying on a result.
Was this helpful?

Motion toward you packs the waves tighter, so the frequency rises

f′ = f × ( v ± vo ) ÷ ( v ∓ vs )

Here v is the speed of the wave in its medium (about 343 m/s for sound in air), vo is the observer's speed and vs the source's. The received frequency f′ goes up when the two are approaching and down when they separate. The tricky part is the signs, not the arithmetic.

Getting the signs right is the whole game

  • Observer approaching. Add vo in the top — you sweep into the waves faster, so f′ rises.
  • Source approaching. Subtract vs in the bottom — the source chases its own waves, crowding them, so f′ rises.
  • Moving apart. Flip each sign: vo subtracts, vs adds, and f′ falls below the source frequency.
  • Rule of thumb. If the gap is closing, the answer must be higher than f. If it is opening, lower. Check your result against that before trusting it.

Simplified cases when only one thing moves

SituationFormulaResult
Both at restf′ = fno shift
Observer moving, source stillf′ = f × (v + vo) / vhigher if approaching
Source moving, observer stillf′ = f × v / (v + vs)lower if receding

Sound needs a medium, so these hold for air or water. Light travels through a vacuum and uses the relativistic version, f′ = f × √[(1 − β) / (1 + β)], where β = v/c.

Common questions

Why does an ambulance siren change pitch as it passes?

As it approaches, its sound waves get bunched up in front of it, so they reach you more often and the pitch sounds higher. Once it passes and moves away, the waves stretch out and the pitch drops. The siren itself never changes tone; only the frequency you receive does.

Does it matter whether the source or the observer is moving?

For sound, yes, slightly. A moving source changes the spacing of the waves it emits, while a moving observer changes how fast they sweep past. The two cases use different terms in the formula, so equal speeds do not give identical shifts.

What is the difference between redshift and blueshift?

Blueshift means the observed frequency rose because source and observer are closing in; the wave is compressed toward the blue end for light. Redshift is the opposite: they are separating, the wave stretches, and frequency falls.

From the blog

Guides & how-tos

All articles →