Light from a lightning flash reaches you almost instantly, but the sound of the thunder travels at only about 343 metres per second. The delay between the flash and the rumble therefore tells you how far away the strike was — a method sometimes called flash to bang.
Enter the number of seconds you counted and the air temperature, and this calculator gives the distance to the lightning in kilometres or miles, using the speed of sound at that temperature. It also shows the two classic rules of thumb — 3 seconds per kilometre and 5 seconds per mile — and a plain-language reminder of what to do.
The physics is simple, but the safety message matters more than the exact figure. Lightning regularly strikes 10 km (6 miles) or more from the storm that produced it, often from what looks like a clear patch of sky. That is why weather services say that if you can hear thunder, you are close enough to be struck, and you should get into a solid building or a closed metal-roofed vehicle without waiting for the count to drop.
How to use this calculator
- When you see the flash, start counting seconds (a phone stopwatch is more accurate than “one-thousand-one”).
- Stop at the first sound of thunder and enter the number of seconds.
- Enter the air temperature (20 °C / 68 °F by default). Cold air slows sound, warm air speeds it up.
- Read the distance. Repeat with the next flashes: if the delay shrinks, the storm is coming towards you.
The formula
In dry air the speed of sound depends on temperature (°C):
The light travel time (a few microseconds) is negligible, so the distance is simply
where is the delay in seconds. At 20 °C, m/s, which gives the rules of thumb: about 3 s per kilometre () and about 5 s per mile ().
Worked example
You see a flash and count 9 seconds before the thunder; the air is at 20 °C.
- Speed of sound: m/s
- Distance: m, i.e. 3.09 km
The quick rule, 9 ÷ 3, gives 3 km — close enough. On a cold day at −5 °C, the same 9 seconds would mean 2.95 km. A 15-second delay at 20 °C is 3.2 miles away. In all these cases you are well within striking distance.
Lightning safety: when thunder roars, go indoors
- Any audible thunder means danger. Thunder is usually heard up to about 15 km (10 miles), roughly the distance at which lightning can strike from a storm.
- Seek proper shelter: a building with plumbing and wiring, or a hard-topped car with the windows closed. Tents, picnic shelters, trees and open-sided huts do not protect you.
- Wait 30 minutes after the last thunder before going back outside; the trailing edge of a storm still produces strikes.
- The older 30-30 rule said to seek shelter when the count falls to 30 seconds (about 10 km) and wait 30 minutes after the last thunder. Weather services now simply advise going indoors as soon as you hear thunder.
- French-language agencies such as the Belgian IRM teach the same count, divided by 3, and treat 10 seconds (about 3 km) as the signal that the storm is very close.
Why the count is only an estimate
Thunder is produced along the whole lightning channel, which can be several kilometres long, so the first sound you hear comes from the nearest part of the channel. Wind, temperature layers and hills bend the sound, and human reaction time adds a few tenths of a second. Humidity raises the speed of sound slightly (well under 1 %), so it is ignored here. Treat the result as accurate to roughly 10 %, which is more than enough for safety decisions.
Frequently asked questions
How do you calculate how far away lightning is?
Count the seconds between the flash and the thunder and multiply by the speed of sound, about 343 m/s at 20 °C. Divide the seconds by 3 for an approximate distance in kilometres, or by 5 for miles.
How far away can lightning strike?
Strikes 10 to 15 km (6 to 10 miles) from the parent storm are common, and some “bolts from the blue” travel even farther. If thunder is audible, you are within range.
What is the 30-30 rule?
If the delay between flash and thunder is 30 seconds or less (about 10 km), get to shelter; then wait 30 minutes after the last thunder before going out. Current advice is stricter on the first part: go indoors as soon as you hear any thunder.
Does temperature really change the result?
Slightly. Sound travels at about 331 m/s at 0 °C and 352 m/s at 35 °C, a difference of about 6 %. For a 9-second delay that is a difference of roughly 200 m.
Why do I sometimes see lightning but hear no thunder?
The storm is probably more than about 15–20 km away: thunder fades, is absorbed and is bent upwards by the atmosphere, so distant flashes (“heat lightning”) are silent. The storm can still approach quickly.
Sources
- NOAA National Weather Service — Lightning safety tips and resources
- NOAA National Weather Service — Understanding lightning: thunder
- Royal Meteorological Institute of Belgium (IRM) — How to protect yourself from lightning (in French)
- HyperPhysics (Georgia State University) — Speed of sound in air
Last updated: