Skip to main content
DD-CAT IDE logoDD-CAT IDE

Article · Tech Insights

Online ADC Voltage Divider Calculator: Pick R1/R2 Directly from Full-Scale Range and Vref

Favorite

An online resistor divider calculator I use for divider design before ADC sampling: enter full-scale range, Vref, resolution bits, and source impedance limit, and it enumerates E24/E96 standard resistors to give the divider ratio, source impedance, equivalent LSB, and error budget including tolerances. Notes from a few real-world uses.

ShareWeiboXLinkedIn

Key points

The ADC voltage divider calculator at https://www.dd-cat.cn/tools/voltage-divider picks divider resistors R1/R2 for ADC sampling directly from full-scale range and Vref. In ADC mode you enter full-scale voltage, Vref, resolution bits (8/10/12/16/24/32), source-impedance limit and resistor/reference/ADC tolerances; the tool enumerates E24/E96 standard combinations against the target ratio R2/(R1+R2)=Vref(1-headroom)/Vin,max and verifies the ADC-side source impedance R1∥R2 stays within the datasheet limit. For example, a 10 V range into a 3.3 V 12-bit ADC (10 kΩ source limit, ±1% resistors/reference) yields R1=18 kΩ / R2=8.2 kΩ, 5.63 kΩ source impedance, an input-referred 1 LSB ≈ 2.57 mV, and ±2.48% worst-case input error; 100 V and 16-bit high-precision scenarios can be recomputed the same way. Outputs also include alternative values, divider ratio/scale factor, and error budget (worst-case linear sum and RSS typical), usable directly in firmware calibration and design documents.

When a signal higher than the ADC reference voltage needs to go into an ADC, the first instinct is always "add a voltage divider." But when it comes to actually choosing R1 and R2, Vout = Vin·R2/(R1+R2) only solves half the problem: the ADC datasheet states a maximum signal source impedance (SAR ADCs often 1~50 kΩ), and if the divider's Thevenin equivalent R1∥R2 exceeds it, the sample-and-hold capacitor won't fully charge and readings read low; resistor tolerance and reference tolerance then become real, tangible errors. Every time I had to flip through the datasheet, look up standard value tables, and hand-calculate the error—too tedious. Later I settled on one online resistor divider calculator specifically for ADC sampling. Here are my usage notes and a few real measurements.

Tool URL: https://www.dd-cat.cn/tools/voltage-divider

What to enter in ADC mode

The tool has two modes. Normal divider mode "computes Vout from given R1/R2"; ADC mode is the reverse—given the full-scale range and ADC parameters, it enumerates standard resistor values to help you pick R1/R2. In ADC mode you enter:

  • Input full-scale Vin,max: the maximum voltage the sensor / signal can reach;
  • ADC reference voltage Vref and resolution bits (8 / 10 / 12 / 16 / 24 / 32);
  • Full-scale headroom: margin reserved for overshoot, default 5%;
  • ADC recommended max source impedance: the value from the datasheet (SAR commonly 1~50 kΩ);
  • Divider resistor tolerance / reference voltage tolerance / ADC error (offset+gain+INL): used for the error budget;
  • Resistor series: standard tables such as E24 / E96, or "no rounding" to see theoretical continuous values.

It enumerates combinations in the standard series against the target divider ratio

R2R1+R2=Vref (1−headroom)Vin,max\frac{R_2}{R_1+R_2} = \frac{V_{ref}\,(1-\text{headroom})}{V_{in,max}}

with the constraint that the ADC-side source impedance R1∥R2≤R_1 \parallel R_2 \le the datasheet limit—accuracy first, then the largest resistance values (lowest power consumption).

A real use: 10 V range into a 3.3 V, 12-bit ADC

A 10 V full-scale sensor fed into a 3.3 V, 12-bit ADC, with a 10 kΩ datasheet source-impedance limit, ordinary ±1% resistors, ±1% reference, and ADC error taken as 4 LSB:

  • Recommended R1 = 18 kΩ / R2 = 8.2 kΩ (E24);
  • Full-scale output 3.13 V, only 0.17% error relative to the 3.135 V target;
  • Divider ratio 31.30%, scale factor 3.1951 (Vin = Vout × 3.1951);
  • Source impedance 5.63 kΩ, within the 10 kΩ limit;
  • Input-referred equivalent 1 LSB ≈ 2.57 mV;
  • Full-scale input code 3885, full-scale utilization 94.84%;
  • Worst-case input error ±2.48% (resistors 1.37% + reference 1.00% + ADC 0.10%), RSS typical error ±1.70%.

The most informative points:

  • It doesn't stop at "the divider ratio is correct"—it directly tells you whether the source impedance passes. If you switch to larger-value resistors to hit the ratio more precisely, the source impedance climbs near the limit, the SAR ADC's sampling capacitor won't fully charge at the sampling instant, and readings read low—the classic trap that paper formulas miss.
  • I copied the equivalent 1 LSB value straight into firmware comments: Vin = code × 2.574 mV, saving me from re-deriving it each time.
  • The error budget breaks out the three sources, so you can see at a glance that the dominant errors here are the ±1% resistors (1.37%) and ±1% reference (1.00%), not the ADC itself. To improve accuracy, upgrade the resistors to ±0.1% or E96 first rather than agonizing over the ADC.

Two more scenarios

High-voltage sampling: 100 V

Same 3.3 V / 12-bit / 10 kΩ source impedance, but the range becomes 100 V:

  • Recommended R1 = 68 kΩ / R2 = 2.2 kΩ, full-scale output 3.13 V, only 0.03% error;
  • Divider ratio 3.13%, scale factor 31.91;
  • Input-referred equivalent 1 LSB ≈ 25.7 mV;
  • But the worst-case error rises to ±3.04%—resistor ratio error 1.94%, because with a small divider ratio, dk/k=(1−k)(t1+t2)dk/k=(1-k)(t_1+t_2) is more sensitive to tolerance;
  • Branch current 1.43 mA, total power 142.5 mW—0402 resistors are no longer usable.

With a large step-down ratio the divided voltage is very small, so the same LSB becomes large when referred to the input; accuracy requirements and resistor power dissipation both rise together, and the tool calculates all of this for you.

High precision: 16-bit + ±0.1% resistors

Switch to 16-bit, headroom tightened to 2%, resistors and reference both ±0.1%, ADC error 8 LSB:

  • Recommended R1 = 28.7 kΩ / R2 = 13.7 kΩ (E96), source impedance 9.27 kΩ still within limits;
  • Input-referred equivalent 1 LSB ≈ 155.8 µV, full-scale utilization 97.91%;
  • Worst-case error only ±0.25%, RSS typical ±0.17%.

Once the resolution goes up, the source-impedance limit and 1 LSB both force you to recalculate—which is exactly what it does for me. Also note that headroom of 0 gives the highest resolution, but over-range clips the signal; the tool warns about this.

The values I always check in the output

  • Recommended R1/R2 (E24/E96) and alternatives 1/2/3: the alternatives also give error and source impedance, making it easy to choose between "high resistance to save power" and "low impedance for less disturbance";
  • Full-scale output / divider ratio / scale factor: the ratio goes straight into software calibration;
  • Source impedance R1∥R2: the hard constraint on the ADC side; exceeding the limit is clearly flagged "over limit";
  • Input-referred equivalent 1 LSB: the code → voltage conversion factor in firmware;
  • Worst-case error and typical error (RSS): the former is a linear sum, the latter a root-mean-square combination—both are given, so reports can cite either metric.

The schematic that updates with the parameters also annotates R1, R2, Vout, R1∥R2, and the error—screenshot it and paste it into the design doc.

Normal divider mode is handy too

If you only want to know the output for given R1/R2, switch to "normal divider": 5 V through 9 kΩ / 1 kΩ, the tool rounds to the nearest E24 values 9.1 kΩ / 1 kΩ, outputs 495 mV, and notes a -0.99% deviation from the original values, along with the branch current and the power dissipation of each resistor. Choosing "no rounding" gives theoretical continuous values, handy for verifying the divider ratio first.

A few notes

  • Source impedance is a hard requirement: if R1∥R2R_1 \parallel R_2 exceeds the datasheet limit, either lower the resistance, lower the sample rate, or add a small capacitor at the ADC pin—don't just look at the divider ratio.
  • Don't skip full-scale headroom: 0% gives the highest resolution, but overshoot will clip; generally leave 2~5%.
  • Rank error sources by resistors and reference: ordinary ±1% resistors put the ratio error at the 1% level; to improve accuracy, first switch to lower-tolerance resistors / E96 and a more stable reference.
  • Check power in high-voltage cases: the divider branch current is highest at maximum input, so resistor power must be checked against that and derated with at least a 2× margin.
  • Match the downstream stage: this is only the divider network itself; if there's an op-amp / RC ahead of the ADC, their input impedance and bandwidth must be included in the calculation.

That's my workflow for choosing divider resistors before ADC sampling. It computes "divider ratio → standard combinations → source impedance check → equivalent LSB → error budget" in one pass, much faster than flipping through datasheets and hand-calculating, and it makes it easier to catch issues like source impedance that formula-only analysis misses.

Get new articles by email

Enter your email — we notify you about new articles and releases (unsubscribe anytime).

Related reading

Tech Insights

MOS 管参数速查:水闸讲清工作区、损耗、小信号、SOA 与选型折中(附数据手册读法)

MOS 管的数据手册动辄二十页,真正决定设计成败的只有十几行和几条曲线。这篇用「城堡水闸」把阈值电压、过驱动、R_DS(on)、跨导、Qg、米勒平台串成一条线,再单独讲清两件最容易含糊的事:饱和区的小信号模型(gm、ro、Cgs、Cgd 到底怎么来)和安全工作区 SOA(为什么功率没超却会炸)。配七张手绘图(含选型四象限图)、一个 30 V/5 mΩ 的损耗与结温迭代算例、两颗管的 FOM 与损耗对比,最后是数据手册的三看三不看——包括「标称 60 A 实际只能用 20 A」。

Tech Insights

童话版基尔霍夫定律:两条铁律,一篇讲清 KCL、KVL 和方向里的负号

KCL 和 KVL 是电路分析的地基,但真正让人翻车的从来不是公式,而是参考方向、电源升降和「什么时候不能直接用」。我用一个森林引水渠的童话把两条铁律讲清:分水桩进出相等(KCL)、绕渠一圈水位回到原处(KVL),再配一个 12 V/6 V 三支路实例手算到 1.6 A、−1.2 A、−0.4 A,并用功率守恒验算,最后是 4 条最容易踩的注意事项(含变压器磁芯回路为什么不能乱用 KVL)。

Tech Insights

童话版诺顿定理:泉眼、暗渠、两个公式,外加 6 条注意事项

诺顿定理其实是戴维南的「并联兄弟」,但很多人只会背不会用,还容易把电流源方向标反、真去短接量短路电流。我用同一个黑箱城堡的第二个童话把三件事串起来:短接出口量流量得 I_N、熄灯量内阻得 R_N、整座城堡折叠成一个恒定泉眼并联一条暗渠;再补上电流分流公式、12 V 分压器的数值试炼、与戴维南的互换,以及 6 条实战注意事项。