Separate the wave, source, and observer
The Doppler effect for sound comes from how motion changes the spacing or encounter rate of wavefronts. The emitted frequency belongs to the source in the medium's frame. A moving observer meets wavefronts at a different rate, while a moving source changes the wavelength in front of or behind it. Those are different physical effects, which is why their velocities appear in different parts of the formula.
The calculator has four fields: emitted frequency in hertz, sound speed in the medium in metres per second, observer speed toward the source in metres per second, and source speed toward the observer in metres per second. The last two inputs are signed. Positive values indicate motion that closes the gap; negative values indicate motion away under the page’s convention. Both speed magnitudes must remain below the sound speed for this one-dimensional subsonic model.
Formula and assumptions
The calculator uses fₒ = fₛ(c + vₒ)/(c − vₛ). Here fₛ is emitted frequency, c is sound propagation speed in the medium, vₒ is observer velocity toward the source, and vₛ is source velocity toward the observer. The output remains in hertz. If both objects approach, the numerator grows and the denominator shrinks, raising the observed frequency.
If the observer is stationary, set vₒ to zero; if the source is stationary, set vₛ to zero. If an object moves away under the convention, use a negative value. A source moving away makes c − vₛ larger because vₛ is negative; an observer moving away makes c + vₒ smaller because vₒ is negative.
Calculate the observed frequency
Use the source's emitted tone, not a frequency already shifted by motion. Enter sound speed for the medium, then enter observer and source velocities with the direction convention shown on the page. Confirm the units before calculating: combining kilometres per hour with metres per second without conversion produces an incorrect ratio.
Worked examples
Source and observer approach
Inputs: fs = 440 Hz; c = 343 m/s; observer = +10 m/s; source = +20 m/s
Calculation: 440 × (343 + 10) / (343 − 20) = 480.8669 Hz
Observed frequency = 480.8669 Hz.
Both source and observer move apart
Inputs: fs = 440 Hz; c = 343 m/s; observer = −5 m/s; source = −10 m/s
Calculation: 440 × (343 − 5) / (343 − (−10)) = 440 × 338 / 353 = 421.3031 Hz
Observed frequency = 421.3031 Hz.
Worked examples with direction signs
Example one uses fₛ = 440 Hz, c = 343 m/s, vₒ = +10 m/s, and vₛ = +20 m/s. The numerator factor is 343 + 10 = 353 m/s; the denominator is 343 − 20 = 323 m/s. Thus fₒ = 440 × 353/323 = 480.867… Hz, displayed as about 480.87 Hz. The answer is above 440 Hz because both motions close the separation.
Example two uses the same emitted tone and medium speed, but both move away: vₒ = −5 m/s and vₛ = −10 m/s. The ratio is (343 − 5)/(343 + 10) = 338/353, so fₒ = 440 × 338/353 = 421.3031 Hz. Changing only the velocity signs reverses the direction of the shift without changing the source frequency.
For a one-object check, keep the source stationary and set vₛ = 0. At c = 343 m/s and observer approach of 10 m/s, a 440 Hz tone becomes 440 × 353/343 ≈ 452.83 Hz. This catches a mistaken denominator placement: observer motion changes the numerator in this formula.
Check whether the model fits the situation
OpenStax derives the sound Doppler relation by distinguishing a moving observer from a moving source. The source's motion changes wavelength in the medium; the observer's motion changes how quickly wavefronts arrive. The calculator combines the corresponding one-dimensional terms for the entered signs, consistent with that derivation.
The speed c is the wave's speed relative to the medium, not automatically the speed of sound in still air. If wind is material, a consistent medium-frame analysis is needed before assigning the source and observer velocities. For ordinary classroom cases, a stated sound-speed value is often enough; for field measurements, document temperature and medium conditions.
Common mistakes and limits
The most common mistake is treating source and observer motion as interchangeable. They share a sign convention but affect different terms. Another is entering a source speed at or above c, which makes the ordinary subsonic model invalid; the runtime rejects such values rather than presenting the result as a valid sound frequency.
A second source of error is using an inconsistent reference frame for c and the object speeds. The formula's sign labels assume the medium frame. If a problem gives velocities relative to a moving platform or a current, convert them before using the page. The calculated value is only as sound as the frame and medium assumptions.