Calculate the observed frequency due to the Doppler effect for sound waves. Accounts for both source and observer motion relative to the medium. Uses f′ = f × (v ± v_o) / (v ∓ v_s).
The Doppler effect is the change in observed frequency of a wave when source and observer move relative to each other. Discovered in 1842 by Christian Doppler and famously verified with trumpet players riding trains, it explains everything from why ambulance sirens change pitch as they pass to how radar guns measure car speeds, how Hubble proved the universe is expanding, and how Doppler ultrasound images blood flow inside arteries.
The intuition is geometric: when a source moves toward you, successive wavefronts are emitted closer together — higher frequency. When it moves away, wavefronts spread out — lower frequency. The same happens if you move toward or away from a stationary source. Mathematically, the observed frequency is the source frequency times a ratio that depends on the speeds of source, observer, and wave medium.
For sound, the formula treats source and observer motion asymmetrically because sound propagates through a medium (air). Light has no such medium — the special-relativistic Doppler effect depends only on the relative velocity of source and observer, not their motion through space. This calculator handles the classical sound case; for light at high speeds, a relativistic formula is needed.
Common applications: speed enforcement (police radar/lidar), weather radar (rotation of severe storms), medical imaging (blood flow), navigation (GPS Doppler), astronomy (galactic redshifts confirming expansion), and any physics problem involving moving sources or observers.
**Scenario:** Ambulance siren at 700 Hz drives toward a stationary observer at 25 m/s (≈56 mph). Then passes. **Calculation:** Approaching: f' = 700 × 343 / (343 − 25) = 700 × 343 / 318 ≈ 755 Hz. Receding: f' = 700 × 343 / (343 + 25) = 700 × 343 / 368 ≈ 653 Hz. **Result:** Pitch jumps from 755 to 653 Hz as it passes — about 100 Hz total drop, clearly audible. The familiar "neeeeooowww" pattern.
**Scenario:** Police radar at 24.15 GHz measures a car at 30 m/s. **Calculation:** Δf = 2 × f × v / c = 2 × 24.15e9 × 30 / 3e8 = 4,830 Hz. **Result:** ~4.83 kHz Doppler shift in the returned signal. Each kHz of shift corresponds to ~6.21 m/s (~13.9 mph). Modern radar guns measure shift to within ~0.5 Hz, giving speed to ~0.1 mph precision.
**Scenario:** Hydrogen alpha line normally at 656.3 nm is observed at 700.1 nm from a distant galaxy. Recession velocity? **Calculation:** z = Δλ/λ = (700.1 − 656.3) / 656.3 = 0.0667. At z < 0.1, v ≈ zc = 0.0667 × 3e5 km/s ≈ 20,000 km/s. **Result:** Galaxy receding at ~20,000 km/s. By Hubble's law (H₀ ≈ 70 km/s/Mpc), distance ≈ 290 Mpc ≈ 950 million light-years. Such observations of countless galaxies established cosmic expansion.
**Use Doppler calculations for:**
- **Sound problems**: sirens, vehicle pass-by frequency analysis. - **Speed enforcement**: police radar, lidar, traffic monitoring. - **Weather radar**: storm rotation, tornado detection, wind speed. - **Doppler ultrasound**: cardiac, vascular, obstetric medicine. - **Aircraft Doppler**: ground speed, weather avoidance. - **Astronomy**: galactic redshifts, stellar radial velocities, exoplanet detection. - **Sonar**: underwater speed measurement. - **GPS**: receiver location refinement via Doppler.
**Classical vs relativistic:**
- **Sound** (or any wave in a medium): classical formula with v of medium. - **Light**: must use relativistic formula, depends only on relative velocity. - **Low-speed approximation**: at v << c (or v << v_sound), both reduce to Δf/f ≈ Δv/c (or Δv/v).
**Sign conventions vary by textbook:**
Most common: motion toward gives + (frequency increases).
Some use vector notation: v positive in one direction, all velocities measured against that.
This calculator uses: positive velocities mean approaching motion (intuitive).
**Sound speed reference:**
| Medium | Speed (m/s) | |---|---| | Air (0°C) | 331 | | Air (20°C) | 343 | | Air (40°C) | 355 | | Helium (20°C) | 1,007 | | Hydrogen | 1,310 | | Fresh water | 1,481 | | Sea water | 1,531 | | Rubber | 60-1,500 | | Aluminum | 6,420 | | Steel | 5,960 | | Diamond | 12,000 |
**Common applications:**
- **Pitch perception**: musicians and physicists analyzing pass-by sounds. - **Vehicle classification**: train horns, helicopter rotors. - **Marine biology**: dolphin/whale vocalizations. - **Sports**: pitch tracking (radar gun on baseball). - **Wind energy**: turbine blade tip Doppler shift. - **Industrial flow meters**: ultrasonic flow measurement. - **Heart-rate fetal monitoring**: Doppler ultrasound detects fetal heartbeats.
**Doppler in special relativity:**
For light (no medium): f' = f × √((1 − β)/(1 + β)) (recession) f' = f × √((1 + β)/(1 − β)) (approach)
Where β = v/c. At β → 1, frequency goes to 0 (recession) or infinity (approach).
Includes "transverse Doppler" (purely sideways motion still affects frequency — relativistic time dilation).
**Mach number context:**
- M < 0.8: subsonic. - 0.8 ≤ M < 1.0: transonic. - M = 1.0: speed of sound. - 1.0 < M < 5.0: supersonic. - M ≥ 5.0: hypersonic.
Supersonic aircraft create cone-shaped shock waves heard as sonic booms when they reach the ground.
**Software:**
- **MATLAB**: signal processing for Doppler analysis. - **Python (scipy.signal)**: frequency analysis of recordings. - **Sonic visualizer**: free audio spectrogram tool. - **Radar simulation tools**: MathWorks Phased Array Toolbox.
**Pitfalls:**
- **Sign convention errors**: every textbook has its own — be explicit. - **Source vs observer motion**: different formulas in classical (sound). - **Speed of sound**: depends on temperature, humidity, altitude. - **Approximation breakdown**: at high speeds, full formula required. - **Direction**: only the component of velocity along the line connecting source and observer matters. - **Mach cone**: at v_s > v, classical formula breaks down. - **Forgetting double-shift in radar**: round trip doubles Δf.
Calculate frequency from period and vice versa (f = 1/T).
Calculate wavelength from wave speed and frequency (lambda = v/f).
Calculate the speed of sound in air at different temperatures.
Calculate buoyant force using Archimedes' principle F_b = ρVg.
Apply Bernoulli's principle: P + ½ρv² + ρgh = constant.
Calculate volume flow rate using Q = A × v.
Positive = approaching observer
Positive = approaching source
Observed Freq
478.48 Hz
Shift
+38.48 Hz
Change
+8.7%
| Parameter | Value |
|---|---|
| Source Frequency | 440 Hz |
| Source Velocity | 0 m/s (0.0 km/h) |
| Observer Velocity | 30 m/s (108.0 km/h) |
| Speed of Sound | 343 m/s |
| Observed Frequency | 478.48 Hz |
| Frequency Shift | +38.48 Hz (+8.75%) |
| Source Wavelength | 0.7795 m |
| Observed Wavelength | 0.7168 m |
| Formula | f' = f(v + v_o)/(v - v_s) |