Kirchhoff's laws & loop analysis

Basic DC circuits · tree view

KVL and KCL turn any network — including ones with no series or parallel structure at all — into a set of simultaneous equations you can solve systematically by branch-current, mesh-current, or node-voltage methods.

Prerequisites

battery symbol
battery
resistor symbol
resistor
two-loop-network.svg
two-loop-network.svg
mesh-currents.svg
mesh-currents.svg
kcl-node.svg
kcl-node.svg

Kirchhoff's Current Law (KCL) tells us that the algebraic sum of currents entering and exiting a node must equal zero, so we can relate these three currents (I1, I2, and I3) to each other in a single equation.

— kuphaldt-linac DC, Vol. I (DC), ch. 10 — Branch current method source

Kirchhoff's Voltage Law (KVL) tells us that the algebraic sum of all voltages in a loop must equal zero, so we can create more equations with current terms (I1, I2, and I3) for our simultaneous equations.

— kuphaldt-linac DC, Vol. I (DC), ch. 10 — Branch current method source

Kirchhoff’s first rule—the junction rule. The sum of all currents entering a junction must equal the sum of all currents leaving the junction:

— OpenStax University Physics, Vol. 2, §10.3 Kirchhoff's Rules source

Kirchhoff’s second rule—the loop rule. The algebraic sum of changes in potential around any closed circuit path (loop) must be zero:

— OpenStax University Physics, Vol. 2, §10.3 Kirchhoff's Rules source
Show alternative explanations

KVL simply states that if I have some circuit, and if I measured the voltages in any loop in the circuit, so if I look at the voltages in any loop, then the voltages in the loop would sum to zero.

— MIT 6.002 Circuits and Electronics, Lecture 2 transcript (A. Agarwal), Lecture 2 — Basic circuit analysis method source

OK, so if I take any node of the circuit and sum up all the currents going into that node, they will all net sum to zero.

— MIT 6.002 Circuits and Electronics, Lecture 2 transcript (A. Agarwal), Lecture 2 — Basic circuit analysis method source

By algebraic, I mean accounting for signs (polarities) as well as magnitudes. By loop, I mean any path traced from one point in a circuit around to other points in that circuit, and finally back to the initial point.

— kuphaldt-linac DC, Vol. I (DC), ch. 6 — Kirchhoff's Voltage Law (KVL) source

Fortunately, if it turns out that any of our guesses were wrong, we will know when we mathematically solve for the currents (any “wrong” current directions will show up as negative numbers in our solution).

— kuphaldt-linac DC, Vol. I (DC), ch. 10 — Branch current method source

The strangest part of the Mesh Current method is envisioning circulating currents in each of the loops. In fact, this method gets its name from the idea of these currents meshing together between loops like sets of spinning gears:

— kuphaldt-linac DC, Vol. I (DC), ch. 10 — Mesh current method source

Predict every branch current in a two-loop network

Standard two-source network (see diagram): battery E1 on the left (plus terminal up), R1 across the top-left, R3 as the middle branch between node A (top) and node B (bottom), R2 across the top-right, battery E2 on the right (plus terminal up). Take B as ground (0 V). Arrows: I1 through R1 into A, I2 through R2 into A, I3 down through R3. A negative result means the real current flows opposite its arrow.

To predict the outcome:

  1. Label a current arrow in each branch (guessed directions are fine — a wrong guess just comes out negative).
  2. {"Write KCL at node A" => "I1 + I2 = I3."}
  3. {"Write KVL around the left loop" => "E1 = I1·R1 + I3·R3."}
  4. {"Write KVL around the right loop" => "E2 = I2·R2 + I3·R3."}
  5. Solve the three equations; every row below was solved exactly this way and machine-checked (KCL and both KVL walks hold to within 1e-12).
networkE1E2R1, R2, R3node A voltageI through R1I through R2I down R3
A9 V3 V1 kΩ, 1 kΩ, 1 kΩ4 V5 mA−1 mA (really 1 mA from A toward E2)4 mA
B10 V5 V2 kΩ, 1 kΩ, 2 kΩ5 V2.5 mA0 mA (E2 exactly balances node A)2.5 mA
C15 V5 V1 kΩ, 2 kΩ, 1 kΩ7 V8 mA−1 mA (really 1 mA from A toward E2)7 mA

Sign-error check — what a flipped source sign predicts

Use network A (E1 = 9 V, E2 = 3 V, all resistors 1 kΩ). Flip the sign of E2 in the right-loop KVL walk — treating the battery as a drop instead of a rise. The equations still solve cleanly and even pass KCL, because you have silently solved a different circuit: the same network with that battery reversed. Only checking against the real circuit catches it.

To predict the outcome:

  1. {"Solve network A correctly (KCL + both KVL walks)" => "node A = 4 V, I(R1) = 5 mA, 1 mA flowing from A toward E2 through R2, I(R3) = 4 mA."}
  2. Solve again with E2's sign flipped in the right-loop equation.
  3. Compare; each flipped-sign number below is the exact (machine-verified) solution of the reversed-battery circuit.
quantityflipped-sign predictionreal circuitcomment
node A voltage2 V4 Vboth solutions are internally consistent — meters tell them apart
I through R1 (toward A)7 mA5 mAflipped circuit passes KCL: 7 mA = 5 mA + 2 mA
I through R2 (from A toward E2)5 mA1 mAthe E2 branch carries 5× its real current in the flipped solution
I down R32 mA4 mAreal circuit also passes KCL: 5 mA = 1 mA + 4 mA — arithmetic alone can't flag the error

Candidate projects — awaiting review

  • Breadboard the 5-resistor network (R1 = 1 kΩ, R2 = 2.2 kΩ, R3 = 1.5 kΩ, R4 = 1 kΩ, R5 = 1.5 kΩ) from 5 V, measure every branch voltage and current, then verify the KVL loop sums and KCL node sums to within a few percent. (https://activelearning-fork.readthedocs.io/en/latest/docs/Activity_02_Kirchhoff.html, curriculum)
  • Mesh-vs-nodal challenge: invent one circuit with fewer than 7 components where mesh analysis makes the answer fall in your lap, and one where nodal analysis does — then trade with a partner and time each other. (https://www.reddit.com/r/AskElectronics/comments/43j491/what_is_the_advantage_of_mesh_analysis_over_nodal/, community)
  • Build your own practice problems: wire a random two-source network from junk-box parts (1 kΩ–100 kΩ resistors), solve it on paper by the mesh-current method, then let the DMM grade you; if any value is off by more than a few percent, re-check the build and re-solve. (Kuphaldt's DC mesh-current worksheet, learningelectronics.net, book)
  • Seven-resistor network lab: analyze one configuration by mesh analysis and another by nodal analysis, then verify both on a breadboard and cross-check with superposition. (https://www.ece.ucf.edu/labs/EEL3123/experiments/experiment-2-network-analysis-methods/, curriculum)