Audio Sample Rate, Bit Depth & File Size Calculator: Free Audio Sample Rate, Bit Depth & File Size Calculator tool: calculate uncompressed PCM, WAV, AIFF, FLAC, and MP3 audio file size from sample rate, bit.
The Mathematics of Digital Audio: Sampling and Quantization
In acoustic engineering and digital signal processing (DSP), converting continuous analog sound waves into binary digital representations requires two discrete processes: sampling (discretizing time) and quantization (discretizing amplitude).
The sampling rate determines the highest acoustic frequency that can be represented, governed by the Nyquist-Shannon Sampling Theorem. The bit depth determines the precision of each sample measurement, dictating the dynamic range (the ratio between the loudest undistorted signal and the quietest noise floor) and signal-to-quantization-noise ratio (SQNR).
Mathematical Formulas for Bitrate, Dynamic Range & Storage
Uncompressed Bitrate (bps) = $text{Sample Rate (Hz)} times text{Bit Depth (bits)} times text{Channels}$
Nyquist Frequency ($f_{text{Nyquist}}$) = $frac{text{Sample Rate (Hz)}}{2}$
Theoretical Dynamic Range (dB) = $(6.02 times text{Bit Depth}) + 1.76text{ dB}$
File Size (Bytes) = $frac{text{Bitrate (bps)} times text{Duration (seconds)}}{8}$
File Size (MB) = $frac{text{Bitrate (bps)} times text{Duration (s)}}{8 times 1,024 times 1,024}$
Step-by-Step Worked Numerical Example
Consider a sound engineer recording a 4-minute acoustic track in a modern Digital Audio Workstation (DAW) at professional cinema quality:
- Sample Rate: 48,000 Hz (48 kHz)
- Bit Depth: 24-bit Integer
- Channels: 2 (Stereo)
- Duration: 4 minutes = 240 seconds
Step 1: Compute the uncompressed bit stream rate:
$text{Bitrate} = 48,000text{ samples/s} times 24text{ bits/sample} times 2text{ channels} = mathbf{2,304,000text{ bits per second}}; (2,304text{ kbps})$
Step 2: Determine Nyquist limit and dynamic range:
$f_{text{Nyquist}} = frac{48,000}{2} = mathbf{24,000text{ Hz}}; (24text{ kHz})$ — comfortably above the human hearing limit of ~20 kHz.
$text{Dynamic Range} = (6.02 times 24) + 1.76 = mathbf{146.24text{ dB}}$
Step 3: Calculate the uncompressed stereo WAV file size:
$text{Bytes} = frac{2,304,000text{ bps} times 240text{ s}}{8} = 69,120,000text{ bytes}$
$text{File Size (MB)} = frac{69,120,000}{1,048,576} approx mathbf{65.92text{ MB}}; (69.12text{ MB decimal})$
If converted to lossless FLAC (averaging 60% ratio), the file compresses to approximately 39.55 MB without discarding a single bit of audio information.
Why 32-Bit Floating Point is Transforming Recording
Traditional 16-bit and 24-bit digital formats use signed two's-complement integers. If a loud transient (such as an unexpected drum rimshot or vocal scream) exceeds $0text{ dBFS}$ (Full Scale), the digital converter runs out of bits and truncates the waveform into a harsh horizontal flatline. This produces irreparable clipping distortion.
Modern professional field recorders (such as Sound Devices and Zoom F-series) and DAWs record in 32-bit floating point. Under IEEE 754 float representation:
- 1 bit is allocated to the sign ($pm$)
- 8 bits represent the exponent ($2^E$, providing scale)
- 23 bits represent the fractional mantissa (providing resolution)
This architecture delivers an astronomical 1,528 dB of dynamic range. In practice, a recording that appears severely clipped and distorted at $+30text{ dBFS}$ can simply have its track fader turned down by $30text{ dB}$ in post-production to recover the completely pristine, unclipped analog waveform.
Audio Standards & Delivery Reference Matrix
| Standard / Application | Sample Rate | Bit Depth | Stereo Bitrate | Storage / Minute |
|---|---|---|---|---|
| VoIP / Whisper Speech Recognition | 16 kHz | 16-bit | 512 kbps | 3.66 MB/min |
| Red Book Audio CD | 44.1 kHz | 16-bit | 1,411.2 kbps | 10.09 MB/min |
| Broadcast Video / Cinema (AES3) | 48 kHz | 24-bit | 2,304 kbps | 16.48 MB/min |
| Pro Studio High-Res Master | 96 kHz | 24-bit | 4,608 kbps | 32.96 MB/min |
| Ultra High-End Audiophile Master | 192 kHz | 24-bit | 9,216 kbps | 65.92 MB/min |
| DAW Float Mixing Master | 48 kHz | 32-bit Float | 3,072 kbps | 21.97 MB/min |