Sub topic 8
Voltage and current dividers
This chapter assumes you can apply V = IR, compute series and parallel equivalent resistance, and rearrange simple algebraic equations. A divider takes one source and produces a smaller voltage or a share of a current. Almost every sensor interface, bias network, and level shifter uses one.
The idea in one paragraph
Two resistors in series carry the same current. The voltage across each is therefore proportional to its resistance. Two resistors in parallel see the same voltage. The current through each is therefore inversely proportional to its resistance. The first fact gives the voltage divider and the second gives the current divider.
The voltage divider
Place Rtop and Rbottom in series across a source Vin. Take the output across Rbottom.
Derivation
The total resistance is Rtop + Rbottom, so the series current is:
I = Vin / (Rtop + R_bottom)
The output is the voltage across R_bottom:
Vout = I × Rbottom = Vin × Rbottom / (Rtop + Rbottom)
The ratio Vout / Vin depends only on the ratio of the resistors, not on their absolute values. Scaling both by 10 gives the same output but one tenth of the current.
Worked example
You need 3.3 V from a 5 V supply. Choose Rbottom = 20 kΩ and solve for Rtop:
3.3 = 5 × 20 000 / (R_top + 20 000)
R_top + 20 000 = 5 × 20 000 / 3.3 ≈ 30 303 Ω
R_top ≈ 10 303 Ω. The nearest E96 value, 10.2 kΩ, gives 3.31 V, which is close enough for most uses.
def divider_out(v_in, r_top, r_bottom):
return v_in * r_bottom / (r_top + r_bottom)
def top_for_target(v_in, v_out, r_bottom):
# Solve v_out = v_in * r_bottom / (r_top + r_bottom) for r_top
return r_bottom * (v_in / v_out - 1.0)
r_top = top_for_target(5.0, 3.3, 20_000)
print(f"R_top = {r_top:.0f} ohm")
print(f"V_out with 10.2 kohm = {divider_out(5.0, 10_200, 20_000):.3f} V")Loading: the main error
The formula assumes nothing draws current from the output node. A real load does. If a load Rload connects across the output, it is in parallel with Rbottom. The bottom leg becomes:
Rbottom' = Rbottom × Rload / (Rbottom + R_load)
This is always smaller than Rbottom, so Vout drops.
Take the 5 V to 2.5 V divider with 10 kΩ and 10 kΩ. If a 10 kΩ load is attached, the bottom leg becomes 5 kΩ, and:
V_out = 5 × 5 000 / (10 000 + 5 000) = 1.67 V
The output fell by a third. A common rule is to make the load at least 10 times larger than Rbottom. The error is then about 9% or less in the worst case, and smaller if Rbottom is small relative to R_top.
def parallel(*resistors):
return 1.0 / sum(1.0 / r for r in resistors)
def divider_loaded(v_in, r_top, r_bottom, r_load):
return v_in * parallel(r_bottom, r_load) / (r_top + parallel(r_bottom, r_load))
for r_load in (1e3, 10e3, 100e3, 1e6, float("inf")):
v = divider_loaded(5.0, 10_000, 10_000, r_load)
print(f"R_load = {r_load:>10.0f} ohm -> V_out = {v:.3f} V")Trade-off: divider current versus loading
Lower resistor values make the output stiffer, because the divider current is much larger than the load current. They also waste more power. The divider current for the 5 V example with 10 kΩ + 10 kΩ is 0.25 mA. With 1 kΩ + 1 kΩ it is 2.5 mA. Pick the values from the load current you must tolerate and the power budget you have. For a battery-powered device, the standing current may be the limiting factor.
Source resistance and the Thevenin view
Seen from the output, a divider acts like a voltage source Vin × Rbottom / (Rtop + Rbottom) in series with Rtop ∥ Rbottom. For the equal 10 kΩ case, that is 2.5 V behind 5 kΩ. A load much larger than 5 kΩ barely disturbs it. This also explains why an input with a bias current, such as an ADC pin, shifts the output by (bias current × source resistance).
The current divider
Now put two resistors in parallel and feed the combination with a total current I_total. Both see the same voltage V:
V = I_total × (R1 × R2) / (R1 + R2)
The current through R1 is V / R1:
I1 = I_total × R2 / (R1 + R2)
I2 = I_total × R1 / (R1 + R2)
The formula looks reversed compared with the voltage divider. The current through a resistor depends on the other resistor's value in the numerator. The smaller resistor takes the larger share.
Worked example
A 30 mA current splits between 100 Ω and 300 Ω.
- I1 = 30 mA × 300 / 400 = 22.5 mA
- I2 = 30 mA × 100 / 400 = 7.5 mA
The two currents add to 30 mA. The 100 Ω branch is three times smaller in resistance and carries three times the current.
Many branches: use conductance
For more than two branches, the two-resistor form does not extend directly. Use conductance G = 1/R (see the conductance chapter). Every branch has the same voltage, so each branch current is proportional to its conductance:
Ik = Itotal × Gk / (G1 + G2 + ... + Gn)
def current_divider(i_total, resistors):
g = [1.0 / r for r in resistors]
g_sum = sum(g)
return [i_total * gk / g_sum for gk in g]
shares = current_divider(0.030, [100, 300])
print([f"{i * 1000:.1f} mA" for i in shares]) # 22.5 mA, 7.5 mA
shares = current_divider(0.060, [100, 200, 300])
print([f"{i * 1000:.2f} mA" for i in shares]) # sums to 60 mA
print(f"sum = {sum(shares) * 1000:.2f} mA")Application: ammeter shunts
A meter movement that deflects fully at 1 mA can measure larger currents by placing a low-value shunt resistor in parallel with it. Suppose the movement has 50 Ω internal resistance and you want a 100 mA full-scale range. At full scale 1 mA flows through the movement and 99 mA through the shunt. The voltage is 1 mA × 50 Ω = 50 mV, so the shunt is 50 mV / 99 mA ≈ 0.505 Ω. The current divider rule gives the same answer. Because the shunt is so small, it must also be accurate and made from a stable material.
Choosing between the two
| Property | Voltage divider | Current divider |
|---|---|---|
| Topology | Series resistors, same current | Parallel resistors, same voltage |
| Quantity shared | Voltage | Current |
| Larger resistor gets | Larger share of voltage | Smaller share of current |
| Main error source | Load on the output node | Series resistance in the branch wiring, and source that is not ideal |
| Typical use | Reference, bias, sensor scaling | Meter shunts, current sharing |
Common mistakes
- Using the voltage divider formula with a load connected and ignoring the load. Include the load in parallel with R_bottom.
- Swapping the resistors in the current divider formula. Check the result: the smaller resistance must carry more current.
- Forgetting that the voltage divider ratio holds only if the same current flows through both resistors. A branch tapping current at the midpoint breaks this.
- Ignoring tolerance. Two 1% resistors can shift the ratio by about 2% in the worst case, and the output follows.
- Ignoring power. In the 5 V, 10 kΩ + 10 kΩ example each resistor dissipates only 0.625 mW, but a 24 V divider of 100 Ω + 100 Ω puts 1.44 W in each resistor, far beyond a quarter-watt part.
Sensitivity to tolerance
With resistors of tolerance t (for example 0.01 for 1%), the worst-case output shifts when Rtop is high and Rbottom is low, or the reverse. The following script finds the extremes.
def worst_case(v_in, r_top, r_bottom, tol):
nominal = v_in * r_bottom / (r_top + r_bottom)
low = v_in * r_bottom * (1 - tol) / (r_top * (1 + tol) + r_bottom * (1 - tol))
high = v_in * r_bottom * (1 + tol) / (r_top * (1 - tol) + r_bottom * (1 + tol))
return low, nominal, high
low, nom, high = worst_case(5.0, 10_000, 10_000, 0.01)
print(f"{low:.4f} V {nom:.4f} V {high:.4f} V")The output spans about ±0.5% of V_in around the nominal 2.5 V, which is ±12.5 mV. If your ADC needs better than that, use tighter tolerance parts or calibrate.
Exercise
A 12 V supply feeds a divider with Rtop = 22 kΩ and Rbottom = 10 kΩ. (a) What is Vout with no load? (b) What is Vout if a 10 kΩ load is connected across R_bottom? (c) A 90 mA current enters a parallel pair of 10 Ω and 40 Ω. What current flows in each?
Show answer
(a) Vout = 12 × 10 / (22 + 10) = 3.75 V. (b) The 10 kΩ load in parallel with 10 kΩ gives 5 kΩ, so Vout = 12 × 5 / (22 + 5) ≈ 2.22 V. The load pulls the output down by about 41%. (c) I1 (10 Ω) = 90 mA × 40 / 50 = 72 mA, and I2 (40 Ω) = 90 mA × 10 / 50 = 18 mA. They sum to 90 mA, and the smaller resistor carries more current.
Exercise
You need a 2.5 V reference from a 5 V rail, and the load draws at most 50 µA. You want the load to change Vout by no more than 1%. Estimate the largest equal resistor pair (Rtop = R_bottom = R) that works, and the standing divider current.
Show answer
With equal resistors the Thevenin source resistance is R/2, and the load current drops V_out by about 50 µA × R/2 (using the open-circuit voltage as the reference). For a 1% change of 2.5 V, that drop must be at most 25 mV, so R/2 ≤ 25 mV / 50 µA = 500 Ω, giving R ≤ 1 kΩ. With R = 1 kΩ the standing current is 5 V / 2 kΩ = 2.5 mA, which is 50 times the load current. This shows the cost of a stiff divider: wasted current.