Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Speed of Sound & Lightning Distance Calculator

Sound speed in air, at altitude, in the sea and in solids, and how far the lightning was.

Free preview, no sign-upIncluded in your pass Pro tool Pro pass: ₹179 / $5.99 for 30 days On this device: nothing is sent
+3 +1 more details No uploadWorks offline once opened Science

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.

Pro pass ₹179 for 30 days or ₹79 for 1 week, one‑time. Pro pass $5.99 for 30 days or $2.99 for 1 week, one‑time. How to unlock

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.

See passes (opens in a new tab)

Printing this result is locked in the free preview.

Where the sound travels

In
%
0 % for dry air. Moist air carries sound a little faster.
101.325 kPa is sea level; it only matters with humidity.
For its Mach number.

Result

Speed of sound —

At other temperatures

How it was worked out

Next steps Done. What next?

Start over

A Pro pass unlocks the full result. See passes

All science calculators

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

  1. Choose where the sound travels: air, an altitude, seawater, another material, or lightning.
  2. 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.
  3. Optionally add a speed for its Mach number, or a distance for the travel time.
  4. 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

Air at 20 °C
Input
Dry, at sea level
Result
343.2 m/s (1,236 km/h); at 50 % humidity 343.9 m/s; at 0 °C 331.3 m/s
An airliner at cruising height
Input
11,000 m, 900 km/h
Result
At −56.4 °C sound travels at 295.2 m/s (1,063 km/h), so the airliner flies at Mach 0.847
The ocean
Input
25 °C, salinity 35, 1,000 m down
Result
1,550.7 m/s by Mackenzie’s equation, about 4.5 times as fast as in air
A steel rail
Input
Steel, 100 m
Result
5,960 m/s: sound crosses 100 m of steel in 16.78 ms, against 302 ms through air at 0 °C
Thunder 6 seconds after the flash
Input
Air at 20 °C
Result
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

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.

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.