Voltage divider: work out Vout or find R1 and R2
The voltage divider is the simplest circuit in electronics: two resistors in series are enough to step a voltage down in a fixed proportion — reading a 5 V sensor on a 3.3 V input, scaling a signal, biasing a transistor. The output is taken between the two resistors: Vout = Vin · R2 / (R1 + R2).
The calculator gives Vout, the current drawn around the clock, the power in each resistor and the output impedance — and, if you enter the load connected behind it, the voltage you actually get. In reverse, it finds R1 for a target Vout, nearest E24 value included.
A voltage divider only suits a signal or a very light load: it is not a power supply. As soon as the load draws a current comparable to the divider's own, the voltage collapses — the usual rule wants the load at least 10 times more resistive than the divider's output impedance.
The divider
Glossary: voltage, current, resistance, ground — the basics without jargon
Voltage is the pressure, in volts. Current is the flow, in amperes. Resistance is the squeeze, in ohms. Ground is the 0 V you measure against — the negative of a single supply, not a mystical earth stake. Two resistors in series between Vin and ground, tap in the middle: that tap is Vout.
Glossary: output impedance, load, "unloaded", resistors in parallel (the ∥ symbol)
- Unloaded — nothing drawing current from the tap. The school formula is then exact.
- Load — whatever you hang on Vout (ADC, LED, next stage). It sits in parallel with R2.
- Output impedance — what the load “sees”: R1 ∥ R2, looking back with Vin shorted (Thevenin).
R1 ∥ R2 = R1 · R2 / (R1 + R2)
Where the formula comes from: Ohm's law applied twice, step by step
Same current through both resistors. I = Vin / (R1 + R2). Drop on R2: Vout = I · R2.
Vout = Vin · R2 / (R1 + R2)
Solve the other way if you already own one resistor:
R2 = R1 · Vout / (Vin − Vout) · R1 = R2 · (Vin − Vout) / Vout
The current divider is the parallel twin of this: other resistor on top, I instead of V. Do not mix the two lines.
Choosing the order of magnitude of R1 + R2: consumption versus noise sensitivity
Small sum (a few kΩ): stiffer tap, more idle current. Large sum (hundreds of kΩ, megaohms): kind to a battery, easy prey for pickup and for the nanoamps of an ADC pin. 10–100 kΩ total is the boring, good band for a 5 V or 3.3 V rail.
The 10× rule explained: why the load squashes the voltage
Rload across R2 pulls the tap down. If the divider's idle current is ≥ 10× the load current, the sag stays under ~10 %. Equivalently:
R1 + R2 ≤ Rload / 10 (rule of thumb)
An ADC pin is often megaohms DC, so the rule is easy. An LED is not. If you cannot satisfy 10×, buffer or pick smaller resistors and pay the current.
Textbook case: reading a 5 V sensor on a 3.3 V microcontroller (recommended values)
Want 3.3 / 5 = 0.66. R1 = 10 kΩ, R2 = 20 kΩ → 3.33 V. Or 4.7 kΩ and 9.1 kΩ for a closer 3.30 V on E24. The GPIO / ADC leakage is tiny next to 150–300 µA through the divider. Check the pin's maximum voltage: 3.33 V on a 3.6 V-abs-max part is comfortable; 3.6 V from a 5.5 V sensor on a 3.3 V-only pin is a clamp-diode conversation (below).
Why a voltage divider is NOT a power supply — and what to use instead
Draw milliamps and Vout collapses. A divider does not regulate. Power a 3.3 V board from 5 V with an LDO (1117-3.3 and friends) or a buck. The divider is for sensing, biasing, and levels that barely sip current.
The effect of tolerances: how much Vout shifts with 5 % or 1 % resistors
5 V → 3.3 V, both ±5 %, worst case (R1 high, R2 low): about 3.2 V. The other way: ~3.4 V, which may already push past a tight 3.3 V budget. ±1 % cuts that window by five. Matched thin-film is how instrument makers sleep.
The potentiometer: an adjustable voltage divider
A pot is a divider: end to Vin, other end to ground, wiper is Vout. Volume controls, setpoint knobs, panel meters. The track is R1+R2; the wiper splits it. Load the wiper and you still have the 10× problem, now with a position-dependent Thevenin.
Divider for battery monitoring: keeping the permanent drain low
A 12 V pack on a 3.3 V ADC: R1 = 1 MΩ, R2 = 330 kΩ → ~2.98 V at 12 V, ~9 µA drain. Still too much for a coin cell that must sit for a year — then put a MOSFET in the top leg and only power the divider when you sample.
R1 = 1 MΩ, R2 = 330 kΩ → Vout = 12 × 330 / 1330 ≈ 2.98 V
Dividers with AC signals: what changes (impedances, compensation capacitor)
Same ratio, impedances instead of R if you mix C or L. A scope probe is a compensated divider: a small cap across the tip resistor, trimmed so the ratio holds from DC to megahertz. On a board, the ADC's few picofarads plus R1∥R2 is a low-pass. A few tens of pF across R2 restores the high end if the signal is fast.
Steadying the output: decoupling capacitor, op-amp follower
10–100 nF from Vout to ground feeds the ADC's sample capacitor and eats hash. An op-amp follower after the tap gives you a stiff Vout without shrinking R1+R2. That is the clean way to drive a changing load from a high-Z divider.
Worked examples: 12 V → 5 V, 9 V → 3.3 V, voltage probe for an ADC
- 12 V → 5 V (ADC, not a 5 V rail). R1 = 10 kΩ, R2 = 7.15 kΩ (E96) → 5.00 V, ~700 µA.
- 9 V → 3.3 V. R1 = 100 kΩ, R2 = 56 kΩ → ~3.23 V, ~58 µA. Close enough for a battery gauge; scale in firmware.
- 0–30 V probe, 0–3.3 V ADC. R1 = 100 kΩ, R2 = 12.4 kΩ → 3.31 V at 30 V, ~267 µA. 10 nF across R2. Mind the voltage rating on R1.
Thevenin of the divider: Rth = R1 ∥ R2
Replace Vin with a short (AC) or a stiff source (DC) and the tap looks like Vth = Vout,unloaded in series with R1∥R2. That Rth is what the ADC acquisition time has to charge through, and what a following RC uses as its R. Write it down; it is the missing number on a lot of “slow ADC” forum posts.
ADC pin current and the sample capacitor
SAR ADCs gulp a few pF at the start of each conversion. Rth × C_sample must settle within the acquisition window. 100 kΩ Thevenin and 10 pF is 1 µs; many chips want a fraction of that. Either lower the resistors, add the reservoir cap at the pin, or enable a longer sample time in the ADC setup. The DC leakage of the pin is a second, slower error on megaohm dividers.
5 V into a 3.3 V pin: the clamp-diode trap
If Vin can rise (sensor unpowered on 5.5 V, or 12 V on a “12 V” battery at 14.4), Vout can exceed the microcontroller's abs. max. Internal clamp diodes then conduct through R1 and the pin, which is a reliability lottery. Size the divider so the highest Vin still lands below the pin max, or add an external clamp / series resistor the datasheet allows. 3.33 V typical is not the same as 3.33 V worst-case.
A divider is a sensor, not a regulator. Loading it like a power rail, or feeding a 3.3 V pin from a 5 V source without checking the high end of Vin, are the two ways this circuit bites.