# Doppler effect calculator > How does the pitch change as a siren or a train passes? The frequency you hear from a moving source or as a moving listener, with the shock cone past the speed of sound. Find the pitch you hear from a siren, train or car moving toward or away from you, how many semitones it drops as it passes, and the Mach cone beyond. - Page: https://how.box/doppler/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/doppler/?f={f}&vs={vs}&ds={ds}&vo={vo}&do={do}&u={u}&c={c} - `f` (number 1 to 100000): Frequency sent, Hz. Example: `400`. - `vs` (number 0 to 10000): Source speed in u. Example: `250`. - `ds` (toward or away): Source moves toward or away. Example: `toward`. - `vo` (number 0 to 10000): Listener speed in u. Example: `0`. - `do` (toward or away): Listener moves toward or away. Example: `toward`. - `u` (kmh, ms or mph): kmh, ms or mph. Example: `kmh`. - `c` (number 1 to 20000): Speed of sound, m/s. Example: `343`. Example answer: https://how.box/doppler/?f=400&vs=250&ds=toward&vo=0&do=toward&u=kmh&c=343 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `doppler_calculate`: Doppler effect for sound: f′ = f · (c + vo) / (c − vs), speeds positive toward each other. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"doppler_calculate","arguments":{"frequency":400,"source_speed":250,"source_motion":"toward","observer_speed":0,"observer_motion":"toward","speed_unit":"kmh","sound_speed":343}}}` - GET: https://how.box/mcp/run/doppler_calculate?frequency=400&source_speed=250&source_motion=toward&observer_speed=0&observer_motion=toward&speed_unit=kmh&sound_speed=343 ## How it works A sound source sends out wave crests at a steady rate. When it moves toward you, each crest starts a little closer than the one before, so the crests arrive bunched together and you hear a higher pitch; as it moves away they arrive stretched out and the pitch drops. That is the familiar "neeee-owww" of a passing siren. For sound, f′ = f × (c + vₒ) ÷ (c − vₛ), where f is the frequency sent, f′ the frequency heard, c the speed of sound (343 m/s in air at 20 °C), vₒ your speed toward the source and vₛ the source's speed toward you (negative when moving away). A 700 Hz siren at 90 km/h (25 m/s) coming toward you sounds 700 × 343 ÷ 318 ≈ 755 Hz; after it passes, 700 × 343 ÷ 368 ≈ 652 Hz, more than two semitones lower. When the source reaches the speed of sound (Mach 1) the crests pile up on top of each other, and beyond it they trail behind in a cone whose half-angle μ satisfies sin μ = c ÷ vₛ: a sonic boom. The formulas are from OpenStax University Physics, volume 1, sections 17.7 and 17.8. They assume still air and motion along the line between source and listener; wind or a sideways path change the result. ## FAQ **Does it matter whether the source or the listener moves?** Yes. For sound, use speeds relative to the air: moving the source changes wave spacing, while moving the listener changes how often the listener meets the waves. **Can I use a negative speed for motion away?** Enter a non-negative speed and choose Away. The direction control supplies the sign. **Does this calculate a passing car’s pitch at every instant?** No. It models motion along the line between source and listener, not the changing angle of a car passing to one side. **Can I use this for light or radar?** No. Light requires the relativistic Doppler relation, and radar also involves reflection from the target; this calculator models sound travelling directly to a listener. **Does the frequency shift tell me how loud the sound is?** No. Pitch and loudness are different: the result gives frequency, not sound pressure or volume. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)