Free Online Engineering Tools
Home / ADC Calculator

ADC Calculator

Calculate ADC resolution, LSB voltage, quantization steps, and dynamic range for analog-to-digital converters.

Input Parameters Active Config
ADC Resolution (N bits)
bits
Reference Voltage (Vref)
V
Input Voltage (Vin)
V
Digital Output (Decimal)
(0 - 1023)
Digital Output (Binary)
(10-bit)
Formulas
Resolution (Step Size) = Vref2N − 1
Digital Output (Decimal) = VinVref × (2N − 1)
Input Voltage = Digital Output2N − 1 × Vref
Calculation Results
Resolution (Step Size)
4.8876 mV
(Voltage per LSB)
Max Digital Output
1023
(210 − 1)
Digital Output (Decimal)
512
(Approx.)
Digital Output (Binary)
1000000000
(10-bit)
Quantization Error
±2.4438 mV
(±0.5 LSB)
Input Voltage (Calculated)
2.5024 V
(From Digital Output)
ADC Transfer Characteristic click chart to trace input voltages
Ideal Transfer Quantized Output
Vin: 2.50 V | Dout: 512
Summary
ADC Type
Ideal Conversion
Total Levels
1,024 codes
Voltage Range
0V to 5V
LSB Size
4.8876 mV
Accuracy
±0.5 LSB
💡
Note An analog-to-digital converter (ADC) converts a continuous, infinite analog voltage input into an approximate discrete digital value. The Resolution (Step Size) determines the precision of the conversion and is defined as the voltage difference per Least Significant Bit (LSB). The quantization error represents the gap between the measured analog input and quantized digital equivalent.

ADC Calculator — Complete Guide to Resolution, LSB, SNR & Quantization

This ADC calculator computes every key parameter of an analog-to-digital converter — LSB step size, digital output code (decimal, binary, hex), quantization error, SNR, ENOB, and dynamic range — for any bit width from 4 to 32 bits and any reference voltage. A live transfer characteristic curve updates in real time as you adjust parameters, making it easy to visualise how resolution, range, and error trade off in your design.

Key ADC Formulas

ParameterFormulaUnit
LSB step sizeLSB = Vref / (2N − 1)V (or mV)
Quantization levels2N
Digital output codeDout = round(Vin / LSB)integer
Quantization error±0.5 × LSB (max)V
SNR (ideal)6.02 × N + 1.76dB
ENOB(SINAD − 1.76) / 6.02bits
Dynamic range20 × log10(2N − 1)dB

ADC Bit Resolution Comparison

Bits (N)LevelsLSB @ 3.3 VLSB @ 5 VIdeal SNRTypical Use
825612.94 mV19.61 mV49.9 dBAudio, basic sensors
101 0243.23 mV4.89 mV62.0 dBArduino, general MCU
124 0960.806 mV1.22 mV74.0 dBSTM32, ESP32, precision
1416 3840.201 mV0.305 mV86.1 dBInstrumentation
1665 53650.4 µV76.3 µV98.1 dBAudio DAQ, medical
2416.7M0.197 µV0.298 µV146.2 dBPrecision measurement

Worked Examples

🔢 Example 1 — Arduino 10-bit ADC, 5 V Ref, Input = 2.5 V
GivenN = 10 bits, Vref = 5.0 V, Vin = 2.5 V
Step 1LSB = 5.0 / (1024 − 1) = 5.0 / 1023 = 4.888 mV
Step 2Dout = round(2.5 / 0.004888) = round(511.5) = 512
Step 3Binary: 10 0000 0000  |  Hex: 0x200
Step 4Q error = 2.5 − (512 × 0.004888) = 2.5 − 2.5027 = −2.7 mV (within ±0.5 LSB)
ResultDout = 512 (0x200) | LSB = 4.888 mV | SNR = 62.0 dB
⚡ Example 2 — STM32 12-bit ADC, 3.3 V Ref, Input = 1.65 V
GivenN = 12 bits, Vref = 3.3 V, Vin = 1.65 V
Step 1LSB = 3.3 / 4095 = 0.8059 mV
Step 2Dout = round(1.65 / 0.0008059) = round(2047.5) = 2048
Step 3Binary: 1000 0000 0000  |  Hex: 0x800
Step 4SNR = 6.02 × 12 + 1.76 = 74.0 dB  |  Dynamic range = 72.2 dB
ResultDout = 2048 (0x800) | LSB = 0.806 mV | Exactly mid-scale as expected

Common ADC Types & Architectures

TypeSpeedResolutionTypical Use
FlashVery fast (> 1 GSPS)4–8 bitsOscilloscopes, radar
SARMedium (10 kSPS–10 MSPS)8–18 bitsMCU built-in, DAQ
Delta-Sigma (ΔΣ)Slow (10–10k SPS)16–32 bitsPrecision measurement, audio
PipelineFast (10–500 MSPS)10–16 bitsCommunications, video
Dual-SlopeVery slow12–22 bitsDMM, integrating meters

Practical Design Considerations

Frequently Asked Questions

What does 12-bit resolution mean?

It means the ADC can distinguish 4096 (212) voltage levels. With 3.3 V Vref, each step is ~0.8 mV — enough for most sensor and control applications.

How do I improve ADC accuracy?

Use a clean Vref, minimize noise on the analog input, add an anti-aliasing filter, oversample and average, and calibrate offset and gain errors.

What is the Nyquist frequency?

Half the sampling rate: fNyquist = fsample / 2. Signals above this frequency alias into the baseband. Always filter before sampling.

Related Calculators