Nodes and meshes: formulas, solved exercises and calculator
Kirchhoff's laws let you solve any circuit, however complicated, by setting up a system of equations. Together with Ohm's law they are the basis of all circuit analysis.
Gustav Robert Kirchhoff (Königsberg, 1824 – Berlin, 1887) was a German physicist. He stated these two laws in 1845, at just 21, while still a student at the University of Königsberg, generalising Ohm's law to networks with several branches.
He later became a professor in Breslau, Heidelberg and Berlin. With Robert Bunsen he founded spectroscopy, which led them to discover caesium and rubidium, and he formulated the laws of thermal radiation and the concept of the black body, the starting point of quantum physics.
At a node, the sum of the currents flowing in equals the sum of the currents flowing out. In other words, the algebraic sum is zero:
This is conservation of charge: current neither builds up nor disappears at a node.
Around any closed path (mesh), the sum of the voltage rises equals the sum of the voltage drops:
This is conservation of energy: a charge that goes all the way round returns to the same potential.
With \(n\) nodes and \(r\) branches, you write \(n - 1\) node equations and \(r - n + 1\) independent mesh equations. With the mesh method (mesh currents) the system is reduced to just \(r - n + 1\) equations, as in the calculator below.
3 A and 0.5 A flow into a node, and 1.2 A flows out through one branch. How much flows out through the other?
A 24 V source supplies three resistors of 2, 4 and 6 Ω in series. Find the current and the voltage across each resistor.
Check: \(4 + 8 + 12 = 24\ \text{V}\). ✓
V1 = 10 V, V2 = 5 V, R1 = 2 Ω, R2 = 4 Ω, R3 = 6 Ω. Mesh equations, going round each mesh clockwise:
The current through R3 is \(I_3 = I_1 - I_2 = 1.14\ \text{A}\), downwards. Node law at the top node: \(1.59 = 0.455 + 1.14\). ✓
Same circuit with V1 = 6 V, V2 = 12 V and all three resistors of 2 Ω.
A negative \(I_2\) means the current in R2 flows opposite to the assumed direction: source V2 is the one supplying energy. And \(I_1 = 0\): the voltage of the top node (6 V) is exactly equal to V1, so the left-hand source neither supplies nor takes current.
Kirchhoff tells you how currents and voltages are shared; Ohm's law relates the two in each resistor: \(V = R \cdot I\). For simple series and parallel circuits it is enough to combine resistors; for networks with several sources, use Kirchhoff or the theorems of Thévenin and Millman.
A bigger circuit? Draw it in the circuit analyser: it sets up the node or mesh equations and solves them.