JOVANA
Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

Nodal & Mesh Analysis: Solving Any Circuit Systematically

In rung 2 you learned the two great conservation laws of circuits. But knowing the laws is not the same as having a method. Here you turn [[ee-kirchhoffs-current-law|KCL]] and [[ee-kirchhoffs-voltage-law|KVL]] into two crank-the-handle algorithms — nodal and mesh analysis — that solve any resistive network, no matter how tangled, by writing down a tidy system of linear equations and letting algebra do the rest.

When inspection runs out of road

Give a beginner a single battery, two resistors in series, and a third hanging off the middle, and they can usually reason their way to the answer: collapse the series pair, apply a voltage divider, lean on Ohm's law. This is analysis by inspection — you spot a friendly shape and reduce it. It feels clever, and for textbook toy circuits it works. But the trick has a ceiling.

Add a bridge — a resistor connecting two midpoints that are not in series or parallel with anything — and inspection collapses. There is nothing to combine. A Wheatstone bridge, a three-loop ladder, an op-amp feedback network: these are not contrived. They are the everyday shape of real electronics. You need a method that does not care how pretty the circuit looks, one that treats a 4-resistor toy and a 40-resistor mess with exactly the same recipe.

Node-voltage analysis: KCL as a machine

Picture the circuit as a plumbing diagram. Every junction where wires meet is a node — a little reservoir at some pressure. Voltage is that pressure, but pressure is only meaningful relative to something, so we plant a flag: one node becomes ground, the zero-reference, and every other node's voltage is measured against it. Pick the node with the most connections (often the bottom rail) — it makes the algebra cleanest.

Now the engine. At every node except ground, KCL says the currents leaving must sum to zero — what flows in, flows out. But here is the move that makes it mechanical: express each current with Ohm's law as a voltage difference over a resistance. The current leaving node A toward node B through resistor R is simply (V_A − V_B)/R. Write that sum-to-zero for each unknown node and you have one equation per unknown. The unknowns are the node voltages themselves.

  1. Label and ground. Mark every node. Choose one as ground (V = 0). The remaining nodes carry the unknown voltages V₁, V₂, …
  2. Write KCL per node. At each unknown node, sum the currents leaving through every connected branch and set the sum to zero. Use (V_here − V_there)/R for each resistor; a current source contributes its fixed value directly.
  3. Tidy into standard form. Collect terms so each equation reads as coefficients × node-voltages = sources. You now have N linear equations in N unknowns.
  4. Solve and back-substitute. Solve the linear system for the node voltages, then recover any branch current you want with one more Ohm's-law division.

Worked example: two nodes, two minutes

Let's make it concrete. A 10 V source drives node V₁ through a 2 kΩ resistor. From V₁ a 4 kΩ resistor crosses to node V₂. V₁ also has a 4 kΩ resistor to ground; V₂ has a 2 kΩ resistor to ground. Two unknown nodes, so two KCL equations. Watch the recipe run.

          2k          4k
  10V ───/\/\───• V1 ───/\/\───• V2
               │              │
             4k│            2k│
               │              │
  ───────────────────────────────── GND

KCL at V1 (sum of currents LEAVING = 0):
  (V1 - 10)/2k + (V1 - 0)/4k + (V1 - V2)/4k = 0

KCL at V2:
  (V2 - V1)/4k + (V2 - 0)/2k = 0

Multiply both equations by 4k to clear denominators:
  V1: 2(V1 - 10) + (V1)   + (V1 - V2) = 0  -> 4*V1 -   V2 = 20
  V2: (V2 - V1)  + 2(V2)             = 0  ->  -V1 + 3*V2 = 0

Solve:  V1 = 60/11 = 5.45 V ,  V2 = 20/11 = 1.82 V

Current through the bridging 4k:
  I = (V1 - V2)/4k = (5.45 - 1.82)/4000 = 0.91 mA
Two nodes, two KCL equations, one 2×2 solve. Notice how multiplying through by the common 4 kΩ turns the whole thing into clean integer arithmetic.

That is the entire method. No spotting clever reductions, no parallel-combination gymnastics — just label, write KCL, solve. The same four lines would handle ten nodes; you would just be solving a 10×10 system instead of a 2×2, which is exactly what a computer (or SPICE) does billions of times a second.

Mesh-current analysis: KVL as a machine

Nodal analysis is KCL's home turf. Its mirror image is mesh analysis, built on KVL. Instead of pressures at junctions, imagine circulating eddies of current — one phantom loop current swirling around each window-pane of the circuit. A mesh is exactly that: a loop with no other loop inside it, a single pane of the planar circuit's window. Assign a clockwise mesh current to each pane and those become your unknowns.

Here is the beautiful part: because every mesh current is a complete loop, KCL is satisfied automatically — whatever swirls into a node also swirls out. So you never write KCL at all. You only enforce KVL: walk around each pane, add up the voltage rises and drops, and set the trip to zero (you must end at the same pressure you started). A resistor shared between two adjacent meshes carries the difference of the two loop currents — that coupling term is the heart of the method.

  1. Find the panes. Redraw the circuit flat (planar) and identify each mesh — a loop enclosing no other loop. Assign each a clockwise current I₁, I₂, …
  2. Walk KVL per mesh. Trace each loop clockwise, summing voltage drops. A resistor used only by mesh k drops I_k·R; a resistor shared with mesh j drops (I_k − I_j)·R. A voltage source counts as a rise or drop by its orientation.
  3. Tidy into standard form. Gather terms into coefficients × mesh-currents = source voltages. M meshes give M equations in M unknowns.
  4. Solve and back-substitute. Solve for the loop currents; an actual branch current is then a single mesh current, or the difference of two if the branch is shared.

Worked example: two meshes

Take a two-window circuit: a 12 V source in the left pane, a shared resistor down the middle, separate resistors on each outer branch. Two panes means two clockwise mesh currents and two KVL trips. The only term that needs care is the shared resistor, which sees the difference of the two loops.

        I1 (cw)         I2 (cw)
   ┌──/\/\──┬──────────/\/\──┐
   │  2k    │   6k (shared)   │  3k
  12V       /\/\              /\/\
   │        │                 │
   └────────┴─────────────────┘

KVL mesh 1 (clockwise, sum of drops = 0):
  -12 + 2k*I1 + 6k*(I1 - I2) = 0
        ->  8k*I1 - 6k*I2 = 12

KVL mesh 2:
   6k*(I2 - I1) + 3k*I2 = 0
        -> -6k*I1 + 9k*I2 = 0   ->  I2 = (2/3)*I1

Substitute into mesh 1:
   8k*I1 - 6k*(2/3*I1) = 12
   8k*I1 - 4k*I1       = 12
   4k*I1 = 12   ->  I1 = 3 mA ,  I2 = 2 mA

Current in the shared 6k branch:
   I1 - I2 = 3 mA - 2 mA = 1 mA  (downward)
Two meshes, two KVL equations. The shared 6 kΩ resistor appears in both equations as (I1 − I2), which is precisely what couples the loops together.

Notice the symmetry with the nodal example. There we summed currents and solved for voltages; here we summed voltages and solved for currents. The shared resistor played the coupling role in both — a (V₁ − V₂) term in nodal, an (I₁ − I₂) term in mesh. They are dual descriptions of the same reality, and a good engineer fluently switches between them.

Choosing the method with fewer equations

Both methods always give the same answer, so the only practical question is: which one makes you solve a smaller system by hand? The cost of nodal analysis is the number of unknown nodes (total nodes minus one for ground, minus one more for each voltage source tied to a reference). The cost of mesh analysis is the number of independent meshes (window-panes). Count both, pick the smaller.

These two algorithms are the bedrock everything else stands on. Once you can crank out a node or mesh system in your sleep, the powerful theorems of rung 4 — Thévenin, superposition — stop looking like magic and start looking like clever shortcuts through the very same equations. And when you later meet capacitors and inductors, you will swap real resistances for complex impedances using phasors, write the exact same KCL and KVL systems, and solve circuits driven by AC with not one new idea about method. The recipe scales all the way up.