The Classical Doppler Formula
The Doppler effect describes the change in frequency of a wave in relation to an observer who is moving relative to the wave source. For sound and other mechanical waves traveling through a still, uniform medium, the physical mechanism depends on whether the source, the observer, or both are in motion relative to the medium itself.
The classical Doppler formula models this behavior along a straight line joining the source and the observer:
f′ = f₀ × (v ± vₒ) ÷ (v ∓ vₛ)
Where:
- f′ is the observed frequency.
- f₀ is the emitted frequency.
- v is the wave speed in the medium.
- vₒ is the speed of the observer.
- vₛ is the speed of the source.
The choice of sign in the numerator and denominator depends on the direction of motion. When the observer moves "Toward" the source, they intercept wavefronts more frequently, which increases the observed frequency (using + in the numerator). When the observer moves "Away", they run ahead of the wavefronts, decreasing the frequency (using − in the numerator). Conversely, when the source moves "Toward" the observer, it chases its own waves, compressing the wavelength and increasing the frequency (using − in the denominator). When the source moves "Away", it pulls away from the waves it emits, stretching the wavelength and decreasing the frequency (using + in the denominator).
Wavefront Compression and Stretching
The physical change in frequency is directly tied to how motion alters the spatial distribution of the wavefronts in the medium.
- Compression: When a source moves through a medium while emitting waves, each successive circular wavefront is emitted from a position further along its path. In the direction of the source's motion, these wavefronts are bunched closer together. This physical crowding reduces the wavelength, resulting in a higher perceived pitch.
- Stretching: Behind the moving source, the opposite occurs. Each new wavefront is emitted further away from the previous one, stretching the distance between wave crests. This increases the wavelength, resulting in a lower perceived pitch.
The Doppler Effect Calculator visualizes this spatial distribution under the heading Wavefronts, displaying a snapshot of circular wavefronts emitted along the source's path to illustrate this compression and stretching.
The Physics of a Pass-By
When a moving vehicle emitting a constant sound—such as an emergency siren—passes a stationary observer, the pitch does not slide gradually from high to low over the entire journey. Instead, there is a distinct, sudden drop in pitch at the exact moment the source passes the observer.
This transition is modeled in the calculator under the heading The pass-by. The tool calculates three distinct values for the scenario:
- While approaching: The higher frequency heard as the source and observer close in on each other.
- After passing: The lower frequency heard as the source and observer recede from each other.
- Pitch change at the pass: The exact size of the frequency drop at the moment of transition.
In an idealized one-dimensional model, this frequency drop is instantaneous. In the real world, because the source does not pass directly through the observer but rather along a parallel path at a slight offset, the transition sweeps smoothly but rapidly over a short window of time.
Supersonic Motion and Shock Waves
When the speed of the source approaches or exceeds the wave speed in the medium, the classical physical model reaches a critical boundary.
Source Speed (vs) < Wave Speed (v): Normal Doppler compression (finite pitch)
Source Speed (vs) >= Wave Speed (v): Wavefronts pile up into a shock wave (sonic boom)
If a source moves "Toward" an observer at a speed equal to or greater than the wave speed, the source travels at or ahead of its own acoustic wavefronts. The waves cannot propagate away from the source; instead, they pile up along a boundary to form a shock wave, commonly experienced as a sonic boom. Because the wavefronts arrive simultaneously, no finite pitch exists ahead of the source. Under these conditions, the calculator displays the error message: A source closing in at or above the wave speed piles its wavefronts into a shock wave, so no finite pitch exists ahead of it.
However, if the source is moving "Away" from the observer at supersonic speeds, the formula remains valid. The stretched wavefronts continue to propagate backward through the medium to the observer, who hears a highly redshifted, lower frequency.
For the observer, a similar physical limit occurs if they move "Away" from the source at or above the wave speed. In this scenario, the observer outruns the propagating waves and will never receive them. The calculator flags this boundary with the error message: An observer receding at or above the wave speed outruns the wavefronts and never hears the source.
Classical vs. Relativistic Doppler Effects
It is important to distinguish between the classical Doppler effect calculated here and the relativistic Doppler effect observed in astronomy and electromagnetism.
| Feature | Classical Doppler Effect | Relativistic Doppler Effect |
|---|---|---|
| Wave Type | Sound, water, and mechanical waves | Light and electromagnetic waves |
| Medium | Requires a physical, still medium | Occurs in a vacuum; no medium required |
| Reference Frame | Motion is relative to the stationary medium | Motion is relative only between source and observer |
| Symmetry | Asymmetric (moving source ≠ moving observer) | Symmetric (only relative velocity matters) |
In the classical model, moving a source toward a stationary observer at speed u does not produce the exact same frequency shift as moving the observer toward a stationary source at speed u. This asymmetry exists because the wave speed is fixed relative to the physical medium. For light waves, which travel through a vacuum, there is no medium to act as a reference frame, and the shift depends strictly on the relative velocity between the two bodies.
Environmental Factors in Acoustics
Real-world acoustic measurements often deviate from idealized calculations due to environmental variables that alter wave propagation:
- Medium Temperature: The speed of sound in air is highly dependent on temperature. The calculator provides presets for "Air (20 °C)" and "Air (0 °C)", as well as "Helium (0 °C)" and "Water (20 °C)", to account for these physical differences.
- Wind: A steady wind moves the medium itself relative to the ground. Because the classical formula assumes a still, uniform medium, wind will shift the wavefronts and alter the observed frequency.
- Non-Linear Paths: Real-world motion rarely occurs along a perfect, head-on line. When a source passes at a lateral distance, the vector component of the velocity along the line of sight changes continuously, causing the pitch to glide smoothly rather than jump abruptly.
Calculator Inputs and Outputs
Inputs
- Medium: Select from presets including Air (20 °C), Air (0 °C), Helium (0 °C), Water (20 °C), or Custom medium.
- Wave speed: The speed of the wave in the medium. Editing this field automatically switches the selection to Custom medium.
- Emitted frequency: The frequency of the wave emitted by the source.
- Source speed: The speed of the moving source.
- Observer speed: The speed of the moving observer.
- Source motion: The direction of the source's movement (Toward, Away, or Stationary).
- Observer motion: The direction of the observer's movement (Toward, Away, or Stationary).
- Frequency unit & Speed unit: The units of measurement for the calculations.
- Displayed decimals: The number of decimal places to display in the results.
The interface includes a Load example button to populate the fields with sample values and a Clear button to reset the inputs.
Outputs
Under What the observer hears:
- Observed frequency: The calculated frequency heard by the observer, accompanied by a pitch indicator: higher than emitted, lower than emitted, or same as emitted.
- Doppler shift: The absolute difference between the observed and emitted frequency.
- Shift in percent: The percentage change in frequency.
- Observed wavelength & Emitted wavelength: The physical wavelengths as received by the observer and emitted by the source.
- Source Mach number: The speed of the source relative to the wave speed in the medium.
Under Formula and substitution, the tool displays the step-by-step calculations, including unit conversions, numerator and denominator calculations, and the final frequency and shift derivations.
Frequently Asked Questions
Why does a siren’s pitch drop the moment it passes me?
While the source approaches, each new wavefront is emitted a little closer to you, so they arrive packed together and you hear a higher frequency. The instant it passes, the same motion stretches the spacing instead, and the pitch falls. The pass-by block shows both frequencies and the exact size of the drop for your numbers.
Can I use this for light or astronomical redshift?
No. Light needs no medium, and its Doppler law is relativistic: only the relative velocity between source and observer matters, not which one “really” moves. This calculator uses the classical law for sound and other mechanical waves in a medium, which gives a different answer except at everyday speeds, where the two nearly agree.
What happens when the source moves faster than sound?
The wavefronts can no longer get ahead of the source and pile up along a cone — the shock wave heard as a sonic boom. The simple formula then has no finite answer for a listener in front, so the calculator says so instead of printing a meaningless number. A source receding faster than sound is still fine: its stretched wavefronts keep propagating and the formula holds.
Do wind or sideways motion change the result?
Yes, and both sit outside this model. The formula assumes a still medium, so a steady wind — which carries the medium with it — changes the real shift. It also only handles motion along the line between source and observer; for motion at an angle, use the component along that line, which is why the pitch of a passing siren sweeps smoothly instead of jumping.
Privacy notice: Every number you enter stays in this browser — nothing is uploaded.