Sub topic 6
Why KVL holds: energy conservation and path independence
This chapter assumes you already know what voltage and current are, can apply Ohm's law (V = IR), and can read a basic circuit with ideal voltage sources and resistors. You should also be comfortable with the passive sign convention and with the statement of KVL from earlier chapters: the voltages around a closed loop sum to zero. Here we ask why that statement is true, which makes it easier to trust, and easier to know when it fails.
From a rule to a reason
So far KVL has been a rule you apply. You pick a loop, walk around it, and add up the voltage rises and drops. The sum comes out to zero.
That rule is not an extra assumption about circuits. It follows from two ideas you already use:
- Voltage is energy per unit charge.
- Energy is conserved.
Once you see how these combine, KVL stops being something to memorize. It becomes a bookkeeping statement about energy.
Voltage as energy per charge
The voltage between two points A and B is the energy needed to move one coulomb of positive charge from B to A. In symbols:
V_AB = W / q
Here W is energy in joules, q is charge in coulombs, and V is in volts. One volt is one joule per coulomb.
This definition has a consequence. If a charge q moves from one point to another, the energy it gains or loses is q times the voltage between those points. A positive charge moving through a 5 V drop gives up 5 J for every coulomb. A positive charge moving through a 5 V rise gains 5 J for every coulomb.
Think of a charge carried around a loop as a traveler who keeps a running energy balance. A source adds energy to the traveler. A resistor takes energy away and converts it to heat. KVL asks what the balance is when the traveler returns to the starting point.
The energy argument
Suppose a charge q starts at point A, travels once around a closed loop, and returns to A. Two facts apply.
- The charge ends in the same place and the same state as when it started.
- Energy cannot be created or destroyed.
If the charge came back with more energy than it started with, the circuit would be producing free energy every lap. If it came back with less, energy would vanish. Neither happens in a circuit whose behavior is described by lumped elements. So the net energy change over one lap is zero.
The net energy change is the sum of the energy changes across each element:
q·V₁ + q·V₂ + q·V₃ + … = 0
Every term has the same factor q. Divide it out:
V₁ + V₂ + V₃ + … = 0
This is KVL. The voltages here are signed. A rise counts one way and a drop counts the other, according to the direction you walk around the loop.
A worked example
Take a 12 V source in series with three resistors. Suppose the current is 20 mA. Let us follow one coulomb around the loop.
The source raises the charge by 12 V, so the charge gains 12 J. The resistors then take energy away:
| Element | Voltage change per coulomb | Energy change per coulomb |
|---|---|---|
| Source | +12 V | +12 J |
| Resistor R1 | -2 V | -2 J |
| Resistor R2 | -4.4 V | -4.4 J |
| Resistor R3 | -5.6 V | -5.6 J |
| Net | 0 V | 0 J |
The charge gains 12 J and gives up 2 + 4.4 + 5.6 = 12 J. It arrives back at the start with the same energy it began with. The sum of the voltage changes is zero, which is exactly what KVL says.
The same energy balance can be written in terms of power. Power is energy per unit time, and p = v·i. The source delivers power and the resistors absorb it. KVL multiplied by the loop current gives the statement that delivered power equals absorbed power. A later chapter uses this as a check on your answers.
Path independence
The energy argument has a second consequence. Voltage between two points does not depend on the route you take between them.
Pick two points A and B in a circuit. You can walk from A to B along one path, or along a different path. The voltage you measure by adding up element voltages along each path must be the same. If it were not, you could go from A to B by one path and return by the other, and the loop sum would not be zero. That would break energy conservation.
This is the reason a node voltage is a meaningful quantity. When you say "point B is 7 V above point A," that statement has one value, no matter how you reach B from A.
The idea of path independence is the same property that lets you define electric potential. A force field with this property is called conservative. In a conservative field, the work done moving a charge between two points depends only on the endpoints, and the work around any closed path is zero.
Using path independence to find a voltage
Path independence is a useful tool. To find the voltage between two points, you can choose the easiest path.
Consider points A and B in a circuit where one path from A to B passes through a 3 V rise and a 2 V drop. The voltage from A to B is +3 − 2 = +1 V. If a second path from A to B contains a single resistor, that resistor must also have 1 V across it, with the same polarity. You can use this to find an unknown resistor voltage without knowing its current.
The following diagram shows the idea. Two different paths between A and B give the same voltage.
Checking energy conservation in code
The following program follows one coulomb around the series loop from the table above. It tracks the running energy of the charge and confirms that the net change is zero.
# Follow one coulomb of charge around a series loop.
# Positive numbers are energy gained, negative numbers are energy lost.
charge = 1.0 # coulombs
# (name, voltage change in volts) in the order the charge meets them
elements = [
("Source", +12.0),
("R1", -2.0),
("R2", -4.4),
("R3", -5.6),
]
energy = 0.0
for name, dv in elements:
delta = charge * dv # energy change in joules
energy += delta
print(f"{name:7s} dV = {dv:+5.1f} V dW = {delta:+5.1f} J running = {energy:+6.2f} J")
print(f"Net energy change over one lap: {energy:.6f} J")The final line prints 0.000000 J, apart from possible floating-point rounding in the last digits.
When the energy argument does not hold
The argument assumes that a charge going around a loop has only two ways to exchange energy: with circuit elements, and with nothing else. Two situations break this assumption.
- A changing magnetic flux passes through the loop. By Faraday's law, a changing flux induces an electric field around the loop. That field can add energy to a charge each lap, so the loop sum is no longer zero. The electric field is no longer conservative.
- The circuit is large compared with the signal wavelength. Then voltage depends on the path, because fields vary along the wires. The lumped-element model no longer applies.
Both cases are covered in a later chapter. For now, note that KVL is not a law that holds under every condition. It holds when the circuit is a lumped model in which every changing field is confined inside the elements, such as the magnetic field inside an inductor. In that model, the energy argument applies and KVL is exact.
Common misreadings
- "KVL says no energy is used." It says the net energy change of a charge over one lap is zero. Resistors still convert energy to heat. The source supplies exactly what the resistors consume.
- "The sum is zero because the voltages cancel by design." The sum is zero because of conservation of energy. Source and element voltages adjust until the balance holds.
- "KVL only applies to resistors." It applies to any element, including sources, inductors, capacitors, and nonlinear devices, as long as the lumped model holds.
Exercise
A charge of 2 C travels once around a loop containing a 9 V source (a rise) and two resistors. The first resistor has a 4 V drop. How much energy does the charge lose in the second resistor, and what is the voltage across it?
Show answer
By KVL, 9 − 4 − V₂ = 0, so V₂ = 5 V. The energy lost is q·V₂ = 2 C × 5 V = 10 J. As a check, the source gives the charge 18 J, the first resistor takes 8 J, and the second takes 10 J, so the net change is 18 − 8 − 10 = 0.
Exercise
Two paths connect points A and B. Path 1 contains a 10 V rise followed by a 6 V drop. Path 2 contains a single resistor. What voltage must appear across the resistor, and why?
Show answer
Path 1 gives a net rise of 10 − 6 = 4 V from A to B. By path independence, the resistor on path 2 must also show 4 V from A to B. If it did not, walking out along one path and back along the other would give a nonzero loop sum, which would violate energy conservation.
Exercise
Name the two conditions under which the energy argument for KVL no longer holds for a loop.
Show answer
First, a changing magnetic flux passes through the loop's area outside the circuit elements, which induces an electric field by Faraday's law. Second, the circuit is large enough compared with the signal wavelength that the lumped-element model fails and voltage becomes path dependent.