Skip to content
Omnikalc

Audio buffer latency calculator: how late will you hear yourself?

Choose the buffer size, the sample rate and the number of buffers to get the input latency, the output latency, the round-trip latency and its equivalent distance in metres.

Updated on
Your inputs

Value out of range

ms

Value out of range

Results

Round-trip latency

17.5 ms

Playable, but sensitive players notice it
Time for one buffer
5.33 ms
Input latency
5.33 ms
Output latency
10.67 ms
Distance sound travels in that time
6.00 m

The delay between playing a note and hearing it back through a computer comes from the buffers of the audio driver. The audio buffer latency calculator takes the buffer size, the sample rate, the number of output buffers and the overhead of the converters and gives the time for one buffer, the input latency, the output latency, the round-trip latency and the equivalent distance in air.

How the calculation works

  • Time for one buffer = buffer size in samples ÷ sample rate × 1 000, in milliseconds.
  • Input latency is one buffer, since the interface must fill a whole buffer before the computer sees the signal.
  • Output latency is the number of output buffers times the buffer time. Two buffers is the usual setting.
  • Round-trip latency = input + output + the fixed overhead of the converters and the driver. It is what a singer or a guitarist hears when monitoring through the computer.
  • Distance = 343 m/s × the round trip. It shows how far you would have to stand from a speaker to hear the same delay.

Example

A buffer of 256 samples at 48 kHz lasts 256 ÷ 48 000 = 5.33 ms. With 2 output buffers the output adds 10.67 ms, and the converters add 1.5 ms. The round trip is 5.33 + 10.67 + 1.5 = 17.5 ms, the same delay as standing 6.0 m away from a speaker.

Why it matters

Latency decides whether a performer feels in time. A virtual instrument played from a keyboard, a vocal recorded with effects, or a guitar through an amplifier simulator all depend on a low round trip, and the buffer size is the main setting you control.

Good to know

The figures are the nominal ones given by the buffer size. Real drivers and operating systems add their own safety margins, and plugins that look ahead, such as limiters, add more. Wireless headphones add 100 ms or more, and no buffer setting can remove it. Measure the real round trip with a loopback cable when it matters.

The beat delay calculator converts a tempo into delay times and the audio file size calculator estimates the storage used by a recording at a given sample rate.

Frequently asked questions

What buffer size should I use?

Use a small buffer, 64 to 128 samples, when you record and monitor through the computer, and a large one, 512 to 2 048, when you mix and plugins need more processing time. If the sound crackles at a small buffer, raise it until the dropouts stop.

What is a good latency for playing live?

Most players are comfortable below about 10 ms. Between 10 and 20 ms, the delay is noticeable but playable for many instruments, and above 25 ms it disturbs timing. Singers hear their own voice through bone conduction, so they are more sensitive to small delays than guitarists.

Does a higher sample rate reduce latency?

Yes, for the same buffer size in samples. At 96 kHz, a 256-sample buffer lasts 2.67 ms instead of 5.33 ms at 48 kHz. The price is a heavier load on the processor and twice the data per second.

What is direct monitoring?

Many audio interfaces can send the input straight to the headphones inside the hardware, before the computer. It adds almost no delay, so you can play without relying on the buffer, at the cost of not hearing the software effects on the way in.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.