Speed of Sound Calculator

Calculate the speed of sound in air at a given temperature, and the distance to a lightning strike from the thunder delay.

°C
s
m/s
Speed of sound 343.215 m/s
c = 331.3 × √(1 + T/273.15) m/s
In km/h 1235.6 km/h
In mph 767.7 mph
Distance to the lightning 1716 m
c = 331.3 × √(1 + T/273.15) m/s
Distance in km 1.716 km
Mach number of the object 0
c = 331.3 × √(1 + T/273.15) m/s

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Speed of Sound Calculator does

This speed of sound calculator will calculate the speed of sound in air at a given temperature, and the distance to a lightning strike from the thunder delay. Fill in all 3 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for estimating how far away a lightning strike was. People using this often want the frequency to wavelength calculator next.

How to use it

  1. Enter the air temperature.
  2. For lightning, enter the seconds between the flash and the thunder.
  3. For a Mach number, enter the object's speed in metres per second.

How it works

The speed of sound in a gas depends on temperature and not on pressure, because pressure and density change together and their ratio stays fixed. It rises roughly 0.6 m/s per degree Celsius, so sound travels about 20 m/s faster on a hot summer day than at freezing.

The old rule of counting seconds and dividing by three for kilometres, or by five for miles, works because sound covers roughly a kilometre every three seconds. At 20 °C the exact figure is 2.91 seconds per kilometre.

Humidity has a small effect — humid air is very slightly less dense, raising the speed by a fraction of a percent. Altitude affects it only through temperature. In other media the speed is entirely different: about 1480 m/s in water and 5100 in steel.

When to use it

  • Estimating how far away a lightning strike was.
  • Converting an aircraft speed to a Mach number.
  • Acoustic calculations where the speed of sound matters.
  • Checking a physics problem.

Common mistakes to avoid

  • Assuming the speed of sound depends on air pressure. It does not, only on temperature.
  • Using the sea-level figure at altitude without adjusting for the colder air.
  • Using the air figure for sound in water or solids, where it is several times higher.

Frequently asked questions

How fast does sound travel?

About 343 m/s in air at 20 °C, which is 1235 km/h or 767 mph. It rises roughly 0.6 m/s for every degree Celsius.

How do I work out how far away lightning is?

Count the seconds between the flash and the thunder and divide by about three for kilometres, or five for miles. At 20 °C a kilometre takes 2.91 seconds.

Does altitude change the speed of sound?

Only through temperature. Pressure has no effect, but air is colder at altitude, so sound travels more slowly — about 295 m/s at 11 km, where the temperature is around −56 °C.

Related tools

See all science & engineering →