Skip to content
DeviceCheckHub

Doppler Effect Calculator

The pitch you hear from a moving siren, horn or speaker, the pitch it really gives out, the speed of a passing vehicle from the drop in its pitch, and the redshift or blueshift of light from a moving star, with the shift in semitones and the pitch after it passes.

f = f₀ × (c ± vₗ) ÷ (c ∓ vₛ)

Enter speeds as positive numbers and pick the direction in the list: toward means toward the other one. All the speeds use the speed unit, and 0 means standing still.

Examples:
A 700 Hz source moving toward the listener at 60 km/h is heard at 735.73 Hz, 0.862 semitones higher.

f = 735.73 Hz

Heard frequency
735.73 Hz
Frequency it gives out
700 Hz
Shift
+35.725 Hz, +5.1036%
Musical interval
0.862 semitones higher
After they pass
667.58 Hz, 0.821 semitones lower
Drop as they pass
68.141 Hz, 1.68 semitones
Wavelength reaching the listener
0.46653 m
Speed of sound
1,235.6 km/h = 343.24 m/s = 767.8 mph
Mach number of the source
0.048558
A 700 Hz source passing a listener who stands still
Source speedApproachingMoving away
0 km/h700 Hz700 Hz
20 km/h711.52 Hz688.85 Hz
50 km/h729.52 Hz672.78 Hz
100 km/h761.64 Hz647.59 Hz
150 km/h796.72 Hz624.22 Hz
200 km/h835.18 Hz602.48 Hz
300 km/h924.44 Hz563.25 Hz
500 km/h1,175.8 Hz498.35 Hz

Steps

  1. Speed of sound in dry air at 20 °C: c = 331.32 × √(1 + 20 ÷ 273.15) = 343.24 m/s.
  2. Heard frequency: f = f₀ × (c + vₗ) ÷ (c − vₛ) = 700 Hz × (343.24 + 0) ÷ (343.24 − 16.667) = 735.73 Hz.
  3. After passing, both directions reverse: f = f₀ × (c − vₗ) ÷ (c + vₛ) = 667.58 Hz.
  • The speed of sound is for dry air; humid air carries sound slightly faster. Wind moves the air itself and changes the shift a little.
  • Speeds are along the line between the source and the listener. For a source passing at a distance, only the part of its speed toward or away from you counts.

How to use the Doppler effect calculator

  1. Choose what to work out: the pitch you hear, the pitch the source really gives out, the speed of a passing source from its pitch, or the shift of light.
  2. For sound, pick what it travels through: air at a temperature you enter, fresh water, seawater, or any wave speed.
  3. Enter the frequency, the speed of the source and of the listener, and whether each moves toward the other or away.
  4. Read the frequency you hear, the shift in hertz, in percent and in semitones, and the pitch after the source passes, with a table at other speeds.
  5. For light, enter the speed or the redshift z and the wavelength given out, and read the observed wavelength.

What the Doppler effect is

The Doppler effect is the change in the frequency of a wave for an observer who is moving relative to its source. The everyday example is a siren or a car horn: it sounds higher as it comes toward you, the same at the moment it passes, and lower as it moves away. When the source moves toward you, each wave crest is sent out from a little closer than the one before, so the crests arrive bunched up; moving away, they arrive spread out.

The effect is named after the Austrian physicist Christian Doppler, who described it in 1842 in a paper on the colored light of double stars. In 1845 Buys Ballot tested it with sound and confirmed that the pitch was higher than the emitted frequency while the source approached and lower while it moved away. Hippolyte Fizeau found the same effect for light on his own in 1848, which is why in France it is sometimes called the Doppler–Fizeau effect.

The Doppler formula for sound

For a source and a listener moving along the line between them, the frequency heard is f = f₀ × (c ± vₗ) ÷ (c ∓ vₛ), where f₀ is the frequency the source gives out, c the speed of sound, vₗ the listener’s speed and vₛ the source’s. The listener’s speed is added when they move toward the source and subtracted when they move away; the source’s speed is subtracted when it moves toward the listener and added when it moves away. All speeds are measured relative to the air or water, and the calculator takes them as positive numbers with a direction.

A 700 Hz siren on an ambulance coming toward you at 60 km/h, in air at 20 °C where sound travels at 343.24 m/s, is heard at 735.73 Hz. Once it has passed it drops to 667.58 Hz. Moving away from the start it is heard at 667.58 Hz. A cyclist riding away from the approaching ambulance at 15 km/h hears 726.79 Hz, and after it passes, 675.69 Hz. The motions are not symmetric: walking toward a still siren at 5 km/h gives 702.83 Hz, a little less than the siren moving toward you at the same speed would.

The speed of sound in dry air is 331.32 × √(1 + θ ÷ 273.15) m/s at a temperature θ in °C, so the shift depends a little on the weather: on a −10 °C day the same siren is heard at 737.81 Hz. In fresh water sound travels at 1,481 m/s, so a 40 kHz sonar on a boat moving at 5 m/s is shifted only to 40.136 kHz. The wavelength calculator gives the speed of sound in other materials and the length of each wave.

The pitch drop in semitones

Musicians hear pitch as ratios of frequency. An octave doubles the frequency, and the 12 equal semitones of an octave each multiply it by the twelfth root of 2. The number of semitones between two frequencies is 12 × log₂(f₂ ÷ f₁), and the number of cents, a hundredth of a semitone, is 1200 × log₂(f₂ ÷ f₁). The calculator gives every shift this way. The 60 km/h siren rises 0.862 semitones higher as it approaches and falls 1.68 semitones as it passes; at 120 km/h the fall is 3.37 semitones. A 440 Hz horn on a car at 80 mph is heard at 491.18 Hz and drops 3.62 semitones as it goes by.

Finding a speed from the sound

Standing still beside a road, you can work out a vehicle’s speed from its sound alone. If the pitch is f₁ as it approaches and f₂ after it passes, its speed is v = c × (f₁ − f₂) ÷ (f₁ + f₂), and the pitch it really gives out is f₀ = 2 × f₁ × f₂ ÷ (f₁ + f₂). A horn that drops from 727 Hz to 676 Hz belongs to a car moving at 44.917 km/h that sounds 700.57 Hz when standing still. Choose “Speed from a pitch” for this. The same idea works the other way: heard at 727 Hz from an ambulance coming toward you at 60 km/h, the siren really gives out 691.7 Hz.

Faster than sound

The formula breaks down when the source moves toward the listener as fast as sound or faster: the waves pile up into a shock wave and arrive as a sonic boom instead of a pitch, and the calculator says so. Lord Rayleigh pointed out a stranger case: a listener moving away from a source at twice the speed of sound would hear a piece of music it had played earlier in the correct tempo and pitch, but backward.

The Doppler effect for light: redshift and blueshift

Light shows the same effect. A source moving away has its light shifted to longer, redder wavelengths, a redshift, and one moving toward us to shorter, bluer wavelengths, a blueshift. The size of the shift is z, the fractional change in wavelength, positive for a redshift and negative for a blueshift. Light needs no medium, so only the relative speed counts, and near the speed of light the exact relativistic formula is 1 + z = √((1 + β) ÷ (1 − β)), where β is the speed as a fraction of the speed of light. Light of 500 nm from a star moving away at 3,000 km/s arrives at 505.03 nm, z = 0.010057. A redshift of z = 0.1 means a speed of 28,487 km/s. At 90% of the speed of light the light is stretched to 2,179.4 nm, and coming toward us at half the speed of light it is squeezed to 288.68 nm.

Astronomers use this to measure how fast stars and galaxies move along our line of sight. Beginning in 1912, Vesto Slipher found that the Andromeda Galaxy is blueshifted, so it is moving toward us. The redshift of distant galaxies is a different case: it is modeled as a cosmological redshift caused by the expansion of the universe, one of three kinds of redshift along with the Doppler shift and the gravitational redshift.

Where the Doppler effect is used

Common mistakes

Your values stay on your device

Everything is worked out in your browser. Nothing you type is sent anywhere or stored.

Frequently asked questions

What is the Doppler effect?

The Doppler effect is the change in frequency of a wave for a listener or observer moving relative to its source. It is why a siren sounds higher as it comes toward you and lower once it has passed. It is named after Christian Doppler, who described it in 1842.

How do I calculate the Doppler shift?

Use f = f₀ × (c ± vₗ) ÷ (c ∓ vₛ), where c is the speed of sound, vₗ the listener’s speed and vₛ the source’s. Use the upper signs when each moves toward the other. A 700 Hz siren coming toward you at 60 km/h in air at 20 °C is heard at 735.73 Hz.

How much does a siren’s pitch drop as it passes?

At 60 km/h a 700 Hz siren drops from 735.73 Hz to 667.58 Hz, 1.68 semitones. At 120 km/h the drop is 3.37 semitones.

Can I work out a car’s speed from its sound?

Yes. If you stand still and hear a pitch of f₁ as it approaches and f₂ after it passes, its speed is v = c × (f₁ − f₂) ÷ (f₁ + f₂). A car whose horn drops from 727 Hz to 676 Hz is moving at 44.917 km/h.

What is redshift?

Light from a source moving away is shifted to longer, redder wavelengths, a redshift, and light from a source moving toward us to shorter, bluer ones, a blueshift. The shift is given as z, the fractional change in wavelength. A star moving away at 3,000 km/s has z = 0.010057.

Is anything I type sent anywhere?

No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub