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.

°C
°F to °C: subtract 32, then multiply by 5/9
For an echo, the calculator gives the distance there and back
Speed of sound–
Distance the sound travelled–
Delay per kilometre–s

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

MediumSpeed
Air at −20 °C319 m/s
Air at 0 °C331 m/s
Air at 20 °C343 m/s
Air at 40 °C355 m/s
Helium at 20 °Cabout 1,000 m/s
Fresh water at 20 °Cabout 1,480 m/s
Seawaterabout 1,500 m/s
Steelabout 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

Everyday uses

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 temperature15 °C
Delay between seeing and hearing5 s
Speed of sound340.3 m/s
Distance the sound travelled1701 m
Delay per kilometre2.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

Related calculators

Play it