Lightning Distance Calculator
Estimate how far away lightning is from the time between flash and thunder. Enter your sound speed assumption and get distance results.
Lightning Distance Calculator
sec
Result will appear here...
What the lightning distance calculator does
You can tell how far away a thunderstorm is by timing the gap between the lightning flash and the thunder that follows. This calculator turns that delay into a distance, using the speed of sound, which you can adjust in advanced mode.
Below is how the method works, the equation behind it, the handy rule of thumb, and how to use it for safety.
How to use it
- Time the delay in seconds between seeing the lightning and hearing the thunder, and enter it.
- In simple mode the calculator uses the standard speed of sound. In advanced mode you can set your own value to match the temperature.
- Press Calculate for the distance to the storm, or Reset to clear it.
How the flash-to-thunder delay works
Lightning and thunder happen at the same instant: the flash and the crash are two parts of a single event, as a bolt superheats the air and that air explodes outward as sound. But you see the flash and hear the thunder at different times, and the reason is the enormous difference in speed between light and sound.
Light travels so fast that it crosses any earthly distance essentially instantly, so you see the flash the moment it happens. Sound, at around 343 metres per second, is hundreds of thousands of times slower, so the thunder takes a noticeable time to reach you. The further away the strike, the longer that thunder lags behind the flash. By timing the lag, you are really timing how long the sound took to travel from the strike to you, and from that you can work out the distance. This calculator does the arithmetic.
The equation it uses
The distance is simply the speed of sound multiplied by the delay:
distance = speed of sound × time
Because the light reaches you almost instantly, the measured delay is essentially the full travel time of the sound, so multiplying it by the speed of sound gives the distance the sound covered, which is how far away the lightning struck. The calculator uses a speed of sound of about 343 metres per second by default, the value for ordinary air, and lets you change it in advanced mode, since the speed of sound shifts a little with temperature.
The flash-to-bang rule of thumb
This method gives rise to a famous mental shortcut, the flash-to-bang rule. Because sound covers about a kilometre in roughly three seconds, you can divide the number of seconds between flash and thunder by three to get the distance in kilometres. For miles, divide by five instead, since sound takes about five seconds to travel a mile.
So a delay of nine seconds means the strike was about three kilometres, or nearly two miles, away. A delay of fifteen seconds puts it at roughly five kilometres, or three miles. These round numbers make it easy to estimate a storm's distance in your head without any instrument, and they are close enough for practical purposes, though they lose a little accuracy in very hot or very cold weather, when the speed of sound drifts from its usual value. The calculator gives the precise figure, while the rule of thumb gives the quick one.
Using it for storm safety
Tracking a storm's distance this way is genuinely useful for safety. By timing several flashes in a row, you can tell whether a storm is moving toward you or away: a shrinking delay means the lightning is getting closer, a growing one means it is receding. That early warning can give you time to reach shelter before a storm arrives overhead.
Safety authorities pair this with the well-known thirty-thirty rule. If the delay between flash and thunder is thirty seconds or less, the storm is close enough that the next strike could reach you, and it is time to go indoors. After the storm seems to pass, the guidance is to wait thirty minutes from the last thunder before heading back out, since lightning can strike well away from the rain. Used this way, the flash-to-thunder timing is not just a curiosity but a small tool for staying safe, and this calculator helps you read it.
Units and precision
The calculator takes the delay in seconds and reports the distance in metres, kilometres, feet, yards, or miles. It assumes a speed of sound of about 343 metres per second by default, which you can adjust in advanced mode to match the air temperature, and it treats the light as arriving instantly, which is an excellent approximation over any distance you could hear thunder. The result is as accurate as your timing and your chosen speed of sound. Distance is shown to several significant figures.
A worked example
Suppose you count 6 seconds between the lightning flash and the thunder.
The distance is speed of sound × time = 343 × 6 = 2,058 metres, or about 2 kilometres, which is roughly 1.3 miles. The flash-to-bang rule gives the same quick answer: 6 seconds divided by 3 is about 2 kilometres. Since 6 seconds is well under 30, this storm would be close enough that seeking shelter is the sensible move.
Questions people ask
How do you tell how far away lightning is?
Time the seconds between the flash and the thunder, then multiply by the speed of sound. Since light arrives instantly, the delay is the time the sound took to reach you, which gives the distance.
What is the flash-to-bang rule?
Divide the seconds between flash and thunder by three for the distance in kilometres, or by five for miles. Sound covers about a kilometre in three seconds and a mile in five.
What is the thirty-thirty rule?
If thunder follows lightning within thirty seconds, seek shelter, as the storm is dangerously close. After the storm, wait thirty minutes from the last thunder before going back outside.
Does temperature affect the result?
Slightly, because the speed of sound changes with temperature, by about 0.6 metres per second per degree Celsius. The default value suits most conditions, and advanced mode lets you adjust it for accuracy.
References
A quick note on where this comes from. Estimating lightning distance from the flash-to-thunder delay, using the speed of sound, is described by the US National Weather Service for lightning safety and in OpenStax's University Physics. The thirty-thirty safety rule is standard guidance from weather authorities.
- National Weather Service (NOAA), Lightning Safety and the flash-to-bang method. https://www.weather.gov/safety/lightning
- OpenStax, University Physics Volume 1, Section 17.2, Speed of Sound (lightning and thunder example). https://openstax.org/books/university-physics-volume-1/pages/17-2-speed-of-sound
- Wikipedia, Lightning (distance estimation). https://en.wikipedia.org/wiki/Lightning
Bibek Lal Karna is a PhD student and graduate teaching assistant at the University of Mississippi, with deep interests in theoretical and gravitational physics. He is also the founder of NRCC and is strongly engaged in scientific teaching and communication. At Eon Tools, he reviews physics tools.