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.
128 samples at 48 kHz last
2.67ms
128 ÷ 48,000 Hz = 2.6667 ms
Round trip: buffers and your DAW
128 samples at 48 kHz. Enter the input and output latency your DAW reports to compare.
- 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.
| Size in samples | 44.1 kHz kHz | 48 kHz kHz | 88.2 kHz kHz | 96 kHz kHz | 176.4 kHz kHz | 192 kHz 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.
Total of 0 plugins
No result
Recorded offset
How far a recorded track lands from where it should, measured in your DAW.
Move it
No result
Distance in air
How far sound travels in the same time.
Speed of sound at 20 °C: 342.9 m/s = 331 m/s × √(1 + 20 ÷ 273)
| Time | ms | Meters | Feet |
|---|---|---|---|
| One buffer2.67 ms | 2.67 | ||
| Round trip, buffers only5.33 ms | 5.33 | ||
| Any time in milliseconds, 0 to 60,000. | 10.00 |
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
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.
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.
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.
- Ardour manual: Latency and Latency-CompensationDefines round-trip latency as “the time necessary for a certain audio event to be captured, processed and played back,” notes that “latency is always additive” and names AD/DA conversion and, for USB or FireWire interfaces, “the bus clocking and buffering” as parts of it.
- OpenStax University Physics Volume 1, 17.2 Speed of SoundThe speed of sound in air, v = 331 m/s × √(1 + T ÷ 273 °C). The book states 343 m/s at 20.0 °C; the formula gives 342.9.
- OpenStax University Physics Volume 1, Conversion Factors1 foot = 0.3048 m.
- OpenStax University Physics Volume 2, Thermometers and Temperature Scales°C = 5/9 × (°F − 32), for temperatures typed in °F.
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.
Related tools
- BPM Delay CalculatorTurn any tempo into delay, LFO, reverb and compressor release times in ms, Hz or samples, with tempo converters, and hear the delay before you copy it.
- Room Mode CalculatorList a room's standing-wave modes up to 300 Hz, check how evenly they spread, and estimate the Schroeder frequency.
- Mic TestMeasure your mic's noise floor, plosive energy and sibilance frequency live. Nothing is recorded or uploaded.
Guides for this tool
- Audio Latency Explained: Buffer and Sample RateTurn a buffer size and sample rate into milliseconds, see what a round trip adds up to, and learn what to check when you hear a delay.
- Sample Rate and Bit Depth ExplainedWhat sample rate and bit depth set in an audio file, what each setting costs in file size, and which to record at, with the sizes worked out.
- How to Record Guitar at Home: DI or MicPick DI or a microphone for electric and acoustic guitar, set the instrument input, and keep monitoring delay low with the right buffer size.