Music Theory, Audio Engineering & Instruments Studio & Live Audio Engineering Linear PCM in WAV/RIFF; RF64 per EBU Tech 3306 above 4 GiB

Audio File Size Calculator (Sample Rate & Bit Depth)

Uncompressed audio has no surprises in it: the file size is exactly the sample rate times the bytes per sample times the channel count times the length. That product is the data rate, and everything else - session size, how long a drive lasts, whether a file will cross the 4 GiB WAV ceiling - follows from it. This calculator does the arithmetic for any format, multiplies it up across a multitrack session, and compares the result against a compressed target so you can see what a codec is actually buying you.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Sample rateSamples per second per channel. 48 kHz is the default for anything that will meet picture.48 kHz (video, broadcast)
Bit depthBits stored per sample. 24-bit is the recording standard; 32-bit float files occupy the same space as 32-bit integer.24-bit
Channels per fileChannels inside one file. Multitrack sessions usually record mono files, so leave this at 1 and set the track count instead.1 - mono
Recording lengthHow long each track runs. Use the total recorded time, not the length of the finished piece.60 min
Number of tracksHow many files of this length the session contains. Twenty-four covers a typical live band session.24
Compressed bitrateTarget bitrate for the compressed version, in kilobits per second across all channels.320 kbps
Available storageFree space on the recording drive, in decimal gigabytes as drive manufacturers quote them.1000 GB

It returns

  • Size of one track — Uncompressed PCM, before any file header. Megabytes here are 1,000,000 bytes.
  • Total session size
  • Data rate per track
  • Compressed size of one track
  • Compression ratio
  • Recording time the drive holds

The formula

B=fs×d8×c×t
Benc=R×10008×t

In plain text: bytes = sample rate x (bit depth / 8) x channels x seconds

  • BFile size, excluding the header (bytes)
  • f_sSample rate (Hz)
  • dBit depth (bits)
  • cNumber of channels in the file (integer)
  • tLength of the recording (s)

This is linear PCM, where every sample occupies the same number of bits regardless of its value. It applies to WAV, AIFF, BWF, CAF and RF64 alike; lossless codecs such as FLAC and ALAC store the same samples in fewer bytes and their size depends on the material.

Updated Category Studio & Live Audio Engineering Verified against published test cases Reading time 11 min

Why uncompressed audio size is exactly predictable

Linear PCM stores every sample as a fixed-width number, whatever that sample contains. Silence costs the same as a full-scale drum hit, and a 24-bit sample takes three bytes whether it encodes a whisper or a snare. That makes the file size a pure product: samples per second, times bytes per sample, times channels, times seconds. Nothing about the material changes the answer.

That predictability is the whole point of the format. A recorder can guarantee it will not run out of card halfway through a take, and a session can be budgeted before it starts. It is also why lossless compression is a separate question: FLAC and ALAC store exactly the same samples in fewer bytes by modelling the waveform, but how many fewer depends on the music - dense loud material compresses to perhaps 70% of PCM, sparse quiet material to 40% - so their size cannot be calculated in advance.

Lossy formats are different again. MP3, AAC and Opus discard information and are usually specified by bitrate, which makes their size calculable but their quality material-dependent. At a constant bitrate the size is bitrate divided by eight, times the length, and the channel count and sample rate do not appear at all - a 320 kbps stereo file and a 320 kbps mono file are the same size, which is exactly why encoding mono material in stereo wastes half the bitrate.

Reading each factor in the product

Sample rate is samples per second per channel. It is set by the bandwidth you need: the Nyquist theorem puts the highest recordable frequency at half the sample rate, so 44.1 kHz reaches 22.05 kHz and 48 kHz reaches 24 kHz. Doubling the rate doubles the file. The 44.1 kHz figure is a legacy of early digital recorders that stored data on video tape; 48 kHz became standard for anything cut against picture, and its multiples follow the same family.

Bit depth is bits per sample, and it sets dynamic range rather than bandwidth - about 6.02 dB per bit, so 16-bit gives roughly 96 dB and 24-bit roughly 144 dB. Divide by eight for bytes: 16-bit is two bytes, 24-bit is three, 32-bit is four. Going from 16- to 24-bit costs exactly 50% more storage, and going to 32-bit costs 100% more than 16-bit.

Channels multiply directly. A stereo file is twice a mono file; a 5.1 file is six times. Note the distinction the calculator draws between channels inside one file and the number of files: a 24-track session of mono files and a session of twelve stereo files hold identical data and occupy identical space.

Length multiplies directly too, which makes the data rate the number worth memorising. At 48 kHz / 24-bit / mono it is 144 kB per second, which is 8.64 MB per minute and 518.4 MB per hour. Every other format scales from there by the ratios above. If you also need to move those files across a network, the data transfer time calculator converts the total into transfer time.

Worked example: a 24-track session at 48 kHz / 24-bit

You are tracking a band: 24 mono tracks at 48 kHz and 24-bit, recording for three hours of session time, onto a drive with 500 GB free.

  1. Bytes per sample. 24 bits / 8 = 3 bytes.
  2. Data rate per track. 48,000 samples/s x 3 bytes x 1 channel = 144,000 bytes per second, or 144 kB/s.
  3. One track for three hours. 3 hours = 10,800 s, so 144,000 x 10,800 = 1,555,200,000 bytes = 1,555.2 MB = 1.5552 GB.
  4. All 24 tracks. 1.5552 x 24 = 37.3248 GB.
  5. Against the drive. 500 GB free minus 37.32 GB leaves 462.7 GB, so it fits comfortably. Divide the other way for the ceiling: 500,000,000,000 / (144,000 x 24) = 144,676 s = 40.19 hours of 24-track recording.
  6. Check the WAV ceiling. A single mono track at 144 kB/s reaches 4 GiB (4,294,967,296 bytes) after 4,294,967,296 / 144,000 = 29,826 s = 8.3 hours. A three-hour take is safe; an all-day continuous recording is not, and would need RF64.
  7. Compare with a 320 kbps stereo bounce. 320,000 / 8 = 40,000 bytes/s, so three hours is 40,000 x 10,800 = 432 MB. The stereo PCM master of the same length would be 288,000 x 10,800 = 3,110.4 MB, so the encode is 3,110.4 / 432 = 7.2 times smaller.

Sanity-check step 4 the other way: 37.3248 GB over three hours is 12.4416 GB per hour, and 12.4416 GB / 24 tracks = 0.5184 GB per track per hour, which is the 518.4 MB figure quoted above. The two routes agree.

Choosing a format from the size figure

Storage is rarely the binding constraint any more, but throughput and workflow often are. A 96 kHz session at 24-bit across 32 tracks demands 32 x 288 kB/s = 9.2 MB/s of sustained write, which any modern SSD handles and a slow USB bus over a shared connection may not. Playback with plugin processing adds read demand on top. When a session drops out at high track counts, sustained disk throughput is usually the cause, and halving the sample rate halves the demand.

The recording-time figure is the one to check before a long-form job. A field recorder with a 128 GB card running eight channels at 48 kHz / 24-bit consumes 8 x 144 kB/s = 1.152 MB/s, so the card lasts 128,000,000,000 / 1,152,000 = 111,111 s = 30.9 hours. That is a reassuring number for a documentary shoot and a tight one for a multi-day conference.

On format choice, the honest summary is that bit depth buys headroom and sample rate buys bandwidth, and only one of those is usually in short supply. Recording at 24-bit rather than 16-bit costs 50% more storage and removes any need to ride the gain close to full scale, which is a clear win. Recording at 96 kHz rather than 48 kHz doubles the storage and the CPU load for an extra octave above 24 kHz; whether that is worth it is a longstanding argument, and the storage figure is the least of the considerations either way.

For delivery, remember that the compressed size depends only on bitrate and length. A three-minute track at 256 kbps is 256,000 / 8 x 180 = 5.76 MB whether it is mono, stereo, 44.1 kHz or 48 kHz. If you are trying to hit a size budget, the bitrate is the only lever.

Storage for one hour of audio

Uncompressed linear PCM in decimal units: 1 MB = 1,000,000 bytes. Data rate is sample rate x bytes per sample x channels.
FormatData rate (kB/s)One minute (MB)One hour (GB)
22.05 kHz / 16-bit / mono44.102.650.159
44.1 kHz / 16-bit / stereo (CD)176.4010.580.635
48 kHz / 24-bit / mono144.008.640.518
48 kHz / 24-bit / stereo288.0017.281.037
96 kHz / 24-bit / stereo576.0034.562.074
96 kHz / 32-bit / stereo768.0046.082.765
192 kHz / 24-bit / stereo1152.0069.124.147
48 kHz / 24-bit / 5.1864.0051.843.110
MP3 / AAC at 320 kbps40.002.400.144
Opus at 96 kbps12.000.720.043

The two compressed rows depend only on the bitrate, not on the sample rate or channel count. Every uncompressed row is the product in the formula above, so any format not listed can be scaled from a neighbour: doubling the sample rate, the channel count or the bytes per sample doubles the figure.

What the calculation leaves out

  • File headers and metadata. A WAV header is about 44 bytes, and broadcast metadata or embedded markers add a little more. Both are negligible against any recording longer than a second.
  • Lossless codecs. FLAC, ALAC and WavPack store the same samples in fewer bytes, but by how many depends on the material, so their size cannot be predicted from the format alone.
  • Variable bitrate encoding. A VBR MP3 or AAC file averages the target bitrate rather than holding it, so the calculated size is an estimate rather than an exact figure.
  • Project overhead. A DAW session also holds undo history, fade files, peak files and clip copies, which can add a large fraction on top of the raw audio.
  • Decimal against binary units. Drives are sold in decimal gigabytes and most operating systems report binary gibibytes, a 7.4% difference at the GB/GiB level that grows to 10% at TB/TiB.
  • Filesystem limits. The 4 GiB ceiling applies to the WAV container and also to FAT32 volumes, independently. RF64, Wave64 and CAF all lift the container limit; the volume limit needs exFAT or better.

Containers, ceilings and what to record to

WAV is a RIFF container, and RIFF stores chunk sizes in 32-bit fields. That caps a compliant WAV file at 4 GiB - 4,294,967,296 bytes - which at 48 kHz / 24-bit stereo arrives after about 4 hours 8 minutes, and at 192 kHz / 24-bit stereo after about an hour. Recorders handle this in different ways: some split automatically into numbered files, some stop, and some write a non-compliant file that other software refuses to open. EBU Tech 3306 defines RF64, which stays byte-compatible with WAV up to the limit and then carries 64-bit sizes beyond it; Sony's Wave64 and Apple's CAF solve the same problem differently. If a job involves continuous recording of many hours, check what your recorder does before the day rather than after.

Broadcast Wave, defined in EBU Tech 3285, is WAV with a metadata chunk carrying originator, date and - critically - a timecode reference, which is what lets a separately recorded sound file line up against picture. It costs a few hundred bytes and is the format to use for anything that will meet video.

On the sample-rate side, the multiples exist because rate conversion between families is arithmetically awkward. Converting 44.1 kHz to 48 kHz is a ratio of 147:160 and requires a proper resampler; converting 96 kHz to 48 kHz is simply 2:1 and much cleaner. If a project's deliverable is 48 kHz, record at 48 or 96 rather than at 88.2, and if it is a CD master at 44.1, record at 44.1 or 88.2.

Finally, storage planning is only half of session planning. The runtime you are recording usually comes out of an arrangement measured in bars, and the song length and bar count calculator converts between the two. When the files have to move rather than merely sit, the data transfer time calculator turns gigabytes into minutes on a given link.

Frequently asked questions

How big is one minute of CD-quality audio?

10.584 MB. CD audio is 44,100 samples per second, 16 bits (2 bytes) per sample, in stereo, which gives 44,100 x 2 x 2 = 176,400 bytes per second. Multiply by 60 and you get 10,584,000 bytes. A full 74-minute CD therefore holds about 783 MB of audio data, which is why the disc's data capacity is quoted as 650 to 700 MB after error correction overhead.

How much space does an hour of 24-bit 48 kHz audio take?

518.4 MB per mono track, or 1.0368 GB in stereo. The data rate is 48,000 x 3 bytes x 1 channel = 144,000 bytes per second, and an hour is 3,600 seconds. For a 24-track session that is 12.44 GB per hour, which is the figure to budget a tracking day against.

Does 32-bit float make files bigger than 32-bit integer?

No - both store four bytes per sample, so the file sizes are identical. The difference is in what those four bytes represent: floating point carries an exponent, so the format has enormous headroom and cannot clip when a signal exceeds full scale on write. That is why 32-bit float recorders are useful in the field, and it costs nothing in storage relative to 32-bit integer.

Why is my WAV file capped at 4 GB?

Because the RIFF container stores chunk sizes in 32-bit fields, which cannot express more than 4,294,967,296 bytes. At 48 kHz / 24-bit stereo that ceiling arrives after about 4 hours 8 minutes. Record to RF64 (EBU Tech 3306), Wave64 or CAF to pass it, and check separately that the volume is not FAT32, which imposes the same limit at the filesystem level.

How do I calculate MP3 file size?

Divide the bitrate in kilobits per second by 8 to get kilobytes per second, then multiply by the length in seconds. A 320 kbps file is 40 kB/s, so four minutes is 40,000 x 240 = 9.6 MB. The sample rate and channel count do not enter the calculation, which is why encoding a mono source in stereo at the same bitrate simply spends half the data describing a duplicate channel.

Does doubling the sample rate double the file size?

Yes, exactly, for uncompressed PCM. Sample rate appears once in the product, so 96 kHz files are twice the size of 48 kHz files of the same length, depth and channel count, and 192 kHz files are four times. Bit depth and channel count scale the same way: 24-bit is 1.5 times 16-bit, and stereo is twice mono.

Why does my drive show less space than advertised?

Because drives are sold in decimal units and most operating systems report binary ones. A drive marked 1000 GB holds 1,000,000,000,000 bytes, which the OS divides by 1,073,741,824 and displays as 931 GiB. The difference is 7.4% at this scale and grows with size. Formatting overhead and reserved space account for a little more.

How long will my recorder run on a memory card?

Divide the card's bytes by the total data rate across all channels. A 128 GB card recording eight channels at 48 kHz / 24-bit runs at 8 x 144,000 = 1.152 MB/s, so it lasts 128,000,000,000 / 1,152,000 = 111,111 seconds, or 30.9 hours. Halving the sample rate or dropping to 16-bit each extend that proportionally.

References