ADC Quantization Error Calculator

Calculate the LSB size, maximum quantization error (±½ LSB), and RMS quantization error (LSB/√12) for an N-bit ADC with a given full-scale voltage range.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Enter the ADC resolution in bits (typically 8–24).
  2. Enter the full-scale voltage range (Vref for single-ended, 2·Vref for bipolar).
  3. The tool returns LSB size (smallest detectable change), peak quantization error (±½ LSB), and RMS error for uniform distribution assumption.
  4. Divide the LSB by your sensor's sensitivity (for example 10 mV per °C) to see the error in real units.
Input
V
Presets
Error
LSB
—
Max err
—
RMS err
—
Codes
—

Worked Example

An Arduino Uno (10-bit, 5 V reference) reads a temperature sensor that outputs 10 mV per °C. LSB = 5 ÷ 1024 = 4.88 mV, which is 0.49 °C per step. Peak quantization error is ±½ LSB = ±2.44 mV = ±0.24 °C, and the RMS error is 4.88 ÷ √12 = 1.41 mV, about 0.14 °C.

Improving it: the internal 1.1 V reference gives 1.1 ÷ 1024 = 1.07 mV steps (0.11 °C), as long as the signal stays below 1.1 V (110 °C here).

The common mistake: treating resolution as accuracy. The ±0.24 °C is only the rounding. A "5 V" USB supply that is really 4.9 V shifts every reading by 2%, and the sensor's own error is often ±1 °C or more; both swamp the quantization error.

Show Work

Enter values to see the error calculation.

Formulas

LSB Size
LSB = Vfs / 2N
Quantization step.
Peak Error
εmax = ±½ LSB
Ideal rounding (mid-tread).
RMS Error
σq = LSB / √12
Uniform distribution over ±½ LSB.
Code Count
2N
Unique output codes.
Dithering
+ white noise < ½ LSB
Randomizes pattern for low-level fidelity.
Gain Error
Slope ≠ 1
Separate systematic error, not quantization.

History of Quantization Error Analysis

The statistical treatment of quantization error traces to Bernard Widrow's 1956 MIT thesis, which proved that for \"busy\" signals (spanning many LSBs) the error between true input and quantized output behaves as white noise uniformly distributed over ±½ LSB. This gave engineers the tools to analyze ADCs as linear systems with an additive noise source — a crucial simplification that lets all the signal-processing techniques for analog noise carry over to digital.

Dithering — intentionally adding small random noise before quantization — was developed for digital audio by Stanley Lipshitz and John Vanderkooy at the University of Waterloo in the 1980s. They showed that triangular-PDF dither of 2 LSB peak-to-peak fully decouples quantization error from the signal, converting pattern noise into true white noise that can be averaged or filtered out. Dither is now standard practice when audio is reduced to a lower bit depth, such as mastering to 16 bits for CD.

Modern high-resolution ADCs push the quantization error floor below thermal and Johnson noise. A 24-bit ADC with ±2 V range has LSB = 238 nV — already below the thermal noise of a 10 kΩ resistor at room temperature (about 1.3 µV RMS in a 10 kHz bandwidth). Beyond that point, extra bits mostly digitize the analog noise more finely.

About This Calculator

Enter resolution (bits) and full-scale voltage. The tool computes LSB size, peak quantization error, RMS quantization error, and total code count. Useful for calibration verification (what's the minimum detectable input change?), noise-budget planning, and cross-checking ADC datasheet specs.

This calculator computes ideal quantization error only — real ADCs add INL (integral nonlinearity), DNL (differential nonlinearity, missed codes), offset, gain, and temperature drift errors that combine into total unadjusted error (TUE). For full accuracy analysis, use the datasheet's TUE spec alongside this calculator's quantization baseline. Everything runs client-side.

Frequently Asked Questions

What is quantization error?

The difference between the true analog input and the discrete value the ADC outputs. Each ADC code represents a range of input voltages (one LSB wide); the code is the nearest "step" to the true input. Error is at most ±½ LSB when using optimal rounding (mid-tread quantization).

Mid-tread vs. mid-rise quantization?

Mid-tread: code 0 corresponds to input 0 (zero is a valid output code). Peak error is ±½ LSB. Standard for most signed and unsigned ADCs. Mid-rise: no code exactly represents zero — transitions happen at ±½ LSB, ±1½ LSB, etc. Used in some telecom codecs. Both have identical RMS error.

Why is RMS error LSB/√12?

Assuming quantization error is uniformly distributed over ±½ LSB (valid for busy input signals), the variance is LSB²/12 (from the integral of x² over [−½, +½]). RMS = √variance = LSB/√12 ≈ 0.289 LSB. This gives the familiar 6.02·N + 1.76 dB SNR formula.

Does dithering reduce quantization error?

Not the peak error — dithering adds small random noise to the input before quantization. It doesn't reduce the error of a single sample, but it randomizes the error pattern, which lets averaging recover sub-LSB information. Critical for low-level signals that would otherwise produce repetitive (correlated) quantization pattern noise.

Is quantization error the same as noise?

Approximately, for busy signals. The difference: noise is random and uncorrelated with the signal; quantization error is deterministic (given the signal, error is fully predictable). For many signals, quantization error looks and behaves statistically like white noise — which is why the same math applies to both.

How do I use the ADC Quantization Error Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

MCU ADC Accuracy Check

Arduino Uno 10-bit ADC, 5 V range: LSB = 4.88 mV. Peak quantization error ±2.44 mV. If your whole sensor signal is only 10 mV, quantization alone limits accuracy to about ±25%.

ESP32 Sensor Interface

12-bit ADC, 3.3 V range: LSB = 806 µV, peak error ±403 µV, RMS ~233 µV. Fine for battery monitor; marginal for thermocouples.

Audio 16-bit

±2 V range, 16 bits: LSB = 61 µV, peak error ±31 µV, RMS 18 µV. That puts quantization noise about 98 dB below full scale: inaudible in normal listening, especially once dither is added.

Precision Σ-Δ

24-bit, 5 V range: LSB = 298 nV, peak error ±149 nV. Approaching fundamental thermal-noise limits; real ADC performance dominated by front-end amp noise.

Oscilloscope 8-bit

8-bit flash ADC, 2 V range: LSB = 7.8 mV, peak error ±3.9 mV. Adequate for waveform shape display; insufficient for precision measurement.

Last updated: