Sample to Time Converter
Enter a sample count and sample rate to get the exact duration, or enter a time and sample rate to get the sample count.
Parameters
Hz
samples
Formula
time (s) = samples / sample_rate
Results
Duration (seconds)
—
s
Milliseconds
—
ms
Microseconds
—
µs
HH:MM:SS.mmm
—
Common Buffer Sizes — Latency at Standard Sample Rates
| Buffer (samples) | @ 44100 Hz | @ 48000 Hz | @ 96000 Hz | Typical Use |
|---|---|---|---|---|
| 32 | 0.73 ms | 0.67 ms | 0.33 ms | Ultra-low latency monitoring |
| 64 | 1.45 ms | 1.33 ms | 0.67 ms | Real-time input, live effects |
| 128 | 2.90 ms | 2.67 ms | 1.33 ms | Low-latency recording sessions |
| 256 | 5.80 ms | 5.33 ms | 2.67 ms | General DAW tracking |
| 512 | 11.61 ms | 10.67 ms | 5.33 ms | Mixing and editing |
| 1024 | 23.22 ms | 21.33 ms | 10.67 ms | Mastering, stable playback |
| 2048 | 46.44 ms | 42.67 ms | 21.33 ms | High plugin count, final export |
| 4096 | 92.88 ms | 85.33 ms | 42.67 ms | Offline rendering, batch processing |
Summary
Enter a sample count and sample rate to get the exact duration, or enter a time and sample rate to get the sample count.
How it works
- Select a direction: samples-to-time or time-to-samples.
- Pick a sample rate from the presets or type a custom value in Hz.
- Enter the sample count or the time duration depending on the chosen direction.
- The converter applies time = samples / sample_rate (or its inverse) and displays results in multiple units.
- Results update instantly as you type.
Use cases
- Find how many milliseconds a given buffer of audio samples represents.
- Calculate the exact sample offset for a cut point in a DAW at a specific timecode.
- Convert a latency in samples to milliseconds when tuning real-time audio software.
- Determine buffer sizes in samples to achieve a target latency at a given sample rate.
- Verify frame alignment between a 44.1 kHz audio track and a 48 kHz video timeline.
- Compute loop lengths in samples from a BPM and bar count combination.
- Cross-check DSP algorithm delay lines expressed in samples against a time spec.
Frequently Asked Questions
Last updated: 2026-07-22 ·
Reviewed by Nham Vu