Tools / Voltage divider
How to work out a voltage divider
Two resistors share the input voltage in proportion to their size. Here is the working with your numbers.
Vout = Vin × R2 ÷ (R1 + R2)
Result
- Output voltage
- 2.5 V
- Divider current
- 250 µA
- R1 power
- 625 µW
- R2 power
- 625 µW
What this leaves out
- Ideal unloaded divider; actual load current can change output voltage. Keep the load at least 10 times R2.
Step by step
The working with your numbers
- Add the two resistors
R_total = R1 + R2 = 10 kΩ + 10 kΩ = 20 kΩ - Find the current through both
I = Vin ÷ R_total = 5 ÷ 20,000 = 250 µAThe same current flows through R1 and R2 because they are in series. - The output is the voltage across R2
Vout = I × R2 = 250 µA × 10 kΩ = 2.5 V - The rest is across R1
V_R1 = Vin − Vout = 5 − 2.5 = 2.5 V - Worst case with 5 % resistors
Vout between 2.38 V and 2.63 VR1 5 % high and R2 5 % low gives the lowest output; the other way round gives the highest. - Worst case with 1 % resistors
Vout between 2.48 V and 2.52 V
Does the answer make sense?
- OK: Shortcut check: Vout = Vin × R2 ÷ (R1 + R2) = 5 × 50 % = 2.5 V. It is always less than Vin.
- OK: The divider only draws 250 µA from the supply.
- OK: Whatever you connect to Vout should be at least 10 × 5 kΩ (R1 in parallel with R2), or it pulls the voltage down.
Pick a real part
- Nearest standard (E12) values: R1 = 10 kΩ, R2 = 10 kΩ, giving 2.5 V.
- With 5 % resistors the output can be off by up to about ±5 %. Use 1 % resistors when you need it accurate.
- For a tighter match use E96 (1 %) values: R1 = 10 kΩ, R2 = 10 kΩ, giving 2.5 V.
Common mistakes
- Swapping R1 and R2. The output is across the lower resistor, R2, the one connected to ground.
- Forgetting the load. Anything connected to Vout sits in parallel with R2 and lowers the voltage. Use the loaded divider calculator to check.
- Using a divider to power something. It is for signals and references. A motor or module needs a regulator.
Learn it, try it, build it
Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.
Just need the number? Use the voltage divider calculator on Geekobot.
Common questions
How do you work out a voltage divider?
Vout = Vin × R2 ÷ (R1 + R2), where R2 is the resistor to ground. Two 10 kΩ resistors on 5 V give 2.5 V, because R2 is half the total.
Why does my voltage divider read lower than calculated?
Whatever you connect to the output is in parallel with R2, which lowers the bottom resistance and the voltage. Keep the load at least ten times bigger than R1 in parallel with R2.
Can I use a voltage divider to get 3.3 V from 5 V for power?
No. The output changes as soon as current is drawn. Use a divider for signals, such as reading a battery on an ADC pin, and a regulator to power things.
