UTILS.
100% in-browser
⛈️

Lightning Distance Calculator (Flash-to-Bang)

Turn the seconds between a lightning flash and the thunder into distance in km and miles, with the 30-30 safety rule.

About this tool

Lightning Distance Calculator is a free, in-browser tool that tells you how far away a storm is from the delay between seeing a lightning flash and hearing its thunder. Count the seconds from flash to bang, enter that number (and optionally the air temperature), and it returns the distance in kilometers, miles, meters and feet. Everything is computed on your device; nothing is uploaded.

Light reaches you almost instantly, but sound travels at roughly 343 m/s, so the delay reveals the distance. The well-known field rules are distance in kilometers ≈ seconds ÷ 3 and distance in miles ≈ seconds ÷ 5. For a precise figure the tool uses the actual speed of sound, 331.3 + 0.606 × temperature in °C meters per second, then multiplies by the seconds you counted, since colder air slows sound slightly.

This is a safety tool as much as a curiosity. Under the 30-30 rule, if you hear thunder within 30 seconds of the flash — under about 10 km or 6 miles away — you are within striking range and should seek shelter immediately, and wait 30 minutes after the last thunder before heading back out. When thunder roars, go indoors.

Frequently asked questions

How do I tell how far away lightning is?
Count the seconds between the flash and the thunderclap. Divide by 3 for the distance in kilometers, or by 5 for miles. So a 15-second gap means the strike was about 5 km or 3 miles away.
What is the 30-30 rule?
If thunder follows the flash by 30 seconds or less, the storm is close enough to be dangerous (within ~10 km) and you should shelter now. After the storm, wait 30 minutes past the last thunder before going back outside.
Why does temperature affect the result?
Sound travels faster in warm air and slower in cold. The speed is about 331.3 + 0.606 × °C meters per second, so entering the temperature gives a slightly more precise distance than the simple divide-by-3 rule.
Is anything I enter sent to a server?
No. The seconds and temperature you enter and the resulting distances are computed entirely in your browser and never uploaded, so the tool works offline.

More tools