Works on this device
Doppler Effect Calculator
A siren sounds higher as it comes and lower as it goes. Light from a star that moves away is shifted to the red. Work out these shifts, or the speed from a measured shift. Each result names the formula it uses.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose a task: sound with a moving source or listener, light, the speed from a shift, or the speed of a sound source from the pitch you hear.
- For sound, give the speed of sound (from the air temperature, or typed for water or another medium), the speeds and the directions.
- For light, give the wavelength or the frequency, and the speed in km/s or as a fraction of the speed of light.
- Choose Calculate. The working shows each step.
The formulas
- Sound: f′ = f × (v + vo) ÷ (v − vs). vo is positive when the listener moves towards the source, vs positive when the source moves towards the listener.
- Light (relativistic): f′ = f × √((1 − β) ÷ (1 + β)), with β = v ÷ c positive when they move apart.
- Redshift: z = λ observed ÷ λ emitted − 1 = √((1 + β) ÷ (1 − β)) − 1. Turned round: β = ((1 + z)² − 1) ÷ ((1 + z)² + 1).
- Low-speed approximation: z ≈ β, so f′ ≈ f × (1 − β) and v ≈ c × z.
- Speed of a passing source: vs = v × (f₁ − f₂) ÷ (f₁ + f₂), from the pitch f₁ as it comes and f₂ as it goes.
Worked examples
An ambulance. A 500 Hz siren comes towards you at 30 m/s in air at 20 °C (343.21 m/s): f′ = 500 × 343.21 ÷ (343.21 − 30) = 547.89 Hz, 158.4 cents higher. As it goes away you hear 500 × 343.21 ÷ 373.21 = 459.81 Hz.
A star. Light of 500 nm from a star that moves away at 3000 km/s (β = 0.010007): λ′ = 500 × √(1.010007 ÷ 0.989993) = 505.03 nm, z = 0.010057. The low-speed formula is 0.005% off.
Speed from a shift. A redshift z = 0.02 gives β = (1.02² − 1) ÷ (1.02² + 1) = 0.0198, a speed of 5,935.9 km/s. The low-speed formula c × z gives 5,995.8 km/s.
A passing car. You hear 550 Hz as it comes and 455 Hz as it goes: vs = 343.21 × 95 ÷ 1005 = 32.44 m/s (116.8 km/h), and the horn itself sounds 498.0 Hz.
Limits you should know
- Sound: the air is taken as still, and only the speeds along the line between source and listener count. The formula fails when the source comes as fast as sound (a sonic boom).
- Light: only motion along the line of sight is included. Sideways motion adds a smaller shift.
- For far galaxies the redshift comes mostly from the expansion of space, so the speed found is not a real speed through space.
- The speed of sound in air comes from a formula for dry air. For sound in depth see the Sound Wavelength Calculator; for two tones that beat, the Beat Frequency Calculator.