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 for accuracy by Daniel Agrici, Founder & Lead Developer
Audio File Size Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Size (bytes) = Duration x Sample Rate x (Bit Depth / 8) x Channels
Worked example โ WAV: 40.37 MB | MP3 320kbps: 9.16 MB | Compression saves 77.3%
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): Size = 240s x 44100 Hz x (16/8) bytes x 2 channels Size = 240 x 44100 x 2 x 2 = 42,336,000 bytes Size = 42,336,000 / 1,048,576 = 40.37 MB MP3 at 320 kbps: Size = 320,000 bits/s x 240s / 8 = 9,600,000 bytes Size = 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: Size = 3600s x 48000 Hz x (24/8) bytes x 1 channel Size = 3600 x 48000 x 3 x 1 = 518,400,000 bytes = 494.4 MB 52 episodes: 494.4 x 52 = 25,708.8 MB = 25.1 GB MP3 128kbps per episode: Size = 128,000 x 3600 / 8 = 57,600,000 bytes = 54.9 MB 52 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.
How much space does MP3 compression save compared to WAV?
MP3 compression dramatically reduces file size compared to uncompressed WAV. A typical CD-quality WAV file is about 10 MB per minute. An MP3 at 320 kbps (highest common quality) reduces this to approximately 2.4 MB per minute, roughly a 75% reduction. At 192 kbps (good quality), files shrink to about 1.44 MB per minute. At 128 kbps (standard quality), files are about 0.96 MB per minute, a 90% size reduction. MP3 achieves this through lossy compression, permanently removing audio data that psychoacoustic models determine is less audible to human ears. The trade-off is that some audio fidelity is lost, particularly in high frequencies and complex passages. For most listeners on standard equipment, 256-320 kbps MP3 is perceptually indistinguishable from the original.
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.
How does the number of audio channels affect file size?
Each additional audio channel multiplies the file size proportionally. Mono (1 channel) produces the baseline size. Stereo (2 channels) doubles the file size because it stores separate left and right audio streams. Surround sound formats increase size further: 5.1 surround uses 6 channels (front left, center, front right, rear left, rear right, subwoofer), producing 6 times the mono file size. 7.1 surround uses 8 channels, and immersive formats like Dolby Atmos can use even more. In professional music production, multitrack recordings may contain 24, 48, or even hundreds of individual tracks, each stored as a separate channel. This is why raw recording session files can easily reach tens or hundreds of gigabytes for a single song.
What audio format should I use for different purposes?
The ideal format depends on your use case. For archival and mastering, use WAV or AIFF (uncompressed) to preserve maximum quality. For distribution while maintaining quality, FLAC or ALAC provides lossless compression at roughly half the size of WAV. For streaming services, AAC at 256 kbps is the industry standard used by Apple Music and YouTube. For podcasts and voice recordings, MP3 at 128 kbps mono is sufficient since spoken word does not require high fidelity. For web audio and game sound effects, OGG Vorbis offers good compression with wide browser support. For professional video production, use WAV at 48 kHz sample rate since that is the video industry standard sample rate for broadcast.
How much storage do I need for a music library?
Storage requirements vary enormously by format choice. An average song is about 3.5 minutes long. In WAV format at CD quality, each song takes roughly 35 MB, so 1,000 songs would need 35 GB. In FLAC, the same library would be about 17.5 GB. In MP3 at 320 kbps, it shrinks to roughly 8.4 GB, and at 128 kbps to about 3.4 GB. For a professional recording studio, a single multitrack session with 24 tracks at 24-bit/96 kHz can easily reach 5-10 GB per song. External hard drives and NAS systems are essential for studios. Streaming services have largely eliminated personal storage concerns for consumers, but producers and engineers still need substantial local and backup storage for their project files.
What is the best sample rate for recording music?
For most music recording purposes, 44.1 kHz or 48 kHz at 24-bit provides excellent quality. The 44.1 kHz rate is the CD standard and is ideal if your final delivery will be CD or most streaming platforms. The 48 kHz rate is the standard for video and film production, so use this if your audio will accompany video content. Higher sample rates like 88.2 kHz, 96 kHz, or 192 kHz are used by some engineers who believe they provide subtle improvements in the analog-to-digital conversion process. However, blind listening tests have generally failed to demonstrate audible differences between 44.1 kHz and higher rates for finished masters. The higher rates do consume proportionally more storage and processing power, which can limit track counts in large sessions.
How does audio streaming bitrate compare to file download size?
Streaming bitrate directly determines how much data is transferred per second and thus the total data consumed over the duration of playback. Spotify Free streams at 96-160 kbps (about 0.72-1.2 MB per minute), Spotify Premium at 256-320 kbps (about 1.92-2.4 MB per minute), and Apple Music at 256 kbps AAC (about 1.92 MB per minute). For lossless streaming, Apple Music Lossless uses 16-bit/44.1 kHz ALAC at roughly 800-1100 kbps (about 6-8 MB per minute), while Hi-Res Lossless can reach 24-bit/192 kHz at up to 9,216 kbps. Over a typical 3.5-minute song, standard streaming uses 4-8 MB while lossless can use 21-28 MB. Monthly data usage for heavy listeners (4 hours daily) ranges from 3.5 GB at standard quality to over 28 GB at lossless quality.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎVideo File Size Calculator
Calculate video file size from resolution, frame rate, bit rate, and duration.
๐งฎPrint Size From Megapixels Calculator
Calculate print size from megapixels with interactive inputs and clear steps.
๐งฎPrint Size Calculator
Calculate maximum print size from image resolution and desired DPI.
๐งฎFont Size Converter
Convert between points, pixels, ems, rems, and percentages for web and print typography.
๐งฎPa System Size Calculator
Calculate PA system wattage and speaker placement for events from venue size and audience.
๐งฎLine Spacing Calculator
Calculate optimal line height/leading from font size for readability.
๐งฎPhoto Storage Calculator
Calculate storage needs from photo count, resolution, and RAW vs JPEG file sizes.
๐งฎLens Focal Length Calculator
Calculate the required focal length from subject distance, sensor size, and desired framing.