Firework Shockwave: The Sound Delay

See the flash, wait for the boom: watch the sound front cross the field, with temperature, humidity and wind changing the delay.

Switch to 2D

Presets

Playback

Parameters

Camera

Layers

Quality

Model check

The science

What is modelled

A firework bursts at a chosen height and ground distance. You see the flash almost instantly, and the boom reaches the observer microphone later. The page tracks the real expanding sound front, including the drift of the front with a steady wind, and shows the delay, the sound level and the flash-to-bang rule of thumb.

Equations

  • Light: tlight = r / c0 with c0 = 299 792 458 m/s, about 3 microseconds per kilometre.
  • Speed of sound in moist air: c = sqrt(γmix R T / Mmix) where the water-vapour mole fraction x = RH es(T) / P (Magnus saturation pressure), Mmix = (1−x) 28.97 + x 18.02 g/mol. For dry air this is 331.3 sqrt(1 + T/273.15) m/s, close to 331.3 + 0.606 T.
  • Wind: a uniform wind w carries the whole spherical front, so the arrival time solves |r − w t| = c t, i.e. (c² − w²) t² + 2 (r·w) t − r² = 0.
  • Level: Lp(r) = Lp(1 m) − 20 log10 r − α r. Doubling the distance costs 6.02 dB.
  • The shell rises with quadratic drag (k = 0.002 1/m); the lift-off speed is chosen so the apex equals the burst altitude: v = sqrt((g/k)(e2kH − 1)).

Checks run in the page

  • A time-stepped (0.5 ms) expanding front with a drifting centre against the exact quadratic arrival time.
  • The gas-law speed of sound against 331.3 sqrt(1+T/273.15) and the linear 331.3 + 0.606 T.
  • The inverse-square law: 6.02 dB per doubling and 20 dB per factor ten.

Honest simplifications

Temperature, humidity and wind are uniform with height, so the sound travels in a straight line (real sound bends toward the colder air aloft and refracts around wind shear). The source level of 160 dB at 1 m is a plausible round number for a large aerial burst and the absorption is one broadband value, not a frequency-dependent ISO 9613 calculation. The ground reflection and the echo from the tree line are not modelled. The 3-seconds-per-kilometre rule is accurate to a few percent at normal temperatures, and the page shows its error. Educational physics only.

What to try

  • Press I heard it! when you think the boom arrives, and compare your distance estimate with the true one.
  • Click on the ground to move the firework (100 m to 3 km away).
  • Choose the cold night and the hot day: the delay changes by roughly 10 percent between -20 C and 38 C.
  • Tailwind 15 m/s makes the boom arrive earlier than a headwind of the same speed; the sound front sphere visibly drifts.
Loading model...
Loading Blender model...
Delay vs distance for four temperatures
Sound level vs distance
Sound front radius vs time
Made with 🟠 Blender · Three.js