Voltage Divider Calculator

Calculate a resistor divider's output voltage, or choose R2 to scale a higher voltage down to a level your microcontroller's ADC can read.

Output voltage
Divider current
Power in R1
Power in R2

Runs entirely in your browser. Nothing you enter is sent anywhere.

How it works

Two resistors in series across a supply split the voltage in proportion to their values. The output is taken across R2, the resistor connected to ground.

This assumes nothing else draws significant current from the output. If the load's input impedance is not at least ten times R2, the real output will be lower than calculated.

Vout = Vin × R2 / (R1 + R2)
R2 = R1 × Vout / (Vin − Vout)

Worked example

To read a 12 V battery with a 3.3 V ADC, R1 = 10 kΩ and R2 = 4.7 kΩ give 12 × 4.7 / 14.7 = 3.84 V. That's too high for 3.3 V, so try R2 = 3.3 kΩ: 12 × 3.3 / 13.3 = 2.98 V, with margin for a fully charged battery.

Frequently asked questions

Can I use a voltage divider as a power supply?

No. The output voltage sags as soon as a load draws current. Use a voltage regulator or a buck converter to power circuits.

What resistor values should I use for an ADC input?

Values in the 10–100 kΩ range are a common compromise: low enough for the ADC to sample accurately, high enough not to waste battery. Check your microcontroller's recommended source impedance.

Related tools