Skip to content
GATEiit

GATE EC · Networks, Signals and Systems

Node and mesh analysis

Systematic circuit solving with KCL (nodal analysis) and KVL (mesh analysis): writing the equations by inspection, supernodes and supermeshes, dependent sources, and choosing the method with fewer equations.

Before you start

  • Ohm's law and Kirchhoff's laws

    Nodal analysis is KCL at each node and mesh analysis is KVL round each mesh, with Ohm's law for every resistor.

  • Solving linear equations →

    Both methods end in a small linear system, usually solved by Cramer's rule or substitution.

This topic comes before: Amplifiers, summers, differentiators, integrators, Linear 2-port network parameters, Norton’s theorem, Phasors, Reciprocity, Solution of network equations using Laplace transform, Superposition, Thevenin's theorem, Wye-delta transformation

Concept notes

1. Nodal analysis

Nodal analysis applies KCL at every node, writing branch currents with Ohm's law in terms of node voltages measured from a chosen reference (ground) node.

Steps:

  1. Pick the reference node, usually the one with the most branches. Label the other N−1 node voltages.
  2. At each non-reference node, set the sum of currents leaving through the elements equal to the current entering from current sources: ∑Vk−VjR=Iin.
  3. Solve the N−1 equations.

For a circuit with only resistors and independent current sources the equations come by inspection as [G][V]=[I]:

  • Gkk = sum of conductances connected to node k;
  • Gkj = −(sum of conductances between nodes k and j);
  • Ik = net source current into node k.

This G matrix is symmetric. A voltage source in series with a resistor can be turned into a current source (source transformation) before writing the matrix.

A voltage source from a node to ground simply fixes that node voltage, removing one unknown.

Nodal analysis works for any circuit, planar or not, and is the method SPICE uses.

+−10 V2 ΩV14 Ω6 ΩV22 Ω1 Areference node
Circuit for Example 1: two unknown node voltages V1 and V2 with respect to the reference node.

2. Supernode

If a voltage source sits between two non-reference nodes, the current through it is unknown and cannot be written with Ohm's law. Handle it with a supernode:

  1. Enclose the source and its two nodes in one closed surface (the supernode).
  2. Write one KCL for the whole supernode: the sum of currents leaving it through all other elements equals the source current entering it.
  3. Add the constraint equation given by the source: Va−Vb=Vs (with a at the + terminal).

The number of equations stays N−1: one KCL is replaced by the constraint.

A resistor in parallel with that voltage source does not change the node voltages; it only draws extra current through the source. Ignore it while writing the supernode KCL.

Example pattern: nodes V1 and V2 joined by a 6 V source (V1 at +), V1 to ground through 3 Ω, V2 to ground through 6 Ω, and a 4 A source into V1. Supernode KCL: V13+V26=4; constraint V1=V2+6. This gives V2=4 V and V1=10 V (Example 3).

Dependent sources fit the same method: write the controlling variable (a voltage or a branch current) in terms of node voltages, substitute, and solve. With dependent sources the matrix is no longer symmetric, so do not write it by inspection; write KCL directly.

3. Mesh analysis

Mesh analysis applies KVL round every mesh (a loop with no other loop inside it) of a planar circuit, using mesh currents as unknowns. A branch shared by two meshes carries the difference of their mesh currents.

Steps:

  1. Check the circuit is planar. Assign a mesh current to each mesh, all clockwise.
  2. In each mesh, sum the voltage drops round the loop and equate to the source voltages that drive current in the clockwise direction.
  3. Solve the B−N+1 equations (B branches, N nodes).

By inspection, for resistors and independent voltage sources, [R][I]=[V]:

  • Rkk = total resistance round mesh k;
  • Rkj = −(resistance shared by meshes k and j), when both currents are clockwise;
  • Vk = net source voltage driving current clockwise in mesh k.

In the circuit shown, mesh 1 has 2+4=6 Ω, mesh 2 has 4+2+2=8 Ω and they share 4 Ω:

which gives I1=5 A and I2=2.5 A (Example 2). The current down the shared 4 Ω is I1−I2=2.5 A.

+−20 V2 Ω4 Ω2 Ω2 ΩI1I2
Circuit for Example 2: two meshes with clockwise mesh currents I1 and I2 sharing the 4 Ω branch.

4. Supermesh, and choosing the method

A current source in a branch on the outer boundary of the circuit fixes that mesh current directly (for example I2=−3 A if it pushes 3 A anticlockwise).

A current source in a branch shared by two meshes makes a supermesh: the voltage across a current source is unknown, so

  1. write one KVL round the loop formed by the two meshes excluding the shared branch;
  2. add the constraint Ia−Ib=Is, with signs fixed by the source direction.

Choosing nodal or mesh. Count the equations each needs and pick the smaller set, after removing the unknowns fixed by sources.

Nodal Mesh
Law KCL KVL
Unknowns node voltages mesh currents
Number of equations N−1 B−N+1
Easy sources current sources voltage sources
Awkward source floating voltage source (supernode) shared current source (supermesh)
Works for any circuit planar circuits only

Each voltage source reduces the nodal count by one; each current source reduces the mesh count by one.

After solving, any other quantity follows directly: branch current from node voltages (I=(Va−Vb)/R), power P=I2R=V2/R, or the power delivered by a source VsI when the current leaves its + terminal.

Formulas to remember

Nodal equations by inspectionGkk = sum of conductances at node k; Gkj = minus the conductance between k and j
[G][V]=[I]
Mesh equations by inspectionRkk = total resistance of mesh k; Rkj = minus the shared resistance (all currents clockwise)
[R][I]=[V]
Number of nodal equationsN nodes, including the reference
N−1
Number of mesh equationsB branches; planar circuits only
B−N+1
Branch current from node voltages
Ia→b=Va−VbR
Cramer's rule for two unknownsFor a1x+b1y=c1 and a2x+b2y=c2
x=c1b2−b1c2a1b2−b1a2,y=a1c2−c1a2a1b2−b1a2

Common mistakes

  • Mixing sign conventions in one KCL equation: take all currents leaving the node, with source currents entering on the other side.
  • Writing the shared-branch current as I1 instead of I1 − I2 in mesh analysis.
  • Writing KVL round a mesh that contains a current source; the voltage across a current source is unknown, so use a supermesh.
  • Forgetting the constraint equation for a supernode or supermesh, leaving one equation short.
  • Writing the conductance matrix by inspection when the circuit has dependent sources; it is no longer symmetric.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Two-node nodal analysis

numerical

In the circuit of the nodal analysis diagram, a 10 V source in series with 2 Ω feeds node V1; V1 goes to ground through 4 Ω and to node V2 through 6 Ω; V2 goes to ground through 2 Ω, and a 1 A source injects current into V2. Find V1 and V2.

  1. Step 1: Write KCL at node 1 (currents leaving).

    Try it on paper first.

Example 2: Two-mesh analysis

numerical

In the circuit of the mesh analysis diagram (20 V source, 2 Ω top-left, 4 Ω shared, 2 Ω top-right and 2 Ω on the right), find the mesh currents and the power in the shared 4 Ω resistor.

  1. Step 1: Write KVL round mesh 1 (clockwise).

    Try it on paper first.

Example 3: Supernode with a floating voltage source

numerical

Nodes V1 and V2 are joined by a 6 V source with its + terminal at V1. V1 goes to ground through 3 Ω, V2 goes to ground through 6 Ω, and a 4 A source drives current from ground into V1. Find V1 and V2.

  1. Step 1: Why can you not write KCL at node 1 alone?

    Try it on paper first.

Example 4: Which method needs fewer equations?

conceptual

A planar circuit has 6 nodes and 9 branches, with one voltage source connected between a node and the reference. Which method gives fewer unknowns?

  1. Step 1: Count the nodal unknowns.

    Try it on paper first.

Previous year questions

3 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 3 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.