ScienceEngineering

Voltage Divider
calculator.

Two resistors in series give a fixed share of a voltage; find that share or the parts.

How it's worked out

Put two resistors in series across a supply and the same current flows through both. In a series circuit the resistors share the supply voltage between them, each taking a part in proportion to its resistance. The point between them gives a fixed fraction of the input.

Vout\displaystyle V_{out}=Vin×R2R1+R2\displaystyle {}= V_{in} \times \frac{R_2}{R_1 + R_2}

R1 is the top resistor, from the input to the output, and R2 is the bottom one, from the output to ground. To hit a target, turn the formula round and solve for R2 with R1 chosen.

R2\displaystyle R_2=R1×VoutVin−Vout\displaystyle {}= R_1 \times \frac{V_{out}}{V_{in} - V_{out}}

A load changes the answer. Anything connected to the output sits in parallel with R2 and lowers it. The Bucknell course notes show the tidy way to see this: the divider acts like a source with an output resistance equal to R1 and R2 in parallel, so a load forms a second divider with it.

Rth\displaystyle R_{th}=R1R2R1+R2\displaystyle {}= \frac{R_1 R_2}{R_1 + R_2}
sag\displaystyle \text{sag}=RthRth+RL\displaystyle {}= \frac{R_{th}}{R_{th} + R_L}

Resistor tolerance also moves the output. The worst case comes when one resistor is high and the other low, the case TI's note SLVA423 works through for a regulator's divider. It shows why two 1% parts usually give less than 2% error.

Worked examples

Kai halves 12 V, then connects a meter

Two 10 kΩ resistors give 6 V from 12 V and draw 0.6 mA. The output resistance is 5 kΩ.

Kai's 10 kΩ load is only twice that, so it drags the output to 4 V, 33.3% low. A load of ten times the output resistance would cost 9.1%, and a hundred times 0.99%.

Open this example in the tool

Rosa shifts a 5 V signal to 3.3 V

With R1 = 10 kΩ, R2 must be 19.41 kΩ, which no one sells. The closest E24 pair near the same total is 4.7 kΩ over 9.1 kΩ, giving 3.3 V, 0.09% under the target.

With ±5% parts that pair could land anywhere from 3.18 V to 3.41 V, so 1% parts are the better choice when the input has tight limits.

Open this example in the tool

Ben watches a 12 V battery on a 3 V input

Ben sizes for 14.4 V, a battery on charge, so the input never sees more than 3 V. With R1 = 100 kΩ he needs R2 = 26.32 kΩ.

The pair draws 114 µA all the time, a small drain next to the battery. At 12 V the input then reads 2.5 V, leaving room above for charging.

Open this example in the tool

Reading your result

Unloaded or loaded. The output voltage assumes nothing draws current from the middle unless you add a load. If one is added, the output and the current both include it.

Output resistance tells you how stiff it is. Small resistors make a stiff divider that hardly notices a load, but they waste current. With a 10 kΩ load on 12 V, 1 kΩ resistors hold 5.71 V while 100 kΩ resistors fall to 1 V.

Power is usually tiny. Even so, check it when the input is high or the resistors are small, because each part has a power rating. The power in each resistor is the current squared times its resistance.

A sensor can be one of the resistors. A thermistor or a light sensor in place of R2 turns its resistance into a voltage. The output moves most when R1 matches the sensor near the middle of its range: on 5 V with R1 = 10 kΩ, a sensor going from 9 to 11 kΩ moves the output from 2.37 V to 2.62 V, while with R1 = 100 kΩ it only moves from 0.413 V to 0.495 V.

Tolerance sets a floor on accuracy. Two 10 kΩ parts on 12 V give anything from 5.7 V to 6.3 V at ±5%, and 5.94 V to 6.06 V at ±1%.

Common mistakes

  • Using a divider as a power supply. The output moves with the load current and the resistors burn power all the time. To power a circuit, use a regulator.
  • Swapping R1 and R2. R2 is the one to ground. Swap them and 3.3 V from 5 V becomes 1.7 V.
  • Forgetting what the output connects to. A meter, an input pin or a sensor is a load. Add it, or keep it at least ten times the output resistance.
  • Leaving out the top of the input range. Size for the highest voltage the input will see, such as a battery on charge, not the label voltage.

Questions people ask

You need R2 over R1 + R2 of 0.66. With R1 = 10 kΩ, R2 is 19.41 kΩ; from the E24 series, 4.7 kΩ over 9.1 kΩ gives 3.3 V. A divider only shifts a signal one way, from the higher voltage down.

Sources