An N-bit analogue-to-digital converter divides its reference voltage into 2ᴺ steps. The step size (LSB) is the smallest change it can see.
How to use this calculator
- Choose the resolution and enter the reference voltage.
- Choose whether you have a reading (code) or a voltage.
- Read the converted value, the LSB size and the ideal SNR.
Formula
LSB = Vref / 2^N, V = code × LSBWorked example
A 12-bit ADC with 3.3 V reference: LSB = 0.806 mV, so a reading of 2048 is 1.65 V.
Frequently asked questions
2ᴺ or 2ᴺ − 1?
Most datasheets (AVR, STM32) define code = Vin × 2ᴺ / Vref, so this calculator divides by 2ᴺ. The difference is one LSB at full scale.
Are all 12 bits useful?
Rarely. Noise usually limits the effective number of bits (ENOB) to 9–11 on microcontroller ADCs. Averaging samples helps.
Results are for learning and preliminary design. Check critical work against the relevant codes and a qualified engineer.