Science & Engineering
Speed of Sound & Light Calculator (Lightning Distance)
Calculate how far sound or light travels in a given time — including how far away lightning is from the delay before thunder — with sound speed adjusted for air temperature.
How to use
- 1Choose sound or light and enter the time.
- 2For sound, enter the air temperature for a more accurate speed.
How it's calculated
Speed of sound in dry air ≈ 331.3 + 0.606 × T(°C) m/s (343 m/s at 20 °C). Light: 299,792,458 m/s. Distance = speed × time.
Frequently asked questions
How do I estimate lightning distance?
Count the seconds between the flash and the thunder and divide by 3 for kilometres (or by 5 for miles).
When is lightning too close?
If thunder follows in under 30 seconds (about 10 km), go indoors — lightning can strike far from the storm.
Why does temperature change sound speed?
Warmer air molecules move faster and pass on vibrations more quickly.
Why the speed of light here has no uncertainty at all
299,792,458 m/s isn't a measured value with experimental error bars — since 1983 the metre itself has been defined as the distance light travels in 1/299,792,458 of a second, which makes the speed of light in a vacuum exact by definition rather than something to measure more precisely. The speed of sound, by contrast, genuinely varies with conditions: warmer air molecules transmit pressure waves faster, which is why the formula here (331.3 + 0.606 × temperature in °C) adds roughly 0.6 m/s for every degree Celsius the air warms up.
Worked example: Speed of Sound & Light Calculator
At 20°C, sound travels at 331.3 + 0.606 × 20 = 343.42 m/s. Counting 6 seconds between a lightning flash and its thunder puts the strike about 343.42 × 6 ≈ 2,061 m away — just over 2 km. Light covers that same distance so fast it's effectively instantaneous for everyday purposes: at 299,792,458 m/s, light travels 299,792.458 km in a single second, which is why the flash and the strike are seen as simultaneous while the thunder visibly lags behind.
Where the 'divide by 3' rule of thumb comes from
Dividing the seconds between flash and thunder by 3 to get kilometres is simply a rounded-down version of the 343 m/s figure (343 m/s × 3 s ≈ 1 km), good enough for the rough safety judgment the rule is meant for. It gets less accurate as temperature moves away from a mild 20°C — in freezing conditions sound slows to around 331 m/s, shifting the 'seconds per kilometre' figure from 3 toward roughly 3.02, a small but real difference this calculator's temperature input accounts for explicitly.
The temperature box vanishes when I pick light
Sound is selected first, with 6 seconds and 20 °C, and the speed line shows 343.4 metres per second because 331.3 plus 0.606 times 20 is not a flat 343. Distance is that speed times the seconds, in kilometres and in miles, using 1,609.344 metres per mile. When I change the wave to light, the temperature field hides and the speed locks to 299,792,458 metres per second, so one second is 299,792.458 kilometres. A negative Celsius temperature still follows the same straight line, down toward 331.3 at freezing, which lengthens the seconds-per-kilometre rule of thumb a little. The tool does not apply a minimum time or a storm-safety cutoff; a 30 second count is just a longer distance, and I compare it with the usual indoors guidance myself.
Related tools
- Frequency ↔ Wavelength Calculator
Convert between frequency and wavelength for radio, light and sound waves — plus photon energy for electromagnetic waves.
- Hemocytometer Cell Count Calculator
Calculate cell concentration and viability from hemocytometer counts: cells per mL, total cells, and the volume needed to seed a target number of cells.
- Molar Mass Calculator
Calculate the molar mass (molecular weight) of any chemical formula — including brackets and hydrates like CuSO4·5H2O — with the mass percentage of each element.
- Molarity & Dilution Calculator
Calculate molarity, moles, mass or volume of a solution, or solve a dilution with C₁V₁ = C₂V₂.
- GIF Editor (Speed, Reverse, Frames)
Change a GIF's speed, reverse it, make it a boomerang, delete or keep frames, set each frame's timing, change how often it loops and resize it, with a live preview. Runs in your browser.
- Slope, Distance & Midpoint Calculator
Find the slope, line equation (y = mx + b), distance, midpoint and angle between two points on a coordinate plane.