Skip to content

ADC Resolution Calculator

Calculate ADC and DAC resolution: LSB size, voltage to code and code to voltage, quantization error, ideal SNR, ENOB from SINAD and a Nyquist aliasing check.

Calculator Details

LSB size (resolution):805.66 µVSee results ↓

Number of bits n of the converter

0 V for a unipolar converter, or the negative end of a bipolar range

The reference or top of the input range

Range ÷ 2ⁿ (most ADC datasheets) or range ÷ (2ⁿ − 1) (top code exactly at full scale, common for DACs)

Truncating (code changes at whole LSBs) or rounding (½-LSB offset, code changes at half LSBs)

Voltage to convert to a code

Output code to convert to a voltage (DAC or reading back an ADC)

Signal-to-noise-and-distortion from the datasheet, for the effective number of bits; 0 to skip

Samples per second

Highest frequency in the signal, for the Nyquist check

Your Results

LSB size (resolution): 805.66 µV

LSB size (resolution)

805.66 µV

12 bits · 4,096 codes · 0.02441% of range

Code for 1.65 V

2048

0x800 · error 0 V

Voltage of code 2048

1.65 V

Top code reads 3.29919 V

Ideal SNR

74.008 dB

Quantisation noise 233 µV rms

Effective bits (ENOB)

11.33

From SINAD 70 dB

Nyquist frequency

50 kHz

Your signal is below it

A 12-bit converter has 4,096 codes and an LSB of 0.80566 mV; your input reads as code 2048 (0x800), and the ideal SNR is 74.008 dB.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Resolution by bit depth for your range
BitsCodesLSBIdeal SNR (dB)
825612.89 mV49.93
101,0243.223 mV61.97
12 (you)4,096805.7 µV74.01
1416,384201.4 µV86.05
1665,53650.35 µV98.09
18262,14412.59 µV110.1
201,048,5763.147 µV122.2
2416,777,216196.7 nV146.3

How This Calculator Works

How It’s Calculated

LSB = range ÷ 2ⁿ (or 2ⁿ − 1) · code = floor((V − Vlow) ÷ LSB) · V = Vlow + code × LSB
SNRideal = 6.02n + 1.76 dB · ENOB = (SINAD − 1.76) ÷ 6.02 · noise = LSB ÷ √12

Your calculation: LSB = (3.3 − 0) V ÷ 2^12 = 4,096 = 805.664 µV. 1.65 V is 2,048 LSB above the bottom of the range, so the truncated code is 2048 (100000000000). The ideal SNR is 6.0206 × 12 + 1.7609 = 74.008 dB, and a SINAD of 70 dB is worth (70 − 1.7609) ÷ 6.0206 = 11.33 effective bits.

The 6.02n + 1.76 dB figure assumes a full-scale sine wave and quantisation noise only. Real converters add thermal noise, distortion and clock jitter, which is why the measured SINAD, and so the ENOB, is lower.

Frequently Asked Questions

How do I calculate ADC resolution?

Divide the input range by the number of codes, 2ⁿ. A 12-bit converter on 0 to 3.3 V has 4,096 codes, so one LSB is 3.3 ÷ 4,096 = 805.66 µV. That is the smallest change in voltage the converter can tell apart.

Should I divide by 2ⁿ or 2ⁿ − 1?

Most ADC datasheets use 2ⁿ: the codes step every LSB and full scale sits one LSB above the top code. Dividing by 2ⁿ − 1 puts the top code exactly at the reference, which some DAC datasheets and microcontroller examples use. For a 10-bit converter on 5 V they give 4.8828 mV and 4.8876 mV. Check your part's transfer function; the calculator offers both.

How do I convert an ADC reading to voltage?

Voltage = bottom of the range + code × LSB. On a 12-bit, 3.3 V converter, code 2,048 is 2,048 × 805.66 µV = 1.65 V. If a divider scales the input, multiply by the divider ratio afterwards.

What is the SNR of an ideal ADC?

SNR = 6.02n + 1.76 dB for a full-scale sine wave, from the quantisation noise of LSB ÷ √12. A 12-bit converter can reach 74.01 dB and a 16-bit one 98.09 dB. Real converters fall short because of thermal noise, distortion and clock jitter.

What is ENOB?

The effective number of bits: the resolution an ideal converter would need to match a real one's measured SINAD. ENOB = (SINAD − 1.76) ÷ 6.02. A 12-bit ADC with a SINAD of 70 dB has 11.33 effective bits.

What is quantisation error?

The difference between the input voltage and the voltage the code stands for. A truncating converter's error runs from 0 to 1 LSB; one with a ½-LSB offset rounds instead, and its error runs from −½ to +½ LSB. Either way the error behaves like noise of LSB ÷ √12 rms, 232.6 µV for a 12-bit, 3.3 V converter.

What sampling rate do I need?

More than twice the highest frequency in the signal (the Nyquist rate). Anything above half the sampling rate folds back as a false lower frequency: at 100 kHz sampling, a 70 kHz tone shows up at 30 kHz. Put an anti-aliasing low-pass filter before the ADC; the RC filter calculator helps size a simple one.

Do more bits always mean a more accurate reading?

No. Resolution is how finely the converter divides its range; accuracy also depends on the reference voltage tolerance, offset and gain errors, linearity and noise. A 16-bit ADC with a ±1% reference is still only accurate to about 1%. Use a precise reference and calibrate offset and gain for accurate measurements.

Uses the ideal-converter relations in Analog Devices tutorials MT-001 and MT-003 and the terminology of IEEE Std 1241-2023, with labelled choices for the LSB (range ÷ 2ⁿ or ÷ (2ⁿ − 1)) and for truncating or rounding codes. Codes are straight (offset) binary from the bottom of the range. It leaves out reference tolerance and drift, offset, gain and linearity errors (INL, DNL), thermal noise, clock jitter, input impedance, two's-complement output formats, oversampling and dithering gains, and delta-sigma noise shaping. For the signal-to-noise ratio of a measured signal, see the signal-to-noise calculator; for scaling an input with resistors, the voltage divider calculator.

ADC Resolution Calculator: LSB, Code to Voltage, SNR and ENOB

By FindMySum · Last reviewed

Every analog-to-digital converter chops its input range into a fixed number of steps. How big each step is, which code a voltage becomes, how much noise the chopping adds and how fast you must sample are the first questions in any measurement design. This ADC resolution calculator answers them for any bit depth and input range, and it works backwards for a DAC or for reading a code back as a voltage.

LSB size

An n-bit converter has 2ⁿ codes, from 0 to 2ⁿ − 1. The size of one step, the least significant bit (LSB), is

LSB = (Vhigh − Vlow) ÷ 2ⁿ

The calculator opens with a 12-bit converter on a 0 to 3.3 V range, the set-up of many microcontrollers. It has 4,096 codes and an LSB of 3.3 ÷ 4,096 = 805.7 µV, which is 0.024% of the range.

Two conventions

Most ADC datasheets divide by 2ⁿ. The code changes at every whole LSB, and the top code, 4,095, stands for 3.2992 V; the reference itself is one LSB above the highest code. Some DAC datasheets and microcontroller examples divide by 2ⁿ − 1 instead, so that the top code lands exactly on the reference. The difference is one part in 2ⁿ, small at 12 bits but noticeable at 8. Check the transfer function in your converter's datasheet and pick the matching option; the calculator labels both.

Voltage to code and code to voltage

With truncating codes, the code for a voltage V is

code = floor((V − Vlow) ÷ LSB)

and 1.65 V on the default converter is exactly 2,048 LSB, so it reads as code 2,048 (0x800 in hexadecimal). Many converters add a half-LSB offset so that codes change halfway between steps, which rounds instead of truncating; the calculator offers that too. A voltage outside the range clips to code 0 or the top code.

Going the other way, a code stands for Vlow + code × LSB. This is what a DAC outputs, and what you calculate when converting an ADC reading back to volts.

Quantisation error and noise

The difference between the input and the voltage its code stands for is the quantisation error. With truncation it runs from 0 to 1 LSB, with rounding from −½ to +½ LSB. For a signal that moves across many codes the error behaves like random noise with an rms value of

LSB ÷ √12

which is 232.6 µV for the default converter.

Ideal signal-to-noise ratio

Compare a full-scale sine wave with that noise and you get the famous formula from Analog Devices' tutorial MT-001:

SNR = 6.02n + 1.76 dB

Each extra bit halves the step size and adds 6.02 dB. The 1.76 dB comes from the ratio of a sine wave's rms value to its peak. A 12-bit converter can reach 74.0 dB, a 16-bit one 98.1 dB and a 24-bit one 146.3 dB, though no real 24-bit converter gets close to that.

Effective number of bits

Real converters add thermal noise, distortion and clock jitter to the quantisation noise. Datasheets report the result as SINAD, the signal-to-noise-and-distortion ratio. Turning the SNR formula around gives the effective number of bits, defined in tutorial MT-003 and the IEEE 1241 test standard:

ENOB = (SINAD − 1.76) ÷ 6.02

A 12-bit converter with a SINAD of 70 dB performs like an ideal 11.3-bit converter. ENOB, not the headline bit count, tells you how fine a signal you can really resolve.

Sampling and aliasing

A converter only sees its input at the sampling instants. To capture a frequency without ambiguity, it must sample more than twice as fast, so the highest frequency it can represent is half the sampling rate, the Nyquist frequency. A higher frequency does not vanish: it folds back and looks like a lower one. At 100 kHz sampling, a 70 kHz tone appears at 30 kHz, indistinguishable from a real 30 kHz signal. The calculator flags this and shows the alias. A low-pass anti-aliasing filter in front of the converter prevents it.

The table

The table lists the codes, LSB and ideal SNR for common bit depths on your input range, so you can see what moving from 12 to 16 bits buys. Your bit depth is marked.

What the calculator leaves out

It describes an ideal converter with straight binary codes. Reference tolerance and drift, offset and gain errors, differential and integral non-linearity, input impedance and settling, two's-complement output, oversampling gains and the noise shaping of delta-sigma converters all need the datasheet. For the noise of a measured signal, use the signal-to-noise calculator.

More questions

What is the difference between an ADC and a DAC?

An analog-to-digital converter (ADC) measures a voltage and outputs a number; a digital-to-analog converter (DAC) takes a number and outputs a voltage. Both divide their range into 2ⁿ steps, so the same LSB, code and voltage arithmetic applies to both.

How do I read a sensor that outputs more than the ADC's reference?

Scale it down with a resistor divider so the largest sensor voltage stays just below the reference, then multiply the converted voltage by the inverse of the divider ratio. Keep the divider's resistance low enough for the ADC's input to settle within the sampling time.

What is a bipolar ADC range?

A range that runs below zero, such as ±10 V. The codes still count up from the bottom of the range, so with straight (offset) binary coding the middle code stands for 0 V. Some converters output two's complement instead, where 0 V is code 0 and negative voltages have the top bit set.

What is oversampling?

Sampling faster than needed and averaging. If the noise is random and at least an LSB in size, averaging four samples gains about one bit of resolution, because noise falls by the square root of the number of samples. Each extra bit needs four times the samples.

Why is my microcontroller ADC noisier than its bit count suggests?

Digital switching on the same chip, a noisy supply used as the reference, a high source resistance and fast sampling all add noise. A separate reference, a small capacitor at the input pin, slower sampling and averaging usually win back a bit or two.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy