Speed of Sound Calculator: Air, Altitude, Water and Solids
By FindMySum · Last reviewed
Sound is a pressure wave, and how fast it travels depends on the material carrying it and, in air, mostly on the temperature. This speed of sound calculator gives the speed in air from your temperature, humidity and pressure or from the standard atmosphere at an altitude, in fresh water and in common solids. It also turns any speed into a Mach number and an echo delay into a distance.
Sound in air
For an ideal gas the speed of sound is
c = √(γ × R × T ÷ M)
γ is the ratio of specific heats (1.4 for air), R the gas constant, T the absolute temperature in kelvin and M the molar mass of air. Density and pressure cancel out: squeezing air raises its stiffness and its density together. What matters is temperature. At 20 °C dry air carries sound at about 343.2 m/s, and every degree warmer adds roughly 0.6 m/s.
A common shortcut gives the same result to within a few hundredths: c ≈ 331.3 × √(1 + T ÷ 273.15), with T in °C.
Humid air
Water vapour is lighter than the nitrogen and oxygen it replaces, so humid air carries sound slightly faster. For measured conditions between 0 °C and 30 °C, the calculator uses the formula of Owen Cramer (1993), a fit to precise measurements that includes temperature, pressure, humidity and carbon dioxide. At 20 °C it gives 343.4 m/s for dry air and 344.6 m/s for saturated air, a difference of about 0.4%. Outside that temperature range the calculator falls back to the ideal-gas formula for dry air.
Worked example: the default
At 20 °C, 50% relative humidity and sea-level pressure:
- Speed: 344.0 m/s, or 1,238 km/h and 769 mph.
- A clap that echoes back after 1 second has travelled 344 m in all, so the wall is 172 m away.
- A car or aircraft at 1,000 km/h is going at Mach 0.81.
Altitude and Mach number
Aircraft speeds are often given as a Mach number, the speed divided by the local speed of sound. Because the air gets colder with height, Mach 1 gets slower as you climb. In the standard atmosphere:
| Altitude | Temperature | Speed of sound |
|---|---|---|
| Sea level | 15.0 °C | 340.3 m/s (1,225 km/h) |
| 3,000 m (9,840 ft) | −4.5 °C | 328.6 m/s |
| 10,000 m (32,800 ft) | −49.9 °C | 299.5 m/s |
| 35,000 ft (10,668 m) | −54.2 °C | 296.6 m/s (577 knots) |
An airliner cruising at 480 knots true airspeed at 35,000 ft is flying at about Mach 0.83. Above about 11 km the standard atmosphere stops cooling, so the speed of sound stays near 295 m/s up to 20 km. Choose "Standard atmosphere at an altitude" to see this; for actual flight conditions, enter the outside air temperature instead.
Water and solids
Sound travels much faster in liquids and solids because they resist compression far more strongly than air. Fresh water at 20 °C carries it at about 1,482 m/s, more than four times faster than air, from the NIST tables based on the international IAPWS-95 standard. Seawater is faster still, around 1,500 m/s, depending on salinity.
In solids the calculator uses longitudinal (compression-wave) speeds measured with ultrasonic thickness gauges: about 5,900 m/s in mild steel, 6,300 m/s in aluminium and 2,700 m/s in acrylic. These are what an ultrasonic tester sees through a thick plate. A thin rod or wire carries sound more slowly, and the shear waves used in some inspections are slower again.
Echoes
An echo has made a round trip, so the distance to the reflecting surface is
distance = c × t ÷ 2
At 20 °C, 3 seconds between a shout and its echo means a cliff about 516 m away. The same idea underlies sonar, ultrasound imaging and bat navigation, and its one-way version gives the distance to a lightning strike from the delay before the thunder.
Limits
The air formulas assume still air at one temperature. Wind adds to or subtracts from the speed along its direction, and temperature layers bend sound paths. Cramer's formula is only fitted from 0 °C to 30 °C and 75 kPa to 102 kPa. Solid values vary with the exact alloy, temperature and porosity, so measure your own material when accuracy matters.
For the distance to a storm from the thunder delay, use the lightning distance calculator; to convert a frequency into a wavelength, the wavelength calculator; and for air density at altitude, the density altitude calculator.
More questions
Why does sound carry so far on cold, still nights?
On clear nights the ground cools the air just above it, so the air gets warmer with height. Sound travels faster in the warmer air above, which bends sound waves back down toward the ground instead of letting them escape upward. Distant trains, highways and voices become audible that you can't hear on a sunny afternoon.
What is a sonic boom?
When an aircraft flies faster than the local speed of sound, the pressure waves it makes can't move ahead of it and pile up into a shock wave shaped like a cone. When that cone sweeps over the ground, people hear a sharp double bang. It lasts as long as the aircraft is supersonic, not just at the moment it crosses Mach 1.
Do high and low notes travel at the same speed?
Yes, in ordinary air the speed of sound doesn't depend on frequency, which is why music from a distant band arrives in step. High frequencies are absorbed more by air, though, so far-off sounds lose their treble and seem muffled.
Why do we hear thunder after we see lightning?
Light reaches you in a few microseconds, but thunder travels at the speed of sound, about a kilometre every three seconds. Counting the seconds between the flash and the rumble gives the distance to the strike.
How do bats and submarines use the speed of sound?
Both send out sound pulses and time the echoes. Knowing the speed of sound in air or seawater, half the round-trip time times the speed gives the distance to an insect or the seabed. Sonar operators correct for temperature and salinity because they change the speed of sound in water.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.