
See the flash, count the seconds until the thunder, divide by five. That is how many miles away the lightning struck. Everyone learns it as a kid, and it is close enough to decide whether to head indoors.
It is also, strictly speaking, exact at one temperature only. Sound covers a mile in 5.00 s when the air is about 4.41 °F. On a 68 °F summer evening it needs 4.69 s, so a 30 second count means 6.40 mi, and the rule says 6. That is 6.2% short, every time, at that temperature. None of this makes the rule useless. It makes it a rule of thumb with a temperature attached, and it is not the only shortcut about sound that people carry around without the fine print.
Below are six of those shortcuts, checked with the Speed of Sound Calculator, the Echo Distance Calculator and the Ohm's Law Calculator, plus one that turns out to be true. Every number came out of those tools.
Myth: five seconds of thunder always means one mile
Fact: the rule quietly assumes cold air. The speed of sound in dry air depends on temperature through the square root of the absolute temperature, v = 331.3 × √(T / 273.15 K), and nothing else about the weather matters much. Warm air carries sound faster, so each mile takes less than five seconds and the count undersells the distance.
The table below keeps the evening at 68 °F and changes only the count. Each number of seconds opens its own ready-made page with the delay, dry air and 68 °F already filled in.
| Thunder after the flash | Distance in feet | Distance in miles | Divide-by-5 rule |
|---|---|---|---|
| 2 seconds | 2,252 ft | 0.43 mi | 0.40 mi |
| 3 seconds | 3,378 ft | 0.64 mi | 0.60 mi |
| 5 seconds | 5,630 ft | 1.07 mi | 1.00 mi |
| 6 seconds | 6,756 ft | 1.28 mi | 1.20 mi |
| 7 seconds | 7,882 ft | 1.49 mi | 1.40 mi |
| 8 seconds | 9,008 ft | 1.71 mi | 1.60 mi |
| 10 seconds | 11,260 ft | 2.13 mi | 2.00 mi |
| 20 seconds | 22,521 ft | 4.27 mi | 4.00 mi |
| 30 seconds | 33,781 ft | 6.40 mi | 6.00 mi |
The gap grows with the count, because it is a fixed percentage. At 2 seconds it is about 140 ft and nobody cares. At 30 seconds it is 0.40 mi.

The screenshot also shows the metric version of the rule, divide by three for kilometers. At 68 °F it lands on 10.00 km against the real 10.30 km, 2.9% short, so it happens to be the more accurate of the two on a warm night.
How much does the temperature itself move things? Here is one mile of air from a very cold day to a very hot one. The temperatures link to pages that show the full result for each.
| Air temperature | Speed of sound | Seconds per mile | Same speed in mph |
|---|---|---|---|
| 0 °F | 1,050.98 ft/s | 5.02 s | 716.6 mph |
| 20 °F | 1,073.60 ft/s | 4.92 s | 732.0 mph |
| 32 °F | 1,086.94 ft/s | 4.86 s | 741.1 mph |
| 50 °F | 1,106.66 ft/s | 4.77 s | 754.5 mph |
| 60 °F | 1,117.46 ft/s | 4.72 s | 761.9 mph |
| 70 °F | 1,128.16 ft/s | 4.68 s | 769.2 mph |
| 80 °F | 1,138.76 ft/s | 4.64 s | 776.4 mph |
| 90 °F | 1,149.27 ft/s | 4.59 s | 783.6 mph |
| 100 °F | 1,159.67 ft/s | 4.55 s | 790.7 mph |
Only the 0 °F row needs more than five seconds, 5.02 s. Everything warmer than about 4 °F is quicker. So yes, five seconds per mile is right on a cold night, and a little generous on every other.
Myth: sound has one speed, about 1,125 feet per second
Fact: that figure is dry air at roughly room temperature, and textbooks round it. The calculator gives 1,126.03 ft/s at 68 °F, but 1,050.98 ft/s at 0 °F and 1,159.67 ft/s at 100 °F. Up at airliner cruising height, around 11 km where the air is near -57 °C, it drops to 294.71 m/s, which is why Mach 1 is a slower speed up there than on the runway.
Physics problems usually give the temperature in Celsius. The common shortcut there is a straight line, 331.3 + 0.606 × T, and the table puts it next to the square-root law. Each Celsius value opens its own page.
| Air temperature | Square-root law | In km/h | Straight-line shortcut |
|---|---|---|---|
| 0 °C | 331.30 m/s | 1,192.7 km/h | 331.30 m/s |
| 15 °C | 340.28 m/s | 1,225.0 km/h | 340.39 m/s |
| 20 °C | 343.21 m/s | 1,235.6 km/h | 343.42 m/s |
| 25 °C | 346.13 m/s | 1,246.1 km/h | 346.45 m/s |
| 30 °C | 349.02 m/s | 1,256.5 km/h | 349.48 m/s |
| 40 °C | 354.73 m/s | 1,277.0 km/h | 355.54 m/s |
| 50 °C | 360.35 m/s | 1,297.3 km/h | 361.60 m/s |
| 100 °C | 387.22 m/s | 1,394.0 km/h | 391.90 m/s |
Up to about 30 °C the shortcut is off by less than half a meter per second. By 100 °C it overshoots by more than 4 m/s: 391.90 m/s against 387.22 m/s. Fine for homework near room temperature, not for an oven.
Myth: air pressure changes the speed of sound
Fact: for an ideal gas at a fixed temperature, it does not. Higher pressure means denser air, and the two effects cancel exactly, as the Wikipedia article on the speed of sound puts it. What does change high up is the temperature, which is why the altitude example above is really a temperature example.
Humidity is the other weather variable people suspect. It does matter, a little: moist air is faster by about 0.1% to 0.6%, because water molecules are lighter than the nitrogen and oxygen they replace. The calculator assumes dry air, so on a muggy night the true distance to the storm is a touch longer still.
Myth: heavier materials carry sound more slowly
Fact: weight alone does not decide it. Steel is far denser than air and carries sound at 5,940 m/s, 17.31 times as fast. Speed depends on stiffness against density, and stiffness usually wins by a wide margin.
Usually, not always. Lead is denser than steel and soft, and sound moves through it at 2,160 m/s, 2.75 times slower than through steel. Neoprene rubber is heavier than water, yet only about 8.0% faster: 1,600 m/s against 1,481 m/s. Knowing that something is heavy tells you almost nothing about how fast sound goes through it.
Myth: echo time times the speed of sound gives the distance
Fact: it gives twice the distance. An echo goes out and comes back, so the gap is covered twice and the result has to be halved. A clap against a cliff heard 1.5 s later on a 59 °F day means a path of 1,674.58 ft and a cliff 837.29 ft away.
Sonar makes a second mistake easy: using one speed for all seawater. The speed at the surface depends on temperature and salt, and the Echo Distance Calculator runs the Mackenzie equation for it. A 4 s echo in 40 °F water at salinity 35 puts the bottom 1.825 mi down, at 4,817.38 ft/s.

Warm the same water to 77 °F and the same 4 s echo means 1.907 mi. The difference is about 132 m, roughly 433 ft, from temperature alone. Both figures use the surface speed; a survey ship measures how the speed changes on the way down, which is more than a single echo can tell you.
Myth: pick the standard resistor closest to the value you calculated
Fact: for an LED, round up. The series resistor sets the current, R = (supply voltage − LED forward voltage) ÷ current. A red LED at 2 V and 20 mA on a 9 V battery needs exactly 350 Ω, a value nobody sells.
The closest value in the common E12 series is 330 Ω, only 20 Ω away, but it lets 21.212 mA through, above the target. Rounding up to 390 Ω gives 17.949 mA, and the E24 series has 360 Ω for 19.444 mA. A little under the target current, the LED looks practically the same.

The same arithmetic for the supplies people search for most. The 2 V and 20 mA are assumptions: 2 V is the top of the 1.7 V to 2.0 V range given for red LEDs, and 20 mA is a common rating for small ones. Each voltage opens a page with those values filled in, ready to change to your LED's datasheet.
| Supply | Exact resistor | Next E24 value | Next E12 value |
|---|---|---|---|
| 3.3 V | 65 Ω | 68 Ω, 19.118 mA | 68 Ω, 19.118 mA |
| 5 V | 150 Ω | 150 Ω, 20 mA | 150 Ω, 20 mA |
| 9 V | 350 Ω | 360 Ω, 19.444 mA | 390 Ω, 17.949 mA |
| 12 V | 500 Ω | 510 Ω, 19.608 mA | 560 Ω, 17.857 mA |
On 5 V the exact value, 150 Ω, happens to be a standard one. On 12 V the resistor burns 196.08 mW with the E24 part, 510 Ω, so the power rating starts to matter as much as the resistance.
The one that is true: sound really is faster on a hot day
This one survives every check. Between 0 °F and 100 °F the speed of sound in air rises from 1,050.98 to 1,159.67 ft/s, about 10.3%. The same 30 second thunder count means 5.97 mi on the coldest of those days and 6.59 mi on the hottest. On the cold one the divide-by-five rule is 0.5% over; on the hot one it is 8.9% short.
The one rule that holds
Most of these shortcuts are a real calculation with one input frozen. The thunder rule freezes the temperature. The 1,125 ft/s figure freezes it too. The echo shortcut forgets the return trip, the sonar shortcut freezes the water, and the resistor shortcut freezes the rounding direction. When a rule of thumb gives you a number, ask which input it quietly fixed, and put that input back. Usually that is a temperature.
Tools discussed in this article
- Speed of Sound Calculator: the speed of sound in air at any temperature and in seventeen other materials, a distance from a thunder delay, or the time a sound needs to travel
- Echo Distance Calculator: the one-way distance from a round-trip echo in air, water, seawater by temperature and salinity, or a solid, with times down to microseconds
- Ohm's Law Calculator: volts, amps or ohms from the other two plus the power, and an LED series resistor rounded up to E12 and E24 values
More physics tools
The rest of the physics shelf, in the order it was built:
- Momentum Calculator, Force Calculator and Kinetic Energy Calculator
- Potential Energy Calculator, Work Calculator and Mechanical Power Calculator
- Torque Calculator, Kinetic Friction Calculator and Pendulum Period Calculator
- Thermal Expansion Calculator, Specific Heat Calculator and Thermal Conductivity Calculator
- Hooke's Law Calculator, Simple Harmonic Motion Calculator and Buoyancy Calculator
- Acceleration Formula Calculator, Density Calculator and Temperature Converter
- Thermal Efficiency Calculator, Gravitational Force Calculator and Snell's Law Calculator
- Refractive Index Calculator, Thin Lens Calculator and Magnifying Glass Calculator
- Wavelength to Color Calculator, Wave Frequency Calculator and Photon Energy Calculator