Find a course

Module 3: Kirchhoff's Laws and Systematic AnalysisLesson 6 of 1216 min

Nodal and Mesh Analysis

Solve multi-source circuits efficiently with nodal analysis using node voltages and mesh analysis using loop currents, and choose the better method.

Step 1 of 12Learn

Fewer unknowns, fewer mistakes

Raw Kirchhoff analysis works, but the number of equations grows fast. A circuit with 6 branches needs 6 unknown currents and 6 equations. Two systematic methods cut that down by choosing smarter unknowns.

Nodal analysis uses node voltages as unknowns:

  1. Pick a reference node (ground), usually the node connected to the most components. Its voltage is 0.
  2. Label the voltage of every other node: V_A, V_B, ...
  3. At each non-reference node, write KCL with every current expressed through Ohm's law as (difference in voltage) / resistance.
  4. Solve for the node voltages; any current follows from them.

The trick is in step 3: the current from node A to node B through resistor R is simply (V_A − V_B) / R. Writing all currents as leaving the node and setting their sum to zero avoids sign confusion.

Back to the two-source circuit from the last lesson. It has only one unknown node, A. Currents leaving A:

(V_A − 10)/2 + V_A/4 + (V_A − 6)/4 = 0

Multiply by 4: 2V_A − 20 + V_A + V_A − 6 = 0, so 4V_A = 26 and V_A = 6.5 V.

One equation instead of three. Every current follows directly: I1 = (10 − 6.5)/2 = 1.75 A, the same answer as before.

Step 2 of 12Practice · Work it out

In a circuit, node B connects to a 12 V source through 3 Ω, to ground through 6 Ω, and to ground through another 6 Ω. Using nodal analysis, what is V_B in volts?

Step 3 of 12Learn

Mesh analysis

Mesh analysis uses loop currents as unknowns. A mesh is a loop that contains no other loops inside it, like a windowpane in the circuit drawing.

  1. Assign a mesh current circulating in each window, all in the same direction (clockwise is conventional).
  2. Write KVL around each mesh. Where two meshes share a resistor, the actual current in it is the difference of the two mesh currents.
  3. Solve for the mesh currents.

For the two-source circuit, call the left mesh current i1 and the right one i2, both clockwise. R2 is shared and carries i1 − i2 downward.

Left mesh: 10 − 2i1 − 4(i1 − i2) = 0 → 6i1 − 4i2 = 10

Right mesh (the 6 V source's + is on top, so walking clockwise down through it is a drop): −4i2 − 6 − 4(i2 − i1) = 0 → −4i1 + 8i2 = −6

Solve: from the first, i1 = (10 + 4i2)/6. Substituting gives 32i2 = 4, so i2 = 0.125 A and i1 = 1.75 A. The current in R2 is i1 − i2 = 1.625 A. Same answers, as they must be.

A useful pattern: in each mesh equation, the coefficient of the mesh's own current is the sum of resistances around that mesh (6 and 8 here), and the coefficient of a neighbor's current is minus the shared resistance (−4).

Step 4 of 12Practice · Fill in the blanks

Fill in the blanks

In mesh analysis, the actual current through a resistor shared by two meshes equals the of the two mesh currents when both are drawn clockwise.

Step 5 of 12Try the calculator

Two-equation solver

Mesh and nodal analysis often produce two equations: a·x + b·y = e and c·x + d·y = f. This solves them with Cramer's rule. The defaults are the mesh equations from the text.

Determinant (ad − bc)
32
x
1.75
y
0.125

Step 6 of 12Learn

Choosing the method, and handling special cases

Both methods solve every planar circuit; the question is which needs fewer equations.

  • Nodal analysis needs one equation per node, minus the reference. It's the favorite of circuit simulators like SPICE and works for any circuit, planar or not.
  • Mesh analysis needs one equation per mesh. It only applies to planar circuits, those you can draw without crossing wires.

Count before you start. A ladder circuit with 5 nodes and 2 meshes is a mesh problem; a circuit with many parallel branches between two nodes is a nodal problem.

Two special cases simplify things:

  • A voltage source between a node and ground fixes that node's voltage. That node needs no equation at all.
  • A current source in a mesh boundary (only in one mesh) fixes that mesh current directly.

The awkward cases have their own techniques: a voltage source between two non-reference nodes forms a supernode (write one KCL equation around both nodes plus the source's voltage equation), and a current source shared by two meshes forms a supermesh. You'll meet these in a full circuits textbook; the core idea is the same: use the source to replace one equation.

Whatever the method, finish with a check: KCL at a node, or the power balance.

Step 7 of 12Diagram

Choosing an analysis method

Choosing an analysis methodHierarchy diagram: New circuit to solve, Reduces with series/parallel?, Several sources, no simple reduction, Fewer nodes than meshes, Fewer meshes than nodes, Use nodal analysis, Use mesh analysis, Only one load matters?.New circuit tosolveReduces withseries/parallel?Several sources,no simplereductionFewer nodes thanmeshesFewer meshesthan nodesUse nodalanalysisUse meshanalysisOnly one loadmatters?

Tap a shape with to see more.

New circuit to solve
Reduces with series/parallel?

If yes, simplify step by step. No system of equations needed.

Several sources, no simple reduction
Fewer nodes than meshes
Fewer meshes than nodes
Use nodal analysis

Especially convenient with current sources, and when a voltage source ties a node to ground.

Use mesh analysis

Especially convenient with voltage sources in series with resistors.

Only one load matters?

Consider a Thevenin equivalent (Module 4) so you can try many loads quickly.

Step 8 of 12Note

Step 9 of 12Compare

Nodal vs. mesh analysis

AspectNodal analysisMesh analysis
UnknownsNode voltagesMesh (loop) currents
Based onKCL at each nodeKVL around each mesh
Number of equationsNodes − 1 (fewer with voltage sources to ground)Number of meshes (fewer with current sources on the boundary)
Works forAny circuitPlanar circuits only
Easy special caseVoltage source to ground fixes a nodeCurrent source on the outer edge fixes a mesh current
Awkward caseVoltage source between two nodes (supernode)Current source shared by two meshes (supermesh)

Step 10 of 12Practice · Choose one

A circuit has 4 nodes and 3 meshes. One voltage source connects a node directly to the reference node. How many equations does nodal analysis need?

Step 11 of 12Practice · What would you do?

What would you do?

A student uses nodal analysis on a circuit and writes, for node A connected to node B through 5 Ω: "current leaving A = (V_B − V_A)/5". Her other terms are written as (V_A − V_other)/R. What will happen?

Step 12 of 12Practice · Work it out

Using the mesh results i1 = 1.75 A and i2 = 0.125 A, what is the voltage across the shared 4 Ω resistor R2, in volts?