Skip to content
Calculators

Audio duration calculator

seconds = (bytes × 8) / bitrate

Duration

327.680 s

Bits of the file divided by bits per second

An audio duration calculator estimates how long a file plays from its size and its bitrate. Seconds equal the file size in bits divided by bits per second. It is the reverse of a size estimate. You bring both numbers. The audio itself is not opened.

Folder sizes next to a quoted 128 kbps or 320 kbps are enough when you want minutes before anything plays. Constant bitrate keeps the estimate tight. Variable bitrate still needs the true average rate, or the minutes drift away from the listing.

128 and 320 kbps need the true average

Seconds come from bits divided by the bitrate. Bytes times 8 gives bits. A figure in kbps times 1000 gives bits per second, taking kilo as 1000. Divide those seconds by 60 when you want minutes and a leftover.

Byte rates skip a step. A 320 kbps stream is 320000 bits each second, or 40000 bytes each second. Divide the file size in bytes by 40000 and you have seconds. At 128 kbps the divisor is 16000 bytes each second. Write the unit down.

A tiny file feels the header

Unknown headers mean a tiny file will be off by a moment. A 44-byte WAV header at 320 kbps is about a millisecond of payload, easy to ignore on a song. On a few-kilobyte clip that same header is a visible slice of the estimated length.

Container bytes are not all audio. Tags, cover images, and video wrappers lengthen the guess if you feed the whole file in. Strip to the elementary stream, or accept a small over-read. A bitrate wrong by two doubles or halves the minutes.

4 MB at 320 kbps is 100 seconds of payload

Four megabytes at 320 kbps, taking 4 MB as 4000000 bytes, is the worked case. Bits equal 4000000 times 8, which is 32000000. Divide by 320000 bits per second and the result is 100 seconds. That is 1 minute and 40 seconds of payload.

Mebibytes change the same example. If 4 MB meant 4194304 bytes, times 8 is 33554432 bits, and divided by 320000 is about 104.9 seconds. The gap is under 5 seconds here. On a much smaller clip, decide which million you meant before trusting the clock.