Audio Duration Calculator

Convert audio samples into duration, or convert duration back into samples using your sample rate.

Audio Duration Tool:

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.

samples

Use samples as the input for duration, or enter milliseconds when converting back.

Hz

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

Samples to Duration
Duration (s) = Samples / Sample Rate
Duration (ms) = (Samples / Sample Rate) × 1000
Duration to Samples
Samples = Duration (s) × Sample Rate
Samples = (Duration (ms) / 1000) × Sample Rate

Reference Table

These common examples give a quick sense of how sample counts translate into real-world timing.

Samples Rate Duration Use Case
44.144.1 kHz1 msMicro timing
44144.1 kHz10 msShort delay
96048 kHz20 msRhythmic offset
220544.1 kHz50 msVery short echo
441044.1 kHz100 msOne-tenth second
4800048 kHz1 sOne second clip
9600048 kHz2 sTwo second segment
19200048 kHz4 sLonger 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.