Will this episode fit under the upload limit? How much storage will a season of recordings take? Can this track be attached to an email? Every one of those questions is really a file size question, usually treated as something you discover after exporting. It does not have to be: for audio, size is decided by two numbers you often know in advance, how long the recording runs and the bitrate it is encoded at.
The Audio Duration and Bitrate Analyzer on Ovatly checks finished files in your browser, and its bitrate estimate comes from running this same arithmetic in reverse. This guide sets out the formula, works it both ways with numbers, and covers the small gap between an estimate and a finished file.
Contents
- Quick answer
- The one formula
- Worked example: the same file, both directions
- More sizes worth knowing
- Why the real file is a little bigger
- How to estimate and check, step by step
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Size in bytes equals bitrate (bits per second) times duration (seconds), divided by 8. In kbps: each kbps is worth 125 bytes per second, so size in bytes equals kbps times 125 times seconds. Run it backwards, size times 8 divided by duration, and you get the bitrate, which is how the Audio Duration and Bitrate Analyzer produces its estimate.
The one formula
Audio data is counted in bits, file size in bytes, and there are 8 bits in a byte. That conversion is the whole trick:
size in bytes = bitrate (bits per second) x duration (seconds) / 8
Bitrates are usually quoted in kbps, where one kbps is 1,000 bits per second. Dividing 1,000 by 8 gives 125, so one kbps means 125 bytes of file per second of sound. A few reference points:
- At 128 kbps, one minute of audio is about 960,000 bytes, a little under one megabyte.
- At 160 kbps, one minute is about 1,200,000 bytes.
- At 320 kbps, one minute is about 2,400,000 bytes.
Two habits keep the arithmetic honest: always work in seconds, converting minutes first, and remember the result is the audio data only; the finished file around it is slightly larger, for reasons covered below.
Worked example: the same file, both directions
Start with a plan: a track that runs 210 seconds (3:30), exported at about 160 kbps. Predicting the size:
160,000 bits per second x 210 seconds = 33,600,000 bits
33,600,000 bits / 8 = 4,200,000 bytes
So the export should land at about 4,200,000 bytes, roughly 4.2 MB. Now run the same numbers backwards, the way the analyzer does with a finished file: it measures 4,200,000 bytes and 210 seconds, and reports the format as "MP3 · audio/mpeg":
4,200,000 bytes x 8 = 33,600,000 bits
33,600,000 bits / 210 seconds = 160,000 bits per second
That is about 160 kbps, the estimated average bitrate in the report. The two directions agree because they are the same relationship seen from opposite ends. One caution travels with the reverse direction: the 4,200,000 bytes include the container and tags, so the audio stream alone runs slightly under 160 kbps, and the figure is an average if the file is variable bitrate.
More sizes worth knowing
The same formula answers the common planning questions:
- A 60 minute podcast episode at 128 kbps: 128 times 125 times 3,600 seconds gives 57,600,000 bytes, about 57.6 MB, the figure to hold against a hosting plan's upload limit.
- A 3 minute song at 320 kbps: 320 times 125 times 180 seconds gives 7,200,000 bytes, about 7.2 MB.
- The same song at 128 kbps: 128 times 125 times 180 seconds gives 2,880,000 bytes, about 2.9 MB. Dropping from 320 to 128 kbps cuts the file to 40 percent of its size, which is exactly the ratio of the two bitrates.
For a fixed duration, size scales in direct proportion to bitrate: halve the bitrate and you halve the file.
Why the real file is a little bigger
The formula counts audio data and nothing else. A real file is a container: around the audio sit the container structure and tags, typically title, artist, album and sometimes embedded artwork. Those bytes are in the file's size, but not in your estimate.
On a long episode the overhead is a rounding error. On a thirty second clip with a large cover image, the artwork can rival the audio. Expect the estimate to land close and slightly low; treat a big gap as a clue, usually heavy tags or a higher bitrate than you assumed.
A smaller confusion is units: 4,200,000 bytes is 4.2 MB when a megabyte means 1,000,000 bytes, and about 4.0 MiB when it means 1,048,576 bytes. Different systems use different units, so a file can look like it changed size when only the ruler changed.
How to estimate and check, step by step
- Write down the duration in seconds and the bitrate you plan to encode at.
- Multiply kbps by 125 by seconds for your estimated size in bytes; divide by 1,000,000 for megabytes.
- Add a little headroom for container and tags, especially on short files or files with artwork.
- After exporting, open the Audio Duration and Bitrate Analyzer and drop the finished file in. It is read locally; nothing is uploaded.
- Compare the report with your estimate: duration, size and estimated average bitrate. A close match confirms the export used the settings you intended; a large gap means something differed, and the report tells you which number moved.
Limitations and honest tradeoffs
The formula assumes one steady average bitrate. Variable bitrate files spend their bits unevenly, so the estimate predicts the total well but says nothing about any particular stretch. It also cannot know your tag overhead in advance, which is why it is an estimate, not a promise to the byte.
The checking side has limits too. The analyzer measures only formats your browser can play, because its reading depends on the browser's own audio handling. Channels and sample rate appear only when the browser can decode the file with Web Audio; otherwise those fields say "Not readable" while duration, format, size and the bitrate estimate are still reported.
And the tool inspects only: it never edits, trims or converts a file, so if the check shows the wrong size or bitrate, the fix happens back in your exporter.
Common mistakes
- Forgetting to divide by 8. Bitrate is in bits, size is in bytes. Skip the division and your estimate is eight times too big.
- Plugging in minutes instead of seconds. Convert the duration first, or the answer is sixty times too small.
- Mixing up MB and MiB. 4,200,000 bytes is 4.2 MB and about 4.0 MiB. Comparing figures measured with different rulers creates phantom gaps.
- Treating a VBR average as a constant. The average predicts the total; it does not mean every second was stored at that rate.
- Expecting a match to the byte. Container and tag bytes sit outside the formula. Close and slightly low is correct.
FAQs
What is the formula for estimating an audio file's size? Size in bytes equals bitrate in bits per second, multiplied by duration in seconds, divided by 8. If your bitrate is in kbps, multiply kbps by 125 to get bytes per second, then multiply by the duration in seconds.
How do I work backwards from a file size to its bitrate? Reverse the formula: size in bytes multiplied by 8, divided by duration in seconds. A file of 4,200,000 bytes playing 210 seconds gives 160,000 bits per second, about 160 kbps, the same calculation the analyzer performs.
Why is my real file slightly bigger than my estimate? The formula counts only the audio data. A real file also carries a container and tags such as title, artist and artwork, and those bytes add to the total. The gap is small on long files, proportionally bigger on short clips.
Does the formula work for variable bitrate files? Yes, with the file's average bitrate. A VBR file spends more bits on busy passages and fewer on quiet ones, so the average predicts the total size well, though it cannot tell you the size of any single second.
Is my audio file uploaded when I check it? No. The Audio Duration and Bitrate Analyzer reads and measures the file inside your browser, on your device. Nothing is uploaded, and the tool only inspects the file: it never edits, trims or converts it.
Conclusion
Bitrate times duration, divided by 8: that is the whole method, and it runs in both directions. Plan a size before you export, then verify the result with the Audio Duration and Bitrate Analyzer, which reports the finished file's duration, format, size and estimated average bitrate without the file leaving your device. If the numbers 128 and 320 puzzle you, the companion guide on what 128 kbps and 320 kbps actually mean explains the scale this formula uses. For more in this series, see the File and Data Conversion guides.
References
- MDN Web Docs, on the Web Audio API used to decode audio in the browser: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
- MDN Web Docs, on the File API used to read files locally in the browser: https://developer.mozilla.org/en-US/docs/Web/API/File_API