In digital audio production, few technical specifications generate more confusion than audio bit depth. Creators see options like 16-bit PCM, 24-bit PCM, and 32-bit float inside USB interfaces, portable field recorders, and desktop DAWs—yet many still confuse bit depth with MP3 bitrate or assume 24-bit automatically makes a finished song sound louder.

While sample rate governs the horizontal time axis and upper frequency ceiling of a recording, bit depth defines the vertical amplitude precision of every single sample. In this engineering guide, we unpack the exact 6.02 dB-per-bit dynamic range math, explain how quantization noise and TPDF dithering work, and show why the browser's Web Audio API processes everything in 32-bit float before writing a clean 16-bit PCM WAV or MP3 export in OnlineAudioEdit.

Binary Quantization: Turning Continuous Voltage Into Discrete Numbers

When a microphone captures sound, it outputs an unbroken analog voltage. An analog-to-digital converter (ADC) slices that waveform along two axes: time (sample rate) and amplitude (bit depth). Because computers store numbers in binary, each additional bit doubles the count of discrete amplitude rungs available between the loudest positive peak (+1.0) and loudest negative trough (-1.0):

  • 8-bit PCM: 28 = 256 amplitude steps (audible gritty hiss, used only in retro consoles and vintage lo-fi samplers).
  • 16-bit PCM: 216 = 65,536 discrete amplitude steps (the Red Book Audio CD standard).
  • 24-bit PCM: 224 = 16,777,216 discrete amplitude steps (modern studio tracking standard).
  • 32-bit Floating Point (IEEE 754): 1 sign bit, 8 exponent bits, and 23 stored mantissa bits (24 bits of effective precision with a dynamically scaling exponent).

Every time a continuous voltage lands between two discrete binary steps, the converter must round it to the nearest rung. The tiny mathematical difference between the true analog voltage and the rounded digital value is called quantization error, and its cumulative energy forms the system's baseline digital noise floor.

The 6.02 dB/Bit Dynamic Range Formula

In digital signal processing, doubling the number of amplitude steps cuts quantization error in half—which lowers the quantization noise floor by 6.02 dB (derived from 20 × log10(2)). For a full-scale sine wave, the theoretical signal-to-quantization-noise ratio (SQNR) follows the classic rule DR ≈ 6.02 × N + 1.76 dB, though engineers typically use the clean 6.02 dB per bit shorthand:

Bit Depth Format Amplitude Resolution Theoretical Dynamic Range Stereo 44.1 kHz WAV / Min Primary Production Role
16-bit Fixed PCM 65,536 integer steps ~96.3 dB (noise floor ~-96 dBFS) ~10.1 MB / min CD mastering, streaming distribution, video timelines, OnlineAudioEdit WAV export.
24-bit Fixed PCM 16,777,216 integer steps ~144.5 dB (noise floor ~-144 dBFS) ~15.1 MB / min Studio vocal/instrument recording, archival masters, generous recording headroom.
32-bit Float (IEEE 754) 24-bit mantissa + 8-bit exponent >1,528 dB (up to +770 dBFS headroom) ~20.2 MB / min Web Audio API internal DSP, DAW mix buses, dual-ADC clip-resistant field recorders.

Notice an important physical reality: even the finest studio microphones and converter circuits hit an analog thermal noise limit around 120–130 dB of real-world dynamic range. That means 24-bit's 144 dB digital floor sits well below physical circuit self-noise, giving you ample room to record conservatively at -18 dBFS to -12 dBFS average levels without worrying that quiet whispers will sink into quantization fuzz.

Quantization Noise vs. Truncation Distortion (And Why Dithering Exists)

When a signal is loud and spectrally dense—like a rock chorus or upbeat podcast intro—rounding errors behave randomly across samples and blend invisibly into the audio. Problems appear when a signal becomes very quiet, such as a solo piano decay, a slow fade-out, or soft room ambience, and you reduce a 24-bit or 32-bit mix down to a 16-bit file.

If software simply truncates (chops off) the lowest bits, the rounding error stops behaving like smooth random noise and starts mirroring the waveform itself. This creates correlated quantization distortion—audible granular buzz and metallic harmonics right as a sound fades into silence.

The mathematical solution is dithering. Before quantizing down to 16-bit, a mastering processor adds a microscopic layer of uncorrelated random noise—most commonly shaped with a Triangular Probability Density Function (TPDF) at roughly 1 to 2 least significant bits (LSB). Paradoxically, adding this tiny noise decorrelates the rounding error completely, eliminating harsh harmonic distortion and leaving behind a completely smooth, steady hiss resting peacefully around -93 to -96 dBFS. Advanced noise-shaped dithers shift part of that faint floor up toward 16–20 kHz where human ears are far less sensitive. One golden rule: only apply dither once at the final bit-depth reduction to 16-bit, never repeatedly across intermediate edits.

Why 32-Bit Float Headroom Changed Audio Editing

In fixed-point 16-bit or 24-bit integer audio, 0.0 dBFS is an absolute brick wall. Every bit is already set to maximum; if an equalizer boost or multitrack sum pushes a sample to +3.0 dBFS, the peak is flat-topped into harsh square-wave clipping that cannot be undone cleanly (read our guide on handling clipped and distorted audio).

32-bit floating-point audio works like scientific notation: 24 bits preserve the detailed shape of the waveform (the mantissa), while 8 exponent bits slide the decimal point up or down dynamically. As a result, a 32-bit float bus can represent signals hundreds of decibels above 0 dBFS with zero internal clipping. If stacking three tracks or boosting a high-shelf filter pushes your internal mix bus to +8 dBFS, pulling the gain slider back down by 8 dB restores the original peak waveform intact.

Critical Hardware Reality Check: A 32-bit float field recorder eliminates digital ADC clipping, not physical acoustics. If a shout or snare drum physically overloads a microphone capsule's maximum SPL rating or saturates an analog preamp before conversion, 32-bit float faithfully records that analog distortion—it cannot un-clip a maxed-out mic diaphragm.

How Web Audio API Processes 32-Bit Float Before 16-Bit WAV or MP3 Export

Every modern browser—Chrome, Edge, Safari, and Firefox—implements the W3C Web Audio API exclusively in 32-bit floating-point PCM (Float32Array). Whether you drop a 16-bit WAV, a 24-bit studio WAV, a lossless FLAC, or a 192 kbps MP3 into OnlineAudioEdit, the browser decodes every channel into 32-bit float memory buffers first.

This architecture delivers huge practical benefits during editing:

  • Zero Internal Clipping Across Effects Chains: Running Studio Enhance (4 kHz +4 dB high-shelf, 4:1 compressor at -18 dB, 1.25x makeup gain), stacking multiple voice and music tracks, or running 2048-point STFT AI Noise Reduction executes cleanly in 32-bit float without rounding degradation between steps.
  • Clean Fixed-Point Export Requires Final Headroom Control: Because consumer playback devices and standard delivery containers expect fixed-point boundaries, OnlineAudioEdit's Export Mix drawer quantizes your finished 32-bit float mix to 16-bit PCM WAV (clamping values to [-1.0, +1.0]) or encodes CBR MP3 (128, 192, or 320 kbps) locally via LameJS. Any sample still exceeding 0 dBFS at the moment of export will hard-clip!
OnlineAudioEdit Effects and AI panel with Master Volume slider, Studio Enhance, and Export Mix drawer set to MP3 192 kbps
Inside OnlineAudioEdit, effects, Master Volume, and multitrack mixing run in 32-bit float RAM before Export Mix renders your final 16-bit PCM WAV or 128/192/320 kbps MP3.

Step-by-Step: Preserving Dynamic Resolution in OnlineAudioEdit

  1. Import your highest-quality source: Load your original 24-bit or 16-bit WAV into the Main Studio rather than a re-compressed MP3 whenever available.
  2. Edit and clean in 32-bit float: Trim silence in Select mode, run AI Noise Reduce for steady hiss, and click Studio Enhance for balanced presence and 4:1 compression.
  3. Protect 0 dBFS before export: Keep track Vol and Master Volume out of overload. Click Normalize (-0.17 dBFS) in Main Studio, or use Audio Enhancement Suite Volume Booster with its Anti-Clipping Limiter (-1.5 dB) or Auto-Normalize (-1 dB).
  4. Choose your export format: Export WAV (.wav) — Lossless (16-bit PCM) for video timelines and archiving, or MP3 (.mp3) at 192 kbps or 320 kbps for streaming (Audio Formats Guide; WAV Editing Guide).

Common Bit Depth Mistakes and Troubleshooting

  • Upscaling MP3 to 24-Bit WAV: Raising bit depth cannot restore detail discarded by lossy compression—it only bloats file size.
  • Pushing Master Volume Past 100% Without Limiting: Internal 32-bit float holds overs safely, but fixed-point 16-bit WAV/MP3 export clips peaks above 0 dBFS immediately.
  • Recording 16-Bit Speech Too Quietly (-30 dBFS): You waste the top 5 bits of resolution. Switch to 24-bit and check levels first in Microphone Test.
  • Confusing Bit Depth with Bitrate: Bit depth defines PCM amplitude precision; bitrate (128/192/320 kbps) defines compressed MP3 data rate (WAV vs MP3).

Frequently Asked Questions

Can human ears tell the difference between 16-bit and 24-bit masters?

In typical listening rooms, no—16-bit already offers 96 dB of dynamic range, wider than the gap between ambient room noise and safe listening levels. During recording and editing, however, 24-bit and 32-bit float are vital for headroom.

Can 32-bit floating-point audio ever clip?

Internal 32-bit float DSP exceeds 1,500 dB of range and won't lop off overs above 0 dBFS. However, microphone capsules and analog preamps can still distort before conversion, and exporting above 0 dBFS directly to fixed-point 16-bit WAV or MP3 will clip immediately.

Why does dithering matter when reducing 24-bit to 16-bit?

Truncating the bottom 8 bits creates correlated rounding distortion during quiet fades. TPDF dither adds microscopic uncorrelated noise around -93 to -96 dBFS, converting gritty harmonic buzz into a smooth, imperceptible floor.

Does bit depth apply to MP3 files?

MP3 is a lossy codec measured in bitrate (128, 192, or 320 kbps), not PCM bit depth. Inside Web Audio API, decoded MP3s are expanded into 32-bit float samples for clean editing.

DM

Written by David Miller

Senior Audio Editor

Senior Audio Editor with over a decade of hands-on experience in digital audio mastering, waveform editing, and audio format optimization. David leads OnlineAudioEdit's editorial tutorials on MP3/WAV manipulation, cutting, trimming, and lossless multi-track workflows. Discover more about our editorial team on our About Us page.