Audio Duration Calculator
Convert audio samples into duration, or convert duration back into samples using your sample rate.
A practical calculator for sample-based timing, loop lengths, and reverse conversion from duration to samples.
Audio Duration Converter
Toggle between sample-to-duration and duration-to-samples.
Use samples as the input for duration, or enter milliseconds when converting back.
Samples per second. Use a preset or enter a custom value.
Audio Duration Results
Enter samples and sample rate, then click "Convert"
to calculate duration
How Audio Duration Works
In digital audio, every sound is stored as a series of samples. The sample rate tells you how many of those samples happen each second, so you can convert sample counts into real duration. This is useful for editing, timing, loop creation, and measuring offsets in music production.
If you know the sample count and sample rate, the duration is easy to calculate. If you know the duration you need, you can reverse the formula and find the number of samples required for precise placement.
Formula Summary
Reference Table
These common examples give a quick sense of how sample counts translate into real-world timing.
| Samples | Rate | Duration | Use Case |
|---|---|---|---|
| 44.1 | 44.1 kHz | 1 ms | Micro timing |
| 441 | 44.1 kHz | 10 ms | Short delay |
| 960 | 48 kHz | 20 ms | Rhythmic offset |
| 2205 | 44.1 kHz | 50 ms | Very short echo |
| 4410 | 44.1 kHz | 100 ms | One-tenth second |
| 48000 | 48 kHz | 1 s | One second clip |
| 96000 | 48 kHz | 2 s | Two second segment |
| 192000 | 48 kHz | 4 s | Longer event |
FAQ
What is audio duration in samples?
It is the length of an audio segment measured by the number of samples and the sample rate used to store it.
Why does sample rate matter?
The same sample count lasts a different amount of time at 44.1 kHz, 48 kHz, or 96 kHz, so the sample rate changes the result.
Can I convert duration back to samples?
Yes. Switching the mode lets you enter duration and calculate the sample count needed for that time span.