Music Duration
Find a track's runtime from its total samples and sample rate.
About Music Duration
The runtime is the total number of samples divided by how many are played each second, directly reading the recording's length. Album assembly and uploads all depend on exact track length, and sampling math exposes it without any player.
Formula
Music Duration
Duration = total samples / sample rate
- samples
- Number of PCM sample frames in the recording
Worked example
With the default values below, Music Duration returns Duration of 240.00. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Total samplesminimum 1
- 10,584,000
- Sample rateone of 44.1 kHz, 48 kHz, 96 kHz
- 44.1 kHz
Results
- Duration
- 240.00 s
- Minutes
- 4.00 min
- Clock Time
- 4:00
Step by step
- 1Values used
- 2Music Duration
- 3Duration= 240.00 s
- 4Minutes= 4.00 min
- 5Clock Time= 4:00
Assumptions and limits
- The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Music Duration calculated?
Duration = total samples / sample rate The runtime is the total number of samples divided by how many are played each second, directly reading the recording's length.
Why does Music Duration matter?
Album assembly and uploads all depend on exact track length, and sampling math exposes it without any player.
What values do I need to enter?
This calculator takes 2 inputs: Total samples, Sample rate. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
