EN

Kirchhoff's laws

Nodes and meshes: formulas, solved exercises and calculator

Kirchhoff's two laws

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.

Who was Gustav Kirchhoff?

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.

1. Current law (first law, nodes)

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:

\[ \sum I_{in} = \sum I_{out} \qquad\Longleftrightarrow\qquad \sum_k I_k = 0 \]

This is conservation of charge: current neither builds up nor disappears at a node.

2. Voltage law (second law, meshes)

Around any closed path (mesh), the sum of the voltage rises equals the sum of the voltage drops:

\[ \sum E = \sum R \cdot I \qquad\Longleftrightarrow\qquad \sum_k V_k = 0 \]

This is conservation of energy: a charge that goes all the way round returns to the same potential.

3. Sign convention

4. How many equations are needed

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.

Two-mesh circuit calculator

Mesh currents I1 and I2 clockwise. I3 is the current through R3, downwards.
Circuit values
V
V
Ω
Ω
Ω

Solved exercises

Exercise 1: node law

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?

\[ 3 + 0.5 = 1.2 + I \;\Rightarrow\; I = 2.3\ \text{A (out)} \]
Exercise 2: mesh law in a series circuit

A 24 V source supplies three resistors of 2, 4 and 6 Ω in series. Find the current and the voltage across each resistor.

\[ 24 = (2 + 4 + 6)\,I \;\Rightarrow\; I = 2\ \text{A} \]\[ V_1 = 4\ \text{V},\ V_2 = 8\ \text{V},\ V_3 = 12\ \text{V} \]

Check: \(4 + 8 + 12 = 24\ \text{V}\). ✓

Exercise 3: two meshes (the one in the calculator)

V1 = 10 V, V2 = 5 V, R1 = 2 Ω, R2 = 4 Ω, R3 = 6 Ω. Mesh equations, going round each mesh clockwise:

\[ \begin{cases} (2 + 6)\,I_1 - 6\,I_2 = 10 \\ -6\,I_1 + (4 + 6)\,I_2 = -5 \end{cases} \]
\[ I_1 = \frac{10 \cdot 10 - 6 \cdot 5}{8 \cdot 10 - 36} = \frac{70}{44} = 1.59\ \text{A} \]\[ I_2 = \frac{6 \cdot 10 - 8 \cdot 5}{44} = \frac{20}{44} = 0.455\ \text{A} \]

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\). ✓

Exercise 4: a current comes out negative

Same circuit with V1 = 6 V, V2 = 12 V and all three resistors of 2 Ω.

\[ \begin{cases} 4\,I_1 - 2\,I_2 = 6 \\ -2\,I_1 + 4\,I_2 = -12 \end{cases} \;\Rightarrow\; I_1 = 0\ \text{A},\quad I_2 = -3\ \text{A} \]

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.

Ohm's law, the other piece

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.