The question: How do you calculate the file size given bitrate and track length?

I was curious about the relationship between the two today, so after a little digging I found the answer, which in retrospect is fairly obvious.

First off,ย  Google’s search engine includes a converter for this. Just search on the product of length and bitrate.ย For example: “4.12 minutes*201kbps” click to runย (answer is provided in MB. I love Google).

The Basics: When you rip a CD (or encode a Wave into an mp3), you’re given a choice of bitrate. The higher its number, the better the quality and the bigger the file. Bitrate is given in kbps. This translates quite literally into the number of kilobitsย per second required to create a file of the encoded music. This is the same regardless of the encoding type — mp3, aac, wav, aiff, etc.

Now a kilobit is 1/8th of a kilobyte (8 bits in a byte), so the KB size is simply: 1/8*(time * bitrate). To convert to MB, divide by 1024, or (time*bitrate)/8196. That’s your formula,

size =(time*bitrate)/8196

Example: how big is a file 4m 12 sec long encoded using a bitrate of 201kbps? S= (252 s * 201 kb/s)*(1Kb/8kb) = 6.33KB*(1MB/1024KB)=6.06MB.

Similarly, a WAVE will chew file space atย 1411.2 kbps. So, a 10 minute WAVE-encoded file will require 1/8*((10*60*1411.2))/1024 = 103MB. And 73 minutes of music at CD quality (the maximum CD length, more or less) will require 750MB of space (the maximum on most CDs, more or less).

All of this assumes Constant Bitrate (CBR). Most encoded is done using variable bitrate (VBR) these days. The difference will be small though since VBR is an average rate.

I hope you feel more complete knowing this. I know I do.