Buffer Size Latency
Calculator

Inputs

Latency (ms)
5.333333

Results

Latency (ms)
5.333333
Latency (seconds)
0.005333
Round-trip latency (ms)
10.666666

Music and audio results

Latency (ms)5.333333
Latency (seconds)0.005333
Round-trip latency (ms)10.666666

formula-map diagram

Latency (ms)
5.333333
Latency (seconds)
0.005333
Round-trip latency (ms)
10.666666

Musical and acoustic relationship

Formula

latency = buffer size ÷ sample rate

= 5.3333333333333

Note

This result is a simplified model: it applies the displayed standard formula to the values you entered, assuming twelve-tone equal temperament, a speed of sound of 343 m/s in dry air at 20 °C, an ideal free field with no reflections or air absorption, purely resistive speaker loads and Sabine's diffuse-field assumption. Real rooms, instruments, codecs and amplifiers depart from these idealisations, so measure with proper instruments for critical work.

Example: with the default inputs, calculator.music.latency_ms is 5.333333333333333.

More in Music and audio

See all →

Frequently asked questions

How is audio buffer latency calculated?+

The calculator divides the buffer size in samples by the sample rate: latency = buffer size ÷ sample rate. A 256-sample buffer at 48,000 Hz gives about 5.33 ms.

What is the round-trip latency shown?+

It is simply twice the buffer latency, which assumes one buffer on the way in and one on the way out. Drivers, converters and plug-ins can add more, which this calculator does not include.

Does a bigger buffer mean more latency?+

Yes. Latency grows in proportion to the buffer size and shrinks as the sample rate rises, so 512 samples at the same rate takes twice as long as 256.

Which sample rates can I enter?+

Any value greater than zero, such as 44,100, 48,000 or 96,000 Hz. The default is 48,000 Hz and a 256-sample buffer.

Is this the total latency I will hear?+

No. It is the delay of one buffer only. The actual delay in a real setup also depends on the interface, the driver and the processing chain.