PublicSoftTools
Tools16 min read·PublicSoftTools Team·May 2026

Doppler Effect Calculator — Calculate Observed Frequency for Moving Sources

The Doppler effect describes the change in the observed frequency of a wave when the source or observer is in motion relative to the medium. It explains why a passing ambulance's siren drops in pitch, why distant galaxies appear redshifted, and how police radar guns measure speed. The free Doppler effect calculator on PublicSoftTools computes observed frequency for any combination of source and observer velocity.

The Doppler Effect Formula

The general Doppler formula for sound (or any mechanical wave in a medium) is:

f₀ = fₛ × (v + vₒ) / (v − vₛ)

This formula uses the sign convention where positive velocities are directed toward the opposite party:

When both source and observer are stationary (vₒ = 0, vₛ = 0): f₀ = fₛ × v/v = fₛ — no shift.

Variables in the Doppler Calculator

SymbolQuantityUnitDefinition
f₀Observed frequencyHzThe frequency detected by the observer — what you actually hear or measure
fₛSource frequencyHzThe frequency emitted by the source — its natural frequency when stationary
vWave speedm/sSpeed of the wave in the medium (343 m/s for sound in air at 20°C)
vₒObserver velocitym/sSpeed of the observer relative to the medium; positive when moving toward the source
vₛSource velocitym/sSpeed of the source relative to the medium; positive when moving toward the observer

How to Use the Doppler Effect Calculator

  1. Open the Doppler effect calculator.
  2. Enter the source frequency (fₛ) — the natural frequency when stationary.
  3. Enter the wave speed (v) — use 343 m/s for sound in air at 20°C, or the actual medium speed.
  4. Enter the source velocity (vₛ) — positive if moving toward the observer, negative if moving away. Use 0 if stationary.
  5. Enter the observer velocity (vₒ) — positive if moving toward the source, negative if moving away. Use 0 if stationary.
  6. Click Calculate. The tool returns observed frequency (f₀) and the frequency shift (f₀ − fₛ).

Common Scenarios and Their Effects

ScenarioWhat happens to wavelengthFrequency shift direction
Source approaching stationary observerObserved frequency > source frequency (waves compressed ahead of source)Positive frequency shift (f₀ > fₛ)
Source moving away from stationary observerObserved frequency < source frequency (waves stretched behind source)Negative frequency shift (f₀ < fₛ)
Observer moving toward stationary sourceObserved frequency > source frequencyPositive frequency shift
Observer moving away from stationary sourceObserved frequency < source frequencyNegative frequency shift

Worked Example: Ambulance Siren

An ambulance emits a siren at 700 Hz and is travelling at 30 m/s toward a stationary pedestrian. The speed of sound in air is 343 m/s.

Using: f₀ = fₛ × (v + vₒ) / (v − vₛ) = 700 × (343 + 0) / (343 − 30)

f₀ = 700 × 343/313 ≈ 700 × 1.096 ≈ 767 Hz

As the ambulance passes and moves away: vₛ = −30 m/s (now moving away).

f₀ = 700 × 343 / (343 − (−30)) = 700 × 343/373 ≈ 700 × 0.920 ≈ 644 Hz

The siren drops from ~767 Hz to ~644 Hz as it passes — a shift of 123 Hz, clearly audible as the characteristic pitch drop of a passing emergency vehicle.

Speed of Sound in Different Media

The Doppler formula depends on the wave speed v, which varies with the medium:

Sound travels faster in denser, stiffer media. Temperature also increases sound speed in gases: v ≈ 331 + 0.6T m/s, where T is temperature in Celsius.

Real-World Applications

ApplicationHow Doppler is usedPhysical basis
Police speed radarRadar gun emits microwave at known frequency; moving car reflects at shifted frequency; difference reveals car speedElectromagnetic Doppler (Doppler RADAR/LIDAR)
Medical ultrasoundDoppler ultrasound detects blood flow velocity by measuring frequency shift of ultrasound reflected from moving blood cellsAcoustic Doppler; also detects heart valve function
Redshift in astronomyLight from distant galaxies is shifted toward longer (red) wavelengths — indicates galaxies are moving away; basis of Hubble's lawRelativistic Doppler for electromagnetic radiation
Weather radar (Doppler radar)Detects wind speed and precipitation movement by measuring frequency shift of reflected radio wavesUsed in meteorological forecasting for storm tracking
Sonar (submarines)Sonar pings return at shifted frequencies from moving targets; frequency shift reveals target speed and directionAcoustic Doppler in water (v ≈ 1,480 m/s)
Bat echolocationBats detect prey movement by the Doppler shift of their own ultrasonic calls reflected from moving insectsNatural biological use of Doppler effect

The Doppler Effect for Light (Relativistic)

For electromagnetic radiation (light, radio waves, microwaves), the classical Doppler formula does not apply exactly because light travels at a fixed speed (c ≈ 3 × 10⁸ m/s) regardless of the motion of source or observer — a consequence of special relativity.

The relativistic Doppler formula is:

f₀ = fₛ × √((c + v)/(c − v)) (when source and observer approach each other)

For speeds much less than c (v << c), the relativistic and classical formulas give nearly identical results. Police radar guns, weather radar, and most engineering applications use the classical approximation because vehicle speeds are tiny fractions of the speed of light.

Astronomical applications (measuring galaxy recession speeds, gravitational redshift from black holes) require the relativistic formula. The famous "redshift" of distant galaxies — where light from galaxies moving away from us is shifted toward longer, redder wavelengths — underpins the Big Bang theory and Hubble's law.

The Mach Number and Sonic Booms

When a source moves faster than the speed of sound (Mach 1 or greater), the classical Doppler formula produces a denominator of zero or negative — no finite observed frequency makes sense. What actually happens is that the wave fronts pile up ahead of the source in a Mach cone (shock wave). The shock wave, when it reaches a stationary observer, is experienced as a sonic boom — a sudden pressure discontinuity rather than a sustained frequency shift.

The Mach number M = vₛ/v (source speed divided by wave speed). Mach 1 is the sound barrier; Mach 2 means the source moves at twice the speed of sound. The Doppler calculator assumes subsonic speeds (M < 1); for supersonic sources, the physics is qualitatively different.

Measuring Source Speed from Frequency Shift

Police radar guns measure the Doppler shift of reflected microwave signals to determine vehicle speed. For a stationary radar gun reflecting off a moving vehicle:

The vehicle acts as both a moving observer (approaching the radar wave) and a moving source (reflecting the wave back). The frequency shift is doubled compared to a one-way Doppler measurement. The radar computer calculates vehicle speed from this doubled shift. This is why radar guns do not need to time a vehicle over a fixed distance — a single measurement of frequency shift is sufficient.

Common Questions

Does the Doppler effect change the amplitude (loudness) of sound?

The classical Doppler formula changes frequency, not amplitude. However, in practice, an approaching sound source also gets louder as it gets closer (inverse-square law — intensity decreases with the square of distance). The two effects are separate: Doppler changes pitch; distance changes loudness.

Does the Doppler effect work in all directions?

The formula f₀ = fₛ(v + vₒ)/(v − vₛ) assumes the source and observer are moving directly toward or away from each other (along the line connecting them). When the source moves at an angle to the line connecting it to the observer, you must use the component of velocity along that line. At 90° (perpendicular motion), there is a transverse Doppler effect for light (purely relativistic), but for sound, the frequency shift is negligible.

Why does the pitch drop as a vehicle passes rather than changing gradually?

As a vehicle approaches, the observed frequency is consistently higher than the source frequency. As it passes and begins moving away, it is consistently lower. The pitch does not change gradually during approach — it stays at the elevated "approaching" frequency until the vehicle is at its closest point, then drops to the lower "receding" frequency. This abrupt shift at the moment of passing is why it sounds like a sudden drop.

Calculate Doppler Frequency Shift

Enter source frequency, wave speed, and velocities to find the observed frequency — for sound, radar, ultrasound, or any wave.

Open Doppler Effect Calculator