Free tool
Audio Duration Calculator
Estimate how long an audio file runs from its size and its bitrate, and see why the answer can disagree with your player before you plan a cut around it.
AhaNow tools · Updated 2026-11-03 · No sign-up, nothing leaves the page
Summary
This calculator divides a file's size by its bitrate and reports the running time, which is the fastest way to find out how much audio is in a file when no player is handy. It is exact for constant-bitrate files and an estimate for everything else, because a compressed file's average bitrate and its stored duration are two different numbers.
Estimate the running time of a file
Size divided by bitrate. Exact for constant-bitrate files; an average for everything else.
In MB as the limit or the file manager states it — see the MB / MiB note below.
For WAV: sample rate × bit depth × channels ÷ 1000.
Estimated duration
52:05
If a player can open the file, its duration is the one to trust — it reads the length from the file header. Variable-bitrate audio and multi-stream files are where this estimate drifts.
Size divided by bitrate. For a constant-bitrate file that is the exact duration; for a variable-bitrate file it is an average, and the file header knows the truth.
What the calculator works out
One megabyte of audio is eight million bits, and a bitrate is how many of those bits are spent every second. Divide one by the other and you have seconds. The conversion is the only step where people go wrong: megabytes to bits is a multiplication by eight million, and kbps to bits per second is a multiplication by one thousand, and the two factors are easy to swap.
That is the whole model, which is also its limit. It knows nothing about the content of the file: an intro that is silent still occupies its share of the bitrate, a file with two audio tracks has two streams sharing the size, and a container with cover art has a few kilobytes that are not audio at all.
How to fill in the two fields
- Read the file size in the unit the rest of your work uses, and check whether that unit is MB or MiB. A file manager that says “1.0 MB” for 1,048,576 bytes is using the binary one.
- Find the audio stream's bitrate, not the file's average data rate. For a compact disc rip that is 1411.2 kbps; for a speech track encoded for streaming it may be 64 kbps — the same file size then means over twenty times the running time.
- For an uncompressed file, compute the bitrate instead of looking for it: sample rate × bit depth × channel count. 48 kHz, 24-bit stereo is 2,304,000 bits per second, or 2304 kbps.
- Treat the result as an estimate whenever the file is variable bitrate. The estimate is closest over long files, because the average has more time to settle.
When the result is off
If a player can open the file, its duration is the answer and this page is only a cross-check. Use the calculator when the file cannot be played, when it is one of hundreds, or when you want to know whether a number came from somewhere sensible.
- Variable bitrate is the big one. The encoder spends bits where the audio is complex and saves them where it is quiet, so the average printed in the inspector and the size-derived number drift apart — sometimes by several seconds over an hour.
- Container overhead is inside the file size. Headers, an index, cover art and chapter markers are bytes that no bitrate describes, so the derived duration is slightly longer than the audible one.
- Multiple streams break the model completely: two language tracks in one file share the size, and dividing that size by one track's bitrate double-counts the other.
- A truncated or still-downloading file has a size that does not correspond to a complete duration. The arithmetic happily reports whatever it is given.
A sensible sequence for a real file
Inspect the file first and note both the duration and the bitrate. If the inspector's duration and this page agree to within a second or two on an hour-long file, you can trust the size-derived number for the rest of the batch. If they disagree badly, the file is probably variable bitrate or has more than one stream, and the inspector is right in both cases.
When you are estimating before recording rather than after, work the other way round: choose a duration and a bitrate, multiply, and you have the size. That direction has no surprise in it, because you chose both inputs.
Questions
Why does my player show a different duration?
Players read a duration field from the file header instead of computing from size and bitrate. For variable-bitrate files the two answers legitimately differ, and the header is what the player actually plays, so treat it as the authority and this page as the sanity check.
What bitrate do I enter for a WAV file?
Uncompressed PCM has no bitrate setting, but it does have a fixed rate: sample rate × bit depth × channels. A 44.1 kHz, 16-bit stereo file is 44,100 × 16 × 2 = 1,411,200 bits per second, so enter 1411.2 kbps. That makes the calculation exact for WAV, because nothing is compressed.
Does the calculator use megabytes or mebibytes?
Megabytes: 1 MB is 1,000,000 bytes. Most file managers and operating systems display mebibytes — 1,048,576 bytes — while still labelling them MB, which is about 4.86% more bytes for the same label. Feeding a mebibyte figure into this page makes the duration come out that much longer.
How do I find the bitrate of a file I did not encode?
Open it in any media inspector and look for the audio stream's bitrate, or for a sample rate and bit depth if it is uncompressed. If the file is variable bitrate, the inspector shows an average and the actual bitrate wanders around it, which is why the duration from size is only approximate.
Can I use this to work out how big a file will be?
Yes — the same relationship read the other way. Size in megabytes is duration in seconds × bitrate in kbps ÷ 8,000. The video bitrate calculator does that version when it is given a target size instead of a file.
Does a longer duration always mean a larger file?
At the same bitrate, yes. Across files, no: a five-minute 320 kbps file is larger than a ten-minute 96 kbps file. Size is duration times bitrate, so either can move the answer, and comparing file sizes without the bitrates tells you nothing about length.
