PublicSoftTools

Doppler Effect Calculator

Calculate the observed frequency shift caused by the Doppler effect. Set source frequency, wave speed, and the velocities and directions of both source and observer. No signup, runs entirely in your browser.

⏱ 10 min read · Complete guide below

f_obs = f₀ × (v ± v_obs) / (v ∓ v_src)
Observed frequency482.17 Hz
Frequency shift+42.17 Hz
Percentage change9.58%
Blue shift (higher pitch)

How to Use the Doppler Effect Calculator

  1. 1Enter the source frequency — the true frequency emitted, in Hz.
  2. 2Set the wave speed: 343 m/s for sound in air at 20°C, ~1480 m/s in water.
  3. 3Enter the source and observer velocities and whether each is approaching or receding. Use 0 for a stationary party.
  4. 4Read the observed frequency and the shift — higher than the source means blue shift (approaching), lower means red shift (receding).

Worked Example: An Ambulance Driving Past

An ambulance siren emits 900 Hz and approaches a stationary pedestrian at 25 m/s. With the observer at rest, the formula reduces to f_obs = f₀ × v / (v − v_src) = 900 × 343 / (343 − 25) = 900 × 343 / 318 ≈ 970.8 Hz. The pedestrian hears a pitch nearly 71 Hz above the true siren frequency the whole time the ambulance approaches — not a rising pitch, but a constant, elevated one.

The moment the ambulance passes and recedes at the same speed, the denominator flips: f_obs = 900 × 343 / (343 + 25) ≈ 838.9 Hz. The listener experiences a sudden drop of about 132 Hz — roughly two and a half semitones — which is the familiar “eee-yooo” sweep of a passing siren. Try both directions in the calculator to reproduce each half of that sound.

Why the Pitch Shifts: A Physical Picture

The Doppler effect is easiest to understand by picturing the waves themselves. A sound source emits pressure waves outward like ripples. When the source moves toward you, each successive wave is emitted a little closer than the last, so the crests bunch up — the wavelength shortens and the frequency you hear rises. When the source moves away, the waves stretch out, lowering the frequency. The effect depends on relative motion along the line between source and observer, which is why a passing siren does not slide smoothly in pitch but holds a steadily higher note while approaching, then drops abruptly to a lower one the instant it passes and begins receding.

Moving Source vs Moving Observer

A subtle point the full formula captures is that it matters which party is moving, even at the same speed. When the source moves, it physically compresses or stretches the waves in the medium. When the observer moves, the waves are unchanged but the observer runs into them more or less often. The two situations give slightly different results at high speeds, which is exactly why the classical Doppler formula has separate terms for source velocity and observer velocity rather than just their difference. This calculator lets you set each independently, so you can explore a moving car passing a still listener, a moving listener passing a still speaker, or both in motion at once.

Doppler Beyond Sound

The same principle reaches far beyond sirens. Astronomers measure the redshift of light from distant galaxies to determine how fast they are receding — the key evidence that the universe is expanding — and the blueshift of approaching stars. Police radar and medical ultrasound bounce a known frequency off a moving target and read the returned shift to compute speed or blood flow. Note, though, that light requires the relativistic Doppler formula, which also accounts for time dilation; this calculator uses the classical formula, which is exact for sound and other mechanical waves and an excellent approximation whenever speeds are far below that of light.

Doppler Effect Examples

Police siren

A siren at 700 Hz, moving toward you at 30 m/s: the observed frequency is 700 × (343/313) ≈ 767 Hz — noticeably higher pitch. As it passes and moves away, it drops to ~648 Hz.

Astronomy

Astronomers use the Doppler shift of spectral lines to measure the radial velocity of stars and galaxies. A red shift of hydrogen-alpha line indicates recession.

Radar speed guns

Police radar emits a known frequency and measures the Doppler shift of the return echo to calculate vehicle speed. The same principle applies to medical ultrasound Doppler imaging.

Stationary observer

If the observer is stationary (v_obs = 0 m/s), set observer velocity to 0. The formula simplifies to f_obs = f₀ × v / (v ∓ v_src).

The Discovery of the Doppler Effect

The effect is named after the Austrian physicist Christian Doppler, who proposed it in 1842 while thinking about the coloured light of double stars. He reasoned that the motion of a wave source relative to an observer should change the observed frequency — and although his original astronomical application had errors, the core principle was sound and applies to all waves.

What makes the story delightful is how it was first tested. In 1845 the Dutch meteorologist Christophorus Buys Ballot devised a wonderfully direct experiment: he had a group of trumpeters play a sustained note on an open railway carriage while it was pulled past stationary musicians with perfect pitch, who recorded the note they heard. As the train approached, the observers heard a higher pitch; as it receded, a lower one — exactly as Doppler predicted, and audibly off by a measurable musical interval. It is one of the most charming confirmations in the history of physics, and it is the same effect you hear from every passing siren today.

The Sonic Boom: When the Source Reaches Wave Speed

The Doppler formula holds a dramatic clue about what happens at very high speeds. Notice that when a source moves toward you, the observed frequency depends on dividing by (wave speed − source speed). As the source approaches the speed of the wave itself — the speed of sound, for an aircraft — that denominator shrinks toward zero and the predicted frequency shoots toward infinity. Physically, the source is now keeping pace with its own waves, so every wave crest it emits piles up at the leading edge into a single, intense wall of compressed air.

This pile-up is a shock wave, and when it sweeps past you it is heard as a sonic boom — the sharp crack of a supersonic jet. So the sonic boom is not a one-off event that happens “at the moment” a plane breaks the sound barrier; it is a continuous cone of shock trailing behind any object moving faster than sound, and you hear the boom as that cone passes your location. The Doppler effect and the sonic boom are two faces of the same physics: the bunching of waves ahead of a moving source, taken to its extreme.

Applications, from Weather to Distant Worlds

The Doppler effect is one of the most useful measuring principles in science and technology, because a frequency shift is an easy, precise way to read a velocity. Doppler weather radar bounces radio waves off raindrops and reads the shift to see not just where rain is but which way and how fast it is moving — the basis for detecting the rotation inside storms and issuing tornado warnings. Police radar and lidar use the same idea to measure vehicle speed, and even the GPS in your phone accounts for Doppler shifts from fast-moving satellites to stay accurate.

In medicine, Doppler ultrasound measures the shift of sound reflected off flowing blood, letting doctors visualise blood flow and diagnose circulatory problems non-invasively. And on the grandest scale, astronomers use the Doppler shift of light to weigh the cosmos: the redshift of distant galaxies revealed that the universe is expanding, and the tiny back-and-forth wobble a planet induces in its star — detected as a rhythmic Doppler shift in the starlight — is one of the main methods for discovering exoplanets. From a passing ambulance to worlds around other suns, the same simple relationship this calculator computes is doing the work. (For light at very high speeds the relativistic formula is needed; the classical version here is exact for sound and an excellent approximation for everyday radar and medical use.)

Frequently Asked Questions

What is the Doppler effect?

The Doppler effect is the change in observed frequency of a wave when the source or observer is moving relative to each other. As they approach, the observed frequency is higher (blue shift); as they recede, it is lower (red shift).

What is the Doppler formula?

f_obs = f₀ × (v ± v_obs) / (v ∓ v_src), where v is the wave speed, v_obs is the observer velocity, and v_src is the source velocity. The signs depend on whether the source/observer are approaching or receding.

What speed of sound should I use?

In dry air at 20°C, sound travels at approximately 343 m/s. The speed increases with temperature: roughly 331 + 0.6 × T(°C) m/s. For water use ~1480 m/s.

What is blue shift vs red shift?

Blue shift means the observed frequency is higher than the source frequency — occurs when source and observer approach. Red shift means the observed frequency is lower — occurs when they move apart. These terms originate from light but apply to all waves.

Can this be used for light (relativistic Doppler)?

No. This calculator uses the classical Doppler formula, which is valid for sound and other mechanical waves. The relativistic Doppler effect for light requires a different formula that accounts for time dilation.

Is my data stored?

No. All calculations run locally in your browser. No data is sent to any server.

Why does a passing siren's pitch drop suddenly rather than gradually?

While the source is approaching, every wave is emitted slightly closer than the last, so the crests bunch up and you hear a steady, elevated pitch — not a rising one. The instant the source passes and starts receding, the waves stretch out and the pitch drops to a steady lower value. So you hear one constant high note, then a sudden step down to a constant low note, which is the characteristic "eee-yooo" of a passing siren rather than a smooth slide.

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

Yes, slightly, which is why the full formula treats them separately. A moving source physically compresses or stretches the waves in the medium, while a moving observer meets unchanged waves more or less frequently. At everyday speeds the difference is tiny, but at high speeds the two cases give measurably different results. This calculator lets you set source and observer velocities independently so you can model either situation, or both at once.

Can I use this calculator for light or radar?

Only approximately. This tool uses the classical Doppler formula, which is exact for sound and other mechanical waves and works well for radar and light when speeds are far below the speed of light. For precise calculations involving light at very high speeds, you need the relativistic Doppler formula, which additionally accounts for time dilation. For sirens, vehicles, ultrasound, and typical radar speeds, the classical result here is accurate.

What wave speed should I enter?

For sound in dry air at 20°C, use about 343 m/s. Sound speed rises with temperature (roughly 331 + 0.6 × temperature in °C), so use a slightly higher value on a hot day. For sound travelling through water, use about 1480 m/s, and through steel around 5000 m/s. The wave speed is the speed of the wave in its medium, not the speed of the source — those are separate inputs.

What is the difference between redshift and blueshift?

They describe the direction of the frequency change. Blueshift means the observed frequency is higher than the emitted frequency, which happens when source and observer are approaching. Redshift means the observed frequency is lower, which happens when they are moving apart. The terms come from light — higher-frequency light is bluer, lower-frequency light is redder — but the same idea applies to sound and all waves.