Audio File Size Calculator
Calculate audio file size from duration, sample rate, bit depth, and number of channels. Enter values for instant results with step-by-step formulas.
Reviewed by Daniel Agrici, Founder & Lead Developer
Formula
Size (bytes) = Duration x Sample Rate x (Bit Depth / 8) x Channels
This formula calculates the raw uncompressed PCM audio size. Duration is in seconds, sample rate in Hz (samples per second), bit depth divided by 8 converts bits to bytes per sample, and channels multiplies for stereo or surround sound. Compressed formats apply a compression ratio to this base size.
Worked Examples
Example 1: CD Quality Song File Size
Problem:Calculate the file size of a 4-minute stereo song recorded at CD quality (44.1 kHz, 16-bit) in both WAV and MP3 320kbps formats.
Solution:WAV (uncompressed):\nSize = 240s x 44100 Hz x (16/8) bytes x 2 channels\nSize = 240 x 44100 x 2 x 2 = 42,336,000 bytes\nSize = 42,336,000 / 1,048,576 = 40.37 MB\n\nMP3 at 320 kbps:\nSize = 320,000 bits/s x 240s / 8 = 9,600,000 bytes\nSize = 9,600,000 / 1,048,576 = 9.16 MB
Result:WAV: 40.37 MB | MP3 320kbps: 9.16 MB | Compression saves 77.3%
Example 2: Podcast Episode Storage
Problem:A weekly podcast records 60-minute episodes in mono at 48 kHz, 24-bit. Calculate annual storage for raw WAV files and final MP3 128kbps exports.
Solution:Raw WAV per episode:\nSize = 3600s x 48000 Hz x (24/8) bytes x 1 channel\nSize = 3600 x 48000 x 3 x 1 = 518,400,000 bytes = 494.4 MB\n52 episodes: 494.4 x 52 = 25,708.8 MB = 25.1 GB\n\nMP3 128kbps per episode:\nSize = 128,000 x 3600 / 8 = 57,600,000 bytes = 54.9 MB\n52 episodes: 54.9 x 52 = 2,854.8 MB = 2.79 GB
Result:Annual RAW: 25.1 GB | Annual MP3: 2.79 GB | 52 episodes per year
Frequently Asked Questions
How is uncompressed audio file size calculated?
Uncompressed audio file size is calculated using the formula: Size = Duration x Sample Rate x Bit Depth / 8 x Channels. The sample rate determines how many samples per second are recorded, the bit depth determines how many bits represent each sample, and channels indicates mono or stereo. Dividing the bit depth by 8 converts bits to bytes. For example, a 3-minute stereo WAV file at CD quality (44100 Hz, 16-bit) equals 180 x 44100 x 2 x 2 = 31,752,000 bytes, or roughly 30.3 MB. This formula applies to raw PCM audio formats like WAV and AIFF, which store every single sample without any compression whatsoever.
What is sample rate and how does it affect file size?
Sample rate is the number of audio snapshots taken per second, measured in Hertz (Hz). CD quality uses 44,100 Hz (44.1 kHz), meaning 44,100 individual measurements of the sound wave every second. Higher sample rates capture more detail and higher frequencies according to the Nyquist theorem, which states that a sample rate can accurately represent frequencies up to half its value. So 44.1 kHz captures frequencies up to 22.05 kHz, which covers the full range of human hearing. Professional audio often uses 48 kHz (video standard), 88.2 kHz, 96 kHz, or even 192 kHz for archival purposes. Doubling the sample rate exactly doubles the file size, making high sample rates significantly more storage-intensive.
What is bit depth and why does it matter for audio quality?
Bit depth determines the number of possible amplitude values for each audio sample. A 16-bit audio file has 65,536 possible values per sample (2 to the 16th power), while 24-bit has over 16.7 million values. Higher bit depth provides a greater dynamic range, measured in decibels: 16-bit offers about 96 dB of dynamic range, while 24-bit provides approximately 144 dB. CD audio uses 16-bit, which is sufficient for consumer playback. Professional recording and mixing typically use 24-bit to capture quiet details and prevent clipping during production. Going from 16-bit to 24-bit increases file size by 50% (not double) because you add 8 bits to the existing 16. The 32-bit float format used in some DAWs provides even more headroom for audio processing.
What is the difference between lossy and lossless audio compression?
Lossy compression (MP3, AAC, OGG Vorbis) permanently removes audio data deemed less perceptible to human hearing, achieving dramatic size reductions of 70-90%. The original audio cannot be perfectly reconstructed from a lossy file. Lossless compression (FLAC, ALAC, WavPack) reduces file size by 40-60% without losing any audio data. When decoded, a lossless file produces bit-for-bit identical output to the original uncompressed source. Lossless formats work similarly to ZIP compression, finding patterns and redundancies in the audio data to represent it more efficiently. For archiving and audiophile listening, lossless formats preserve full quality. For portable devices and streaming with bandwidth constraints, lossy formats offer the best balance of quality and size.
References
Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy