Audio Latency Calculator — Buffer Size and Sample Rate to Latency

Enter a buffer size in samples and a sample rate in Hz to get the one-way buffer latency in milliseconds. Optionally solve for the missing buffer size or sample rate given a target latency. This is not a round-trip latency measurement and does not include driver, converter, or DSP overhead — add those separately for total system latency.

Audio settings

Formulas

latency_ms = buffer_size / sample_rate × 1000

buffer_size = sample_rate × target_latency_ms / 1000

sample_rate = buffer_size × 1000 / target_latency_ms

Where buffer_size = audio buffer size in samples; sample_rate = audio sample rate in hertz (samples per second); target_latency_ms = desired one-way buffer latency in milliseconds; latency_ms = one-way buffer latency in milliseconds; solved_buffer = buffer size needed for target latency at given sample rate; solved_sample_rate = sample rate needed for target latency at given buffer size.

One-way buffer latency = buffer_size / sample_rate × 1000.

Round-trip latency is approximately 2× one-way plus driver/converter overhead (typically 1-5 ms).

Common sample rates: 44.1 kHz, 48 kHz, 88.2 kHz, 96 kHz, 192 kHz.

Common buffer sizes: 32, 64, 128, 256, 512, 1024 samples.

The solver uses the two provided inputs to find the third; enter any two of buffer_size, sample_rate, target_latency_ms.

Checked examples

256 samples at 48 kHz: 256 / 48000 × 1000 = 5.333 ms one-way buffer latency.

128 samples at 44.1 kHz: 128 / 44100 × 1000 = 2.902 ms one-way buffer latency.

At 48 kHz, 10 ms latency needs 480 samples. At 256 samples, 10 ms latency needs 25,600 Hz sample rate.

Limits

Buffer size and sample rate must be positive. Target latency must be positive if provided. Calculates one-way buffer latency only; total system latency is higher. Not for: Round-trip latency measurement (requires loopback test); Driver, ADC/DAC converter, or DSP processing overhead; Wireless audio latency (Bluetooth, etc.); MIDI or control latency.

Calculator Academy Audio Latency Calculator and Starlight Tools Audio Latency Calculator.