Sub topic 5
Kirchhoff's voltage law: the sum around a loop is zero
This chapter states Kirchhoff's voltage law (KVL), shows the equivalent ways to write it, and uses it to find an unknown voltage. It assumes you can already do the following:
- Read a circuit diagram that shows ideal voltage sources and resistors.
- Use Ohm's law, V = IR.
- Read polarity marks (+ and −) on a component.
- Recognize a loop and a mesh, as defined in the vocabulary chapter earlier in this tutorial.
The chapter does not explain why the law holds, which comes in the next chapter. It does not cover the step-by-step method for setting up equations either, which comes after that.
The statement
Kirchhoff's voltage law says that the algebraic sum of the voltages around any closed loop in a circuit is zero.
Written as an equation for a loop with N elements:
v1 + v2 + v3 + ... + vN = 0Three words in that statement need care.
- Algebraic means each voltage carries a sign. Two voltages of 5 V can add to 10 V or to 0 V, depending on how each is oriented relative to your direction of travel.
- Closed loop means a path that starts at a node, passes through elements, and returns to the same node without visiting any other node twice.
- Any means the loop does not have to be a mesh. It can be any closed path in the circuit, and it can be one that crosses a gap that holds no component, such as a pair of open terminals.
What "the voltage of an element" means inside the sum
Each term in the sum is the voltage of one element, read in the direction you travel around the loop. Suppose you walk around the loop and enter an element at its + terminal and leave at its − terminal. You have moved from higher potential to lower potential, so that term is a drop of +v when you count drops. Suppose you enter at the − terminal and leave at the + terminal. You have gone up in potential, so the term is a rise.
The direction of travel is your choice. The current direction is a separate choice, and the two need not match. KVL only needs you to use your direction of travel consistently, so that every term is read the same way.
Two equivalent forms
You can write the same law in two ways. Pick one and stay with it for the whole problem.
| Form | Rule | Equation |
|---|---|---|
| Signed sum | Add each element's voltage, counting it positive if you enter at its + terminal and negative if you enter at its − terminal. | v1 + v2 + ... + vN = 0 |
| Rises equal drops | Add all rises on one side and all drops on the other. | Σ rises = Σ drops |
These forms always give the same equation, and they differ only in bookkeeping. If you count rises as positive instead of drops, every sign in the signed sum flips. The equation is still equal to zero, so the result is unchanged.
A worked example
Take a single loop with four elements:
- A 9 V source.
- Element A, with a 2 V drop in the direction of travel.
- Element B, with a 3 V drop in the direction of travel.
- Element C, whose voltage is unknown.
Travel around the loop in the direction that passes through the source from its − terminal to its + terminal. The source is a rise of 9 V, so count it as +9. Elements A and B are drops, so count them as −2 and −3 when you treat rises as positive.
+9 − 2 − 3 + v_C = 0
v_C = −4 VThe sign of v_C is relative to your direction of travel and the rule above. A result of −4 V means element C is a drop of 4 V in that direction. The rises-equal-drops form shows this directly:
rises = drops
9 = 2 + 3 + drop_C
drop_C = 4 VBoth forms agree: C is a 4 V drop, and the 9 V rise balances the 2 V, 3 V and 4 V drops.
A diagram of the loop
Each arrow is labeled with the change in potential across the element you just passed. Adding the four labels gives 9 − 2 − 3 − 4 = 0, which is KVL for this loop.
Checking a loop in code
The sum is easy to automate. The script below stores each element's voltage as a signed change in potential in the direction of travel, then computes the loop sum and solves for one unknown.
# Each entry is (name, change in potential in the direction of travel, in volts).
# A rise is positive and a drop is negative.
known = [
("source", +9.0),
("A", -2.0),
("B", -3.0),
]
partial = sum(v for _, v in known)
# KVL: partial + v_C = 0, so v_C is the negative of the partial sum.
v_C = -partial
print(f"Change across C = {v_C:+.1f} V") # -4.0 V, which is a 4 V drop
loop = known + [("C", v_C)]
total = sum(v for _, v in loop)
print(f"Loop sum = {total:.1f} V") # 0.0 VThe loop sum prints 0.0. If it prints anything else after you add every element, a voltage is missing, has the wrong sign, or belongs to a different loop.
Two sources in one loop
Sources do not have to agree. Put a 12 V source and a 5 V source in series with a 7 Ω resistor, with the 5 V source connected the opposite way.
Travel in the direction that is a rise through the 12 V source. That direction passes through the 5 V source from its + terminal to its − terminal, so it is a drop.
+12 − 5 − I·7 = 0
I = 7 / 7 = 1 AThe current is positive in the direction of travel because the 12 V source dominates. If you had traveled the other way, every sign would flip: −12 + 5 + I·7 = 0, and I would be −1 A. The −1 A means the current is 1 A in the opposite sense from your assumed direction. Both calculations describe the same physical situation, which is the point of using a signed sum.
KVL across a gap
Because KVL applies to any closed path, it also applies to a path that crosses an open pair of terminals. Suppose a 6 V source feeds two resistors in series with an open gap between terminals P and Q at the end. The current is zero, so no resistor has a voltage drop. Travel from Q to P through the circuit and back to Q across the gap:
+6 − 0 − 0 − v_PQ = 0
v_PQ = 6 VThis is how you find the open-circuit voltage at a pair of terminals. The gap carries no current but it still has a voltage, and KVL gives its value.
Edge cases and limits to keep in mind
- A loop with one element. A single source wired to itself would require v = 0, which is a contradiction for any nonzero source. This is why ideal voltage sources cannot be shorted by an ideal wire.
- Two ideal sources in parallel with different values. The loop through both sources gives v1 − v2 = 0, which is impossible when v1 ≠ v2. Real sources have internal resistance, which is why real circuits do not hit this contradiction.
- Loops that share elements. Each loop gets its own equation, and a shared element appears in both with its own sign in each. Mesh analysis relies on this, and a later chapter covers it.
- Independence. In a circuit with several loops, only some loop equations are independent. Writing an equation for a loop that is a combination of two others adds no new information.
- Lumped model. The law as stated assumes the circuit is a lumped model, with no changing magnetic flux linking the loop. A later chapter covers when that assumption fails.
Summary of the working rule
- Choose a closed loop and a direction of travel.
- For each element, note which terminal you reach first.
- Count the voltage as positive if you reach the + terminal first, and negative if you reach the − terminal first. Use this rule for every element.
- Set the sum equal to zero.
- Solve for the unknown. A negative result means the actual polarity is opposite to the one you assumed.
Exercise
A loop contains a 15 V source and three other elements. Traveling around the loop, the source is a 15 V rise. The first element is a 4 V drop and the second is a 6 V drop. What is the voltage change across the third element, and is it a rise or a drop?
Show answer
Add the known changes: +15 − 4 − 6 = +5 V. KVL requires the total to be zero, so the third element contributes −5 V. It is a 5 V drop in the direction of travel.
Exercise
A 10 V source and an 18 V source are in series with a 4 Ω resistor. The sources oppose each other, and you travel in the direction that is a rise through the 10 V source. Write the KVL equation, find the current in your direction of travel, and say which way the current actually flows.
Show answer
Traveling in the direction that is a rise through the 10 V source, you pass the opposing 18 V source as a drop. The equation is +10 − 18 − 4I = 0, so I = −8/4 = −2 A. The negative sign means the current is 2 A in the direction opposite to your direction of travel, because the 18 V source dominates.