Sub topic 7
Writing a KVL Equation Step by Step
This chapter assumes you know Ohm's law, the passive sign convention, and the vocabulary of loops and meshes from earlier chapters. You also need to be able to solve a small set of linear equations. The goal here is a repeatable procedure for turning a loop in a diagram into one correct equation.
The Procedure
Kirchhoff's voltage law (KVL) says the voltages around a closed loop sum to zero. Writing that sum correctly comes down to a fixed sequence of choices.
- Choose a closed loop and mark its starting point.
- Choose a traversal direction, clockwise or counterclockwise, and keep it for the whole loop.
- Assign a current direction to each resistor. Any direction works, and a negative answer just means the true current flows the other way.
- Mark each resistor's polarity with the passive sign convention. The current enters the end marked +.
- Walk around the loop. For each element, write the sign you meet first. Entering at + and leaving at - gives a plus sign. Entering at - and leaving at + gives a minus sign.
- Replace each resistor voltage with I × R, then set the sum equal to zero.
Worked Example: One Series Loop
Take a 12 V source in series with R1 = 100 Ω, R2 = 220 Ω and R3 = 330 Ω. Walk clockwise from the negative terminal of the source. The source is a rise, because you enter at its - terminal and leave at +. Each resistor is a drop.
The equation is:
+12 − I·R1 − I·R2 − I·R3 = 0
This gives I = 12 / 650 ≈ 18.46 mA. Here the equation uses "rise positive, drop negative". The earlier convention of "first sign met" gives the opposite signs on every term. Both are valid because the equation equals zero, so multiplying every term by −1 changes nothing. Choose one and use it consistently.
# 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 last line prints a value of zero, up to floating-point rounding. That printed sum is your first check that the equation balances.
Sources Against the Direction of Travel
A source does not always point your way. Suppose a 4 V source sits in a loop and you enter it at its + terminal. Walking through it is then a drop of 4 V, so it appears as −4 in a "rise positive" equation. The same applies to resistors. If the loop direction opposes your assumed current, the I·R term takes the opposite sign.
This matters most when two loops share a resistor. A shared resistor carries both currents, and each loop sees the other current with the opposite sign. A later chapter develops that fully. For now, remember that the sign depends on how the walk meets each element, not on the element itself.
Exercises
Exercise
A loop has a 9 V source (walked from - to +), then resistor R1 = 1 kΩ and resistor R2 = 2 kΩ, all in one clockwise loop with the current also clockwise. Write the KVL equation using "rise positive, drop negative" and find I.
Show answer
+9 − I(1000) − I(2000) = 0, so I = 9 / 3000 = 3 mA.
Exercise
In the same loop, you reverse the traversal direction to counterclockwise but keep the assumed current clockwise. Write the new equation. Does the solution for I change?
Show answer
Walking counterclockwise, the source is now entered at + and left at -, so it is a drop: −9 + I(1000) + I(2000) = 0. The resistors are now met against the current direction, so their terms flip sign too. This is the first equation multiplied by −1, so I is still 3 mA.