The lightning distance calculator above applies one published physical relation and nothing else: distance equals the speed of sound multiplied by the delay between seeing a lightning flash and hearing its thunder. It uses the standard temperature-dependent speed of sound in air rather than a fixed constant, and it reports the result in kilometres and miles along with the seconds-per-unit conversion that the familiar counting rules come from.
Arb Digital publishes free physics calculators, and this one needs a warning stated up front rather than buried at the bottom. This page cannot tell you whether you are safe, and no distance it produces should ever be read as a safe distance. A flash-to-bang count tells you where one particular flash was. It tells you nothing about where the next one will be. Lightning regularly strikes ground well ahead of, behind or beside the visible storm, and the published guidance below is what governs what to do — not the number in the box.
What This Lightning Distance Calculator Does
Light from a lightning flash reaches you effectively instantly. Over ten kilometres it takes about 33 microseconds, which is far below anything a person can perceive. Sound is roughly a million times slower, so the delay between the flash and the thunder is, to an excellent approximation, purely the sound travel time. Multiply that delay by the speed of sound and you have the straight-line distance from you to the part of the channel that produced the sound you heard first.
The tool computes the speed of sound from your air temperature using the ideal-gas relation, or the linear approximation if you prefer, then multiplies by your measured delay. It also reports how many seconds correspond to one kilometre and to one mile at that temperature, which is where the widely taught counting rules come from.
What it does not do is interpret the result. There is no countdown, no time estimate, no arrival prediction and no verdict. Those would all be misleading, for reasons set out below.
How to Use It
- Enter the delay in seconds between seeing the flash and hearing the first sound of thunder.
- Enter the air temperature in Celsius, Fahrenheit or kelvin. This is the single input that changes the answer meaningfully.
- Choose the relation. The ideal-gas form is the more accurate of the two published expressions across a wide temperature range.
- Read the distance in kilometres and miles, and the seconds-per-unit figures at that temperature.
- Follow the published safety guidance, which is described below and which does not depend on the number this page produced.
The Formula: How Lightning Distance Is Calculated
The relation is elementary:
d = vsound × Δt
The only part that needs care is the speed of sound, which depends on temperature. For dry air the ideal-gas result is
v = 331.3 √(1 + T / 273.15) metres per second, with T in °C
and the linear approximation usually taught alongside it is v ≈ 331.3 + 0.606 T. Both are standard published forms; HyperPhysics at Georgia State University gives 331.5 m/s at 0 °C rising to about 344 m/s at 20 °C, and notes that the approximation diverges noticeably at high temperatures. Pressure has essentially no effect, because density and stiffness change together. Humidity raises the speed slightly — by under one per cent even in warm saturated air — which is smaller than the error in counting seconds.
Work the defaults through by hand. At 20 °C the ideal-gas form gives 331.3 × √(1 + 20/273.15) = 331.3 × √1.07322 = 331.3 × 1.03596 = 343.2 m/s. A nine-second delay gives 343.2 × 9 = 3,089 metres, or 3.089 kilometres, which is 1.919 miles. At that temperature one kilometre takes 2.914 seconds and one mile takes 4.689 seconds, which is where the familiar "three seconds to the kilometre, five seconds to the mile" rules come from. Repeat the calculation at 0 °C and the speed falls to 331.3 m/s, so the same nine-second count corresponds to 2.982 kilometres — about 3.5 per cent nearer.
The Published Safety Guidance, and Why the Distance Does Not Change It
The National Weather Service lightning tips state the guidance plainly: safe shelter is "a substantial building with electricity or plumbing or an enclosed, metal-topped vehicle with windows up", and you should "stay in safe shelter at least 30 minutes after you hear the last sound of thunder". The widely published 30-30 rule pairs that second half with a first half: if thunder follows the flash in under 30 seconds, go to shelter immediately, and wait 30 minutes after the last thunder before returning outside.
Notice what that guidance is built on. The trigger is hearing thunder at all, not a distance. The all-clear is a wait after the last thunder, not a distance. Neither half of the rule asks you to compute anything, and that is deliberate.
No distance from this page is a safe distance. Three reasons, each sufficient on its own:
- A count describes one flash that already happened. It is a measurement of the past. The next discharge can occur anywhere the storm's charge structure permits, which is not confined to where the last one was.
- Strikes occur far from the visible storm. The phenomenon is commonly called a "bolt from the blue": a discharge that leaves the side or top of a thunderstorm, travels horizontally through clear air and strikes ground more than ten kilometres from the parent cloud, sometimes under a blue sky with no rain falling. A comfortable-looking count offers no protection against one.
- Being outdoors is the hazard. Open ground, water, high points, isolated trees, metal fences, bleachers and open shelters do not become safe at any distance. The only places the guidance recognises as safe are a substantial building and a hard-topped enclosed vehicle.
The National Weather Service lightning safety resource is the authority to follow, and its guidance takes precedence over anything computed here.
Why the Count Is Less Precise Than It Looks
Several effects blur the number, and none of them are small.
Thunder comes from a line, not a point. A lightning channel can be several kilometres long, and every part of it produces sound. What you hear is the sound from the nearest point of the channel arriving first, followed by sound from progressively more distant parts — which is why thunder rumbles rather than cracks. Your count measures the distance to the closest point of that channel, not to the ground strike, and those can be kilometres apart.
Human timing is coarse. Reaction time and counting rhythm easily introduce a second of error, which is around 340 metres. Counting "one thousand" style is only approximately one second per number.
Sound bends. Temperature gradients and wind shear refract sound waves, and near a storm those gradients are strong. Thunder can be inaudible beyond about 15 kilometres because the sound is refracted upward, which means silence is not evidence of distance.
Matching the right bang to the right flash is hard. In an active storm, several flashes occur within the travel time of the thunder from an earlier one, and mispairing them produces a number that means nothing at all.
Where the Physics Sits Next to the Other Tools
The core input here is the speed of sound, and the speed of sound calculator handles that quantity properly for air, other gases, liquids and solids, including a humidity term. This page uses only the dry-air relation because greater precision would be false precision against a hand count. The temperature converter moves between Celsius, Fahrenheit and kelvin, and the length converter handles the distance units.
For the wider atmospheric picture, the air density calculator gives density from temperature, pressure and humidity, and the wind chill calculator covers a different published weather relation with its own defined validity range. The decibel calculator is useful for the sound-level side of thunder rather than its timing.
Arb Digital builds free tools like this one because useful pages earn attention. If you want tools, calculators or content built for your own audience, we can help.
Browse All Free Tools Talk to Arb DigitalCommon Mistakes to Avoid
- Treating a large distance as permission to stay outside — it is not. Strikes occur more than ten kilometres from the parent storm, and the published guidance keys on hearing thunder, not on a computed distance.
- Using a fixed 340 m/s at any temperature — the speed of sound varies by about 5 per cent between a cold and a warm storm, and so does every distance derived from it.
- Assuming the count locates the ground strike — it locates the nearest point of a channel that may be kilometres long.
- Pairing the wrong thunder with the wrong flash — in an active storm several flashes occur within one sound-travel time, and a mismatched pair gives a meaningless number.
- Reading silence as distance — thunder is often inaudible beyond about 15 kilometres because sound refracts upward, so hearing nothing is not evidence that nothing is close.
Related Free Tools From Arb Digital
Pair this with the speed of sound calculator for a fuller treatment of sound speed in air and other media, the temperature converter for the temperature input, and the length converter for distance units. The air density calculator and wind chill calculator cover other published atmospheric relations, the decibel calculator covers sound level, and the unit converter handles general conversions. Everything Arb Digital publishes sits on the free online tools hub.
Frequently Asked Questions
Multiply the delay between seeing the flash and hearing the thunder by the speed of sound in air. Light arrives effectively instantly, so the whole delay is sound travel time. At 20 degrees Celsius the speed of sound is about 343 metres per second, so a nine-second delay corresponds to roughly 3.1 kilometres or 1.9 miles.
No, and this page will not give you one. A flash-to-bang count describes where one flash that already happened was, not where the next one will be. Strikes described as a bolt from the blue occur more than ten kilometres from the parent storm. The only places recognised as safe by the National Weather Service are a substantial building with wiring or plumbing and an enclosed metal-topped vehicle with the windows up.
It is published guidance with two halves. If thunder follows the flash in less than 30 seconds, go to safe shelter immediately. After the storm, wait at least 30 minutes from the last sound of thunder before going back outside. The National Weather Service states the second half directly in its lightning tips, and its wider advice is to seek shelter as soon as thunder is heard at all.
Because the speed of sound in air depends almost entirely on temperature. It rises from about 331 metres per second at 0 degrees Celsius to about 349 metres per second at 30 degrees. That is a spread of roughly 5 per cent, which carries straight through into the computed distance. Pressure has essentially no effect and humidity changes it by well under one per cent.
It is a good round approximation at ordinary temperatures. At 20 degrees Celsius a mile takes 4.69 seconds and a kilometre takes 2.91 seconds, so five seconds per mile and three seconds per kilometre are both slight overestimates of the time, meaning they slightly underestimate the distance. The rounding error is far smaller than the error in counting by hand.
Because a lightning channel is a line source, often several kilometres long, and every part of it radiates sound. The nearest part is heard first and the most distant part arrives seconds later, so a single discharge produces an extended rolling sound. A sharp crack usually means the nearest part of the channel was very close.
No. It locates the closest point of the sounding channel, which is whatever produced the first thunder you heard. For a discharge with a long horizontal component that point can be kilometres from where the channel actually met the ground, so the number should never be treated as a strike location.
Not necessarily. Thunder is frequently inaudible beyond about 15 kilometres because temperature gradients refract the sound upward, and wind and terrain also block it. Silence is weak evidence at best. Watch the sky and follow official forecasts and warnings from your national weather service rather than relying on what you can hear.
This tool is provided for educational use only. It computes a published physical relation and is not a safety device, a warning system or a substitute for official guidance. No distance it produces is a safe distance: lightning strikes ground well away from the visible storm, and a flash-to-thunder count describes only where one past flash was. Follow the lightning safety guidance published by the National Weather Service or your own national weather service — move to a substantial building or an enclosed metal-topped vehicle when thunder is heard, and remain there at least 30 minutes after the last thunder.