Sub topic 5
Kirchhoff's voltage law: the sum around a loop is zero
This chapter assumes you know Ohm's law (V = IR), what an ideal voltage source and a resistor are, and the difference between a node and a loop. It also assumes you can solve a small system of linear equations.
The statement
Kirchhoff's voltage law (KVL) says that the algebraic sum of the voltages around any closed loop in a lumped circuit is zero.
Written as an equation:
v1 + v2 + ... + vN = 0"Algebraic" means each voltage carries a sign. You choose a direction to travel around the loop, then add each element's voltage with a sign that depends on whether you move through it from + to − or from − to +.
Two equivalent ways to say it
Both forms give the same equation, so use whichever you find easier to read.
- Sum of signed voltages is zero. Walk around the loop. Each time you enter an element at its + terminal, count its voltage as positive. Each time you enter at its − terminal, count it as negative.
- Rises equal drops. The total of the voltage rises (source voltages you cross from − to +) equals the total of the voltage drops (usually across resistors).
A sign rule you can apply every time
- Pick a loop and a direction, clockwise or counterclockwise.
- Mark the polarity of every element. For resistors, put the + sign where the assumed current enters (passive sign convention).
- Walk around the loop. For each element, write the sign of the first terminal you meet.
- Add the terms and set the sum to zero.
The direction you pick does not change the answer. Reversing it flips every sign, which multiplies the whole equation by −1.
Worked example: one series loop
A 12 V source drives resistors of 100 Ω, 220 Ω and 330 Ω in series. Take the current I clockwise. Going clockwise, you cross the source from − to +, which is a rise. Each resistor is a drop of I·R.
+12 − I·R1 − I·R2 − I·R3 = 0The code below solves for I, finds each drop, and checks the loop sum.
# Series loop: 12 V source with three resistors.
# KVL around the loop (clockwise, source is a rise):
# +12 - I*R1 - I*R2 - I*R3 = 0
V_s = 12.0
resistors = [100.0, 220.0, 330.0] # ohms
I = V_s / sum(resistors) # amperes
drops = [I * r for r in resistors] # voltage across each resistor
print(f"I = {I * 1000:.2f} mA")
for r, v in zip(resistors, drops):
print(f"V across {r:.0f} ohm = {v:.3f} V")
# KVL check: rise minus the sum of drops should be zero.
print(f"Loop sum = {V_s - sum(drops):.12f} V")The total resistance is 650 Ω, so I is about 18.46 mA. The drops are about 1.846 V, 4.062 V and 6.092 V, and they add up to 12 V. The loop sum prints as zero, give or take floating-point rounding.
Why the signs work
A voltage is energy per unit charge. A source adds energy to each coulomb that passes through it. A resistor removes that energy as heat. A charge that goes once around a closed loop returns to its starting point, so its net energy change must be zero. The next chapter develops this argument in more detail.
Quick checks
- Count the terms. Each element in the loop contributes exactly one voltage.
- Check that the polarities are consistent with your current directions before you write any signs.
- Substitute your solution back into the loop equation. It should give zero.
Exercise
A loop contains a 9 V source and two resistors, R1 = 1 kΩ and R2 = 2 kΩ, in series. Using a clockwise current I that enters the resistors at their + terminals, write the KVL equation and find I and the voltage across R2.
Show answer
Crossing the source from − to + gives +9. Each resistor is a drop. So +9 − I·1000 − I·2000 = 0, which gives I = 9 / 3000 = 3 mA. The voltage across R2 is 3 mA × 2000 Ω = 6 V. Check: 9 − 3 − 6 = 0.
Exercise
You walk counterclockwise around the same loop as in the previous exercise. Does the KVL equation change, and does the value of I change?
Show answer
Every sign flips, giving −9 + I·1000 + I·2000 = 0 for a counterclockwise current. This is the same equation multiplied by −1, and it still gives I = 3 mA in the direction of the source's driving push. The answer does not depend on the direction you walk.