This utility calculates the size of audio files (both uncompressed, PCM/IEEE FP audio, such as “.WAV”, “.W64” “.AIFF/.AIF” and also compressed files such as MP3, WMA, AAC and OGG Vorbis), according to the recording duration and file settings you choose:
**N.B.** If you’re looking for a calculator to do the opposite (i.e. calculate duration from available space), then go here.
Enter the duration of your file in hours, minutes, seconds and milliseconds. Calculating the size of uncompressed files also requires the Sample Rate, Bit Depth and Channel information (but not the Bit Rate, which is automatically calculated). In addition to the duration, calculating the size of compressed files such as MP3 etc., requires only the Bit Rate information (in this case the Sample Rate, Bit Depth and Channel information is ignored). For compressed files encoded with CBR (Constant Bit Rate), the displayed file size should be as accurate as possible (notwithstanding variables such as header information etc- see below). For compressed files encoded with VBR (Variable Bit Rate), the displayed file size can be slightly less accurate because in this case the bit rate can vary depending on the programme material.
Note that the file size reported by your device may vary slightly from that shown due to file allocation methods, possible differences in the amount of header information and/or the fact that some operating systems calculate hard disk space differently from others (e.g., some calculate it in binary and call 1kB 1024 bytes whilst others – and most hard drive manufacturers – calculate it in decimal and call 1kB 1000 bytes) – this calculator handles both methods.
If you find this useful and/or have any comments or suggestions then do let me know via the comment section below.
Enjoy!
What would cause a 5m17s 320kbps MP3 to be 28Mb? It seems insanely large compared to my other files as well as this calculator.
Perhaps you’re looking at the “Uncompressed” (instead of the “Compressed”) output? When I enter 5min 17secs at 320kbps into my calculator I see a result of 12.68 MB (under the decimal “Compressed” result), which is correct.
…unless I’ve misunderstood you (sorry if that’s the case). If you’re saying that you have an mp3 of 5min 17secs that is, in fact 28 MB in size, then I can only guess that it must be padded out with data extraneous to the audio (e.g. tons of extra metadata, or even just zeros!). Why that might be is anyone’s guess though.
Yes, the actual file is that large. I guess I will need to look into the tags but I didn’t see anything suspicious by glancing at the file. I even removed 5mb of artwork and it’s still that big!
Hi Colin, no matter how I try I don’t get the same result as the calculator. Do you mind showing me the maths working out please?
Cheers
Ken
What exactly are you trying to calculate (a specific example please) and how are you trying to work it out yourself?
**New** 32kHz Sample rate option added (as requested by Dan in the Audio Duration Calculator comments).
By the way, you may like to know I’ve just published a new MIDI Note to Audio Frequency Calculator. Do check it out.
I think the binary (2^10) to decimal (1000) converter is off. It just multiplies by 1.024, but that only works for KiB -> kB. For MiB -> MB it needs 1.024^2, for GiB -> GB 1.024^3, and so on, given that the binary prefix equivalent is 2^(10*n/3), where n is the power in 10^n.
Good catch Alex, thanks. Fixed.
im trying to find out how often my RME is recording a sample pr second, im using 192 khz in 24 bit, how do I do that?
I saw somewhere its every 2 ms, but I don’t think that’s right ?
Hello Kim,
Since your audio interface is set to record at a sample rate of 192kHz per second, then it is converting audio at a rate of 192000 samples per second.
For specific information about your hardware, I suggest you contact RME directly.
hi
yes that’s in a full second but digital sampling doesn’t record all the time, as analog does, I think I got it now – 1/192000 x 1000 = 0,0052083333333333
so that means it take a sample every 5 ms, someone correct me if im wrong 🙂
Hi Kim,
No, it’s MUCH more frequent than that – a sample taken only once every 5 milliseconds would result in a very inaccurate (and audibly chopped-up) digital representation of the audio!
You have the correct calculation but you’re interpreting the result incorrectly (i.e. the result is in milliseconds, not in seconds). In fact, a simpler way to express this calculation would be 1/192 (because one second = one thousand milliseconds). Either way, the result is 0.005208333 milliseconds which is, of course, a tiny, tiny fraction of one millisecond.
**Updated** Now calculates compressed (MP3 etc.) as well as uncompressed files!
Very useful, thanks so much
Great to hear – thanks Ved!
This has truly made my work easier. Thank you very much!
Hi Miriam, I’m very glad to hear that. Thanks for dropping by.
Thanks for the calculator Colin. Really useful indeed.
Hi Paulo, Glad to hear you’re finding it useful. Thanks for the feedback.
Thanks for creating this calculator it was very useful!
Hi Anthony, You’re most welcome!
I had an ap on my iPhone – but I couldn’t find it. Googled you. Quick and easy. Thanks.
Thanks for your feedback, Pierre. Glad you found it useful.
Thanks! Very handy.
Very glad you find it useful, Matthew. Many thanks for letting me know.
Really handy, might I suggest adding in the ability to input a target file size and have the calculator determine the duration for you?
Thanks for your feedback, Spudzor! Good idea – I’ll see what I can do. Watch this space.
Well it took a while, but…Done! 🙂 See:
https://www.colincrawley.com/audio-duration-calculator/
This will come in really handy – thank you!
Really useful tool.