Digital audio
Audio Samples to Seconds Explained
Convert audio sample counts to seconds using sample rate, with examples for 44.1 kHz and 48 kHz audio and guidance on rounding.
Divide the number of samples by the sample rate in samples per second. At 48,000 Hz, 96,000 samples last exactly two seconds. The channel count does not change time; stereo stores more values for the same duration.
Samples-to-seconds formula
Divide the number of samples by the sample rate in samples per second. At 48,000 Hz, 96,000 samples last exactly two seconds. The channel count does not change time; stereo stores more values for the same duration.
Common sample-rate examples
| Samples | 44,100 Hz | 48,000 Hz |
|---|---|---|
| 44,100 | 1.000 s | 0.91875 s |
| 48,000 | 1.08844 s | 1.000 s |
| 1,000,000 | 22.67574 s | 20.83333 s |
Frames, samples and channels
A sample frame contains one sample for every channel at one moment. Some software reports sample frames while raw buffers report individual channel values. Confirm the definition before dividing a stereo buffer length.
Avoiding drift and rounding errors
Use the project sample rate, not a remembered default. Keep integer sample positions for edits and convert to seconds for display. Repeatedly rounding small segments to milliseconds can create a visible offset across a long program.
Converting seconds back to samples
Multiply seconds by sample rate and round to a whole sample. At 48 kHz, 2.5 seconds equals 120,000 samples. Use the software’s rounding behavior consistently because a fractional sample cannot be selected in ordinary PCM audio.
File byte size is different: uncompressed size also depends on bit depth and channels, while compressed formats depend on bitrate. Use sample count for precise positions and durations.
Quick answers
Frequently asked questions
How many samples are in one second?
The count equals the sample rate: 44,100 at 44.1 kHz or 48,000 at 48 kHz.
Does stereo double the duration?
No. It doubles stored channel samples, but the sample frames cover the same time.
What if the audio was resampled?
Use the current file or project sample rate, because the sample count may have changed during conversion.
Can the result be fractional?
Duration can be fractional seconds, but a digital sample position itself is an integer.
Continue with a tool