# Speed of sound calculator > How fast does sound travel at this temperature? The speed of sound in air from its temperature, or in water and metals, and how far it goes in a few seconds. Find the speed of sound in air at any temperature, or in water, steel and diamond, and how far away lightning struck when you count the seconds to the thunder. - Page: https://how.box/speed-of-sound/ - 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/speed-of-sound/?m={m}&t={t}&tu={tu}&d={d}&u={u} - `m` (air, fresh-water, seawater, stainless-steel, aluminium, copper, fused-quartz or diamond): Medium: air, fresh-water, seawater, stainless-steel, aluminium, copper, fused-quartz, diamond. Example: `air`. - `t` (number -100 to 1000): Air temperature in tu. Example: `20`. - `tu` (c or f): c or f. Example: `c`. - `d` (number 0 to 3600): Delay in seconds for the distance. Example: `3`. - `u` (ms, kmh or mph): ms, kmh or mph. Example: `ms`. Example answer: https://how.box/speed-of-sound/?m=air&t=20&tu=c&d=3&u=ms A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `speed_of_sound_calculate`: Speed of sound: in dry air √(1.4 × 287.05287 × T) from the temperature (343.2 m/s at 20 °C), or a typical value for medium air, fresh-water, seawater, stainless-steel, aluminium, copper, fused-quartz, diamond. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"speed_of_sound_calculate","arguments":{"medium":"air","temperature":20,"temperature_unit":"c","delay_s":3,"speed_unit":"ms"}}}` - GET: https://how.box/mcp/run/speed_of_sound_calculate?medium=air&temperature=20&temperature_unit=c&delay_s=3&speed_unit=ms ## How it works Sound is a pressure wave passed from molecule to molecule. In a gas it travels about as fast as the molecules themselves move, so it is faster in warm air than in cold. In liquids and solids, whose particles are tightly linked, it goes much faster: about four times as fast in water and up to 35 times in diamond. In dry air the speed is c = √(γ × R × T), with γ = 1.4 (the ratio of the heat capacities of air), R = 287.05 J/(kg·K) (the gas constant for air) and T the temperature in kelvin. At 20 °C, T = 293.15 K and c = √(1.4 × 287.05 × 293.15) ≈ 343.2 m/s; at 0 °C it is 331.3 m/s, about 0.6 m/s less per degree. Lightning seen 3 seconds before its thunder is 3 × 343 ≈ 1 km away. The constants are those of the International Standard Atmosphere (ISO 2533) and the method is in OpenStax University Physics, volume 1, section 17.2. Humidity raises the speed in air by up to a few tenths of a per cent, and pressure on its own has no effect. The water, metal and diamond values are typical figures from the speed of sound article on Wikipedia; real samples vary with temperature and composition. ## FAQ **How many seconds of thunder make a kilometre or a mile?** About 3 seconds per kilometre and 5 per mile. At 20 °C sound needs 2.9 s for a kilometre and 4.7 s for a mile; at 0 °C it needs 3.0 s and 4.9 s, so the rule of thumb holds in any weather. **Do I need to allow for the time the light takes?** No. Light covers a kilometre in about 3.3 millionths of a second, so the flash arrives practically at once and the whole delay is the sound's. **Should I halve the distance for an echo?** Yes. The result is the total distance sound travels, so an echo returning along the same path covers twice the distance to the reflecting surface. **Can sound travel through a vacuum?** No. Sound needs a material medium to carry the disturbance; there is no vacuum option. **Does a higher note travel faster than a lower note?** In ordinary air under these assumptions, both travel at the same speed. Their wavelengths differ instead. **Does the temperature field change the result for water or metal?** No. Temperature adjusts dry-air speed only; the other media use fixed typical values. **Does the calculated delay include electronic equipment?** No. Processing, buffering and speaker delays are not included; the result models only sound travelling through the chosen medium. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)