Sub topic 13
Kirchhoff's Voltage Law
This chapter assumes you know voltage as energy per unit charge, how to assign reference polarities, the passive sign convention, and Ohm's law. It also assumes you can solve a linear equation for one unknown. Kirchhoff's current law is not required.
What the law says
Kirchhoff's voltage law (KVL) states that the algebraic sum of the voltages around any closed loop in a circuit is zero.
Voltage is energy per unit charge, so KVL is energy conservation for a charge that goes once around a loop. A charge that returns to its starting point has the same potential energy it started with. The energy it gains in sources must equal the energy it gives up in loads.
KVL can also be written in terms of potentials. If every node has a potential relative to a reference node, the voltage between two nodes is the difference of their potentials. Going around a loop, each potential is added once and subtracted once, so the total is zero. This means the voltage between two nodes does not depend on the path you use to measure it.
The working model
KVL belongs to the lumped-element model of circuits. That model assumes the following:
- Each element is a compact box with two terminals, and the voltage across it is well defined.
- Wires are ideal and have no voltage drop of their own.
- No time-varying magnetic flux passes through the loop. A changing flux would induce a voltage around the loop, as in a transformer. In ordinary low-frequency circuits the effect is negligible, and inductors are treated as elements with their own terminal voltage.
Under these assumptions KVL holds for every loop, at every instant, for DC and AC signals alike.
Applying KVL step by step
- Pick a loop. It must be a closed path that passes through each element at most once.
- Pick a direction of travel, clockwise or counterclockwise. Either gives a correct equation.
- Mark the reference polarity (+ and −) on every element. Use the passive sign convention for loads: current enters the + terminal.
- Walk around the loop. For each element, write its voltage with a sign set by the first terminal you meet:
- Enter at +, leave at −: write +v.
- Enter at −, leave at +: write −v.
- Set the sum to zero and solve for the unknown.
A second convention treats voltage rises as positive and drops as negative. The two conventions give the same equation up to an overall sign, because both set the sum to zero. Choose one and keep to it.
| Situation while walking the loop | Sign of the term (first-terminal rule) |
|---|---|
| Enter the + terminal, exit the − terminal | + |
| Enter the − terminal, exit the + terminal | − |
| Element voltage is negative (the true polarity is opposite to the marking) | The same rule applies. The number itself is negative. |
The last row matters. If the solved voltage across an element comes out negative, the true polarity is opposite to the one you marked. Leave the marking and the sign alone, and the algebra stays correct.
Worked example: a series loop
A 12 V source drives three resistors of 100 Ω, 220 Ω and 180 Ω in series. One current flows through all of them. Number the nodes a, b, c and d, with node a as the reference at 0 V.
Walking the loop from the source's − terminal to its + terminal is a 12 V rise. Each resistor then gives a drop equal to the current times its resistance. KVL gives:
12 − I·R1 − I·R2 − I·R3 = 0
So I = 12 / (100 + 220 + 180) = 0.024 A. The drops are 2.4 V, 5.28 V and 4.32 V.
Each node's potential is the running total of the voltages passed so far. Returning to node a gives 4.32 − 4.32 = 0, which is KVL. The code below checks the same numbers.
source_v = 12.0
resistors_ohm = [100.0, 220.0, 180.0]
current_a = source_v / sum(resistors_ohm) # one current in a series loop
drops_v = [current_a * r for r in resistors_ohm] # Ohm's law for each resistor
loop_sum_v = source_v - sum(drops_v) # rise minus drops
print(f"Current: {current_a:.3f} A")
for r, v in zip(resistors_ohm, drops_v):
print(f"Drop across {r:.0f} ohm: {v:.2f} V")
print(f"KVL sum: {loop_sum_v:.2e} V")
assert abs(loop_sum_v) < 1e-9The printed sum is zero up to floating-point rounding, so the check compares it with a small tolerance and does not test for exact equality.
A loop with opposing sources
Sources do not always help each other. Suppose a 10 V source and a 4 V battery sit in the same loop with a 6 Ω resistor, and the battery is connected so that it opposes the source. Walking the loop in the direction of the 10 V source's rise, the battery appears as a 4 V drop:
10 − 4 − I·6 = 0
This gives I = 1 A. The resistor drop is 6 V, which equals the net rise of 10 − 4.
rises_v = {"source": +10.0, "opposing battery": -4.0} # signed, along the walk
resistor_ohm = 6.0
net_rise_v = sum(rises_v.values())
current_a = net_rise_v / resistor_ohm # KVL: net_rise - I*R = 0
resistor_drop_v = current_a * resistor_ohm
print(f"Current: {current_a:.2f} A")
print(f"Resistor drop: {resistor_drop_v:.2f} V")A battery being charged works the same way. Current flows into its + terminal, so it behaves as a load by the passive sign convention. A source does not always deliver energy. Whether an element delivers or absorbs power depends on the direction of the current through it, and the sign of the terminal voltage alone does not decide it.
Finding an unknown voltage across a gap
KVL applies to any closed path, including one that crosses a gap where no component is drawn. You can name the gap's voltage as an unknown and include it in the sum. This lets you find the voltage between two points that have no element between them.
Take the loop a → b → c → d from the series example. To find the voltage between nodes b and d (call it v_bd), use the path b → c → d:
v_bd = 2.4 + 5.28 = 7.68 V
The other path from b to d goes through the source and R3. It gives −12 + 4.32 = −7.68 V when walked from b to a to d, which means the same quantity with the opposite orientation. Both paths agree, as KVL requires.
The same idea explains meter readings in an open circuit. If a switch is open, no current flows. Every resistor in series with it has zero drop, and the full source voltage appears across the open switch. The voltage across a gap is whatever KVL requires, even though no current flows through it.
Common errors
- Mixing sign conventions in one equation. Pick the first-terminal rule or the rise/drop rule and use it throughout.
- Reading the polarity from the direction of travel. The sign depends on which terminal you enter, not on which way you are walking. Walking the other way around the loop flips every sign, and the equation is still valid.
- Assuming the current direction instead of marking it. If the current's true direction is opposite to your assumed one, the solved current is negative. The result is still correct. Keep the marking and read the sign.
- Forgetting an element. Every element on the loop contributes a term, including current sources, whose terminal voltage is set by the rest of the circuit and is not known beforehand.
- Applying Ohm's law with the wrong polarity. With the passive sign convention, v = iR. If the reference current enters the − terminal, then v = −iR.
- Using KVL on a path that is not closed. A path that does not return to its start has a nonzero sum equal to the voltage between its endpoints. That is useful, but it is no longer the KVL zero-sum statement.
- Applying KVL near strong time-varying magnetic fields without modeling the inductance. The lumped model no longer holds.
Relation to the other laws
KVL and KCL work together. KCL is conservation of charge at a node, and KVL is conservation of energy around a loop. Ohm's law links an element's voltage to its current. Together they give enough equations to solve a circuit. A circuit with several loops needs one KVL equation per independent loop and one KCL equation per independent node, minus one.
KVL also leads to power balance. Multiply each term in the loop by the loop current and the sum is still zero: the power delivered by the sources equals the power absorbed by the loads. In the series example, 12 V × 0.024 A = 0.288 W is delivered, and 2.4 × 0.024 + 5.28 × 0.024 + 4.32 × 0.024 = 0.288 W is absorbed.
Exercise
A loop contains a 9 V source and three resistors in series. The voltage drops across two resistors are measured as 2.5 V and 4.0 V. Find the drop across the third resistor and its current if its resistance is 150 Ω.
Show answer
KVL gives 9 − 2.5 − 4.0 − v3 = 0, so v3 = 2.5 V. The current is I = v3 / R = 2.5 / 150 ≈ 0.0167 A, or about 16.7 mA. Since the resistors are in series, the same current flows through all three.
Exercise
In a single loop, a 15 V source and a 5 V battery oppose each other and drive current through a 20 Ω resistor. What is the current, and how much power does the resistor absorb?
Show answer
The net rise is 15 − 5 = 10 V, so KVL gives 10 − I·20 = 0 and I = 0.5 A. The resistor absorbs P = I²R = 0.25 × 20 = 5 W, or equivalently P = V·I = 10 × 0.5 = 5 W.
Exercise
You mark the polarity of a resistor so that the current enters its − terminal, then write v = iR and get a negative voltage. What is wrong, and how do you fix it?
Show answer
The marking does not follow the passive sign convention, so v = iR does not apply. Either swap the polarity marks so the current enters the + terminal, or write v = −iR for the marking you chose. Both give the same physical result.