Speed of Sound & Lightning Distance Calculator
Sound speed in air, at altitude, in the sea and in solids, and how far the lightning was.
Try before you buy.
- Free preview: the speed of sound or the lightning distance in full, with the first rows of the table and the first step of the working; every other figure is hidden.
- Locked until you unlock it: download and copy.
- Unlock: Pro pass, ₹179 for 30 days or ₹79 for 1 week, a one-time payment that never renews. Unlock: Pro pass, $5.99 for 30 days or $2.99 for 1 week, a one-time payment that never renews.
Ways to unlock shows how to get the full result.
Printing this result is locked in the free preview.
Result
At other temperatures
How it was worked out
Lightning safety (NOAA National Weather Service)
- When Thunder Roars, Go Indoors! If you hear thunder, you are likely within striking distance of the storm.
- There is no safe place outside when thunderstorms are in the area: go into a substantial building or a hard-topped vehicle. Rain shelters, small sheds and open vehicles are not safe.
- Wait 30 minutes after the last lightning or thunder before going back outside.
- Lightning often strikes more than three miles (5 km) from the centre of a storm, and “bolts from the blue” can strike 10–15 miles (16–24 km) away.
Locked in the free preview. Opens the ways to unlock this result.
Locked in the free preview. Batch runs unlock with a pass.
Locked in the free preview. Query results unlock with a pass.
About the Speed of Sound & Lightning Distance Calculator
How fast sound travels depends on what it travels through. This calculator gives the speed of sound:
- In air, from the temperature, the humidity and the pressure: air as an ideal gas, c = √(γ·R·T ÷ M), with the water vapour mixed in, which makes moist air a little faster. Add a speed to get its Mach number.
- At an altitude of the U.S. Standard Atmosphere, from −1,000 m to 86 km, with the temperature and pressure there and the Mach number of an aircraft.
- In seawater, from its temperature, salinity and depth, with Mackenzie’s nine-term equation.
- In other materials: gases, liquids and solids from OpenStax University Physics, with the time sound takes to cross a distance.
- To lightning: the seconds between the flash and the thunder give the distance, with the National Weather Service’s safety advice.
With a Pro pass, copy the result or download it as a CSV, or unlock this one result. Without a pass the free preview shows the speed of sound or the lightning distance in full, with the first rows of the table and the first step of the working; every other figure is hidden.
How to use it
- Choose where the sound travels: air, an altitude, seawater, another material, or lightning.
- Enter the conditions: the temperature, humidity and pressure of the air; the altitude; the water’s temperature, salinity and depth; the material; or the seconds from the flash to the thunder.
- Optionally add a speed for its Mach number, or a distance for the travel time.
- Read the speed or the distance, the table and the working. Copy the result or download the CSV with a Pro pass, or after unlocking this result.
Examples
Dry, at sea level
343.2 m/s (1,236 km/h); at 50 % humidity 343.9 m/s; at 0 °C 331.3 m/s
11,000 m, 900 km/h
At −56.4 °C sound travels at 295.2 m/s (1,063 km/h), so the airliner flies at Mach 0.847
25 °C, salinity 35, 1,000 m down
1,550.7 m/s by Mackenzie’s equation, about 4.5 times as fast as in air
Steel, 100 m
5,960 m/s: sound crosses 100 m of steel in 16.78 ms, against 302 ms through air at 0 °C
Air at 20 °C
2.06 km (1.28 miles) away; the rule of thumb, 3 seconds per km, gives 2 km. If you can hear it, go indoors
Common uses
- Physics homework on the speed of sound in gases, liquids and solids
- Working out the Mach number of an aircraft, a drone or a projectile at its altitude
- Setting the speed of sound for an echo, sonar or ultrasonic distance measurement
- Telling how far away a thunderstorm is from the delay of its thunder
- Seeing how temperature and humidity change the speed of sound for acoustics and audio
The formulas
- An ideal gas: c = √(γ·R·T ÷ M), with T in kelvins, R = 8.314 J/(mol·K), and for dry air γ = 1.4 and M = 28.96 g/mol: 331.3 m/s at 0 °C and 343.2 m/s at 20 °C
- Humid air: the water vapour’s share of the air, x = humidity × saturation vapour pressure ÷ pressure (the WMO formula), lowers the molar mass, M = (1 − x)·28.96 + x·18.015 g/mol, and γ a little, (C_p ÷ R = 3.5 for the air and 4 for the vapour)
- The standard atmosphere: the temperature falls 6.5 °C per km up to 11 km, stays at −56.5 °C to 20 km, then rises again; c = √(1.40 × 8.31432 × T ÷ 0.0289644)
- Seawater (Mackenzie): c = 1448.96 + 4.591T − 0.05304T² + 0.0002374T³ + 1.340(S − 35) + 0.01630D + 1.675·10⁻⁷D² − 0.01025T(S − 35) − 7.139·10⁻¹³TD³, for −2 to 30 °C, salinity 30 to 40 and depths to 8,000 m
- Mach number: M = v ÷ c
- Lightning: distance = c × the delay; about 3 seconds per kilometre, 5 seconds per mile
Why temperature matters most
In a gas, sound is passed on by molecules bumping into each other, so it travels about as fast as they move, which depends on the temperature. For an ideal gas the pressure cancels out of the formula: higher up, the thin air carries sound more slowly only because it is colder. Near room temperature the speed rises by about 0.6 m/s for each degree.
In liquids and solids the molecules are packed close and held by strong forces, so sound is much faster: about 1,480 m/s in fresh water and 5,960 m/s in steel. Soft vulcanized rubber is the exception at 54 m/s.
Lightning safety
From the NOAA National Weather Service:
- When Thunder Roars, Go Indoors! If you hear thunder, you are likely within striking distance of the storm.
- There is no safe place outside when thunderstorms are in the area. Substantial buildings and hard-topped vehicles are safe options; rain shelters, small sheds and open vehicles are not.
- Wait 30 minutes after the last lightning or thunder before going back outside.
- Lightning often strikes more than three miles from the centre of the thunderstorm, and “bolts from the blue” can strike 10–15 miles from it.
The distance tells you where that flash was, not where the next one will be.
Sources
- OpenStax, University Physics Volume 1, §17.2 Speed of Sound: c = √(γ·R·T ÷ M), γ = 1.4 for air, and Table 17.1, the speed of sound in various media (CC BY 4.0)
- OpenStax, University Physics Volume 2, §2.3 Heat Capacity and Equipartition of Energy and §3.5 Heat Capacities of an Ideal Gas: the heat capacities used for humid air (CC BY 4.0)
- WMO-No. 8, Guide to Meteorological Instruments and Methods of Observation, Annex 4.B: the saturation vapour pressure over water
- NIST: the molar gas constant, R = 8.314 462 618 J/(mol·K), exact
- U.S. Standard Atmosphere, NOAA and NASA, report NASA-TM-X-74335: the temperatures, lapse rates and pressures of its layers, and its constants
- K. V. Mackenzie, Nine-term equation for sound speed in the oceans, Journal of the Acoustical Society of America
- NOAA National Weather Service: lightning safety and lightning myths
Limitations
- Air is treated as a mixture of ideal gases; precise acoustic standards add small real-gas and carbon dioxide corrections, so the last digit may differ slightly from theirs.
- The standard atmosphere is an average: real air on any day is warmer or colder, so the speed at an altitude varies with the weather.
- Mackenzie’s equation holds only for −2 to 30 °C, salinities of 30 to 40 and depths to 8,000 m; fresh and brackish water are outside it (see “Other materials” for fresh water).
- The speeds of the materials are typical values: real alloys, glasses and plastics differ, and a thin rod carries sound more slowly than a large block.
- The lightning distance is an estimate for that one flash; it is not a warning system. If you can hear thunder, go indoors.
Privacy
On this device: nothing is sent
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
What do I get without a pass?
Without a pass, Speed of Sound & Lightning Distance Calculator shows the speed of sound or the lightning distance in full, with the first rows of the table and the first step of the working; every other figure is hidden. Until you unlock it, the result can’t be downloaded or copied. A Pro, Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.
What is the speed of sound at 20 °C?
About 343 m/s (343.2 m/s in dry air, 1,236 km/h or 768 mph). At 0 °C it is 331.3 m/s, and humid air is a little faster: 343.9 m/s at 20 °C and 50 % humidity.
How does temperature change the speed of sound?
It grows with the square root of the absolute temperature: c = 331.3 m/s × √(T ÷ 273.15 K) for dry air. Near room temperature that is about 0.6 m/s more for each degree.
Does air pressure change the speed of sound?
Not for an ideal gas: the pressure cancels out. Sound is slower high up only because the air there is colder; between 11 and 20 km, where the standard atmosphere’s temperature is constant, the speed stays at 295.1 m/s.
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, about 343 m/s: 6 seconds is about 2.06 km. As a rule of thumb, divide the seconds by 3 for kilometres or by 5 for miles.
What is Mach 1 at cruising altitude?
At 11,000 m the standard atmosphere is at −56.4 °C and sound travels at 295.2 m/s (1,063 km/h), slower than the 340.3 m/s at sea level. An airliner at 900 km/h is at Mach 0.847.
Why is sound faster in water and steel than in air?
Their molecules are packed closely and held by strong forces, so a push passes from one to the next quickly: about 1,480 m/s in fresh water and 5,960 m/s in steel, against 343 m/s in air.