NewAI Part GeneratorFree to get started
FREE TOOL

ADC resolution calculator

Bit count and reference voltage set the size of one step. This ADC resolution calculator finds that LSB, converts an input voltage to its code or a code back to volts, and shows the ideal SNR, quantization noise and ENOB. Works for unipolar inputs and for bipolar converters with two’s complement or offset binary output.

Solve for
Examples
bits
V
Input range

For a ±Vref/2 input, enter Vref/2 and pick −Vref to +Vref.

V

Output code

2048

Hex
0x800
Binary
1000 0000 0000
Code center
1.65 V
Quantization error (input − center)
0 V 0.000 LSB
1 LSB
805.66 µV FSR ÷ 2^12
Full-scale range
3.3 V
Ideal SNR (6.02N + 1.76)
74.01 dB
Quantization noise (q ÷ √12)
232.6 µV rms
Dynamic range (full scale ÷ 1 LSB)
72.25 dB 20·log10(2^N)
1 LSB as a share of FSR
244.14 ppm

Ideal transfer function (ADI MT-010): first transition at ½ LSB, then every LSB. Some datasheets draw it at 1 LSB; the code can then differ by one.

Resolution by bit count, 0 to 3.3 V

BitsCodes1 LSBIdeal SNRQuantization noise
825612.89 mV49.93 dB3.72 mV
95126.445 mV55.95 dB1.86 mV
101,0243.223 mV61.97 dB930 µV
112,0481.611 mV67.99 dB465 µV
124,096805.7 µV74.01 dB233 µV
138,192402.8 µV80.03 dB116 µV
1416,384201.4 µV86.05 dB58.1 µV
1532,768100.7 µV92.07 dB29.1 µV
1665,53650.35 µV98.09 dB14.5 µV
17131,07225.18 µV104.11 dB7.27 µV
18262,14412.59 µV110.13 dB3.63 µV
19524,2886.294 µV116.15 dB1.82 µV
201,048,5763.147 µV122.17 dB908 nV
212,097,1521.574 µV128.19 dB454 nV
224,194,304786.8 nV134.21 dB227 nV
238,388,608393.4 nV140.23 dB114 nV
2416,777,216196.7 nV146.26 dB56.8 nV

How to calculate ADC resolution

Divide the input range by the number of codes: 1 LSB = Vref ÷ 2^N for a 0 to Vref input, or 2·Vref ÷ 2^N for ±Vref. A 12-bit ADC with a 3.3 V reference resolves 805.7 µV per code. The code for an input is V ÷ LSB rounded to a whole number, and a code converts back to code × LSB. The ideal SNR is 6.02N + 1.76 dB, 74.01 dB at 12 bits.

ADC resolution formula, SNR and ENOB

An N-bit converter divides its full-scale range into 2^N equal steps. ADI MT-010 places the first code transition ½ LSB above the bottom of the range and every LSB after that, so each code is centered on a whole number of LSBs.

q = FSR ÷ 2^N     code = round(Vin ÷ q)     V = code × q
q
1 LSB in volts
FSR
full-scale range: Vref (0 to Vref) or 2·Vref (±Vref)
N
resolution in bits

The code is clipped to 0 … 2^N − 1 (or −2^(N−1) … 2^(N−1) − 1 for bipolar), so the top code represents Vref − 1 LSB. Quantization adds noise of q ÷ √12 rms, which sets the best SNR an ideal converter can reach with a full-scale sine (ADI MT-001):

SNR = 6.02N + 1.76 dB     SNR(BW) = 6.02N + 1.76 + 10·log10(fs ÷ 2BW)

The ENOB formula converts a measured SINAD to effective bits the same way, corrected for a test tone below full scale (ADI MT-003):

ENOB = (SINAD − 1.76 dB + 20·log10(full scale ÷ tone amplitude)) ÷ 6.02

ADC resolution calculation examples

Example 1: a 1.234 V sensor on a 10-bit, 5 V ADC

1 LSB = 5 V ÷ 1024 = 4.883 mV. 1.234 ÷ 4.883 mV = 252.72, which rounds to code 253. That code’s center is 1.2354 V, so reading the code back gives the input to within ½ LSB (2.44 mV), before the converter’s own offset and gain errors.

Example 2: −0.5 V on an ADS1115 set to ±2.048 V

The span is 4.096 V, so 1 LSB = 4.096 V ÷ 65,536 = 62.5 µV, as in the ADS1115 datasheet. −0.5 V ÷ 62.5 µV = −8000, which the part outputs in two’s complement as 0xE0C0. In offset binary the same code would be 0x60C0.

Example 3: ENOB from a datasheet SINAD, and what oversampling buys

A 12-bit ADC is specified at 70 dB SINAD with a −1 dBFS tone. ENOB = (70 − 1.76 + 1) ÷ 6.02 = 11.50 bits, against an ideal 74.01 dB. Sampling at 1 MS/s and filtering digitally to a 10 kHz band adds 10·log10(1 MHz ÷ 20 kHz) = 16.99 dB of process gain.

ADC resolution table: LSB size by bits and reference voltage

1 LSB = Vref ÷ 2^N for a 0 to Vref input. For a ±Vref bipolar input, double these values. For any other reference, use the ADC calculator at the top of the page.

BitsCodesVref 2.5 VVref 3.3 VVref 4.096 VVref 5 VIdeal SNR
82569.766 mV12.89 mV16 mV19.53 mV49.93 dB
101,0242.441 mV3.223 mV4 mV4.883 mV61.97 dB
124,096610.4 µV805.7 µV1 mV1.221 mV74.01 dB
1416,384152.6 µV201.4 µV250 µV305.2 µV86.05 dB
1665,53638.15 µV50.35 µV62.5 µV76.29 µV98.09 dB
18262,1449.537 µV12.59 µV15.63 µV19.07 µV110.13 dB
201,048,5762.384 µV3.147 µV3.906 µV4.768 µV122.17 dB
2416,777,216149 nV196.7 nV244.1 nV298 nV146.26 dB

SINAD to ENOB table

Effective bits for a SINAD measured with a full-scale tone. Each 6.02 dB is one bit. For a tone below full scale, use the ENOB calculator on the SNR and ENOB tab.

SINADENOB
50 dB8.01 bits
56 dB9.01 bits
62 dB10.01 bits
68 dB11.00 bits
74 dB12.00 bits
80 dB13.00 bits
86 dB13.99 bits
92 dB14.99 bits
98 dB15.98 bits
110 dB17.98 bits

What limits a real ADC

Resolution is not accuracy. The reference sets the scale of every code, so a reference that is 0.1 % off moves a 12-bit full-scale reading by 4.1 LSB; use a dedicated reference rather than a noisy supply when the absolute value matters. Offset, gain error and INL add more, and thermal noise, clock jitter and distortion keep every real converter’s ENOB below its nominal resolution, so read the SINAD or ENOB line of the datasheet. Keep the input inside the range, scale it with a divider or amplifier so the signal uses most of the codes, and put an anti-alias filter in front: anything above fs/2 folds back into the band and no amount of resolution removes it.

Glossary

LSB (least significant bit)
The input change that moves the code by one: full-scale range ÷ 2^N. Also called the quantization step q.
Full-scale range (FSR)
The analog span the codes cover: Vref for a 0 to Vref input, 2·Vref for ±Vref.
Code center
The input voltage a code represents exactly, code × LSB; inputs within ½ LSB of it give that code.
Dynamic range
Full scale over one LSB, 20·log10(2^N): about 6.02 dB per bit, or 72.2 dB at 12 bits.
SINAD
Signal to noise and distortion ratio: the rms signal over everything else in the spectrum, harmonics included.
ENOB
Effective number of bits: the resolution of an ideal ADC with the same SINAD.
Two’s complement
Signed binary where negative codes have the top bit set; the usual output format of bipolar ADCs.

Related guides

Frequently asked questions

What is ADC resolution?

Analog-to-digital converter resolution is the number of bits in the output code, and the voltage step that follows from it: 1 LSB = full-scale range ÷ 2^N. A 12-bit ADC with a 3.3 V reference has 4,096 codes and resolves 805.7 µV per code.

What is the resolution of a 12-bit ADC with a 3.3 V reference?

One LSB is 3.3 V ÷ 4096 = 805.7 µV. The top code, 4095, represents 3.2992 V, one LSB below the reference.

How do I convert an ADC value to voltage?

Multiply the code by 1 LSB: V = code × Vref ÷ 2^N for a 0 to Vref input. Code 2048 on a 12-bit ADC with a 3.3 V reference reads 1.65 V. The Code to voltage tab is an ADC value to voltage calculator for unipolar and bipolar codes.

Should I divide by 4095 or 4096 to convert ADC counts to volts?

Divide by 4096 (2^N) for a 12-bit converter: that is the LSB size, and the all-ones code sits one LSB below Vref (ADI MT-010). Dividing by 4095 instead makes the top code read exactly Vref; the difference is under 1 LSB. TI SLAA013 measures full scale between the first and last code centers, which is 2^N − 1 steps of the same LSB.

Why is the ideal SNR of an ADC 6.02N + 1.76 dB?

Quantization error is close to a sawtooth one LSB high, so its rms value is q/√12. A full-scale sine has an rms value of q·2^N/(2√2). Their ratio is 2^N·√1.5, which is 6.02N + 1.76 dB: 74.01 dB for 12 bits and 98.09 dB for 16 bits (ADI MT-001).

What is ENOB and how do I calculate it?

The effective number of bits is the resolution of an ideal converter with the same SINAD: ENOB = (SINAD − 1.76) ÷ 6.02 for a full-scale tone. If the test tone was below full scale, add the difference in dB first (ADI MT-003). A 12-bit ADC with 70 dB SINAD at −1 dBFS has an ENOB of 11.50 bits.

What is the quantization noise of an ADC?

q ÷ √12 rms, where q is one LSB, spread over dc to fs/2. A 12-bit converter with a 3.3 V reference has 233 µV rms of quantization noise.

Does oversampling increase ADC resolution?

It can increase SNR in a narrower band. If noise outside the signal bandwidth BW is removed with a digital filter, SNR rises by 10·log10(fs ÷ 2BW) (ADI MT-001): about 6 dB, or one bit, for every 4× of oversampling. Sampling at 1 MS/s for a 10 kHz signal gives 16.99 dB.

How do I read a bipolar ADC code?

Many bipolar ADCs, such as the TI ADS1115, output two’s complement: positive full scale is 0x7FFF, zero is 0x0000 and −1 LSB is 0xFFFF for 16 bits (ADS1115 Table 7-3). Others use offset binary, which is the signed code plus 2^(N−1), so zero is 0x8000. Pick the format in the calculator, and enter Vref as the positive limit of a ±Vref range.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.

Get for Mac

Free to start. No card required.