ADC Calculator (Resolution, LSB & Digital Code)

Find an ADC's resolution (LSB size), convert an input voltage to its digital code or a code back to voltage, and see the ideal SNR…

Results

Enter your details and click Calculate to see your results.
About This Calculator

An n-bit ADC splits the reference voltage into 2ⁿ steps. One step (LSB) = Vref ÷ 2ⁿ, and code = floor(Vin ÷ LSB). To get a voltage back from a reading, multiply the code by the LSB.

The ideal signal-to-noise ratio is 6.02n + 1.76 dB. Real ADCs reach fewer effective bits (ENOB) because of noise.

Example

Example: a 12-bit ADC with a 3.3 V reference has an LSB of 805.7 µV, so 1.65 V reads as code 2048 (0x800).

Assumptions

Unipolar ADC from 0 to Vref, with the top code at Vref − 1 LSB (some datasheets divide by 2ⁿ − 1). Arduino Uno: 10-bit, 5 V. ESP32/STM32: 12-bit, 3.3 V.

Frequently Asked Questions

What is the resolution of a 10-bit ADC at 5 V?

4.88 mV per step (5 ÷ 1,024).

How do I convert an ADC reading to voltage?

Voltage = reading × Vref ÷ 2ⁿ.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile