Doppler Effect Calculator - Observed Frequency, Shift, Wavelength

Use this doppler effect calculator to find the observed frequency, pitch shift in hertz, and observed wavelength for a source and observer moving at any speed in sound or light.

Doppler Effect Calculator

Emitted frequency in hertz. Typical values: 256 Hz for middle C, 440 Hz for concert A, 700 Hz for an ambulance siren.

Speed of the wave in the medium in meters per second. Use 343 for sound in air at 20 °C or 299792458 for light in vacuum.

Observer velocity in meters per second. Positive when moving toward the source, negative when moving away.

Source velocity in meters per second. Positive when moving toward the observer, negative when moving away.

Results

Observed Frequency
0Hz
Pitch Shift 0Hz
Frequency Ratio 0
Observed Wavelength 0m
Net Direction 0

What Is the Doppler Effect?

A doppler effect calculator predicts the frequency a listener hears from a moving source or moving observer. The Doppler effect is the change in observed frequency when a wave source and the person measuring it move closer together or further apart, even when the source emits a steady tone. The classic example is the sudden drop in pitch of an ambulance siren as it passes you on the street. The effect applies to sound waves, light waves, and any other wave that propagates through a medium or through space.

  • Siren and traffic noise prediction: Estimate how much higher or lower a passing siren or train horn will sound compared with its stationary pitch.
  • Astronomy and spectroscopy: Relate small shifts in the wavelength of starlight to the speed at which a star or galaxy moves toward or away from Earth.
  • Radar and sonar range finding: Convert the frequency shift of a returned radar or sonar pulse into the relative speed of the target.
  • Medical ultrasound: Understand how blood flow produces a Doppler shift in reflected ultrasound, the basis of Doppler ultrasound imaging.

The doppler effect calculator accepts the emitted frequency, the wave speed, and the signed velocities of the observer and the source. It returns the observed frequency, the pitch shift in hertz, the frequency ratio, and the observed wavelength. Positive velocities mean motion toward the other, so the observed frequency rises above the emitted frequency.

The same expression covers a stationary observer, a stationary source, and both moving in any combination, which is why one doppler effect calculator with four inputs is enough for the whole curriculum.

When two tones combine at slightly different frequencies the same interference picture produces audible beats, and the Beat Frequency Calculator returns the rate of those loudness pulses.

How the Doppler Effect Calculator Works

The calculator applies the classical Doppler formula to any combination of source and observer motion, covering a stationary source with a moving observer, a moving source with a stationary observer, or both moving.

f_observed = f_source * (v_wave + v_observer) / (v_wave - v_source)
  • f_source: Emitted frequency of the source in hertz (Hz).
  • v_wave: Speed of the wave in the medium in meters per second (m/s). Use 343 for sound in air at 20 °C or 299,792,458 for light in vacuum.
  • v_observer: Observer velocity. Positive when the observer moves toward the source, negative when moving away.
  • v_source: Source velocity. Positive when the source moves toward the observer, negative when moving away.

The formula is symmetric in the sense that the only difference between the moving-source case and the moving-observer case is which side of the fraction the velocity appears on. A positive observer velocity adds to the wave speed in the numerator, so the observed frequency rises even if the source stays put. A positive source velocity subtracts from the wave speed in the denominator, which compresses the wavelength and pushes the observed frequency higher.

Ambulance approaching at 30 m/s with a 700 Hz siren

f_s = 700 Hz, v = 343 m/s, v_o = 0, v_s = 30 m/s (toward the observer).

f_o = 700 * (343 + 0) / (343 - 30) = 700 * 343 / 313 = 767.09 Hz.

Observed frequency 767.09 Hz, pitch shift +67.09 Hz, ratio 1.0958.

The siren sounds about 10 percent higher than its stationary pitch while approaching.

According to Wikipedia, the observed frequency for the moving-source and moving-observer case is f_o = (v + v_o) / (v - v_s) times the source frequency, with positive values meaning motion toward the other party.

According to Omni Calculator, the observed frequency for the general Doppler effect is f_o = f_s * (v + v_o) / (v - v_s), where a positive observer speed means moving toward the source and a positive source speed means moving toward the observer.

For the underlying y(x,t) = A sin(kx - omega*t + phi) shape of a single traveling wave the Harmonic Wave Equation Calculator evaluates displacement at any position and time.

Key Concepts Explained

Four ideas appear repeatedly in Doppler problems, and understanding them keeps the formula from feeling arbitrary.

Sign convention

Positive observer or source velocity means motion toward the other party, which raises the observed frequency. Negative values mean motion away, which lowers the observed frequency. Plugging the same value in with the wrong sign produces a wrong answer.

Wave speed in the medium

For sound in air at 20 °C the wave speed is about 343 m/s, and it changes with temperature and humidity. For light the wave speed in vacuum is 299,792,458 m/s and is constant for every observer, so the classical Doppler formula gives the right answer for non-relativistic relative motion.

Source versus observer motion

The denominator (v - v_source) describes how the source's motion changes the spacing of successive wave crests. The numerator (v + v_observer) describes how the observer's motion changes how fast they meet those crests. Both effects can add together or cancel.

Sonic boom boundary

When the source velocity equals the wave speed, the denominator becomes zero and the classical formula breaks. In reality the source outruns its own wavefronts and produces a shock wave, so the calculator rejects input that hits this limit.

A useful shortcut for the moving-source and moving-observer cases: if you are approaching the wave, your effective speed through the wavefronts rises, so the frequency rises. If the source is approaching you, it pushes its wavefronts closer together, so the frequency rises again.

To convert the observed frequency in hertz to radians per second for oscillation analysis the Angular Frequency Calculator provides the omega = 2*pi*f step.

How to Use This Calculator

Enter the four inputs in any order and the calculator updates the results immediately. Reset restores the default scenario.

  1. 1 Set the source frequency: Enter the emitted frequency in hertz. Use 256 Hz for middle C, 440 Hz for the orchestral A, or 700 Hz for an ambulance siren.
  2. 2 Set the wave speed: Use 343 m/s for sound in air at 20 °C, 1497 m/s for sound in water at 25 °C, or 299,792,458 m/s for light in vacuum.
  3. 3 Enter observer and source velocities: Use a positive number when the observer moves toward the source or the source moves toward the observer. Use a negative number for motion in the opposite direction. Zero leaves that party stationary.
  4. 4 Read observed frequency and shift: The observed frequency is the value a real listener would measure. The shift is observed frequency minus source frequency, so a positive shift means a higher pitch and a negative shift means a lower pitch.
  5. 5 Check the frequency ratio and wavelength: The ratio tells you the percentage change in pitch at a glance. The observed wavelength compares the spacing of wavefronts in the observer's frame against the source's emitted wavelength.
  6. 6 Test the light preset or reset: Change the wave speed to 299,792,458 m/s to switch from a sound scenario to a light scenario. Reset restores the 440 Hz stationary default.

Try f_source = 700 Hz, v_wave = 343 m/s, v_observer = 0, v_source = 30 to model an ambulance approaching at about 108 km/h. The result of about 767 Hz matches the higher pitch you hear as it comes toward you.

When the doppler question is part of a vibration or resonance lab the Vibration Natural Frequency Calculator handles the natural frequency and mode shape side of the same experiment.

Benefits of Using This Calculator

The calculator handles every combination of source and observer motion in one screen, so you can move between cases without rewriting anything.

  • One formula for all motion combinations: Whether the observer moves, the source moves, or both move, the same f_o = f_s * (v + v_o) / (v - v_s) expression covers every case.
  • Direct comparison of pitch shift and ratio: The shift in hertz tells you how many hertz the pitch changed, while the ratio tells you the percentage change. Reporting both makes it easy to compare small shifts in light with large shifts in sound.
  • Sound and light in the same tool: Switching the wave speed between 343 m/s and the speed of light lets you model everyday sounds as easily as astronomical observations.
  • Built-in validation for unstable inputs: Inputs that push the denominator to zero, that make the source equal the wave speed, or that exceed the wave speed are rejected, returning zero instead of an infinity or a misleading negative number.
  • Quick checks for textbook problems: Type in any textbook example and the result appears at once. This makes it easy to verify a worked example, double-check a homework answer, or explore how the answer changes when one input moves.

For a lab that compares Doppler shift with pendulum timing or oscillation analysis the Pendulum Period Calculator covers the small-angle period side of the comparison.

Factors That Affect Results

Four factors determine how large the Doppler shift becomes in any given scenario.

Relative velocity

The size of the observed shift scales with the relative velocity between source and observer, divided by the wave speed. A 30 m/s ambulance and a 3000 m/s jet produce very different shifts even though the formula is the same.

Direction of motion

Motion toward the other party raises the observed frequency; motion away lowers it. The same magnitude of velocity gives the same magnitude of shift, just with opposite sign.

Wave speed in the medium

Sound in air (343 m/s) and sound in water (about 1497 m/s) give different shifts for the same source motion. Light in vacuum gives much smaller shifts, which is why astronomical Doppler shifts are tiny fractions of a hertz for nearby stars.

Source emitted frequency

The absolute shift in hertz scales linearly with the emitted frequency, so a 1000 Hz tone produces twice the shift of a 500 Hz tone at the same velocity. The ratio is the same.

  • The classical Doppler formula is exact for sound at any speed below the wave speed, but for light the relativistic formula is required when the relative velocity is a significant fraction of c.
  • The formula assumes a single source emitting a single tone. Real sirens contain multiple harmonics that can produce additional shifts.

When the relative velocity is much smaller than the wave speed, the observed shift is approximately f_source * (v_observer - v_source) / v_wave. This small-velocity approximation is handy for sanity-checking. According to HyperPhysics (Georgia State University), the classical Doppler formula is the right starting point for any wave problem where the source or observer moves much slower than the wave speed.

According to HyperPhysics, the Doppler formula f_o = f_s (v + v_o) / (v - v_s) uses a positive sign for motion of the observer toward the source and for motion of the source toward the observer.

Because the doppler shift depends on the ratio of relative velocity to wave speed, the Wave Speed Calculator is a useful companion when you need to confirm the wave speed in a different medium.

Doppler effect calculator input panel with source frequency, wave speed, observer speed, and source speed fields, showing the observed frequency, pitch shift, frequency ratio, and observed wavelength in the result panel
Doppler effect calculator input panel with source frequency, wave speed, observer speed, and source speed fields, showing the observed frequency, pitch shift, frequency ratio, and observed wavelength in the result panel

Frequently Asked Questions

Q: What is the Doppler effect?

A: The Doppler effect is the change in observed frequency that happens whenever a wave source and the person measuring it move toward each other or away from each other. The source keeps emitting the same frequency, but the motion changes how often wave crests reach the observer. A passing ambulance siren is the everyday example: the pitch is higher as it approaches and lower as it drives away.

Q: How do you calculate the Doppler effect?

A: Use f_observed = f_source * (v_wave + v_observer) / (v_wave - v_source). Enter the source frequency in hertz, the wave speed in the medium (343 m/s for sound in air at 20 °C or 299,792,458 m/s for light in vacuum), and the signed observer and source velocities. The doppler effect calculator does this calculation for any combination and returns the observed frequency, the shift in hertz, and the observed wavelength.

Q: What is the Doppler effect formula for a moving source?

A: When the source moves at velocity v_source toward the observer and the observer is stationary, the formula reduces to f_observed = f_source * v_wave / (v_wave - v_source). A 700 Hz siren approaching at 30 m/s through 343 m/s air gives 700 * 343 / (343 - 30) = 767.09 Hz, about 10 percent above the source frequency.

Q: What is the Doppler effect formula for a moving observer?

A: When the observer moves at velocity v_observer toward the source and the source is stationary, the formula becomes f_observed = f_source * (v_wave + v_observer) / v_wave. A 1000 Hz tone heard by someone moving toward the source at 25 m/s through still air gives 1000 * 368 / 343 = 1072.89 Hz, about 7.3 percent above the source frequency.

Q: How does the Doppler effect change the observed wavelength?

A: The observed wavelength is lambda_observed = lambda_source * (v_wave - v_source) / (v_wave + v_observer). When the source moves toward the observer, the wavelength gets shorter because each new wave crest is emitted from a closer position. When the source moves away, the wavelength stretches out. The frequency ratio and the wavelength ratio are reciprocals of each other.

Q: Does the Doppler effect apply to light?

A: Yes, the Doppler effect applies to light as well as sound. The classical formula f_observed = f_source * (v_wave + v_observer) / (v_wave - v_source) works for light when the relative velocity is much smaller than the speed of light. For motion that is a significant fraction of c, the relativistic Doppler formula uses the Lorentz factor instead. Astronomers use the Doppler shift in starlight to measure how fast stars and galaxies move toward or away from Earth.