Back to Tools

Voltage Divider Calculator

Work out a voltage divider's output, current and power, with or without a load, or find the closest pair of standard E12, E24 or E96 resistors for the voltage you need.

Divider values

Resistor tolerance

Output voltage

3.333 V
Current through R1
167 µA
Power in R1 / R2
278 µW / 556 µW
Resistor rating to use
1/16 W
Output impedance
6.67 kΩ
Range with ±1% resistors
3.311 V – 3.355 V
Vout = Vin × R2 / (R1 + R2)
Vout = 5 V × 20 kΩ / (10 kΩ + 20 kΩ) = 3.333 V

Schematic

Voltage divider: R1 from Vin to Vout, R2 from Vout to groundVin 5 VR110 kΩVout 3.33 VR220 kΩ

Find R1 and R2 for a voltage

Resistor series

The total sets the current the divider draws: lower wastes power, higher is more easily pulled down by whatever reads Vout. 10 kΩ to 100 kΩ suits most signals; go up to 1 MΩ for a battery that has to last.

R1R2VoutErrorCurrentUse
24 kΩ9.1 kΩ3.299 V−0.03%363 µA
18 kΩ6.8 kΩ3.29 V−0.29%484 µA
47 kΩ18 kΩ3.323 V+0.70%185 µA
20 kΩ7.5 kΩ3.273 V−0.83%436 µA
39 kΩ15 kΩ3.333 V+1.01%222 µA
15 kΩ5.6 kΩ3.262 V−1.15%583 µA
22 kΩ8.2 kΩ3.258 V−1.26%397 µA
43 kΩ16 kΩ3.254 V−1.39%203 µA

Each ratio is listed once, sized to sit in the middle of your range. The same pair times 10 or divided by 10 gives the same voltage.

The voltage divider formula

Two resistors in series across a supply split its voltage in proportion to their values. The output is taken from the point between them:

Vout = Vin × R2 / (R1 + R2)

It comes straight from Ohm's law. The same current I = Vin / (R1 + R2) flows through both resistors, and the voltage across R2 is I × R2. In the UK the same thing is usually called a potential divider, and the equation is identical.

Worked example: 12 V into R1 = 27 kΩ and R2 = 10 kΩ. Vout = 12 × 10 / (27 + 10) = 3.24 V, and the divider draws 12 V / 37 kΩ = 324 µA.

To go the other way, pick R2 and solve R1 = R2 × (Vin − Vout) / Vout. The answer is rarely a value you can buy, which is why the finder above searches real E-series pairs and shows the voltage you actually get.

What a load does to the output

Anything connected to Vout sits in parallel with R2 and pulls the output down. Seen from the load, the divider is a voltage source of Vin × R2 / (R1 + R2) with R1 ∥ R2 in series (its Thévenin equivalent). Keep the load at least 10 times that output impedance and the error stays under about 10%; at 100 times it's under 1%.

That's why a divider is fine for feeding an ADC or a logic input, and useless as a power supply. A module that draws 20 mA one moment and 100 mA the next makes Vout jump around. Use a regulator for power.

Reading a battery with an ADC

The most common use. A 2S LiPo reaches 8.4 V when full, and an ESP32's ADC is most accurate below about 2.45 V at its highest attenuation (Espressif ESP-IDF ADC documentation). 100 kΩ over 39 kΩ gives 2.36 V at 8.4 V and draws 60 µA, which a battery barely notices.

High values save the battery but leave a high output impedance (28 kΩ here), and the ADC's sampling capacitor briefly loads it on every reading. Espressif suggests a 100 nF capacitor from the ADC pin to ground to cut noise, and it also gives the sampling capacitor a charge to draw from. Measure the real ratio once with a multimeter and calibrate in firmware; resistor tolerance and the ADC's own offset both add up. Solder the divider with the pack unplugged: a shorted LiPo delivers tens of amps and can catch fire.

Level shifting 5 V to 3.3 V, and when not to

A 5 V Arduino's TX into a 3.3 V ESP32's RX is a fine job for a divider: 1 kΩ over 2 kΩ (or 10 kΩ over 20 kΩ) gives 3.33 V. It works for one-way, fairly slow signals like UART, a button or a chip-select line.

  • Not for anything bidirectional, like I²C or a 1-Wire bus. Use a MOSFET level shifter (the circuit in NXP's AN10441, usually built with a BSS138) or a translator chip.
  • Not for fast signals with big resistors. The divider's output impedance and the input capacitance of the pin make a low-pass filter that rounds off SPI clocks in the MHz range. Lower values or a buffer like the 74LVC245 fix it.
  • Not from 3.3 V up to 5 V. A divider can only lower a voltage. Many 5 V parts read 3.3 V as a high anyway; check the input high threshold (VIH) in the datasheet.

Questions people ask

What is the voltage divider formula?
Vout = Vin × R2 / (R1 + R2), where R1 is the resistor from the input and R2 the one to ground.
How do I pick the resistor values?
The ratio sets the voltage and the total sets the current. Choose a total that draws little current but stays well below the impedance of whatever reads the output, then let the finder above pick the closest standard pair.
Why does my output measure lower than calculated?
Something is loading it. A multimeter is usually 10 MΩ, which barely matters, but an ADC input, a pull-down or an LED does. Turn on the load option above and enter its resistance.
Can I use a divider to get 5 V from 12 V for a device?
No. The output changes as soon as the device draws current, and the resistors waste power as heat. Use a buck converter or a linear regulator.
Which resistor series should I use?
E24 values are stocked almost everywhere. E96 gets closer to an exact ratio and is the usual choice for 1% parts; E12 is what's in most starter kits.

Related tools and guides

Describe a circuit. Get a board you can order.

GrandpaCAD's chat picks real parts, draws the schematic, routes the PCB and checks it against JLCPCB's rules. You get Gerbers, BOM, pick-and-place, a KiCad project and a 3D board, plus a printed case if you want one.

"Battery monitor board: ESP32 reads a 2S LiPo through a voltage divider"

3 free generations, no card required