Speed of Sound Calculator

Work out distance based on how long sound takes to travel — for example distance to a lightning strike, or distance from an echo/sonar measurement.

Distance
2,058 meters
Based on speed of sound 343 m/s
In kilometers
2.06 km
Measurement type
One-way
Embed on your website →

How to use the speed of sound calculator

  1. Enter the number of seconds you measured — for example the time from when you saw the lightning to when you heard the thunder.
  2. Choose the correct measurement type: one-way (lightning/thunder) or round trip (echo/sonar).
  3. The calculator works out the distance based on the speed of sound in air.

How the distance is calculated

distance = speed of sound × time

A well-known rule of thumb is to divide the number of seconds between lightning and thunder by 3 to get the distance in kilometers. That holds up well because sound travels at about 343 m/s, and 343 m/s × 3 seconds is nearly exactly 1 kilometer.

With an echo or sonar, the sound must travel a round trip — out to the object and back again — before it's registered. So we divide the result by 2 for round-trip measurements, giving the distance to the object rather than the total distance the sound traveled.

Note: The speed of sound varies with temperature (and slightly with humidity). 343 m/s is a common approximation for room temperature (about 20°C / 68°F). At, say, −10°C (14°F), the speed of sound is about 325 m/s, so the calculation becomes less accurate in cold weather.
Ad space — reserved for future partners

Frequently asked questions

Why do you divide the number of seconds by 3 to find the distance to lightning in km?

Because sound travels at about 343 m/s, and 343 m/s × 3 seconds gives nearly exactly 1,000 meters. Dividing the number of seconds by 3 is therefore a quick and good approximation for finding the distance to the lightning strike in kilometers.

Why is there a difference between one-way and round-trip measurement?

With a one-way measurement (like lightning and thunder), the sound only travels one way, from the source to you. With an echo or sonar, you send out the sound yourself, and it has to travel out to the object and back again before you hear it — double the distance — so the time has to be divided by 2 to find the correct distance.

How does temperature affect the speed of sound?

The speed of sound in air increases with temperature, because warmer air molecules move faster and transfer vibrations between each other more quickly. At low temperatures, the speed of sound drops accordingly, which makes calculations using a fixed value of 343 m/s less precise in winter.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.