Lightning Distance Calculator
Introduction to flash-to-bang lightning ranging
A lightning flash and the thunder it produces leave the channel at the same instant, but they reach you at wildly different times. Light covers ten kilometres in about 33 microseconds; the acoustic shock wave that we call thunder needs roughly 29 seconds to cover the same ground. That mismatch is what makes flash-to-bang ranging possible: the delay between what you see and what you hear is a direct measurement of how far the discharge was from your ears. This calculator turns that delay into a distance in kilometres, statute miles and feet, and it does so using the real, temperature-dependent speed of sound rather than the familiar playground shortcut of dividing by five.
The distinction matters more than it sounds. The five-seconds-per-mile rule promoted by the National Weather Service is deliberately simple and deliberately conservative, but it is not the physics. On a warm summer afternoon the true figure is closer to 4.6 seconds per mile, and on a cold winter night it climbs past 5 seconds per mile. Over a 30-second count that spread is worth almost half a mile. If you are managing a golf course, a construction site, a swim meet or an outdoor concert, and your suspension threshold is defined in miles, that half mile is the difference between a defensible decision and a guess.
How to use the flash-to-bang timer
Start a stopwatch, or start counting, the instant you see the flash. Stop the moment the first sound of that flash reaches you. It is the first arrival that matters: thunder from a five-kilometre channel rolls for several seconds because sound from the far end of the channel arrives later than sound from the near end, and only the onset carries clean distance information. Enter that elapsed time in the seconds field.
Next, enter the air temperature if you know it and choose Celsius or Fahrenheit. A thermometer reading from a phone weather app is good enough; the calculation is not sensitive to a degree or two. If you leave the field blank, the calculator assumes 20 °C (68 °F) and says so in the result, so you always know which assumption produced your number. The result panel then reports the strike distance in three units, the speed of sound actually used, the number of seconds a mile takes at that temperature, how the National Weather Service rule of thumb would have answered, and a plain-language verdict against the 30/30 rule. Two buttons let you copy the result text or copy a shareable link that re-opens the page with your inputs already filled in, which is convenient when you are logging strikes for an incident report.
Do not do any of this while standing in the open. Time the strike from inside a substantial building or a hard-topped metal vehicle. The measurement is an aid to deciding when it is safe to come back out, not a reason to stay outside a moment longer.
The thunder distance formula and the speed of sound in air
The distance is simply the speed of sound multiplied by the elapsed time, because light travel time is negligible at these ranges:
Formula: d = c(θ) ⋅ t
where is the distance in metres, is the flash-to-bang time in seconds and is the speed of sound at air temperature . Everything interesting is in that second term. For an ideal gas the speed of sound follows the relation used by NASA's Beginner's Guide to Aeronautics:
Formula: c = sqrt(γ ⋅ R ⋅ T)
Here is the ratio of specific heats, is the specific gas constant for the gas and is the absolute temperature in kelvin. For dry air the U.S. Standard Atmosphere, 1976 fixes , a mean molar mass of 28.9644 kg/kmol and a universal gas constant of 8.31432 J/(mol·K), which gives a specific gas constant of 287.053 J/(kg·K). Substituting those constants and writing the temperature in degrees Celsius collapses the expression to the compact form this calculator evaluates:
Formula: c(θ) = 331.3 ⋅ sqrt(1 + θ / 273.15) m/s
Notice that this is a square-root law, not the straight line that is often quoted. The linear version is a first-order Taylor expansion about 0 °C; it is accurate to better than 0.1 percent between roughly −20 °C and +40 °C but drifts away from the true curve outside that band, so the square-root form is what is implemented here. A useful sanity check: at the standard sea-level temperature of 15 °C the formula returns 340.29 m/s, which is exactly the value tabulated in the U.S. Standard Atmosphere.
Converting to everyday units uses the international definitions of the mile and the foot, 1609.344 m and 0.3048 m exactly:
Formula: d_mi = (c(θ) ⋅ t) / 1609.344, d_km = (c(θ) ⋅ t) / 1000
Turning that around gives the number people actually memorise, the seconds it takes thunder to travel one mile at a given temperature:
Formula: t_mi = 1609.344 / c(θ)
Fahrenheit readings are converted first, using the exact relation:
Formula: θ_C = 5 / 9(θ_F − 32)
Worked example: a 14-second count on a warm evening
Suppose you see a flash from the clubhouse window, start your stopwatch, and hear the first rumble 14.0 seconds later. The thermometer on the porch reads 81 °F.
First convert the temperature: . Then the speed of sound is 331.3 × √(1 + 27.22 / 273.15) = 347.44 m/s. Multiplying by 14.0 s gives 4864 m, which is 4.86 km, 3.02 statute miles, or 15 958 feet. The National Weather Service rule of thumb would have said 14 ÷ 5 = 2.80 miles, so the shortcut under-reports this strike by 0.22 miles, roughly 7 percent. Either answer lands the storm firmly inside the six-mile threshold, so the operational decision is identical: stay inside, and restart the 30-minute clock from this clap of thunder.
Run the same 14-second count on a February night at −10 °C and the answer changes to 4.55 km or 2.83 miles. The count did not change; the air did.
Count-to-distance comparison across air temperatures
The table below is the practical heart of this page. Each row is a flash-to-bang count; each column is an air temperature; each cell is the resulting strike distance in statute miles with kilometres in brackets. The final column shows what the National Weather Service five-seconds-per-mile shortcut would have returned, so you can see the size of the error you accept when you use it. If you have just run a calculation, the row and column closest to your inputs are highlighted.
| Count | −10 °C (14 °F) | 0 °C (32 °F) | 10 °C (50 °F) | 20 °C (68 °F) | 30 °C (86 °F) | NWS “divide by 5” |
|---|---|---|---|---|---|---|
| 5 s | 1.01 (1.63) | 1.03 (1.66) | 1.05 (1.69) | 1.07 (1.72) | 1.08 (1.75) | 1.00 |
| 10 s | 2.02 (3.25) | 2.06 (3.31) | 2.10 (3.37) | 2.13 (3.43) | 2.17 (3.49) | 2.00 |
| 15 s | 3.03 (4.88) | 3.09 (4.97) | 3.14 (5.06) | 3.20 (5.15) | 3.25 (5.24) | 3.00 |
| 20 s | 4.04 (6.50) | 4.12 (6.63) | 4.19 (6.75) | 4.27 (6.86) | 4.34 (6.98) | 4.00 |
| 25 s | 5.05 (8.13) | 5.15 (8.28) | 5.24 (8.43) | 5.33 (8.58) | 5.42 (8.73) | 5.00 |
| 30 s | 6.06 (9.76) | 6.18 (9.94) | 6.29 (10.12) | 6.40 (10.30) | 6.51 (10.47) | 6.00 |
| 45 s | 9.09 (14.63) | 9.26 (14.91) | 9.43 (15.18) | 9.60 (15.45) | 9.76 (15.71) | 9.00 |
| 60 s | 12.12 (19.51) | 12.35 (19.88) | 12.58 (20.24) | 12.80 (20.59) | 13.01 (20.94) | 12.00 |
Two patterns are worth internalising. First, the shortcut is always low, by between 1 and 8 percent across the range shown, which is the conservative direction for a shelter decision but the wrong direction if you are trying to decide whether a storm has moved far enough away. Second, the temperature spread across a realistic day is about 7 percent, comparable to the shortcut error itself. Beyond a count of about 45 seconds those two effects together are worth more than half a mile, which is why the temperature field is worth filling in.
The second table converts the same physics into the numbers a timekeeper wants: how many seconds one mile and one kilometre take at each temperature.
| Air temperature | Speed of sound | Seconds per mile | Seconds per kilometre |
|---|---|---|---|
| −20 °C (−4 °F) | 318.96 m/s | 5.05 | 3.14 |
| −10 °C (14 °F) | 325.20 m/s | 4.95 | 3.08 |
| 0 °C (32 °F) | 331.32 m/s | 4.86 | 3.02 |
| 10 °C (50 °F) | 337.33 m/s | 4.77 | 2.96 |
| 20 °C (68 °F) | 343.23 m/s | 4.69 | 2.91 |
| 30 °C (86 °F) | 349.04 m/s | 4.61 | 2.87 |
| 40 °C (104 °F) | 354.75 m/s | 4.54 | 2.82 |
Reading the result against the 30/30 rule
The threshold most safety programmes are built around is the 30/30 rule: if the flash-to-bang count is 30 seconds or less, the strike was within about six miles and you are already inside the striking range of the storm, so take shelter; and stay sheltered until 30 minutes have passed since the last thunder you heard. The table above shows why the six-mile figure is robust — a 30-second count is 6.06 miles at −10 °C and 6.51 miles at 30 °C, so the rule brackets reality across any temperature you would plausibly be standing outside in.
| Flash-to-bang count | Distance at 20 °C | Band | What it means |
|---|---|---|---|
| Under 10 s | Under 2.1 mi (3.4 km) | Strike zone | The channel is close enough that the next flash could reach you. You should already be inside a substantial building or a hard-topped vehicle. |
| 10 s to 30 s | 2.1 to 6.4 mi (3.4 to 10.3 km) | 30/30 triggered | Within documented striking range. Suspend outdoor activity and restart the 30-minute clock at every clap. |
| 30 s to 60 s | 6.4 to 12.8 mi (10.3 to 20.6 km) | Approaching or clearing | Outside the classic threshold but not safe: bolts from the blue have been recorded 10 miles or more from the parent cloud. |
| Over 60 s | Over 12.8 mi (20.6 km) | Distant | Keep watching. Track storm motion on radar rather than relying on a single count. |
| No thunder for 30 min | Not applicable | All clear | The National Weather Service all-clear condition: 30 minutes with no thunder heard. |
Note that the six-mile figure is a threshold for action, not a guarantee of safety outside it. The National Severe Storms Laboratory documents cloud-to-ground flashes that travel several miles horizontally in clear air before striking, including a case in which a cyclist was struck under a cloudless sky by a bolt originating in a storm about 16 km (roughly ten miles) away. That is why current National Weather Service messaging has moved away from arithmetic thresholds towards the blunter instruction that if you can hear thunder at all, you are close enough to be struck.
Limitations, assumptions and error budget
This model makes four assumptions, and each one places a floor under how precise the answer can be. First, it assumes dry air at a uniform temperature along the whole sound path. In reality the path passes through a storm with strong vertical temperature gradients, and only the near-surface temperature is available to you; saturated air at 30 °C is about 0.4 percent faster than dry air, which is small but not zero. Second, it assumes the sound travels in a straight line. Temperature inversions, wind shear and terrain refract acoustic rays, and thunder can be bent upward so completely that a storm eight or ten miles away is inaudible, giving a false sense of security. Third, it assumes you correctly paired one flash with its own thunder. During an active cell with several flashes per minute this is the dominant error, and a mismatch can be worth kilometres. Fourth, it assumes a point source, whereas a lightning channel is a line source several kilometres long; the onset of thunder marks the closest point on the channel, not the ground contact point, so the calculator systematically reports the distance to the nearest part of the flash.
Human timing adds its own budget. A typical reaction-time spread of about 0.3 to 0.5 seconds corresponds to 100 to 170 metres of distance, which is negligible at 30 seconds and significant at 3 seconds. Using a stopwatch instead of counting aloud removes most of this. The practical upshot is that the result is trustworthy to roughly a tenth of a mile, which is far finer than any safety threshold requires. Above about 75 seconds the tool warns you, because thunder is rarely audible past 25 km and a longer count almost certainly means a mismatched flash.
Finally, this page is an educational and planning aid. It is not a lightning detection system, it does not predict where the next stroke will land, and it must never be used to justify staying outdoors. Professional lightning location networks triangulate strokes from radio emissions in real time and are the right tool for automated venue alerting; a flash-to-bang count is the right tool for a human who already has eyes on the sky.
Sources and reference standards
Sources. Flash-to-bang counting and the five-seconds-per-mile shortcut: NOAA National Weather Service, Lightning Safety training material, weather.gov (“count the number of seconds until you hear thunder; divide the number of seconds by five to get the distance”). The 30-minute all-clear: NOAA National Weather Service, Lightning Safety Tips and Resources, weather.gov/safety/lightning-tips (“Stay in safe shelter at least 30 minutes after you hear the last sound of thunder”). Long-range and clear-air strikes: NOAA National Severe Storms Laboratory, Severe Weather 101 — Lightning FAQ, nssl.noaa.gov. Speed of sound in an ideal gas: NASA Glenn Research Center, Beginner’s Guide to Aeronautics — Speed of Sound, grc.nasa.gov. Gas constants for dry air and the tabulated sea-level value of 340.294 m/s: NOAA, NASA and U.S. Air Force, U.S. Standard Atmosphere, 1976 (NOAA-S/T 76-1562), ngdc.noaa.gov. Exact unit definitions (1 mile = 1609.344 m, 1 ft = 0.3048 m): NIST Special Publication 811, Guide for the Use of the International System of Units.
Lightning timing questions people actually ask
How many seconds per mile does thunder actually take?
At 20 °C (68 °F) sound travels at 343.2 m/s, so one statute mile of 1609.344 m takes 4.69 seconds rather than the 5 seconds of the classic rule of thumb. The five-second rule therefore under-reads the true distance by about 6 percent in mild weather and by about 3 percent near freezing. Counting in kilometres is tidier: thunder needs roughly 2.91 seconds per kilometre at 20 °C and 3.02 seconds per kilometre at 0 °C.
Does the 30/30 rule still hold once temperature is taken into account?
Yes, and it stays usefully conservative. A 30-second flash-to-bang count works out to 6.06 miles at minus 10 °C and 6.51 miles at 30 °C, so the familiar within-six-miles threshold brackets the real answer across any temperature you are likely to be standing outside in. Because lightning is documented to strike well outside that radius, the National Weather Service now leads with the simpler message: when thunder roars, go indoors.
Why does colder air make thunder arrive later?
In an ideal gas the speed of sound depends on the absolute temperature and the composition of the gas, not on the pressure. Colder molecules carry less thermal energy, so a pressure disturbance propagates through them more slowly. Cooling the air from 30 °C to minus 10 °C drops the speed of sound from 349.0 m/s to 325.2 m/s, a 6.8 percent slowdown, which stretches every flash-to-bang count by the same proportion.
How long a count is still believable?
Thunder is rarely audible beyond roughly 25 kilometres (about 15 miles), which corresponds to a count near 75 seconds. Longer counts almost always mean you paired a clap with the wrong flash. This calculator accepts counts up to 300 seconds so you can explore the physics, but it labels anything past 75 seconds as beyond the normal audible range for thunder.
Do humidity and altitude change the thunder distance?
Both are small next to temperature. Fully saturated air at 30 °C carries sound about 0.4 percent faster than dry air at the same temperature, which moves a six-mile estimate by roughly 40 metres. Altitude matters only through the temperature it implies, because the ideal-gas speed of sound is independent of pressure. This calculator therefore models dry air and treats humidity as a second-order correction.
What is the largest source of error in a flash-to-bang estimate?
Human timing and flash matching, not the physics. A half-second reaction error is worth about 170 metres, and pairing a clap with the wrong flash can be worth several kilometres. Terrain, buildings and temperature inversions refract thunder as well, and because a lightning channel can be kilometres long the first rumble marks the closest point of the channel rather than the ground contact point.
Flash-to-Bang Mini-Game
A lightning fork flashes somewhere in the dark. You feel the delay in your bones, then tap when the thunder should arrive at your watchtower. Closer strikes feel urgent; distant ones stretch the silence until your pulse starts counting for you.
Storm log complete
You tracked 0 strikes.
Lightning distance is all about sound delay.
Estimate a strike above to set the practice storm. Warmer air compresses the delay; colder air drags it out.
