audio latency calculator
Audio Buffer Latency Calculator guide
Use buffer timing to compare audio interface or DAW settings in milliseconds, especially when changing sample rate at a fixed buffer size.
Play the instrument ↑- Default calculation
- At 48 kHz, 256 frames take about 5.333 ms.
Formula and units
A buffer's time in milliseconds is its frame count times 1,000 divided by sample rate. Multiply by the number of equal-sized buffers in the modeled path.
Worked example
At 48 kHz, 256 frames take about 5.333 ms. If the signal traverses one such input buffer and one output buffer, that contribution is about 10.667 ms.
A smaller buffer gives the audio thread less time per callback. If underruns appear during recording, compare one larger setting before increasing sample rate or freezing demanding tracks.
Estimate a practical latency budget
At 44.1 kHz, one 128-frame buffer spans about 2.902 ms. At 96 kHz the same buffer holds only about 1.333 ms of audio. Doubling sample rate gives less time per buffer and increases the number of samples the system has to process each second. Before choosing a higher rate for monitoring, test the session at the intended plug-in load, channel count, and recording configuration.
When the input and output settings differ, calculate their contributions separately. A 128-frame input buffer and a 256-frame output buffer at 48 kHz account for about 2.667 and 5.333 ms respectively, or 8 ms combined. The input of this calculator is a group of equal-sized buffers, so use one buffer per calculation for an asymmetric path. Microphone travel, recording-device filters, and any larger safety buffer are separate terms in a measured latency budget.
When you need to check the true round trip, send a short pulse or other distinct event from the interface output back into an appropriate input. Compare the original and recorded sample positions, using a safe line-level routing and a suitable interface input. Read the measured offset in frames and convert using the actual device rate. A DAW may compensate recorded clip placement, so check its compensation configuration before interpreting the visible offset.
Compare settings at the same session load
For live monitoring at 48 kHz, moving from 128 to 256 frames raises each buffer contribution from about 2.667 ms to 5.333 ms. With two buffers the modeled penalty is 5.333 ms. On a playback-only session that extra time may be acceptable if it prevents dropouts. During performance, in-ear or voice monitoring may make the timing difference much more apparent.
If an interface offers direct hardware monitoring, its monitored path can bypass parts of the software route. The DAW output still retains its own buffering. Compare the delay from the actual path used by the performer, which can differ from the delay between MIDI input and a virtual instrument or from a recording position after correction.
Before a session, perform the same short timing test with the same channel count and effect chain. If the measured shift stays constant when you change the buffer, another part of the path may dominate. If it changes by roughly the predicted amount, the selected setting is a material contributor.
Assumptions and limits
The buffer estimate excludes converter filters, USB scheduling, hidden driver buffers, plug-in latency, and internal processing blocks. Measure a loopback if you need round-trip latency.
Milliseconds to Samples Calculator → · GestureSynth music theory tools → · W3C Web Audio rendering and latency →
Answers before you play
Common questions
Should I always set the buffer count to two?
Use two only when modeling two equal buffers. Use one for a single buffer interval. Add measured contributions separately when input and output sizes differ.
Does a buffer of 256 frames become 512 because the track is stereo?
No. Both channels share the same 256 time positions. At 48 kHz the duration stays about 5.333 ms. Stereo increases the number of sample values processed and stored, so processing load can change without doubling the nominal time per buffer.
Why does the interface report a different round trip?
The interface or DAW may include more than the buffer size shown in its user control. Drivers can add safety buffers, and input and output converters have their own delays. Some plug-ins also look ahead. Count the modeled buffers here and compare the subtotal against a measurement made with the same signal path.
Is 128 frames the same as 128 milliseconds?
The units describe different things. Frames count discrete time positions per channel. The duration depends on the sample rate. At 48 kHz, 128 frames span about 2.667 ms. If you know a duration and want the equivalent count, use the milliseconds-to-samples tool linked below.