1. Home
  2. Explore
  3. Engineering
  4. Circuit Nodal Analysis

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Circuit Nodal Analysis

Nodal Analysis: Solving Circuits with Kirchhoff’s Current Law

A circuit is an interconnection of circuit elements, such as sources, resistors, capacitors, and inductors. Circuit analysis determines the voltage across and current through each element; those quantities can then be used to find the power absorbed or delivered by each element.

A simple circuit may be solved directly with Ohm’s law. For example, a current of 2 A2\,\text{A}2A through a 5 Ω5\,\Omega5Ω resistor produces a voltage of

V=IR=(2 A)(5 Ω)=10 V.V = IR = (2\,\text{A})(5\,\Omega) = 10\,\text{V}.V=IR=(2A)(5Ω)=10V.

In a more complex circuit, the voltage across each resistor may not be obvious from inspection. Nodal analysis is a systematic method for finding circuit voltages and currents, built primarily on Kirchhoff’s current law (KCL) and Ohm’s law.


Circuit Connections and Basic Terms

Crossings, junctions, and nodes

A crossing between two wires in a circuit drawing does not necessarily mean the wires are connected. A connection is shown with a solid dot, often called a solder dot. A crossing without a dot represents wires that pass over one another without connecting.

A node is a point—or connected region of wire—where two or more circuit elements meet. Since an ideal wire has the same potential all along its length, an entire continuous wire is one node, even if it is drawn with several bends or dots.

Branches

A branch is a single circuit element connecting two nodes. In a circuit containing two sources and five resistors, each element is a branch, giving seven branches in total.

Loops

A loop is a closed path that does not pass through the same node more than once, except that it returns to its starting node. A path that visits a node more than once before returning to its start is not a loop under this definition.

Loop counting can be a useful circuit puzzle, but the nodal method developed here focuses on nodes rather than loops.


Kirchhoff’s Current Law

Kirchhoff’s current law (KCL) states that the algebraic sum of the currents leaving a node is zero:

∑Ileaving=0.\sum I_{\text{leaving}} = 0.∑Ileaving​=0.

To apply KCL, currents can all be assigned arrows pointing outward from the node. The arrow directions are reference choices; they do not imply that every current actually flows outward. A current that truly flows into the node will have a negative value relative to its outward arrow.

For example, if three outward-reference currents are I1I_1I1​, I2I_2I2​, and I3I_3I3​, then

I1+I2+I3=0.I_1 + I_2 + I_3 = 0.I1​+I2​+I3​=0.

This is equivalent to the familiar statement that total current entering a node equals total current leaving it.

KCL is a consequence of conservation of charge: in the circuit model, charge does not accumulate at a wire junction, so the charge arriving per second must equal the charge leaving per second.

Example: using current signs

Suppose three currents referenced as leaving a node have values 2 A2\,\text{A}2A, −5 A-5\,\text{A}−5A, and III. KCL gives

2+(−5)+I=0,2 + (-5) + I = 0,2+(−5)+I=0,

so

I=3 A.I = 3\,\text{A}.I=3A.

The negative value −5 A-5\,\text{A}−5A means that the actual current is 5 A5\,\text{A}5A into the node. The other two currents carry that amount away.


Node Voltages and the Reference Node

Independent voltages

Voltage is a difference in electric potential between two nodes. With two nodes, there is one voltage difference. With three nodes, there are three possible pairwise differences, but only two are independent: knowing two differences lets the third be calculated.

In general, a circuit with NNN nodes has

N−1N - 1N−1

independent node voltages.

Choosing ground

The first step in nodal analysis is to choose one node as the reference node, also called ground, and assign it a voltage of zero. The choice is arbitrary: any node can serve as ground. The remaining node voltages are measured relative to it.

For a circuit with four nodes, choosing one node as ground leaves three node voltages to find, often labeled V1V_1V1​, V2V_2V2​, and V3V_3V3​.

Ground is a bookkeeping reference, not a special physical property of a circuit. Only potential differences are physically significant. If the reference node changes, the numerical values assigned to node voltages may change, but voltage differences, currents, and powers remain the same.


Resistor Currents from Node Voltages

For a resistor RRR connecting nodes AAA and BBB, let their voltages be VAV_AVA​ and VBV_BVB​. Ohm’s law gives the current referenced from AAA to BBB as

IA→B=VA−VBR.I_{A\to B} = \frac{V_A - V_B}{R}.IA→B​=RVA​−VB​​.

In the opposite direction,

IB→A=VB−VAR.I_{B\to A} = \frac{V_B - V_A}{R}.IB→A​=RVB​−VA​​.

The voltage of the node where the reference current starts appears first in the numerator. The two expressions describe the same branch current with opposite reference directions.

If one endpoint is ground, its voltage is zero. For example, current from a node at voltage VVV through a resistor RRR to ground is

I=V−0R=VR.I = \frac{V - 0}{R} = \frac{V}{R}.I=RV−0​=RV​.

The Nodal-Analysis Procedure

A standard nodal-analysis solution follows these steps:

  1. Identify the nodes and choose one as ground.

  2. Assign a voltage to every non-ground node.

  3. Write KCL at every non-ground node.

  4. For each resistor current, use Ohm’s law, placing the voltage of the starting node first in the numerator.

  5. Solve the resulting equations for the node voltages.

  6. Use the voltages and Ohm’s law to find branch currents.

  7. Find element powers if needed.

For a circuit with NNN nodes, this procedure uses N−1N-1N−1 node voltages and generally requires N−1N-1N−1 independent KCL equations.


Worked Example: Three Resistors and a Current Source

Consider a circuit with a 6 A6\,\text{A}6A current source pointing up from ground into node 111. Three 2 Ω2\,\Omega2Ω resistors connect node 111 to ground, node 111 to node 222, and node 222 to ground. The non-ground node voltages are V1V_1V1​ and V2V_2V2​.

KCL at node 1

The source current points into node 111, so its value relative to an outward reference is −6 A-6\,\text{A}−6A. The resistor currents leaving node 111 are V1/2V_1/2V1​/2 and (V1−V2)/2(V_1-V_2)/2(V1​−V2​)/2:

−6+V12+V1−V22=0.-6 + \frac{V_1}{2} + \frac{V_1 - V_2}{2} = 0.−6+2V1​​+2V1​−V2​​=0.

KCL at node 2

The two resistor currents leaving node 222 are (V2−V1)/2(V_2-V_1)/2(V2​−V1​)/2 and V2/2V_2/2V2​/2:

V2−V12+V22=0.\frac{V_2 - V_1}{2} + \frac{V_2}{2} = 0.2V2​−V1​​+2V2​​=0.

The second equation gives

V1=2V2.V_1 = 2V_2.V1​=2V2​.

Multiplying the node 1 equation by 222 gives

2V1−V2=12.2V_1 - V_2 = 12.2V1​−V2​=12.

Substituting V1=2V2V_1=2V_2V1​=2V2​ yields

3V2=12,V2=4 V,V1=8 V.3V_2 = 12, \qquad V_2 = 4\,\text{V}, \qquad V_1 = 8\,\text{V}.3V2​=12,V2​=4V,V1​=8V.

Currents and power

The resistor currents are:

  • From node 111 to ground: 8/2=4 A8/2 = 4\,\text{A}8/2=4A.

  • From node 111 to node 222: (8−4)/2=2 A(8-4)/2 = 2\,\text{A}(8−4)/2=2A.

  • From node 222 to ground: 4/2=2 A4/2 = 2\,\text{A}4/2=2A.

At node 111, the source supplies 6 A6\,\text{A}6A, and the two resistor currents carry away 4+2=6 A4+2=6\,\text{A}4+2=6A, confirming KCL.

A resistor absorbs power. Using P=VIP=VIP=VI, the three resistor powers are

(8 V)(4 A)=32 W,(4 V)(2 A)=8 W,(4 V)(2 A)=8 W.(8\,\text{V})(4\,\text{A}) = 32\,\text{W}, \qquad (4\,\text{V})(2\,\text{A}) = 8\,\text{W}, \qquad (4\,\text{V})(2\,\text{A}) = 8\,\text{W}.(8V)(4A)=32W,(4V)(2A)=8W,(4V)(2A)=8W.

The source has 8 V8\,\text{V}8V across it, with its positive terminal at the top. Since 6 A6\,\text{A}6A flows out of that positive terminal, the current entering the positive terminal is −6 A-6\,\text{A}−6A. Its absorbed power is therefore

P=(8 V)(−6 A)=−48 W.P = (8\,\text{V})(-6\,\text{A}) = -48\,\text{W}.P=(8V)(−6A)=−48W.

Negative absorbed power means the source delivers 48 W48\,\text{W}48W. The delivered power equals the total resistor power absorbed, so total circuit power balances.


Worked Example: A Circuit with Three Unknown Node Voltages

Consider a circuit with ground along the bottom and three other nodes. A 10 A10\,\text{A}10A source points up into node 111, and a 4 A4\,\text{A}4A source points up into node 333. The resistors are:

  • 4 Ω4\,\Omega4Ω between nodes 111 and 222;

  • 20 Ω20\,\Omega20Ω between nodes 222 and 333;

  • 5 Ω5\,\Omega5Ω between nodes 111 and 333;

  • 10 Ω10\,\Omega10Ω from node 222 to ground;

  • 16 Ω16\,\Omega16Ω from node 333 to ground.

KCL equations

At node 111, the source current is directed into the node, so its outward-reference value is −10 A-10\,\text{A}−10A:

−10+V1−V24+V1−V35=0.-10 + \frac{V_1 - V_2}{4} + \frac{V_1 - V_3}{5} = 0.−10+4V1​−V2​​+5V1​−V3​​=0.

At node 222:

V2−V14+V210+V2−V320=0.\frac{V_2 - V_1}{4} + \frac{V_2}{10} + \frac{V_2 - V_3}{20} = 0.4V2​−V1​​+10V2​​+20V2​−V3​​=0.

At node 333, the 4 A4\,\text{A}4A source is directed into the node, so its outward-reference value is −4 A-4\,\text{A}−4A:

−4+V316+V3−V220+V3−V15=0.-4 + \frac{V_3}{16} + \frac{V_3 - V_2}{20} + \frac{V_3 - V_1}{5} = 0.−4+16V3​​+20V3​−V2​​+5V3​−V1​​=0.

Solving gives approximately

V1=109.3 V,V2=80.3 V,V3=95.6 V.V_1 = 109.3\,\text{V}, \qquad V_2 = 80.3\,\text{V}, \qquad V_3 = 95.6\,\text{V}.V1​=109.3V,V2​=80.3V,V3​=95.6V.

The method does not require guessing actual current directions. For instance, the current referenced from node 222 to node 333 through the 20 Ω20\,\Omega20Ω resistor is

V2−V320=80.3−95.620≈−0.77 A.\frac{V_2 - V_3}{20} = \frac{80.3 - 95.6}{20} \approx -0.77\,\text{A}.20V2​−V3​​=2080.3−95.6​≈−0.77A.

The negative sign means the actual current flows from node 333 to node 222.

The 10 Ω10\,\Omega10Ω and 16 Ω16\,\Omega16Ω resistors carry approximately 8.03 A8.03\,\text{A}8.03A and 5.97 A5.97\,\text{A}5.97A to ground. Their total, about 14 A14\,\text{A}14A, equals the combined 10 A10\,\text{A}10A and 4 A4\,\text{A}4A delivered into the circuit by the sources.

The 10 A10\,\text{A}10A source delivers about 1,093 W1{,}093\,\text{W}1,093W, while the 4 A4\,\text{A}4A source delivers about 382 W382\,\text{W}382W. Together, the sources deliver about 1,475 W1{,}475\,\text{W}1,475W, which is absorbed by the resistors.

Why the ground equation is unnecessary

KCL could also be written at ground, but that equation adds no independent information. If all non-ground node equations are added, every resistor current between two non-ground nodes appears once in each direction and cancels. What remains is KCL at ground, with signs reversed.

Thus, for NNN nodes, the N−1N-1N−1 non-ground node equations are sufficient for the N−1N-1N−1 unknown node voltages.

Changing the reference node

If node 222 is selected as ground instead, every node voltage is shifted by the same amount. Since node 222 was previously at about 80.3 V80.3\,\text{V}80.3V, the new values are approximately:

V1=29.0 V,V2=0 V,V3=15.3 V,V_1 = 29.0\,\text{V}, \qquad V_2 = 0\,\text{V}, \qquad V_3 = 15.3\,\text{V},V1​=29.0V,V2​=0V,V3​=15.3V,

and the original bottom wire becomes approximately −80.3 V-80.3\,\text{V}−80.3V relative to the new reference. The differences between node voltages are unchanged, so resistor currents and powers are unchanged as well.


Current Sources in KCL Equations

A current source contributes its specified current directly to a node equation; it does not receive an Ohm’s-law term. Its sign is determined by its arrow relative to the node being analyzed:

  • If the source arrow points out of the node, its current is positive in a sum of currents leaving.

  • If the source arrow points into the node, its current is negative in that sum.

The same source can therefore have opposite signs in the equations for its two endpoint nodes.


Conductance and the Matrix Form

The reciprocal of resistance is conductance:

G=1R.G = \frac{1}{R}.G=R1​.

Conductance is measured in siemens, with unit symbol S\text{S}S. It is also known as the mho, a name based on reversing the spelling of “ohm.”

For a circuit with three non-ground nodes, the KCL equations can be collected into the matrix form

GV=Iin,\mathbf{G}\mathbf{V} = \mathbf{I}_{\text{in}},GV=Iin​,

where:

  • G\mathbf{G}G is the conductance matrix;

  • V\mathbf{V}V is the column of unknown node voltages;

  • Iin\mathbf{I}_{\text{in}}Iin​ is the column of net source currents injected into each node.

For a resistor-only network with current sources, the conductance matrix follows a useful pattern:

  • Each diagonal entry is the sum of the conductances connected to that node.

  • Each off-diagonal entry is the negative of the conductance directly connecting the corresponding pair of nodes.

  • A resistor does not contribute an off-diagonal term for a pair of nodes it does not connect.

  • Each entry of Iin\mathbf{I}_{\text{in}}Iin​ is the net current pushed into that node. Current pushed out counts negatively.

Symbolic example with three nodes

Consider a circuit with resistors R1R_1R1​ through R5R_5R5​ and current sources I1I_1I1​, I2I_2I2​, and I3I_3I3​:

  • R1R_1R1​ connects nodes 111 and 222.

  • R2R_2R2​ connects node 222 to ground.

  • R5R_5R5​ connects nodes 222 and 333.

  • R3R_3R3​ and R4R_4R4​ each connect node 333 to ground.

  • I1I_1I1​ points from ground into node 111.

  • I2I_2I2​ points from node 333 to node 111.

  • I3I_3I3​ points from node 222 to node 333.

The node equations can be written as

− ⁣I1+V1−V2R1−I2=0,-\!I_1 + \frac{V_1-V_2}{R_1} - I_2 = 0,−I1​+R1​V1​−V2​​−I2​=0,
V2−V1R1+V2R2+V2−V3R5+I3=0,\frac{V_2-V_1}{R_1} + \frac{V_2}{R_2} + \frac{V_2-V_3}{R_5} + I_3 = 0,R1​V2​−V1​​+R2​V2​​+R5​V2​−V3​​+I3​=0,
V3R3+V3R4+V3−V2R5−I3+I2=0.\frac{V_3}{R_3} + \frac{V_3}{R_4} + \frac{V_3-V_2}{R_5} - I_3 + I_2 = 0.R3​V3​​+R4​V3​​+R5​V3​−V2​​−I3​+I2​=0.

In matrix form:

[1R1−1R10−1R11R1+1R2+1R5−1R50−1R51R3+1R4+1R5][V1V2V3]=[I1+I2−I3I3−I2].\begin{bmatrix} \frac{1}{R_1} & -\frac{1}{R_1} & 0 \\[4pt] -\frac{1}{R_1} & \frac{1}{R_1}+\frac{1}{R_2}+\frac{1}{R_5} & -\frac{1}{R_5} \\[4pt] 0 & -\frac{1}{R_5} & \frac{1}{R_3}+\frac{1}{R_4}+\frac{1}{R_5} \end{bmatrix} \begin{bmatrix} V_1\\ V_2\\ V_3 \end{bmatrix} = \begin{bmatrix} I_1+I_2\\ -I_3\\ I_3-I_2 \end{bmatrix}.​R1​1​−R1​1​0​−R1​1​R1​1​+R2​1​+R5​1​−R5​1​​0−R5​1​R3​1​+R4​1​+R5​1​​​​V1​V2​V3​​​=​I1​+I2​−I3​I3​−I2​​​.

The matrix is symmetric: the entry for nodes 111 and 222 equals the entry for nodes 222 and 111. This symmetry follows because the same resistor connects the two nodes, regardless of which node is considered first.

For the three-node numerical circuit, node 111 is connected through 4 Ω4\,\Omega4Ω and 5 Ω5\,\Omega5Ω resistors, so its diagonal conductance entry is

14+15.\frac{1}{4} + \frac{1}{5}.41​+51​.

The entry coupling nodes 111 and 222 is

−14.-\frac{1}{4}.−41​.

The source-current vector for that circuit is

[1004] A,\begin{bmatrix} 10\\ 0\\ 4 \end{bmatrix}\,\text{A},​1004​​A,

because the two sources inject 10 A10\,\text{A}10A into node 111 and 4 A4\,\text{A}4A into node 333.


Linearity and Scaling

A circuit made of resistors obeying Ohm’s law and ideal sources is linear. In matrix form, its behavior is described by

GV=Iin.\mathbf{G}\mathbf{V} = \mathbf{I}_{\text{in}}.GV=Iin​.

If the resistors remain unchanged, then G\mathbf{G}G remains unchanged. If every source current is multiplied by a factor kkk, the input-current vector is also multiplied by kkk, and every node voltage is multiplied by the same factor. Resistor currents scale by that factor as well.

For example, if source currents of 2 A2\,\text{A}2A, 3 A3\,\text{A}3A, and 6 A6\,\text{A}6A produce node voltages of 10 V10\,\text{V}10V, 20 V20\,\text{V}20V, and 40 V40\,\text{V}40V, doubling all source currents produces node voltages of 20 V20\,\text{V}20V, 40 V40\,\text{V}40V, and 80 V80\,\text{V}80V without changing the resistors.

Reversing every current source changes each source current to its negative. The input-current vector is then multiplied by −1-1−1, so every node voltage and resistor current also changes sign.

In the earlier numerical circuit, tripling both sources from 10 A10\,\text{A}10A and 4 A4\,\text{A}4A to 30 A30\,\text{A}30A and 12 A12\,\text{A}12A triples every node voltage. Thus,

V2≈3(80.3 V)≈241 V.V_2 \approx 3(80.3\,\text{V}) \approx 241\,\text{V}.V2​≈3(80.3V)≈241V.

Short Applications and Checks

A wire with several dots

Four solder dots along one continuous bottom wire still represent one node, because the entire ideal wire has the same potential.

Finding an unknown current with KCL

If four currents referenced as leaving a node are 4 A4\,\text{A}4A, −1 A-1\,\text{A}−1A, −6 A-6\,\text{A}−6A, and III, then

4−1−6+I=0,I=3 A.4 - 1 - 6 + I = 0, \qquad I = 3\,\text{A}.4−1−6+I=0,I=3A.

Finding current from one node to another

A 5 Ω5\,\Omega5Ω resistor connects node AAA at 12 V12\,\text{V}12V to node BBB at 2 V2\,\text{V}2V. The current referenced from BBB to AAA is

IB→A=2−125=−2 A.I_{B\to A} = \frac{2-12}{5} = -2\,\text{A}.IB→A​=52−12​=−2A.

The negative result means the actual current is 2 A2\,\text{A}2A from AAA to BBB.

Counting required node equations

A circuit with seven nodes needs six non-ground node voltages and six KCL equations.

Finding a node voltage from a current source

A 3 A3\,\text{A}3A source pushes current into a node connected to ground through 6 Ω6\,\Omega6Ω and 3 Ω3\,\Omega3Ω resistors. KCL gives

−3+V6+V3=0.-3 + \frac{V}{6} + \frac{V}{3} = 0.−3+6V​+3V​=0.

Since 16+13=12\frac{1}{6}+\frac{1}{3}=\frac{1}{2}61​+31​=21​,

V2=3,V=6 V.\frac{V}{2}=3, \qquad V=6\,\text{V}.2V​=3,V=6V.

Finding conductance

The conductance of a 4 Ω4\,\Omega4Ω resistor is

G=14=0.25 S.G = \frac{1}{4} = 0.25\,\text{S}.G=41​=0.25S.

Adding resistor currents leaving a node

A node at 10 V10\,\text{V}10V connects through a 2 Ω2\,\Omega2Ω resistor to a node at 4 V4\,\text{V}4V and through a 5 Ω5\,\Omega5Ω resistor to ground. The two currents leaving the 10 V10\,\text{V}10V node are

10−42=3 A,105=2 A.\frac{10-4}{2} = 3\,\text{A}, \qquad \frac{10}{5} = 2\,\text{A}.210−4​=3A,510​=2A.

The total current leaving through those resistors is 5 A5\,\text{A}5A.


Key Ideas to Retain

  • A continuous ideal wire is a single node; a crossing without a connection dot is not a junction.

  • KCL says the algebraic sum of currents leaving a node is zero.

  • A circuit with NNN nodes has N−1N-1N−1 independent node voltages after one node is chosen as ground.

  • For a resistor current referenced from node AAA to node BBB, use (VA−VB)/R(V_A-V_B)/R(VA​−VB​)/R.

  • Current-source terms are determined by the source arrow: outward is positive, inward is negative in a sum of leaving currents.

  • Nodal analysis produces a system of linear equations, often written as GV=Iin\mathbf{G}\mathbf{V}=\mathbf{I}_{\text{in}}GV=Iin​.

  • Changing the ground shifts voltage labels but does not change voltage differences, currents, or powers.

  • Scaling all source currents by a factor scales all node voltages and resistor currents by that same factor.

When a voltage source lies between two nodes, its current is not known in advance, so the ordinary resistor-and-current-source equations need an additional constraint; a supernode method can handle that case.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent