Sub topic 3
Kirchhoff's Voltage Law: Voltages Around a Loop
This chapter assumes you know Ohm's law (V = I R), can read a simple schematic, and can do algebra with fractions. You should also know that series resistors carry the same current. You will state Kirchhoff's voltage law (KVL), learn a sign convention you can apply without guessing, and use KVL to check and solve small circuits. The next chapter uses it to derive the voltage divider rule.
What KVL says
Kirchhoff's voltage law says that the algebraic sum of the voltages around any closed loop in a circuit is zero.
Voltage is a difference in electric potential between two points. Pick a starting point, walk around the loop through each element, and add up the potential change across each one. When you return to the start, you are at the same point and the same potential, so the net change must be zero.
An analogy is a hiking loop. Add up every climb and every descent, and a route that ends where it began gives a total of zero.
KVL follows from energy conservation. A charge that goes around a loop and returns to its starting point cannot gain or lose energy overall. The source raises its energy, and the resistors take that energy away as heat.
KVL is exact for the lumped-element model used in this tutorial: ideal wires, discrete components, and no changing magnetic flux linking the loop. At very high frequencies, or with large loops near strong changing fields, the model breaks down. For the resistive circuits here, you can treat KVL as exact.
A sign convention you can apply every time
Most mistakes with KVL are sign mistakes. Fix one convention and use it everywhere.
- Pick a loop and a direction of travel (clockwise is common).
- Mark the polarity (+ and −) on every element. For a resistor, current flows into the + end, so the + end is where the current enters.
- As you walk, look at which terminal you reach first on each element.
- Write the voltage with a plus sign if you move from − to + (a rise). Write it with a minus sign if you move from + to − (a drop).
- Set the total equal to zero.
| Element | You walk from | To | Term in the sum |
|---|---|---|---|
| Voltage source | − terminal | + terminal | +Vs (a rise) |
| Voltage source | + terminal | − terminal | −Vs (a drop) |
| Resistor, walking with the current | + end | − end | −I R |
| Resistor, walking against the current | − end | + end | +I R |
The sign depends only on your direction of travel and the marked polarity. It does not depend on whether the element is a source or a load. A source can have a negative term, and a resistor can have a positive one.
A worked example: two resistors in series
Take a 12 V source with R1 = 10 kΩ and R2 = 5 kΩ in a single loop. This is the same circuit as the first divider example in the plan.
Walk clockwise from the source's − terminal. You rise through the source by 12 V, then drop across R1 and R2:
+12 − V1 − V2 = 0
Rearranged, this gives the form many textbooks use:
Vs = V1 + V2
The supply voltage equals the sum of the voltage drops. KVL alone cannot give V1 and V2 yet, because we have not said how they relate to the current. Ohm's law supplies that. Both resistors carry the same current I, so V1 = I R1 and V2 = I R2. Then:
12 = I (R1 + R2)
I = 12 / 15 000 = 0.8 mA
V1 = 0.8 mA × 10 kΩ = 8 V
V2 = 0.8 mA × 5 kΩ = 4 V
Check: 8 V + 4 V = 12 V. The 4 V across R2 is the divider output the plan will derive in general form in the next chapter.
Checking KVL numerically
Because the sum is exactly zero in theory, you can use it as a quick check on any hand calculation. The script below walks a loop of signed voltages and reports the residual. A tiny residual from floating-point rounding is normal. A large one means a mistake.
def loop_residual(signed_voltages):
"""Sum of voltages around a loop. Rises are positive, drops are negative."""
return sum(signed_voltages)
vs = 12.0
r1, r2 = 10_000, 5_000
current = vs / (r1 + r2) # same current through both series resistors
v1 = current * r1
v2 = current * r2
residual = loop_residual([+vs, -v1, -v2])
print(f"I = {current * 1000:.2f} mA, V1 = {v1:.2f} V, V2 = {v2:.2f} V")
print(f"KVL residual = {residual:.1e} V")
assert abs(residual) < 1e-9It prints I = 0.80 mA, V1 = 8.00 V and V2 = 4.00 V. The residual is zero or on the order of 1e-15.
Opposing sources
When a loop contains two sources, the sign convention decides whether they help or fight each other. Suppose a 9 V source and a 3 V source sit in one loop with a 1 kΩ and a 2 kΩ resistor. The 3 V source is connected backward, so it opposes the 9 V source.
Walk around the loop in the direction the 9 V source pushes current. You rise 9 V through the first source, then enter the second source at its + terminal and leave at its − terminal. That is a drop of 3 V:
+9 − 3 − I (1 kΩ) − I (2 kΩ) = 0
I = 6 V / 3 kΩ = 2 mA
The resistor drops are 2 V and 4 V, which add to the net 6 V. If you had connected the 3 V source the other way, the sources would aid each other and the net driving voltage would be 12 V.
KVL in a loop that shares a branch
Real circuits often have more than one loop. Consider the loaded divider from the plan: a 12 V source drives R1 = 10 kΩ, and the node after R1 (call it A) connects to ground through both R2 = 5 kΩ and a load R3 = 10 kΩ. The two ground branches are in parallel, and the node voltage is 3 V.
There are three loops you can walk.
- Loop 1 (source, R1, R2): +12 − V1 − V2 = 0, so V1 = 12 − 3 = 9 V.
- Loop 2 (source, R1, R3): +12 − V1 − V3 = 0, so V3 = 3 V as well.
- Loop 3 (R2 and R3 only): +V2 − V3 = 0, so V2 = V3.
Loop 3 is the useful result. Two elements that connect between the same pair of nodes must have the same voltage. This is the idea behind parallel resistors, which gets its own chapter. You can also see that you do not need all three loops. Loop 3 follows from loops 1 and 2, so the equations are not independent.
You can find the currents with Ohm's law:
- Current through R1: 9 V / 10 kΩ = 0.9 mA
- Current through R2: 3 V / 5 kΩ = 0.6 mA
- Current through R3: 3 V / 10 kΩ = 0.3 mA
The currents 0.6 mA and 0.3 mA add up to 0.9 mA. That second check uses Kirchhoff's current law, which is the subject of a later chapter. KVL tells you the voltages, and KCL tells you the currents.
Edge cases and common errors
An open circuit still obeys KVL
If you break the loop, say by removing R2 from the series circuit, the current is zero. Every resistor drop is I R = 0. The full source voltage then appears across the gap, so the loop sum is still zero:
+12 − 0 − 0 − V(gap) = 0, so V(gap) = 12 V.
This is a common debugging fact. When you measure the voltage across a broken trace or an open switch in a live series circuit, you read the full supply voltage.
A short circuit
A wire across a resistor forces the voltage across it to zero, and KVL then forces the remaining elements to take the whole source voltage. With only ideal elements, a wire directly across an ideal voltage source gives a loop with +12 V and nothing to drop it, which is a contradiction. Real sources have internal resistance, and real wires have some resistance, so a large current flows instead.
Current sources in a loop
A current source fixes the current but not its voltage. When you walk a loop that includes one, give its voltage an unknown label, such as Vx, and solve for it from the rest of the loop. Do not assume it is zero.
Mixing up "voltage across" and "voltage at"
KVL deals with voltage across elements, which is a difference between two points. A voltage at a node usually means the voltage relative to ground. When you write a loop equation, use differences across elements. When you quote an answer such as "the output is 4 V", state your reference point.
A short list of mistakes to look for
- Forgetting to flip the sign when you walk against the marked polarity.
- Treating a source as always positive.
- Using one resistor's drop where the loop includes a different one.
- Using different current values for two resistors that are in series. Series elements carry the same current.
- Writing the equation for a loop that does not close, such as skipping the return path through ground.
How this leads to the divider rule
In the series example, you saw that both resistors carry I = Vs / (R1 + R2). Each resistor's voltage is its share of that current times its resistance. Dividing V2 by Vs gives:
V2 / Vs = R2 / (R1 + R2)
That ratio is the voltage divider rule. The next chapter develops it in full. KVL supplies the statement that the drops add up to the source voltage, and Ohm's law supplies the proportionality.
Exercises
Exercise
A loop contains a 10 V source, a 2 kΩ resistor and a 3 kΩ resistor in series. Write the KVL equation walking in the direction of the current, find the current, and find the voltage across each resistor.
Show answer
Walking with the current: +10 − V1 − V2 = 0, where V1 = I (2 kΩ) and V2 = I (3 kΩ). So 10 = I (5 kΩ) and I = 2 mA. Then V1 = 4 V and V2 = 6 V, and 4 V + 6 V = 10 V, which confirms the result.
Exercise
In a series loop, a 5 V source and a 2 V source are connected so that they oppose each other. The loop also holds a single 1.5 kΩ resistor. What is the current, and what is the voltage across the resistor?
Show answer
The net driving voltage is 5 V − 2 V = 3 V. The loop equation is +5 − 2 − VR = 0, so VR = 3 V. The current is 3 V / 1.5 kΩ = 2 mA, flowing in the direction the 5 V source pushes.
Exercise
A series circuit with a 12 V source and two resistors develops a break (an open circuit) in the wire between the two resistors. What voltage do you measure across the break, and what does each resistor drop? Explain using KVL.
Show answer
With the loop open, the current is zero, so each resistor drops I R = 0 V. Walking the loop gives +12 − 0 − 0 − V(break) = 0, so V(break) = 12 V. The full supply voltage appears across the gap.