What Is KVL? Kirchhoff’s Voltage Law Explained

KVL, or Kirchhoff’s Voltage Law, states that the sum of all voltages around any closed loop in a circuit equals zero. First published by physicist Gustav Kirchhoff in 1845 when he was just 21 years old, it remains one of the two foundational rules of circuit analysis (the other being Kirchhoff’s Current Law, which deals with current at junctions). KVL is rooted in a simple physical principle: energy cannot be created or destroyed.

The Core Idea Behind KVL

Think of voltage as electrical pressure, or more precisely, energy per unit of charge. When a battery pushes charge around a circuit, it gives that charge energy. As the charge passes through components like resistors, LEDs, or motors, it loses energy. KVL says that the total energy gained by a charge traveling around a complete loop must exactly equal the total energy lost along the way. If you add up all the voltage gains and all the voltage drops around any closed path, the result is always zero.

This is a direct consequence of the conservation of energy. A charge that leaves one terminal of a battery and eventually returns to the same terminal is back where it started. Its net change in energy for the round trip has to be zero, because energy can’t appear or vanish from nowhere.

The Mathematical Expression

In equation form, KVL is written as:

V₁ + V₂ + V₃ + … + Vₙ = 0

Here, each V represents the voltage across a component in a closed loop, and the sum of all of them equals zero. The word “algebraic” is key: some voltages are positive (gains, like from a battery) and some are negative (drops, like across a resistor). It’s the mix of positive and negative values that makes the total come out to zero.

A “closed loop” means any path through a circuit that starts at one point, passes through a series of connected components, and returns to that same starting point without retracing any segment. Even a complex circuit with dozens of components contains many such loops, and KVL holds true for every single one of them.

How to Apply KVL in Practice

Using KVL to solve a circuit problem comes down to a consistent process. First, pick a closed loop in the circuit and choose a direction to trace it, either clockwise or counterclockwise. The direction you choose doesn’t affect the final answer, but you need to stick with it for the whole loop.

As you trace the loop, assign a sign to each voltage you encounter. The standard convention works like this: if you move through a component from its positive terminal to its negative terminal (in the direction current would naturally flow through a resistor), that’s a voltage drop, and you count it as positive. If you move from negative to positive (like going through a battery from its negative to its positive terminal), that’s a voltage gain, counted as negative, or vice versa. What matters is consistency. Some textbooks flip these sign conventions, and either approach works as long as you don’t switch mid-problem.

Once you’ve written out the voltage equation for the loop, you can use Ohm’s law (voltage equals current times resistance) to replace unknown voltages with expressions involving current. This gives you an equation you can solve. For circuits with multiple loops, you write one KVL equation per loop and then solve the set of equations simultaneously. This technique is called mesh analysis, and it follows four steps:

  • Label the loops. Assign a current variable (i₁, i₂, etc.) to each independent loop in the circuit.
  • Write KVL equations. Apply KVL around each loop, expressing voltages in terms of the loop currents using Ohm’s law.
  • Solve the system. Use algebra to solve the resulting equations for each unknown current.
  • Find any other quantity. Once you know the currents, you can calculate the voltage across any component.

A Simple Example

Imagine a circuit with a 9-volt battery connected to two resistors in series: one 3-ohm resistor and one 6-ohm resistor. KVL tells you that the battery’s 9 volts must be split entirely between those two resistors. Using Ohm’s law, the current through the loop is 9 volts divided by the total resistance of 9 ohms, which gives 1 amp. The 3-ohm resistor drops 3 volts, the 6-ohm resistor drops 6 volts, and 3 + 6 = 9, perfectly matching the battery’s supply. Write it in KVL form: +9 − 3 − 6 = 0.

KVL in AC Circuits

KVL isn’t limited to batteries and resistors. It also applies to alternating current (AC) circuits that include capacitors and inductors. The math gets more involved because voltage and current in AC circuits are constantly oscillating, and they don’t always peak at the same time. Engineers handle this using phasors, a technique that represents oscillating voltages and currents as rotating arrows (or equivalently, complex numbers). In this framework, each component has an “impedance” that plays the same role resistance does in a DC circuit, but accounts for timing differences between voltage and current.

The principle stays the same: the sum of all voltage phasors around a closed loop is zero. A series AC circuit with a resistor, inductor, and capacitor still obeys KVL. The voltage supplied by the source equals the sum of the voltage drops across all three components, just expressed as complex numbers rather than simple values.

When KVL Breaks Down

KVL is extremely reliable for the vast majority of practical circuits, but it does have limits. Both of Kirchhoff’s laws are accurate for DC circuits and for AC circuits where the physical size of the circuit is much smaller than the wavelength of the signal passing through it. This is called the “lumped element” assumption, meaning you can treat each component as a self-contained unit with clearly defined voltage across its terminals.

At very high frequencies, this assumption starts to fail. The wavelength of the signal shrinks until it’s comparable to the size of the wires and components themselves. When that happens, energy can leak between parts of the circuit through electromagnetic radiation, charge can build up along conductors in ways that simple models don’t account for, and the voltage between two points can depend on the path you take to measure it. In these situations, engineers turn to the full form of Maxwell’s equations rather than relying on KVL alone.

There’s also a subtle issue involving changing magnetic fields. KVL in its textbook form assumes that the electric field in a circuit is “conservative,” meaning voltage between two points doesn’t depend on the path. A time-varying magnetic field, like one produced by a transformer or an inductor with a changing current, creates a non-conservative electric field. Kirchhoff himself accounted for this by treating the induced voltage as an electromotive force (a source), keeping the law valid. But the simplified version taught in many textbooks, where you simply sum terminal voltages to zero, can lead to confusion if you don’t properly account for magnetic induction effects. For standard circuit analysis at reasonable frequencies, this distinction rarely causes problems.