The loop rule, formally known as Kirchhoff’s Voltage Law (KVL), states that the directed sum of all electrical potential differences (voltages) around any closed circuit loop must equal exactly zero. In practical terms, this means the total voltage supplied by your sources must be perfectly accounted for by the voltage drops across every component and wire in that specific path. It is a direct expression of the conservation of energy: a coulomb of charge cannot gain or lose net energy by traveling in a circle.

In real installations, the loop rule changes how you size wire and design sensor interfaces. It dictates that you cannot ignore the voltage drop across your wiring; it forces you to upsize conductors for long feeder runs to ensure the load receives adequate voltage, and it governs how you scale down high voltages for microcontroller ADCs. For a deeper theoretical foundation, the All About Circuits KVL textbook chapter provides excellent baseline schematics.

The Loop Rule in Action: 24V Control Circuit Data

To see KVL outside of abstract textbook diagrams, let us look at a real-world 24V DC industrial control loop. This circuit powers a relay coil and a status LED from a DIN-rail power supply. The loop rule demands that the 24.0V rise from the power supply equals the sum of every voltage drop across the fuse, wiring, LED, resistor, and relay coil.

Table 1: Voltage Drop Distribution in a 24V DC Relay Control Loop (20mA Operating Current)
Circuit Element Resistance / Impedance Current Voltage Drop (Polarity) Cumulative Sum
24V DIN-Rail PSU (Source) N/A 20 mA -24.000V (Rise) -24.000V
Panel Fuse & Contacts 1.7 Ω 20 mA +0.034V (Drop) -23.966V
18 AWG Wiring (50ft total) 1.3 Ω 20 mA +0.026V (Drop) -23.940V
Red Status LED Non-linear 20 mA +2.000V (Drop) -21.940V
Current Limiting Resistor 820 Ω 20 mA +16.400V (Drop) -5.540V
24V Relay Coil 277 Ω 20 mA +5.540V (Drop) 0.000V

Notice how the contact resistance of the fuse and the 18 AWG wiring consume a small but measurable 0.060V. If you were to measure the voltage directly at the relay coil terminals with a multimeter, you would read 5.54V, not the 5.6V you might expect in a purely ideal simulation. KVL accounts for every parasitic resistance in the physical loop.

Worked Numeric Example: Sizing an ESP32 Voltage Divider

When monitoring a 12V lead-acid battery or 3S LiPo pack with an ESP32, you cannot feed 12V directly into the GPIO pins. You must use a resistor voltage divider. The loop rule is the mathematical engine used to size these resistors.

Hardware Gotcha: The ESP32’s internal ADC is notoriously non-linear near the 3.3V rail. For accurate readings, you should design your divider to peak at roughly 3.0V, not 3.3V.

The Scenario: We need to measure a fully charged 12V battery that peaks at 12.6V. We want the ADC pin to see exactly 3.0V at maximum battery voltage, while drawing minimal quiescent current to avoid draining the battery.

  1. Define the Loop: The loop consists of the 12.6V source, Resistor 1 (R1), and Resistor 2 (R2) to ground. KVL states: $V_{source} - V_{R1} - V_{R2} = 0$.
  2. Assign Voltages: We know $V_{source} = 12.6V$ and we want $V_{R2}$ (the ADC voltage) to be $3.0V$. Therefore, KVL dictates that $V_{R1}$ must drop the remaining $9.6V$ ($12.6V - 3.0V$).
  3. Choose a Current: To minimize battery drain, we select a loop current of roughly 1mA.
  4. Calculate Resistances:
    • $R2 = 3.0V / 0.001A = 3000 \Omega$ (We will use a standard 3kΩ resistor).
    • $R1 = 9.6V / 0.001A = 9600 \Omega$ (We will use a standard 10kΩ resistor).
  5. Verify with KVL using Standard Values: Total resistance is $13k\Omega$. The actual loop current is $I = 12.6V / 13,000\Omega = 0.969mA$.
    • Voltage drop across R1: $0.969mA \times 10k\Omega = 9.69V$.
    • Voltage drop across R2 (ADC pin): $0.969mA \times 3k\Omega = 2.91V$.
    • KVL Check: $12.6V - 9.69V - 2.91V = 0V$. The loop is balanced, and 2.91V is safely within the ESP32's linear ADC range.

Where You Meet the Loop Rule in Practice

You might think KVL is just for passing exams, but it governs several critical real-world electrical phenomena and code compliance issues.

Branch Circuit Voltage Drop (NEC Compliance)

According to Fluke's guidelines on voltage drop and NEC 210.19(A) informational notes, a 120V branch circuit should not experience more than a 3% voltage drop (3.6V) to the furthest outlet. If you run 100 feet of 14 AWG copper wire (which has a resistance of about 2.525 ohms per 1,000 feet) to a 15A space heater, the wire itself will drop roughly 7.5V. The loop rule dictates that the heater only receives 112.5V. This causes the heater to draw more current to compensate for the lower voltage, generating excess heat and potentially tripping the breaker. KVL is the reason electricians upsize to 12 AWG or 10 AWG for long runs.

Ground Loops in Audio and Sensor Wiring

When you connect two pieces of equipment that are plugged into different wall outlets, you create a physical loop of ground wires. If a stray magnetic field from a nearby transformer passes through this loop, it induces a voltage (via Faraday's Law). The loop rule now forces this induced noise voltage to drive a current through your audio shield or sensor ground, resulting in 60Hz mains hum or erratic ADC readings. Breaking the physical loop (using isolation transformers or differential signaling) is the only way to satisfy KVL without injecting noise.

Common Confusions: Loop Rule vs. Junction Rule

Makers and students frequently confuse Kirchhoff’s Voltage Law (KVL) with Kirchhoff’s Current Law (KCL). Here is how to keep them separated on the bench.

Feature Loop Rule (KVL) Junction Rule (KCL)
Formal Name Kirchhoff's Voltage Law Kirchhoff's Current Law
Conservation Principle Conservation of Energy Conservation of Charge
What it Calculates Voltage drops and rises around a closed path Currents entering and leaving a specific node
Core Equation $\sum V = 0$ $\sum I_{in} = \sum I_{out}$
Physical Analogy Hiking a mountain trail: your net elevation change returning to the trailhead is zero. Plumbing pipe junction: water flowing into a T-fitting must equal water flowing out.

Frequently Asked Questions

Does the loop rule apply to AC circuits?
Yes, but you must use phasor math or complex impedance. In an AC loop containing resistors, capacitors, and inductors, the simple arithmetic sum of the RMS voltages will not equal zero because the voltages are out of phase. You must sum the complex voltages (magnitude and phase angle) to satisfy KVL. The NASA Glenn Research Center provides excellent primers on how these laws apply to complex impedance networks.

Why do my multimeter measurements around a loop not sum exactly to zero?
If your KVL sum is off by a few millivolts or more, you are usually encountering one of three physical realities: 1. Meter Burden Voltage: Your multimeter introduces a tiny resistance into the circuit when measuring current, slightly altering the loop you are trying to measure. 2. Thermal EMF: Junctions of dissimilar metals (like copper probes touching soldered tin/lead joints) generate microvolt-level thermocouple effects. 3. Floating Grounds: If the circuit is not referenced to a stable earth ground, capacitive coupling from nearby AC mains can induce phantom voltages that your high-impedance meter will read, skewing your KVL sum.

Can I use KVL to find a short circuit?
Absolutely. If you measure the voltage across a component in a series loop and it reads 0V while current is flowing, KVL dictates that the entire source voltage must be dropping elsewhere. If the wiring and power supply are intact, the component itself has likely failed short, offering zero resistance and therefore dropping zero voltage.