MCU ADC Voltage Divider (E24 / E96) & Resolution Calculator

Find optimal standard E24/E96 resistor pairs for MCU ADC voltage sensing, check loaded ratio error %, mV/LSB resolution and source impedance with schematic SVG.

Jump to results

Inputs

Voltage scaling targets
Leave ~10% headroom below Vref for transients.
MCU ADC constraints
STM32/AVR SAR ADCs typically require R_th ≤ 10 kΩ.
Models leakage / parallel load on R2.

Results

Estimates
Best E24 resistor pairR1 = 9.1 kΩ · R2 = 1.3 kΩ
Actual Vout at Vin,max
3 V (error -0.01%)
Source impedance (R_th)
1.137 kΩ (Within ADC source limit)
Input resolution
6.45 mV/LSB (0.806 mV/LSB at pin)
ADC code at Vin,max
3,722 / 4,095 (FS = 26.4 V)
Tolerance worst-case
±1.76% (at ±1% R)
Divider quiescent draw
2,307.7 µA (55.39 mW)
ADC resistor divider schematic (E24 pair)
Vin,max = 24 VR1 = 9.1 kΩVout = 3 VRth = 1.137 kΩ12-bit ADCVref = 3.3 VR2 = 1.3 kΩ
Top E24 candidate pairs
R1R2Vout (V)Error %R_thDraw (µA)
9.1 kΩ1.3 kΩ3-0.01%1.137 kΩ2,307.7
30 kΩ4.3 kΩ3.008+0.25%3.76 kΩ699.7
33 kΩ4.7 kΩ2.991-0.31%4.112 kΩ636.6
39 kΩ5.6 kΩ3.012+0.4%4.894 kΩ538.2
43 kΩ6.2 kΩ3.023+0.76%5.416 kΩ487.8

Add a 10 nF–100 nF ceramic capacitor in parallel with R2 to supply the SAR ADC sample-and-hold charge impulse and filter high-frequency noise.

Match E24 / E96 resistor dividers to MCU ADC source impedance and resolution

Scaling a 12 V, 24 V or 48 V bus down to a 3.3 V microcontroller ADC pin requires more than matching a voltage ratio. SAR ADCs charge an internal sampling capacitor through the divider’s Thevenin equivalent resistance R_th = R1 ∥ R2; if R_th exceeds the MCU’s maximum source impedance (commonly 10 kΩ), conversion accuracy degrades.

This tool searches standard E24 and E96 resistor decades to find the closest real-world pair that respects your maximum R_th, accounts for ADC pin leakage loading, computes worst-case resistor tolerance error, and reports exact mV/LSB sensitivity referred back to the input voltage.

Formulas

  • V_out = V_in × (R2 ∥ R_load) ÷ [R1 + (R2 ∥ R_load)]
  • R_th = (R1 × R2_eff) ÷ (R1 + R2_eff)
  • Input Resolution (mV/LSB) = (V_ref × 1,000) ÷ (2^bits × Ratio_actual)

Worked example

Scaling 24 V to a 3.0 V target on a 3.3 V 12-bit ADC with R_th ≤ 10 kΩ selects E24 standard values R1 = 68 kΩ and R2 = 10 kΩ (R_th = 8.71 kΩ), yielding 3.077 V (or E96 69.8 kΩ / 10 kΩ for 3.005 V, +0.16% error) with ~6.4 mV/LSB input resolution.

Frequently asked questions

Why should target Vout sit below Vref at Vin,max?

Leaving 10% headroom (such as 3.0 V on a 3.3 V ADC) prevents clipping during alternator spikes, charger absorption peaks, or worst-case resistor tolerance shifts.

How can I use high-value megaohm dividers without violating ADC R_th?

Place a 10 nF–100 nF ceramic capacitor from the ADC pin to GND so the sampling capacitor draws charge from the external capacitor, and sample slowly, or buffer with a rail-to-rail op-amp.

What is the benefit of E96 over E24 resistors for voltage sensing?

E96 offers 96 values per decade (1% spacing) instead of 24, letting you hit exact voltage ratios within <0.5% without stacking parallel trim resistors.