Why fake thunder sounds fake, and how to build it from a lightning bolt
20 November 2026
Thunder in games and sound apps is usually made the same way: low rumbling noise, made louder and then quieter. It is cheap, and it never sounds right. We made ours that way first, for It's Raining Somewhere, and threw it away.
The reason it fails is simple. Thunder has no shape of its own. What you hear is the shape of the lightning, read out over time.
One flash, thousands of small bangs
A lightning flash heats a crooked channel of air, several kilometres long, to about 30,000 degrees in a few millionths of a second. The air along it expands so fast that every short piece of the channel sends out its own shock wave.
You hear one sharp pulse from each piece. Sound travels about one kilometre in three seconds, so the piece nearest to you arrives first and the farthest piece arrives last. The channel's bends, branches and length become the rhythm of the peal:
- the tearing crack at the start is the part of the channel closest to you;
- separate claps, seconds apart, are stretches of channel that happen to lie side-on to you, so all their sound arrives at once;
- the long rumble is the channel running away from you, its sound smeared out over time.
A model that starts from a loudness curve cannot produce this, because the rhythm is not random. It is geometry.
What our engine does for each flash
It draws a lightning channel. For a strike to the ground, the channel starts 4.5 to 7 km up and wanders down. We bend it again and again at smaller and smaller scales until the pieces are 3 to 7 metres long. The amount of bending matches what was measured on photographs of real lightning in the 1960s. Then it adds branches.
It repeats the stroke. Most ground flashes are not one stroke but two to five, about 60 milliseconds apart, down the same channel. Each one sends the same pattern of pulses again, a little later. That is where the doubled, fluttering crack of a close strike comes from. We did not add a rule for it. It came out of the model.
It makes a pulse for every piece. A flash becomes several thousand to about 20,000 pulses. Each pulse is sized from the energy in that piece of channel and the air pressure at its height. The air is thinner high up, which makes the pulses from near the cloud deeper than the ones from near the ground. Nobody tuned that either.
It sends each pulse through the air. This is what makes distance audible:
- Air absorbs high sounds much faster than low ones: about 5 dB per kilometre at 1 kHz but 23 dB per kilometre at 4 kHz, on a mild humid day. So a distant storm only rumbles. We use the live temperature and humidity at the place you are listening to.
- The air is colder higher up, and that bends sound upward. Beyond a certain distance the sound from the lower channel passes over your head. This is why thunder is rarely heard from more than about 25 km away, and why a strike 14 km off can start as a murmur and then swell when the sound from the cloud arrives.
- Turbulence scatters the sound, so far thunder has a soft tail and near thunder has hard edges.
What we got wrong along the way
Our first channel used pieces 10 to 20 metres long. Compared with real recordings, the result was 10 to 15 dB too dull above 500 Hz. Longer pieces smear their own pulse. Shorter pieces fixed it.
Then a strike 400 metres away sounded like one huge click followed by a faint rumble. Real close thunder keeps roaring after the crack. The missing part was that a very strong shock wave loses energy much faster than a weak one, so the nearest pieces cannot be as loud as simple distance would suggest. With that in, the crack and the roar came into balance.
The result
Every flash gets a new channel, so no two peals are the same. Thunder plays where the weather data says there is a storm. When a strike is close you get the crack; when it is far you get a long roll.
Find a thunderstorm and listen: open the map, tap the arrow next to Find rain, and choose thunderstorms. It's free and has no ads. The rain and wind are made the same way: see Rain that never loops.