Sub topic 4
The voltage divider rule
This chapter derives the voltage divider rule and applies it to unloaded circuits. It assumes you know Ohm's law (V = I R), the idea of a ground reference, and basic algebra with ratios. Series resistance and Kirchhoff's voltage law (KVL) get a short review here, because the derivation depends on them.
What a voltage divider does
A voltage divider is two or more resistors in series across a source. It produces an output voltage that is a fixed fraction of the input. You tap that output from the node between two resistors and measure it against ground.
The standard two-resistor form puts R1 between the source and the output node, and R2 between the output node and ground.
Deriving the rule
The derivation uses three facts: series resistors carry the same current, resistances in series add, and KVL.
- One current. The output node is not loaded, so nothing leaves it. The same current I flows through R1 and R2.
- Equivalent resistance. The two resistors act as one resistor R1 + R2 across the source.
- KVL. The voltage drops around the loop must add up to the source voltage: Vin = V1 + V2.
Apply Ohm's law to the whole series string to find the current:
I = Vin / (R1 + R2)
The output voltage is the drop across R2, which Ohm's law gives as I R2:
Vout = I R2 = Vin × R2 / (R1 + R2)
That is the voltage divider rule. The same steps give the drop across R1:
V1 = Vin × R1 / (R1 + R2)
The two fractions add to 1, which is KVL again: V1 + V2 = Vin. You can use this as a quick check on any answer.
Reading the formula
Vout is Vin times a ratio. The ratio is the resistance you are measuring across, divided by the total resistance in the string. Remember this phrase rather than the formula with R1 and R2 in it, because the labels depend on how the schematic is drawn.
The table shows how the ratio behaves for a few resistor choices.
| R1 | R2 | Ratio R2 / (R1 + R2) | Vout for Vin = 12 V |
|---|---|---|---|
| 10 kΩ | 10 kΩ | 0.5 | 6 V |
| 10 kΩ | 5 kΩ | 0.333 | 4 V |
| 5 kΩ | 10 kΩ | 0.667 | 8 V |
| 1 kΩ | 99 kΩ | 0.99 | 11.88 V |
Several properties follow from the formula:
- Vout is always between 0 V and Vin when both resistors are positive. A passive divider can only reduce voltage.
- Only the ratio of the resistors matters, not their absolute values. Doubling both leaves Vout unchanged.
- The larger resistor gets the larger share of the voltage.
- The edge cases check out. If R2 is a short (0 Ω), Vout is 0 V. If R2 is an open circuit (infinite resistance), the current is zero and Vout equals Vin.
A worked example in code
Take a 12 V source, R1 = 10 kΩ and R2 = 5 kΩ. The ratio is 5 / 15, so Vout is 4 V.
def divider_vout(vin, r1, r2):
"""Unloaded divider: r1 from the source to the output node, r2 from the output node to ground."""
return vin * r2 / (r1 + r2)
print(divider_vout(12.0, 10_000, 5_000)) # 4.0 voltsYou can check this with the intermediate quantities. The current is 12 V / 15 kΩ = 0.8 mA. The drop across R2 is 0.8 mA × 5 kΩ = 4 V. The drop across R1 is 0.8 mA × 10 kΩ = 8 V. The drops sum to 12 V.
Dividers with more than two resistors
The rule generalizes. For a string of resistors, the voltage across any one resistor, or any group of adjacent resistors, is Vin times that resistance divided by the total resistance of the string.
This function returns the drop across every resistor in a string:
def string_drops(vin, resistors):
"""Return the voltage across each resistor in a series string."""
total = sum(resistors)
return [vin * r / total for r in resistors]
drops = string_drops(12.0, [1_000, 2_000, 3_000])
print(drops) # [2.0, 4.0, 6.0]
print(sum(drops)) # 12.0If the 3 kΩ resistor sits at the ground end, the tap above it is at 6 V. The tap between the 1 kΩ and 2 kΩ resistors is at 6 V + 4 V = 10 V. Tap voltages measured against ground are cumulative sums of the drops from the ground end.
Power and current in a divider
A divider draws current continuously, even when nothing is connected to the output. For the 12 V example, I = 0.8 mA, so the string dissipates P = Vin × I = 9.6 mW.
The power divides in proportion to resistance, like the voltage:
- R1 dissipates I² R1 = (0.8 mA)² × 10 kΩ = 6.4 mW.
- R2 dissipates I² R2 = (0.8 mA)² × 5 kΩ = 3.2 mW.
The two figures add to 9.6 mW. Each resistor must be rated above its own dissipation, with margin. A later chapter covers the choice of values in more detail.
Tolerance
Real resistors differ from their marked values. With 1% resistors, each value can be off by up to 1% in either direction. The worst case for a 10 kΩ / 10 kΩ divider on 12 V happens when R2 is high and R1 is low, or the reverse:
def divider_vout(vin, r1, r2):
return vin * r2 / (r1 + r2)
nominal = divider_vout(12.0, 10_000, 10_000)
high = divider_vout(12.0, 10_000 * 0.99, 10_000 * 1.01)
low = divider_vout(12.0, 10_000 * 1.01, 10_000 * 0.99)
print(nominal, round(low, 3), round(high, 3)) # 6.0 5.94 6.06The output varies by ±0.06 V, which is ±1%. The ratio error is about the same as the resistor tolerance. It does not double, because the errors partly cancel for equal resistors. For unequal resistors the error can reach a little under twice the tolerance in some cases, so check the worst case when accuracy matters.
Common errors
Most mistakes with the rule come from a small set of causes.
- Putting the wrong resistor in the numerator. The numerator is the resistor across which you measure the output. If you measure across R1, use R1.
- Forgetting the ground reference. Vout is a voltage between the tap and a reference node. Measure from the tap to the bottom of the string, not to some other point.
- Ignoring the load. The rule above assumes nothing draws current from the tap. Connecting a load changes the output. The next chapters treat that case with a Thevenin equivalent.
- Mixing units. Use ohms with ohms, or kilohms with kilohms. Because only the ratio matters, the unit cancels as long as both resistors use the same one.
- Applying the rule to parallel resistors. The rule assumes one shared current. Where resistors are in parallel, the voltage is shared, and the current divider rule applies instead.
- Forgetting that the source is not ideal. A real source has its own internal resistance. That adds in series with R1 and lowers the output slightly.
Designing from a target output
You can rearrange the rule to find a resistor for a target output. Solving for R1 in terms of R2 gives:
R1 = R2 × (Vin / Vout − 1)
For example, to get 3.3 V from a 5 V source with R2 = 10 kΩ, R1 = 10 kΩ × (5 / 3.3 − 1), which is about 5.15 kΩ. The nearest standard value, 5.1 kΩ, gives 5 × 10 / 15.1 = 3.31 V, which is close enough for most uses.
def r1_for_target(vin, vout, r2):
"""Return the R1 value that gives vout from vin with the given r2."""
return r2 * (vin / vout - 1)
r1 = r1_for_target(5.0, 3.3, 10_000)
print(round(r1)) # 5152
print(round(5.0 * 10_000 / (5_100 + 10_000), 3)) # 3.311You still have to choose the absolute scale. Small resistors waste current and power. Large resistors make the output sensitive to loading and noise. This trade-off is covered when we discuss divider design.
Exercise
A divider has Vin = 9 V, R1 = 2 kΩ above the output node and R2 = 1 kΩ below it. What is Vout, and how much current does the string draw?
Show answer
Vout = 9 × 1 / (2 + 1) = 3 V. The current is I = 9 V / 3 kΩ = 3 mA. Check: the drop across R1 is 3 mA × 2 kΩ = 6 V, and 6 V + 3 V = 9 V.
Exercise
You need 3.3 V from a 5 V supply and choose R2 = 10 kΩ. What ideal R1 do you need, and what output do you get if you use the standard value 5.1 kΩ?
Show answer
R1 = 10 kΩ × (5 / 3.3 − 1) ≈ 5.15 kΩ. With 5.1 kΩ, Vout = 5 × 10 / (5.1 + 10) ≈ 3.31 V.
Exercise
Three resistors of 2 kΩ, 3 kΩ, and 5 kΩ are in series from a 20 V source to ground, with the 2 kΩ resistor at the top. What are the voltages at the two taps, measured against ground?
Show answer
The total is 10 kΩ. The drops are 4 V, 6 V, and 10 V. The lower tap (between 3 kΩ and 5 kΩ) is at 10 V. The upper tap (between 2 kΩ and 3 kΩ) is at 10 V + 6 V = 16 V.