Sub topic 3
Kirchhoff's Voltage Law around a loop
This chapter assumes you know voltage, current, resistance, Ohm's law, and how to solve two or three linear equations. Kirchhoff's Voltage Law (KVL) is the equation that mesh analysis writes for each mesh, so it is worth getting the signs right here.
The law
KVL says that the algebraic sum of the voltages around any closed loop is zero. Voltage is the energy change per unit charge. A charge that travels around a closed path and returns to its starting point has the same energy it began with. The rises and drops along the way must therefore cancel.
Two equivalent ways to write it:
- Sum of voltage rises = sum of voltage drops.
- Sum of all signed voltages around the loop = 0.
The second form is easier to apply mechanically, so this tutorial uses it.
Signing each element
Pick a direction to travel around the loop. Then assign a sign to each element as you cross it.
| Element crossed | Direction of travel | Sign of its voltage term |
|---|---|---|
| Voltage source | from - to + | +V (a rise) |
| Voltage source | from + to - | -V (a drop) |
| Resistor | along the current | -IR (a drop) |
| Resistor | against the current | +IR (a rise) |
For a resistor, Ohm's law gives the magnitude, IR. The current enters the resistor at its high-voltage end. If you travel in the same direction as the current, you move from high to low voltage, so the term is a drop.
Worked example
A 12 V source drives a current I clockwise through a 2 ohm and a 4 ohm resistor in series. Travel clockwise, in the same direction as I, starting at the negative terminal of the source:
- Crossing the source from - to + gives +12.
- Crossing the 2 ohm resistor along the current gives -2I.
- Crossing the 4 ohm resistor along the current gives -4I.
The sum is zero:
12 - 2I - 4I = 0
So 6I = 12 and I = 2 A. The drops are 4 V across the 2 ohm resistor and 8 V across the 4 ohm resistor. Together they equal the 12 V rise.
You can check the arithmetic in code:
import numpy as np
R = np.array([2.0, 4.0]) # ohms, in series
V = 12.0 # volts
I = V / R.sum()
drops = R * I
print(f"I = {I:.2f} A")
print(f"Drops = {drops} V, sum = {drops.sum():.2f} V")
print(f"KVL residual = {V - drops.sum():.2e}")The residual should be zero, or within floating-point rounding of it.
Common errors
- Mixing directions. Choose one direction of travel and keep it for the whole loop. Do not flip signs partway around.
- Signing a source by the current, not by travel. A source's sign depends only on which terminal you reach first. The current through it does not matter.
- Forgetting that the sign of a resistor term depends on the current's direction. If the loop contains a resistor shared with another mesh, the current in that resistor is a combination of two currents. The later chapters handle this.
- Treating a negative answer as a mistake. A negative current means it flows opposite to the direction you assumed. The equations are still correct.
Where this leads
Mesh analysis writes one KVL equation per mesh, using a mesh current as the unknown. In a circuit with a single loop, the mesh current is simply the loop current, and you have just solved one such equation. With several meshes, each equation also contains terms from neighboring meshes, and the next chapters build on the sign rules above.
Exercise
A loop contains a 9 V source, a 1 ohm resistor, and a 2 ohm resistor. The current I flows clockwise, and you traverse the loop clockwise. The source's + terminal is reached after its - terminal in that direction. Write the KVL equation and solve for I.
Show answer
Crossing the source from - to + gives +9. Both resistors are crossed along the current, so they give -1I and -2I. The equation is 9 - 1I - 2I = 0, so 3I = 9 and I = 3 A.
Exercise
In a clockwise loop, a 5 V source is crossed from + to -, and a 10 V source is crossed from - to +. A 3 ohm resistor carries current I clockwise. Write the KVL equation and find I.
Show answer
The 5 V source gives -5, the 10 V source gives +10, and the resistor gives -3I. The equation is -5 + 10 - 3I = 0, so I = 5/3, about 1.667 A, clockwise.