redzilla
All tools
AV

Audio Delay

Convert distance ↔ delay at the temperature-corrected speed of sound, and compute the alignment delay between two sources (speaker/subwoofer), in milliseconds and in samples at 48 kHz.

What do you want to calculate?
m

Sound path distance. Sound travels ~1 m every 2.9 ms (at 20 °C).

°C

c = 331.3 + 0.606·T m/s. At 20 °C → 343.42 m/s; at 0 °C → 331.3 m/s.

Fs

Used to convert the delay to samples. Most DSP processors run at 48 kHz.

Examples
redzilla.cl — delay
 
Delay
In samples
Speed of sound
temperature-corrected
ms
samples
Distance

Inverse · delay → distance

ms

Type a delay and get the equivalent distance and samples at the current speed of sound.

Distance → delay (at the current temperature)

DistanceDelaySamples @Fs

row closest to your distance · samples at the selected Fs.

How it is calculated · speed, delay and alignment

1. Speed of sound in air: c = 331.3 + 0.606·T (m/s), with T in °C. At 20 °C it gives 343.42 m/s; at 0 °C, 331.3 m/s.

2. Path delay: delay(ms) = distance(m) / c × 1000. Each meter adds ~2.9 ms at 20 °C.

3. Aligning two sources: the nearer source is delayed by the path difference, delay = (d_far − d_near) / c × 1000, so both wavefronts reach the listener together.

4. Samples: samples = ms/1000 × Fs. At 48 kHz, 29.14 ms equals 1399 samples.

5. Inverse: given a delay, distance = c × ms/1000. Handy to read a processor's delay and find the distance it corresponds to.

6. Simple geometric model: it uses direct distances and ignores reflections, wind, humidity and the DSP's own latency. For subwoofers, measure the real distance from the cone to the listening position.

Runs locally in your browser · no sign-up · nothing leaves your browser

How it works

The calculator converts distance into audio delay and back, using the speed of sound corrected for air temperature: c = 331.3 + 0.606·T m/s (343.42 m/s at 20 °C). The travel delay is delay(ms) = distance(m) ÷ c × 1000 —roughly 2.9 ms per meter at 20 °C— and it is also expressed in samples with samples = ms/1000 × Fs, for sample rates from 44.1 to 192 kHz (48 kHz by default, the usual rate in DSP processors).

The alignment mode computes the delay you must apply to the source closest to the listener so its sound arrives together with the far source: delay = (d_far − d_near) ÷ c × 1000. This is the typical adjustment between a subwoofer and tops, or between the main PA and delay towers. The model is simple geometry: it does not account for reflections, wind, humidity or the internal latency of the DSP.

Example: aligning a subwoofer at 4 m with a top at 1.5 m

  1. At 20 °C the speed of sound is 331.3 + 0.606 × 20 = 343.42 m/s.
  2. Path difference: 4 − 1.5 = 2.5 m.
  3. Delay for the near source (the top): 2.5 ÷ 343.42 × 1000 = 7.28 ms.
  4. In samples at 48 kHz: 0.00728 × 48,000 ≈ 349 samples.

Frequently asked questions

How many milliseconds of delay correspond to one meter?
At 20 °C, each meter of travel adds about 2.91 ms (1 ÷ 343.42 × 1000). A quick field rule is 3 ms per meter, or 0.9 ms per foot. Since the speed depends on temperature, the same meter takes 3.02 ms at 0 °C: that is why the calculator corrects for air temperature.
Which source gets the delay, the far one or the near one?
Always the one closest to the listener: its sound arrives first, so it is electronically delayed until it coincides with the wavefront of the far source. In a system with delay towers, the towers (near the back audience) are delayed relative to the main PA; between sub and top, you delay whichever is closer to the listening position.
What happens if I do not align the speakers?
The misaligned arrivals produce comb filtering: alternating cancellations and reinforcements that change the tone and smear the crossover region between sub and top. With larger offsets (above roughly 25-30 ms) the ear perceives a distinct echo. A few milliseconds of correction usually make an audible difference.
Why does the delay change with temperature?
Because the speed of sound in air increases about 0.6 m/s per degree Celsius: it is 331.3 m/s at 0 °C and reaches 349.5 m/s at 30 °C. Over long distances the difference is real: 30 m takes 90.6 ms at 0 °C and 85.8 ms at 30 °C. At outdoor events it is worth rechecking the alignment when the temperature shifts noticeably between soundcheck and showtime.
Was this tool useful?
Disclaimer We take great care to keep every tool accurate and review it thoroughly; even so, we can't guarantee it is free of errors or take responsibility for how the results are used. We recommend double-checking anything critical.
Found an error? Let us know →