Audio File Size Calculator
Calculate audio file size for WAV, MP3, FLAC, AAC, OGG & more. Enter duration, sample rate, bit depth, and channels to get precise results.
About
Miscalculating audio storage requirements leads to truncated recordings, exhausted disk space during sessions, and incorrect bandwidth provisioning for streaming infrastructure. This calculator computes exact uncompressed PCM file sizes from fs (sample rate), b (bit depth), c (channel count), and t (duration), then estimates compressed sizes for MP3, AAC, OGG, FLAC, ALAC, and WMA using standard CBR bitrate models. Results account for raw audio data only. Container overhead (RIFF/WAV header โ 44 bytes, ID3 tags, metadata) is excluded because it is negligible at file lengths beyond a few seconds.
The tool assumes constant bitrate encoding for lossy formats. Real-world VBR encoders produce files that vary by 5 - 15% depending on signal complexity. Silence-heavy recordings compress smaller; dense orchestral material compresses larger. For lossless formats like FLAC, the stated ratio (0.55 - 0.65ร PCM) is an empirical average across mixed-genre corpora. Pro tip: always budget 10% headroom above calculated values when provisioning storage for recording sessions.
Formulas
The raw uncompressed PCM audio data size is computed as:
where Sraw = file size in bytes, fs = sample rate in Hz (samples per second), b = bit depth (bits per sample), c = number of channels (1 for mono, 2 for stereo), and t = duration in seconds. Division by 8 converts bits to bytes.
The corresponding data rate (bitrate) for uncompressed audio is:
where R is in bits/s. For CD-quality audio: 44100 ร 16 ร 2 = 1,411,200 bits/s = 1411.2 kbps.
For lossy compressed formats using constant bitrate encoding:
where BR = target bitrate in bits/s and t = duration in seconds.
For lossless compressed formats (FLAC, ALAC):
where r is the empirical compression ratio, typically 0.55 to 0.65 depending on source material complexity.
Binary unit conversions follow IEC 80000-13: 1 KiB = 1024 bytes, 1 MiB = 10242 bytes, 1 GiB = 10243 bytes.
Reference Data
| Format | Type | Typical Bitrate | Compression Ratio vs PCM | Container | Common Use |
|---|---|---|---|---|---|
| WAV (PCM) | Uncompressed | N/A (raw) | 1.00ร | RIFF | Studio recording, mastering |
| AIFF (PCM) | Uncompressed | N/A (raw) | 1.00ร | IFF/AIFF | macOS studio workflows |
| FLAC | Lossless | ~900 kbps (CD) | 0.55 - 0.65ร | FLAC/OGG | Archival, audiophile playback |
| ALAC | Lossless | ~900 kbps (CD) | 0.55 - 0.65ร | MP4/M4A | Apple ecosystem archival |
| MP3 (CBR 128) | Lossy | 128 kbps | ~0.09ร | MP3 | Podcasts, speech |
| MP3 (CBR 192) | Lossy | 192 kbps | ~0.14ร | MP3 | General music |
| MP3 (CBR 320) | Lossy | 320 kbps | ~0.23ร | MP3 | High-quality distribution |
| AAC (128) | Lossy | 128 kbps | ~0.09ร | MP4/M4A | Streaming (Spotify, YouTube) |
| AAC (256) | Lossy | 256 kbps | ~0.18ร | MP4/M4A | Apple Music, iTunes |
| OGG Vorbis (160) | Lossy | 160 kbps | ~0.11ร | OGG | Open-source, gaming |
| OGG Vorbis (320) | Lossy | 320 kbps | ~0.23ร | OGG | High-quality open format |
| WMA Standard | Lossy | 128 kbps | ~0.09ร | ASF | Legacy Windows media |
| WMA Lossless | Lossless | ~900 kbps (CD) | 0.55 - 0.65ร | ASF | Windows archival |
| Opus (64) | Lossy | 64 kbps | ~0.05ร | OGG/WebM | VoIP, low-latency speech |
| Opus (128) | Lossy | 128 kbps | ~0.09ร | OGG/WebM | Streaming, music |
| CD Audio (Red Book) | Uncompressed | 1411.2 kbps | 1.00ร | N/A | 44100 Hz, 16-bit, stereo |
| DVD Audio | Uncompressed | 4608 kbps | 1.00ร | N/A | 96000 Hz, 24-bit, stereo |
| DSD64 | Uncompressed (1-bit) | 2822.4 kbps | 1.00ร | DSF/DFF | Super Audio CD (SACD) |
| Telephony (G.711) | Uncompressed | 64 kbps | N/A | RTP | 8000 Hz, 8-bit, mono |