Speed of Sound Calculator

Find the speed of sound in air at any temperature, or in helium, water, sea water and common solids. Then turn an echo or the gap between lightning and thunder into a distance.

Calculator Science & Engineering Updated Oct 4, 2026
How to Use
  1. Choose a task: Speed of sound, Echo distance, Lightning distance, Travel time, or Air temperature from a measured speed.
  2. Pick the medium (air, helium, fresh water, sea water, steel, aluminium or glass) and enter the temperature in °C, °F or K.
  3. For an echo enter the time until it comes back; for lightning, the seconds between the flash and the thunder.
  4. Or press a preset: air at 20 °C, water, steel, a 3 s echo, a 9 s thunderclap, or a sonar ping.
  5. Read the answer and the conversions; Show Work gives the formula with your numbers.
Input
not used for solids
t
t
d
c
Presets
Sound
Speed of sound
—
Kilometres per hour
—
Miles per hour
—
Feet per second
—

Worked Example

Speed in air at 20 °C. c = 331.3 × √(1 + 20/273.15) = 331.3 × √1.07322 = 331.3 × 1.03596 = 343.2 m/s. The same result comes from 20.05 × √T with T in kelvin: 20.05 × √293.15.

An echo. You clap in front of a cliff and hear the echo 3 s later. The sound travelled 343.2 × 3 = 1,029.6 m in total, out and back, so the cliff is 1,029.6 ÷ 2 = 514.8 m away.

The common mistake: forgetting that an echo is a round trip. Multiplying 343.2 m/s by the full 3 s gives 1,030 m, twice the real distance of 515 m. Lightning is different: the flash reaches you almost instantly, so there you use the whole time: 9 s × 343.2 m/s = 3.09 km (the 3-seconds-per-km rule gives 3 km).

Show Work

Enter values to see the step-by-step working.

Formulas

Dry air
c = 331.3 × √(1 + T/273.15) m/s
T in °C; equal to 20.05 × √T with T in kelvin
Any ideal gas
c = √(γ R T ÷ M)
γ = 1.4 for air, 5/3 for helium; M in kg/mol
Liquids and solids
c = √(stiffness ÷ density)
Bulk modulus for liquids; elastic moduli for solids
Echo distance
d = c × t ÷ 2
The sound goes there and back
Lightning distance
d = c × t ≈ t ÷ 3 km ≈ t ÷ 5 mi
Exact at 20 °C: 2.91 s per km, 4.69 s per mile
Temperature from speed
T = 273.15 × (c/331.3)² − 273.15 °C
The air formula turned round

Measuring the Speed of Sound

Isaac Newton gave the first theory in the Principia (1687), but his figure came out about 15% too low, because he assumed the air stays at a constant temperature as it is squeezed. Pierre-Simon Laplace fixed it in 1816: sound waves compress the air too quickly for heat to flow, so the ratio of heat capacities, γ = 1.4 for air, belongs under the square root. That is the formula this calculator uses for gases.

Sound in water was first timed in 1826 by Daniel Colladon and Charles-François Sturm on Lake Geneva: a bell struck underwater and a flash of gunpowder at the same moment, timed from a boat across the lake. They found about 1,435 m/s in the cold lake water, more than four times the speed in air. On 14 October 1947 Chuck Yeager flew the Bell X-1 faster than sound; the ratio of speed to the local speed of sound is the Mach number, after Ernst Mach.

Data used here: dry air from the ideal-gas formula above; helium with γ = 5/3 and M = 4.0026 g/mol; fresh water from Marczak’s 1997 fit (0–95 °C, 1,482.4 m/s at 20 °C); sea water from Medwin’s 1975 formula at 35 ‰ salinity and the surface (0–35 °C); and typical longitudinal speeds in large solid blocks from the CRC Handbook of Chemistry and Physics: steel 5,960 m/s, aluminium 6,420 m/s, Pyrex glass 5,640 m/s. Real alloys and glasses vary by a few percent.

About This Calculator

This calculator gives the speed of sound in air at any temperature, and in helium, fresh water, sea water, steel, aluminium and glass. It then uses that speed for the everyday questions: how far away an echoing wall is, how far off a lightning strike was, how long sound takes to cover a distance, and, in reverse, how warm the air must be for a measured speed.

Each answer comes with conversions to km/h, mph and ft/s, the comparison chart of all the media at your temperature, and the full working. It runs entirely in your browser.

It suits physics homework, storm watching, sonar and echo-sounding estimates, and audio work where wavelengths matter.

Related tools: Frequency ↔ Wavelength, Decibel Calculator, and Speed, Distance & Time Calculator.

Frequently Asked Questions

How fast is the speed of sound in air?

At 20 °C it is 343.2 m/s, which is 1,235.6 km/h or 767.7 mph. It depends on temperature: 331.3 m/s at 0 °C and 349.0 m/s at 30 °C, about 0.6 m/s more for every degree near room temperature. This calculator uses c = 331.3 × √(1 + T/273.15) for dry air.

How do I work out how far away lightning is?

Count the seconds from the flash to the thunder and multiply by the speed of sound: 9 s × 343.2 m/s = 3,089 m, or 3.09 km (1.92 miles). The rules of thumb are 3 seconds per kilometre and 5 seconds per mile; at 20 °C the exact figures are 2.91 s per km and 4.69 s per mile.

How do I find a distance from an echo?

The sound goes there and back, so halve the round trip: d = c × t ÷ 2. An echo off a cliff after 3 s at 20 °C means 343.2 × 3 ÷ 2 = 514.8 m. Forgetting to halve gives 1,030 m, twice the real distance.

Why is sound faster in water and steel than in air?

Sound speed depends on how stiff a material is compared with how dense it is (c = √(stiffness ÷ density)). Water is about 800 times denser than air but far stiffer still, so sound runs at about 1,482 m/s at 20 °C, 4.3 times faster. In steel it is about 5,960 m/s, 17 times faster than in air.

Do air pressure, altitude and humidity change the speed of sound?

Pressure on its own does not: in an ideal gas the stiffness and the density change together. Altitude matters only because the air is colder; at 11 km, where it is about −56.5 °C, sound travels 295.1 m/s. Humidity makes sound slightly faster, about 1.3 m/s (0.4%) at 20 °C and 100% humidity.

How do I use the Speed of Sound Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

Storm safety

Thunder 9 s after the flash means the strike was 3.09 km away. Under 30 s (about 10 km) is close enough to go inside.

Echoes

A shout comes back off a cliff after 1.2 s: the cliff is 343.2 × 1.2 ÷ 2 = 205.9 m away.

Sonar and depth sounding

In sea water at 15 °C sound travels 1,506.8 m/s, so a 1 s echo means the seabed is 753.4 m down.

Audio and room acoustics

A 1 kHz tone has a 34.3 cm wavelength in air; 20 Hz bass is 17.2 m long and 20 kHz just 1.7 cm.

Race starts

A starter’s pistol 100 m away is heard 0.29 s late, which is why sprint starts use a speaker behind each block.

Last updated: