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. It covers Kirchhoff's Voltage Law (KVL), which is the equation mesh analysis writes for every mesh. We stay with DC circuits of resistors and independent voltage sources.
What KVL says
Kirchhoff's Voltage Law states that the algebraic sum of the voltages around any closed loop is zero. You pick a loop, walk around it once, and add up each element's voltage change. When you return to the starting point, the total is zero.
The reason is that voltage is a difference in electric potential. Potential is a property of a point, so a point can have only one potential. If you leave a point and come back to it, the net change in potential must be zero.
Two equivalent ways to write the law are:
- Sum of all voltage changes around the loop = 0.
- Sum of voltage rises = sum of voltage drops.
The second form is usually easier to use in mesh analysis. It also matches how you think about a battery pushing current through resistors.
Voltage rises and drops
Each element in the loop changes your potential as you walk through it. You need a rule to decide the sign.
- A voltage rise means the potential increases in the direction you walk. You enter the source at its negative terminal and leave at its positive terminal.
- A voltage drop means the potential decreases in the direction you walk. For a resistor, this happens when you walk in the same direction as the current.
For a resistor, Ohm's law gives the size of the drop: v = iR. If you walk against the current, you walk from the low-potential end to the high-potential end, so you see a rise of iR instead.
| Element | Walking direction | Voltage change |
|---|---|---|
| Resistor R, current i | Same as i | Drop of iR |
| Resistor R, current i | Opposite to i | Rise of iR |
| Voltage source | Enter at −, leave at + | Rise equal to the source value |
| Voltage source | Enter at +, leave at − | Drop equal to the source value |
The direction in which the current actually flows does not matter for the bookkeeping. You assign a reference direction, write the equation, and let the sign of the answer tell you the truth. A negative result means the current flows opposite to your assumed arrow.
A single-loop example
Consider one loop with a 12 V source and three resistors in series: R1 = 2 Ω, R2 = 4 Ω, and R3 = 6 Ω. Assume current i flows clockwise, leaving the source's positive terminal.
Walk clockwise starting at the source's negative terminal. You first cross the source and gain 12 V. Then you cross each resistor in the direction of the current, so each is a drop.
Using the "rises = drops" form:
12 = 2i + 4i + 6i
12 = 12i
i = 1 A
The voltage drops are 2 V, 4 V, and 6 V. They add up to the 12 V rise, as KVL requires.
The next code block does the same calculation and checks the loop sum numerically.
# Single loop: 12 V source with R1, R2, R3 in series.
V = 12.0
resistances = [2.0, 4.0, 6.0]
# KVL: V = i * (R1 + R2 + R3)
i = V / sum(resistances)
drops = [i * r for r in resistances]
print(f"i = {i:.3f} A")
for r, d in zip(resistances, drops):
print(f"Drop across {r:.0f} ohm = {d:.3f} V")
# Sum of changes around the loop: rise minus all drops should be zero.
loop_sum = V - sum(drops)
print(f"Sum of voltage changes around loop = {loop_sum:.6f} V")The loop sum prints as zero. If it does not, the equation or the arithmetic contains an error. This makes KVL a built-in check on your own work.
The same loop with the "sum equals zero" form
Some textbooks write every term with a sign and set the total to zero. You choose a walking direction, then write each element as +v or −v depending on whether you meet its positive or negative terminal first.
For the example above, walking clockwise from the source:
+12 − 2i − 4i − 6i = 0
This gives the same result. The two forms differ only in where you place terms. Pick one form and keep using it. Mixing the two within one problem is a common source of sign errors.
Walking direction and current direction
Two choices are independent, and beginners often merge them:
- The direction you walk around the loop.
- The reference direction you assign to the current.
For a single loop you can choose them to match, which makes every resistor a drop. In mesh analysis you will usually choose them to match, because the mesh current defines the walking direction. This convention removes sign decisions for the mesh's own resistors.
Problems arise when two loops share a resistor. A resistor on the boundary between two meshes carries two currents, and each mesh equation must account for the other. That topic belongs to the later chapters on writing mesh equations. For now, notice only that KVL itself is unchanged. It holds for every loop, so each loop gives one equation.
A loop with an opposing source
Sources do not always help the current. Take a loop with a 10 V source, a 4 V source, and resistors of 2 Ω and 3 Ω in series. Assume the current flows clockwise. The 10 V source pushes clockwise. The 4 V source is wired so that, walking clockwise, you enter at its positive terminal and leave at its negative terminal.
Walking clockwise, the 10 V source is a rise and the 4 V source is a drop:
10 − 4 = 2i + 3i
6 = 5i
i = 1.2 A
The opposing source reduces the net driving voltage from 10 V to 6 V. This idea returns in the two-mesh example of a later chapter, where a second source opposes the clockwise current.
# Loop with an opposing source.
V_help, V_oppose = 10.0, 4.0
R_total = 2.0 + 3.0
i = (V_help - V_oppose) / R_total
print(f"i = {i:.2f} A")
print(f"Loop check: {V_help - V_oppose - i * R_total:.6f} V")A diagram of the walk
The diagram shows the order of the steps when you apply KVL to one loop.
Common errors
The following mistakes cause most wrong answers when students first use KVL.
- Wrong sign on a source. Check which terminal you meet first. The drawn current direction is not the test. The walking direction is.
- Forgetting a resistor. List every element in the loop before writing the equation. Count them against the diagram.
- Mixing equation forms. Writing some terms in the "sum = 0" form and others in the "rises = drops" form flips signs.
- Treating the current arrow as the true direction. The arrow is a reference. A negative answer only means the real current is opposite.
- Using a loop that is not closed. KVL applies to closed paths. You may use an open path only if you include the voltage between its two ends as a term.
Why KVL gives mesh analysis its equations
A circuit with many loops has many possible KVL equations, but not all are independent. In a planar circuit, the meshes are the smallest loops with no other loop inside them. KVL written around every mesh gives a complete, independent set of equations. Writing KVL around a larger outer loop adds no new information, because that loop is a combination of the meshes it encloses.
This is why mesh analysis uses the smallest loops. Each equation is simple, and together they are enough to find every current in the circuit. The following chapters define the meshes, fix the sign convention, and show how to assemble and solve the equations.
Exercise
A loop has a 9 V source, a 3 V source opposing it, and two resistors of 1 Ω and 2 Ω in series. Taking the 9 V source as pushing the current clockwise, what is the loop current, and what is the voltage across the 2 Ω resistor?
Show answer
The net driving voltage is 9 − 3 = 6 V. The total resistance is 1 + 2 = 3 Ω. KVL gives 9 − 3 = 1·i + 2·i, so i = 6 / 3 = 2 A in the clockwise direction. The voltage across the 2 Ω resistor is 2 × 2 = 4 V. As a check, the drops are 2 V and 4 V, which add to 6 V and match the net rise.
Exercise
You write the KVL equation for a loop and solve for the current, and the answer is −0.5 A. What does the negative sign mean, and do you need to redo the problem?
Show answer
The negative sign means the actual current flows opposite to the reference direction you assumed. You do not need to redo the problem. The magnitude 0.5 A is correct. You can report the current as 0.5 A in the opposite direction, or keep the negative value with the original reference arrow.