Speed of Sound Calculator

Speed of sound in air at any temperature, and how far sound travels

Calculate the speed of sound in dry air at any temperature in m/s, km/h, mph, knots and ft/s, and how far sound travels in a given time, such as from lightning to thunder.

PhysicsUpdated October 21, 2026Checked against 6 reference values

What this calculator does

Enter the air temperature to find the speed of sound in dry air, in meters per second, kilometers per hour, miles per hour, knots and feet per second. Add a time delay to find how far sound travels in that time, which is how you estimate the distance to a lightning strike from the gap before the thunder, or the distance to a cliff from an echo. A chart shows how the speed rises with temperature.

The formula

a = √(γ × R × T)

Here γ = 1.4 is the ratio of specific heats for air, R = 287.05 J/(kg·K) is the specific gas constant for dry air, and T is the absolute temperature in kelvins (degrees Celsius plus 273.15). These are the values used in the U.S. Standard Atmosphere and the ISO standard atmosphere, which give 340.29 m/s (761 mph) at sea level and 15 °C.

Why temperature is what matters

Sound is a pressure wave carried by colliding molecules, and warmer molecules move faster, so sound travels faster in warm air. For an ideal gas, air pressure on its own does not change the speed, because denser air is also more resistant to compression. That is why the speed of sound falls with altitude in the lower atmosphere only because the air gets colder.

Temperaturem/smphkm/h
-40 °C306.16851102
-20 °C319.07131148
0 °C331.37411193
10 °C337.37551214
20 °C343.27681236
30 °C349.07811257
40 °C354.77941277

How far away is the lightning?

Light arrives almost instantly, so the delay before the thunder is the time sound takes to reach you. At 20 °C, a 5-second gap means the strike was about 1.7 km (1.1 miles) away. The old rule of counting seconds and dividing by 3 for kilometers or by 5 for miles works because sound covers roughly a kilometer in 3 seconds. The National Weather Service advises that if you can hear thunder at all, you are close enough to be struck, so go indoors.

Humidity and other gases

Water vapor is lighter than the nitrogen and oxygen it replaces, so humid air carries sound very slightly faster, by up to a few tenths of a percent at warm temperatures. This calculator uses dry air, which is accurate enough for most purposes. Other gases have different values of γ and R: sound travels about three times as fast in helium, which is why breathing it raises the pitch of your voice. In water, sound travels at roughly 1,500 m/s, and in steel at around 5,000 to 6,000 m/s.

Echoes and distance

An echo travels to a surface and back, so the distance to the surface is half the distance sound covers in the measured time. Clap near a cliff at 20 °C and hear the echo after 2 seconds, and the cliff is about 343 meters away. The same principle, using sound or ultrasound, underlies sonar on ships, parking sensors on cars and medical ultrasound imaging, though those work in water or tissue where sound is much faster.

Mach numbers

An aircraft's Mach number is its speed divided by the local speed of sound. Because cruising altitudes are much colder than the ground, Mach 1 at 11 km, where the standard temperature is −56.5 °C, is about 295 m/s, well below the sea-level value. For converting speeds to Mach at standard altitudes, use the Mach number calculator, and for how motion shifts the pitch of a sound, the Doppler effect calculator.

Speed of Sound Calculator: common questions

What is the speed of sound?

In dry air at 15 °C it is about 340 m/s, 1,225 km/h or 761 mph. It is faster in warmer air: about 343 m/s at 20 °C.

Does the speed of sound change with altitude?

Only because temperature changes. In the lower atmosphere air gets colder with height, so sound slows, reaching about 295 m/s at airliner cruising altitudes.

How far away is lightning?

Count the seconds between the flash and the thunder and divide by about 3 for kilometers or 5 for miles. A 6-second gap means roughly 2 km away.

Does humidity affect the speed of sound?

Slightly. Humid air is lighter than dry air, so sound travels a little faster, but the effect is under one percent in normal weather.

Why does sound travel faster in water than in air?

Water is far stiffer, resisting compression much more than air, which outweighs its greater density. Sound travels about 1,500 m/s in water.

Sources

  • U.S. Standard Atmosphere, 1976 (NOAA, NASA, USAF): speed of sound 340.294 m/s at sea level, 15 °C
  • ISO 2533:1975, Standard Atmosphere