Skip to content
Simurq Labs

Learn

Voltage divider calculator

By Semih Özbir, Electrical and Electronics Engineer

Published · Last reviewed

In this guide · 10

A voltage divider gives Vout = Vin × R2 / (R1 + R2): 30 kΩ over 10 kΩ turns a 12 V rail into 3.000 V for a 3.3 V ADC, drawing 0.3 mA. The ADC sees the pair as a 7.5 kΩ source, and a load across R2 pulls the output down: 100 kΩ takes it to 2.791 V.

V
V

Leave it empty for no load.

Output3.000 V
Current0.300 mASource resistance7.50 kΩR1 power2.70 mWR2 power0.900 mWNearest standard pair, R1 and R2E24: 30 kΩ and 10 kΩ, 3.000 V, exact E96: 30.1 kΩ and 10.0 kΩ, 2.993 V, 0.25 % low

Vout = Vin × R2 / (R1 + R2), TI's divider equation; standard values from Vishay's E24 and E96 tables.

Output: 3.000 V

This voltage divider calculator takes the input voltage, the two resistors in Ω, kΩ or MΩ and, if there is one, a load across R2. It returns the output, the current drawn, the divider's source resistance and each resistor's power. Give it a target output and it finds the nearest pair of standard values in the E24 and E96 series, with the output that pair gives and its error. It opens on the worked example below.

What is the voltage divider formula?

TI's Analog Engineer's Pocket Reference gives it as its equation 21, with Vsup the voltage across the pair:

Vout = R2 / (R1 + R2) × Vsup

R1 runs from the input to the output, R2 from the output to ground. The rest follows from the same reference's equations:

  • The current through the pair, by Ohm's law: I = Vin / (R1 + R2).
  • Each resistor's power, by its power equations: P = V² / R, V being the voltage across that resistor.
  • The source resistance, R1 and R2 in parallel: Rs = R1 × R2 / (R1 + R2). The next stage is driven through it.
  • The loaded output: a load RL across R2 is in parallel with it, so R2 × RL / (R2 + RL) takes R2's place in the formula.

TI's note on driving C2000 ADCs works one through: 160 kΩ over 1.2 kΩ maps a 400 V bus to 2.978 V, and the divider's equivalent resistance is 1.2 kΩ ∥ 160 kΩ, 1,191 Ω. The calculator gives both.

A worked example: 12 V into a 3.3 V ADC

Take a 12 V rail read by an ADC whose input runs to 3.3 V. Mapping 12 V to 3.0 V leaves room for the rail to rise. Turned round, the formula gives R1 / R2 = 12 / 3 − 1 = 3: 30 kΩ over 10 kΩ.

  1. The output: 12 × 10 / (30 + 10) = 3.000 V. The ADC's 3.3 V is reached at 3.3 × 4 = 13.2 V in.
  2. The current: 12 V / 40 kΩ = 0.300 mA.
  3. The power: R1 drops 9 V, 9² / 30 kΩ = 2.70 mW; R2 drops 3 V, 3² / 10 kΩ = 0.900 mW.
  4. The source resistance: 30 × 10 / (30 + 10) = 7.50 kΩ.
  5. A 100 kΩ load across R2: 10 × 100 / (10 + 100) = 9.091 kΩ in R2's place, and 12 × 9.091 / (30 + 9.091) = 2.791 V, 7.0 % low.

The calculator opens on this divider; enter 100 as the load to see step 5.

Standard values: E24 and E96

Resistors are stocked in preferred values. Vishay's decade table lists them a decade at a time, each value times a power of ten: 13.3 stands for 133 Ω, 13.3 kΩ or 1.33 MΩ. The E24 series serves ±2 % and ±5 % parts and steps by the 24th root of ten, about 10 %. E96 serves ±1 % parts and steps by the 96th root, about 2.4 %. TI's pocket reference prints the same values.

The two do not nest: E24's 30, 33 and 36 are not E96 values, and E96 has 30.1, 33.2 and 36.5 instead. Vishay's D/CRCW chip resistors come at ±1 % in both series' values, from 1 Ω to 10 MΩ, so a 1 % 30 kΩ part exists.

For a target, the calculator rounds your R2 to the nearest value of each series. Then it takes whichever value either side of the ideal R1 brings the output nearer the target. For the worked example's 3.000 V:

  • E24: 30 kΩ and 10 kΩ, exact.
  • E96: 30.1 kΩ and 10.0 kΩ, 2.993 V, 0.25 % low.

What changes on a real board?

The resistors' tolerance

Each resistor lies within its tolerance of its value. With 1 % parts, the worked example's output may sit anywhere from 2.955 to 3.045 V, R1 high and R2 low or the other way round. With 5 % parts, from 2.780 to 3.231 V.

A load across R2

A load in parallel with R2 always pulls the output down, and how far depends on the load against the divider's source resistance. The output falls as if the unloaded 3.000 V sat behind 7.5 kΩ: 3.000 × 100 / (100 + 7.5) = 2.791 V at a 100 kΩ load.

So a divider of ten times the resistance needs a load ten times larger for the same drop. Three dividers that each give 3.000 V from 12 V:

Chart of the output of three dividers that each make 3.000 V from 12 V, against the load across R2 from 1 kΩ to 100 kΩ: at 100 kΩ, 3 kΩ over 1 kΩ gives 2.978 V, 30 kΩ over 10 kΩ 2.791 V and 300 kΩ over 100 kΩ 1.714 V.

The output of three dividers of one ratio against the load across R2, computed from the divider equation in Texas Instruments' Analog Engineer's Pocket Reference.

  • 3 kΩ over 1 kΩ, 3 mA, a 750 Ω source: 2.978 V at a 100 kΩ load, 2.791 V at 10 kΩ.
  • 30 kΩ over 10 kΩ, 0.3 mA, 7.5 kΩ: 2.791 V and 1.714 V.
  • 300 kΩ over 100 kΩ, 30 µA, 75 kΩ: 1.714 V and 0.353 V.

The first holds its output best, and draws a hundred times the current of the last.

An ADC's input

An ADC input is no fixed resistor. It samples: a switch joins a small capacitor to the pin, and the divider charges it through its source resistance. Microchip's PIC16F13254 data sheet gives the time to charge it within half a least significant bit as TC = −CHOLD × (RIC + RSS + RS) × ln(1 / 2047). Its example takes a 10 pF capacitor, 1 kΩ for RIC and 7 kΩ for the sampling switch: a 10 kΩ source takes 1.37 µs, and the worked example's 7.5 kΩ would take 1.18 µs. It recommends 10 kΩ at most for an analog source, to meet the pin leakage specification.

Microchip's AVR126 note asks the same of a resistor divider at a megaAVR's ADC: a source impedance under 10 kΩ, or the capacitor takes longer to charge and the result is not accurate.

A divider of higher resistance can still feed an ADC through a capacitor at the pin. For its 400 V divider, TI's note makes that capacitor 2¹² times the ADC's own 12.5 pF: 4096 × 12.5 pF = 51.2 nF, taken as 51 nF. That limits the channel to 1 / (0.7 × 1191 Ω × 51 nF) = 23.5 kHz. To sample faster, it adds an op amp, or lowers both resistors at the expense of more static current.

How do you choose the resistors?

Lower resistances hold the output under a load and charge an ADC faster; higher ones draw less current. TI's note puts the same trade: a divider's resistance is kept high to draw little static current, and lowering both legs speeds sampling at the cost of more.

  • For an ADC, start from the source resistance its maker asks for: under 10 kΩ for Microchip's megaAVR. 30 kΩ over 10 kΩ makes 7.5 kΩ for 0.3 mA from 12 V.
  • For a regulator's feedback, the divider sets the output: Vout = VFB × (1 + R1 / R2), the formula turned round, VFB being the regulator's reference. The TLV62569 datasheet gives 0.6 V and asks for R2 of 200 kΩ at most, for low current consumption and acceptable noise sensitivity. Its own example, 200 kΩ over 100 kΩ, makes 1.8 V.
  • For power, compare each resistor's with its rating: Vishay rates its 0603 D/CRCW for 0.10 W at 70 °C, against the worked example's 2.70 mW.

How does PCB Agent check a feedback divider?

PCB Agent builds its boards from modules of circuits taken from makers' datasheets. For a module's feedback divider, code works the output out on the regulator's reference: the nominal on its typical value, and the limits on its range with each resistor 1 % off the worse way. For the 3.3 V buck below, on the TLV62569's 0.588 to 0.612 V, that is 0.588 × (1 + 99 / 22.321) = 3.196 V and 0.612 × (1 + 101 / 21.879) = 3.437 V, which the module states rounded outward. Where a datasheet gives the feedback pin's current, its drop across R1 widens them.

For a regulator researched from its datasheet, an agent draws the divider: one resistor from the output to the feedback pin and one from there to ground, the output worked out from the formula as the datasheet writes it. A draft that misses goes back to the agent with code's reason.

Limits

The calculator works at DC, with each resistor at its value and a load as a plain resistance. An ADC that samples needs the source resistance its maker asks for, as above. The standard pair keeps R2 near yours, so another pair at another resistance may come closer to the target.

Every number on this page is worked out from the formulas, none measured on a board. PCB Agent's code checks no resistor's power against its rating, and no divider's source resistance against an ADC's. Power supply PCB design covers where a regulator's feedback trace runs, and the PCB trace width calculator sizes the tracks that carry the current.

Sources

  • RC filter calculator

    An RC filter's cutoff is 1/(2πRC) and its time constant RC: 1.59 kΩ and 100 nF give 1.00 kHz and 159 µs. A calculator for gain, phase and settling.

  • How do you lay out a regulator on a PCB?

    Put each capacitor at its pin, keep a buck converter's input loop and switch node small, and work out an LDO's heat, (Vin − Vout) × I, before layout.

  • Where do a PCB's design rules come from?

    The fab's minimums, which DRC checks, and each part's datasheet. How to read a maker's layout section and turn it into a number a check can hold.

Have a board in mind?

PCB Agent is not open to the public yet. Leave your email, and we'll write when early access starts.