Speed of sound calculator
How fast does sound travel, and how far away was that thunder? Enter the air temperature and the delay you heard to get the speed of sound and the distance.
See it for real: play Paint the Sky or play Land the Rocket.
The formula
Sound is a pressure wave passed from molecule to molecule, so its speed in a gas depends on how fast those molecules are moving, and that depends on temperature. For air treated as an ideal gas:
v = √(γ R T / M) ≈ 331.3 √(1 + T°C / 273.15) m/s
γ (gamma) is 1.4 for air, the ratio of its heat capacities; R = 8.314 J/(mol·K) is the gas constant; T is the absolute temperature in kelvin (°C + 273.15); and M = 0.02896 kg/mol is the average molar mass of dry air. At 0 °C this gives 331.3 m/s, at 20 °C 343.2 m/s. A handy approximation near room temperature is v ≈ 331 + 0.6 T°C. The distance output is just speed times delay, d = v t.
Why temperature matters and pressure doesn’t
A sound wave moves only as fast as molecules can bump into their neighbours and pass the push along. Warmer molecules move faster, so sound does too: the speed rises with the square root of absolute temperature. You might expect thin mountain air to carry sound more slowly, but lower pressure reduces both the push and the mass to be pushed by the same factor, so they cancel. At the top of Everest sound is slower than at sea level only because the air there is about −30 °C, not because it is thin. At an airliner’s cruising height of 11 km, with air at about −57 °C, the speed of sound is only 295 m/s (1,062 km/h).
Speed of sound in air and other materials
| Medium | Speed |
|---|---|
| Air at −20 °C | 319 m/s |
| Air at 0 °C | 331 m/s |
| Air at 20 °C | 343 m/s |
| Air at 40 °C | 355 m/s |
| Helium at 20 °C | about 1,000 m/s |
| Fresh water at 20 °C | about 1,480 m/s |
| Seawater | about 1,500 m/s |
| Steel | about 5,900 m/s |
Sound in helium is nearly three times faster than in air, which is why breathing it makes a voice sound squeaky: your vocal cords buzz at the same rate, but the resonances of your throat and mouth jump up in pitch. In liquids and solids, which are far stiffer than gases, sound is faster still. Put an ear to a long metal railing while someone taps the far end and you hear the tap through the metal well before it arrives through the air.
Assumptions and limits
- The air is dry. Humid air is slightly faster, because water vapour molecules are lighter than nitrogen and oxygen: even fully saturated air at 20 °C is less than 0.5% faster, under 2 m/s.
- There is no wind. A wind blowing from the source towards you adds its speed to the sound’s.
- The distance assumes light arrives instantly. Light covers 1.7 km in 6 millionths of a second, so this is safe.
- For an echo, the sound goes there and back, so halve the distance to find how far away the wall or cliff is.
Everyday uses
- Thunderstorms: count the seconds from flash to bang and divide by 3 for kilometres, or by 5 for miles.
- Echoes: a clap that returns from a cliff after 1 second means the cliff is about 172 m away.
- Mach numbers: Mach 1 is the local speed of sound. Concorde cruised at about Mach 2 at 18 km, roughly 2,150 km/h.
- Measuring it at school: stand 100 m from a wall, clap in time with the echoes and time 20 claps. Each clap-to-echo is 200 m of travel.
At a firework display the bang comes after the flash. In Paint the Sky every boom is delayed by the distance to the burst, just as at a real show. In Land the Rocket the booster starts its fall faster than sound.
Worked example
On a 15 °C evening you see a flash of lightning and count 5 seconds before the thunder. How far away was the strike?
| Air temperature | 15 °C |
|---|---|
| Delay between seeing and hearing | 5 s |
| Speed of sound | 340.3 m/s |
| Distance the sound travelled | 1701 m |
| Delay per kilometre | 2.939 s |
About 1.7 km, roughly a mile. The old rule of thumb, “3 seconds per kilometre” or “5 seconds per mile”, comes straight from this speed. Lightning can strike 10 km or more from a storm, so the US National Weather Service advises going indoors as soon as you can hear thunder at all.
Frequently asked questions
- What is the speed of sound in air?
- About 343 m/s (1,235 km/h or 767 mph) in dry air at 20 °C. It is 331 m/s at 0 °C and rises by about 0.6 m/s for each degree warmer.
- How do you work out how far away thunder is?
- Count the seconds between the flash and the thunder and multiply by the speed of sound. A 6-second gap at 20 °C is 6 × 343 = 2,060 m, about 2 km. Quick rule: 3 seconds per kilometre, 5 seconds per mile.
- Does sound travel faster in hot or cold air?
- In hot air. Warmer molecules move faster and pass the sound wave along more quickly. At 35 °C sound travels at about 352 m/s; at −10 °C, about 325 m/s.
- Does air pressure affect the speed of sound?
- Hardly at all. In an ideal gas pressure and density change together and cancel. Sound is slower at altitude because the air there is colder, not because it is thinner.
- How fast is Mach 1?
- Mach 1 is the local speed of sound: about 1,225 km/h (761 mph) at sea level at 15 °C, but only about 1,062 km/h (660 mph) at 11 km altitude where the air is near −57 °C.
- Why does sound travel faster in water than in air?
- Water is far harder to compress than air, so a push is passed on much more quickly. Sound moves at about 1,480 m/s in fresh water, over four times faster than in air.
Sources
- Speed of sound, Wikipedia
- Speed of sound in air, HyperPhysics
- Air: speed of sound at different temperatures, Engineering ToolBox
- Lightning safety, NOAA National Weather Service
Related calculators
- Doppler Effect Calculator: Why does a siren drop in pitch as it passes? Enter the frequency of the sound and how fast the source and listener are moving to hear the Doppler shift in numbers.
- Wave Speed Calculator: How fast is a wave travelling? Enter its frequency and wavelength to get its speed, along with the period between one crest and the next.
- Frequency to Wavelength Calculator: How long is a radio wave, a Wi-Fi signal or a musical note? Enter a frequency and the wave speed (light by default) to get the wavelength.
- Decibel Calculator: How loud will it be from further away, and how long can you listen safely? Enter a sound level measured at one distance to get the level, intensity and safe listening time somewhere else.
Checked against the sources above. Last reviewed 2026-11-11. Calculators give estimates from standard formulas; see our disclaimer.

