Skip to content
12notez

Audio Latency Calculator: Buffer Size to ms

Free · No sign-up · Runs in your browser

Buffer size in samples, a whole number from 1 to 8192. Arrow up and down step through the common sizes.

Sample rate (kHz)

128 samples at 48 kHz last

2.67ms

128 ÷ 48,000 Hz = 2.6667 ms

For this buffer

Compare with the latency your DAW reports

Round trip: buffers and your DAW

128 samples at 48 kHz. Enter the input and output latency your DAW reports to compare.

Input latency unit
Output latency unit
Buffer-only round tripOne input buffer plus one output buffer
256 samples
Your DAW's round tripEnter both figures above
No result
Beyond the two buffersYour DAW's figure minus the buffer-only one
No result

The Ardour manual puts it this way: “latency is always additive and a sum of many independent factors.” It names AD/DA conversion and, for USB or FireWire interfaces, bus clocking and buffering among them. The buffer size does not give those, so this page shows only the figures you enter.

Latency table

Milliseconds. Pick any cell to use that size and rate.

Show
How long one buffer lasts, in milliseconds, by buffer size in samples and sample rate in kHz
Size in samples44.1 kHz48 kHz88.2 kHz96 kHz176.4 kHz192 kHz
16
32
64
128
256
512
1024
2048
4096

One buffer is size ÷ rate × 1,000. Round trip is twice that: one buffer in, one out, nothing else counted.

Converters

At 48 kHz, the rate picked above. Click a result to copy it.

Samples to ms, and back

Type in either field.

In milliseconds

256 ÷ 48 kHz

Plugin delay sum

Enter the latency each plugin on one track reports. In series, they add up.

  • Plugin 1 unit
  • Plugin 2 unit

Total of 0 plugins

No result

Recorded offset

How far a recorded track lands from where it should, measured in your DAW.

Offset unit
The recorded track

Move it

No result

Distance in air

How far sound travels in the same time.

Temperature unit

Speed of sound at 20 °C: 342.9 m/s = 331 m/s × √(1 + 20 ÷ 273)

Distance sound travels in air at 20 °C, in meters and feet
TimeMetersFeet
One buffer2.67 ms
Round trip, buffers only5.33 ms
Any time in milliseconds, 0 to 60,000.

Speed of sound from OpenStax University Physics Volume 1, 17.2, which states 343 m/s at 20.0 °C. Feet use 1 ft = 0.3048 m, from that volume's conversion factors. °F uses °C = 5/9 × (°F − 32), from OpenStax University Physics Volume 2.

What is buffer size in audio?

Buffer size is the number of samples your audio interface and DAW handle in one block, and each block lasts the buffer size divided by the sample rate. At 48 kHz, 128 samples last 2.67 ms. This calculator shows that time for any size and rate, the buffer-only round trip of one input and one output buffer, how your DAW's reported latency compares, and how far sound travels in air in the same time.

How it works

  1. Step 1

    Samples to time

    One buffer lasts its size divided by the sample rate. 128 samples ÷ 48,000 samples per second × 1,000 = 2.67 ms.

  2. Step 2

    Count both directions

    The buffer-only round trip is one input buffer plus one output buffer, 5.33 ms at those settings. The input and output latency your DAW reports, once entered, are added and set beside it.

  3. Step 3

    Distance in air

    Time × speed of sound, with speed = 331 m/s × √(1 + °C ÷ 273): 342.9 m/s at 20 °C. Feet are meters ÷ 0.3048.

Where the figures come from

The buffer math needs no source: a sample rate is samples per second. The speed of sound, the unit conversions and what a round trip includes come from these pages, linked to the files the published text is built from.

The page lists no figures for specific audio interfaces. The buffer size does not say how much AD/DA conversion or a USB or FireWire bus adds, so the round trip card uses only the numbers your DAW reports.

Questions

How do I convert buffer size to milliseconds?

Divide the buffer size by the sample rate, then multiply by 1,000. A 128-sample buffer lasts 2.67 ms at 48 kHz (128 ÷ 48,000 × 1,000) and 2.90 ms at 44.1 kHz.

What is round-trip latency?

It is the time for a sound to be captured, processed and played back. This page counts one input buffer and one output buffer, 5.33 ms for 128 samples at 48 kHz, as the buffer-only round trip. AD/DA conversion and, for USB or FireWire interfaces, bus clocking and buffering can add more, so enter the input and output latency your DAW reports to see the full figure.

Does a higher sample rate lower latency?

Yes, for the same buffer size in samples, because each buffer covers less time: 256 samples last 5.33 ms at 48 kHz and 2.67 ms at 96 kHz. The math here covers the buffers only, so compare the totals your DAW reports too.

How far does sound travel in 1 millisecond?

About 34.3 cm (1.13 ft) in air at 20 °C, where sound moves at 342.9 m/s by the formula in OpenStax University Physics. Warmer air is faster: at 30 °C it is 348.7 m/s.

Is anything I type sent or saved?

No. Every number is worked out in this browser tab. Nothing is sent to a server or stored, and the page never uses your microphone or your files.

Privacy: what runs where

  • Every number is worked out in this browser tab. Nothing you type is sent anywhere or stored.
  • The page does not use your microphone, your speakers or any file. It reads only what you type.
  • Copy puts the number on your own clipboard and nowhere else.

Guides for this tool