Supernode circuit analysis, step by step

Updated

A supernode is what you use in nodal analysis when a voltage source connects two nodes, neither of which is the reference node. You can't write KCL at either node on its own, because the current through a voltage source is unknown. Instead, you treat the two nodes and the source as one big node: write a single KCL equation around all of it, and use the source as a constraint between the two node voltages.

The circuit below is the first worked example on this page. You can edit it, or draw your own, then solve it step by step.

Example 1: a voltage source between two nodes
Example 1: a voltage source between two nodes Solve this circuit step by step →

What is a supernode?

A supernode is a region of a circuit that encloses a voltage source (independent or dependent) and the two non-reference nodes it connects. It isn't a real node, and it has no voltage of its own. It's a way of writing KCL when one of the branches is a voltage source.

The problem it solves is this. Nodal analysis writes the current through every branch in terms of node voltages: the current through a resistor RR from node aa to node bb is Va−VbR\frac{V_a - V_b}{R}. That doesn't work for a voltage source, whose current can be anything the rest of the circuit needs. A supernode avoids ever having to write that current down: drawn around the source, the unknown current flows from one side of the boundary to the other, and so doesn't appear in KCL for the supernode at all.

Where the voltage source isWhat to do
Between a node and the reference nodeNo supernode. It sets that node's voltage: Va=VsV_a = V_s.
Between two non-reference nodesA supernode: one KCL equation for both nodes, plus the constraint Va−Vb=VsV_a - V_b = V_s.
Two or more voltage sources joined at a nodeOne larger supernode around all of them, with one constraint per source.

How to solve a circuit with a supernode

  1. Choose a reference node and label the voltage at every other node: V1V_1, V2V_2, and so on.
  2. Find the supernodes. Every voltage source between two non-reference nodes makes one. Draw a dashed boundary around the source and both of its nodes.
  3. Write the constraint equation. The source fixes the difference between its two node voltages: V+−V−=VsV_+ - V_- = V_s, where V+V_+ is the node at its + end.
  4. Write KCL for the supernode. Add up the currents leaving the supernode through every branch that crosses its boundary, and set the total to zero. Leave out the voltage source itself: its current stays inside the boundary.
  5. Write KCL at the other nodes as usual.
  6. Solve. You have one equation per unknown node voltage: a constraint and a KCL equation for each supernode, and a KCL equation for each other node. Substitute the constraint, or solve them all as a matrix.
  7. Check your answer with KCL at one of the supernode's nodes on its own, now that you can work out the source's current.

A supernode needs two equations because it covers two unknown node voltages. KCL gives one of them, and the voltage source (which is really KVL around the source) gives the other.

Example 1: a voltage source between two nodes

In the circuit at the top of the page, a 6 V6\,\text{V} source V1V1 connects node 1 (its + end) and node 2. R1R1 (2 Ω2\,\Omega) connects node 1 to the reference node, R2R2 (3 Ω3\,\Omega) connects node 2 to the reference node, and a 4 A4\,\text{A} current source I1I1 pushes current into node 2. Find V1V_1 and V2V_2.

Step 1: label the nodes

The bottom wire is the reference node, V0=0V_0 = 0, and the two unknowns are V1V_1 and V2V_2.

Step 2: spot the supernode

V1V1 sits between two non-reference nodes, so nodes 1 and 2, with V1V1 between them, form a supernode.

Step 3: write the constraint

V1−V2=6V_1 - V_2 = 6

Step 4: write KCL for the supernode

Three branches cross the supernode's boundary: R1R1, R2R2 and the current source. Adding up the currents leaving it, where I1I1's 4 A4\,\text{A} comes in:

V12+V23−4=0\frac{V_1}{2} + \frac{V_2}{3} - 4 = 0

Step 5: solve

Substitute V1=V2+6V_1 = V_2 + 6 and multiply by 6:

3(V2+6)+2V2=24⇒5V2=63(V_2 + 6) + 2V_2 = 24 \quad\Rightarrow\quad 5V_2 = 6
V1=7.2 V,V2=1.2 VV_1 = 7.2\,\text{V}, \qquad V_2 = 1.2\,\text{V}

Step 6: check

R1R1 carries 7.22=3.6 A\frac{7.2}{2} = 3.6\,\text{A} and R2R2 carries 1.23=0.4 A\frac{1.2}{3} = 0.4\,\text{A}, down to the reference node, which adds up to the 4 A4\,\text{A} from I1I1. KCL at node 2 on its own says the 3.6 A3.6\,\text{A} for R1R1 flows from node 2 to node 1 through V1V1, which it can, as a voltage source carries whatever current the circuit needs.

Open Example 1 in Circuitsteps to see every step, including the matrix and the current through each component.

Example 2: a supernode and a grounded source

This circuit has two voltage sources. V1V1 (20 V20\,\text{V}) connects node 1 to the reference node. V2V2 (5 V5\,\text{V}) connects node 2 and node 3, with its + end at node 3. R1R1 (4 Ω4\,\Omega) connects nodes 1 and 2, R2R2 (8 Ω8\,\Omega) and R3R3 (2 Ω2\,\Omega) connect nodes 2 and 3 to the reference node, and I1I1 pushes 1 A1\,\text{A} into node 3.

Example 2: a supernode and a grounded source
Example 2: a supernode and a grounded source Solve this circuit step by step →

Step 1: deal with each voltage source

V1V1 is between node 1 and the reference node, so it isn't a supernode. It just sets

V1=20 VV_1 = 20\,\text{V}

V2V2 is between two non-reference nodes, so nodes 2 and 3 form a supernode, with the constraint

V3−V2=5V_3 - V_2 = 5

Step 2: write KCL for the supernode

The branches crossing its boundary are R1R1, R2R2, R3R3 and I1I1. Adding up the currents leaving:

V2−204+V28+V32−1=0\frac{V_2 - 20}{4} + \frac{V_2}{8} + \frac{V_3}{2} - 1 = 0

Step 3: solve

Substitute V3=V2+5V_3 = V_2 + 5 and multiply by 8:

2(V2−20)+V2+4(V2+5)−8=0⇒7V2=282(V_2 - 20) + V_2 + 4(V_2 + 5) - 8 = 0 \quad\Rightarrow\quad 7V_2 = 28
V1=20 V,V2=4 V,V3=9 VV_1 = 20\,\text{V}, \qquad V_2 = 4\,\text{V}, \qquad V_3 = 9\,\text{V}

Step 4: check

Into the supernode come 20−44=4 A\frac{20 - 4}{4} = 4\,\text{A} through R1R1 and 1 A1\,\text{A} from I1I1. Out of it go 48=0.5 A\frac{4}{8} = 0.5\,\text{A} through R2R2 and 92=4.5 A\frac{9}{2} = 4.5\,\text{A} through R3R3. Both add up to 5 A5\,\text{A}.

Open Example 2 in Circuitsteps to see it solved step by step.

Common mistakes

Supernode or supermesh?

A supernode is nodal analysis's way of handling a voltage source between two nodes. Mesh analysis has the same idea for current sources: a current source shared by two meshes makes a supermesh. If a circuit has lots of voltage sources, mesh analysis may need fewer equations, and if it has lots of current sources, nodal analysis may. Circuitsteps can solve a circuit both ways, so try the nodal analysis calculator and the mesh analysis calculator to compare. If the source is a dependent one, see nodal analysis with dependent sources.

Frequently asked questions

What is a supernode?

A supernode is a voltage source between two non-reference nodes, together with those two nodes, treated as one node in nodal analysis. You write one KCL equation for the whole supernode, and use the voltage source as a constraint between the two node voltages.

When do you use a supernode?

Whenever a voltage source, independent or dependent, connects two nodes and neither of them is the reference node. If one end of the source is the reference node, there's no supernode: the source just sets the other node's voltage.

How many equations does a supernode give?

Two: one KCL equation for the supernode as a whole, and one constraint equation, V+−V−=VsV_+ - V_- = V_s, from the voltage source. Together they replace the two KCL equations you'd normally write at its two nodes.

Is a supernode the same as a supermesh?

They are the same idea in different methods. A supernode handles a voltage source between two nodes in nodal analysis, and a supermesh handles a current source shared by two meshes in mesh analysis.

Can Circuitsteps solve circuits with supernodes?

Yes. Draw the circuit and choose nodal analysis, and Circuitsteps finds the supernodes itself, then shows the constraint, the supernode's KCL equation, the matrix and every node voltage.

Stuck on a circuit? Get the full step-by-step solution.Solve it now →