Next time you're stuck in a thunderstorm, try this easy way to calculate how far away you are from lightning strikes.
Just count the number of seconds that pass between a flash of lightning and the crack of thunder that follows it, then divide that number by five. The resulting number will tell you how many miles away you are from where lightning just struck.
Five seconds, for example, indicates the lightning struck 1 mile away, and a 10-second gap means the lightning was 2 miles away.
Related: How big can lightning get?
This technique is called the "flash-to-bang" method, and it can keep you safe during rainy summer weather. The National Weather Service recommends taking cover if the time between the lightning flash and the rumble of thunder is 30 seconds or less, which indicates the lightning is about 6 miles away or closer.
This method is based on the fact that light travels much faster than sound through the atmosphere: Light travels at 186,291 miles per second (299,800 km/s), whereas the speed of sound is only about 1,088 feet per second (332 meters per second), depending on air temperature.
For metric-system conversions, follow this method: Sound travels at about 340 m/s, so multiply the number of seconds you counted by 340, and you'll know how many meters away lightning struck. A three-second count, then, would place the lightning strike about 1,020 m away, or roughly 1 km.
Originally published on Live Science.
Live Science newsletter
Stay up to date on the latest science news by signing up for our Essentials newsletter.
Elizabeth is a former Live Science associate editor and current director of audience development at the Chamber of Commerce. She graduated with a bachelor of arts degree from George Washington University. Elizabeth has traveled throughout the Americas, studying political systems and indigenous cultures and teaching English to students of all ages.