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: Finding Voltages and Currents in a Circuit

A circuit is an interconnection of circuit elements, such as sources, resistors, capacitors, and inductors. Some elements supply energy, while passive elements such as resistors absorb or store it. In a simple circuit, Ohm’s law may immediately give the answer: a 2 A2\ \text{A}2 A current through a 5 Ω5\ \Omega5 Ω resistor produces a voltage of 10 V10\ \text{V}10 V.

In a more complicated circuit, several elements interact, so the voltage across each resistor cannot be found just by looking at it. Solving a circuit means finding the voltage across and current through every element, and then using those values to determine the power of each element. Nodal analysis is a systematic method for doing this, based on the voltages at the circuit’s nodes and Kirchhoff’s current law.

Reading a Circuit: Wires, Nodes, Branches, and Loops

Circuit diagrams use conventions to show which elements are connected. Two wires that cross on a drawing are not necessarily connected. A solid dot at the crossing indicates a real electrical junction. Without the dot, the wires simply pass over and under each other.

A node is a point, or connected region of wire, at which two or more circuit elements meet. An ideal wire has the same voltage all along its length, so a continuous wire counts as one node even if the diagram places several dots on it.

A branch is a single circuit element that connects two nodes. In a circuit containing two sources and five resistors, there are seven branches—one for each element.

A loop is a closed path that does not pass through the same node more than once, except when it returns to its starting point. A path that revisits an intermediate node is not a loop under this definition. Nodal analysis focuses on nodes rather than loops, so counting loops is not needed for the method.

Think About It

If a continuous bottom wire has several junction dots along it, how many different node voltages can that wire have? Since the wire has the same potential throughout, it is one node and has just one node voltage.

Kirchhoff’s Current Law

Kirchhoff’s current law, abbreviated KCL, says that the algebraic sum of the currents leaving a node is zero. For three currents marked with arrows pointing outward, the equation is

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

The word algebraic matters. An outward arrow is only a chosen reference direction; it does not claim that the current actually flows outward. If a current flows into the node, its value relative to an outward arrow is negative. KCL can therefore also be understood as saying that the total current entering a node equals the total current leaving it.

The physical reason is conservation of charge. In the circuit model, charge does not accumulate at a junction. Every coulomb of charge arriving each second must leave during that same second.

For example, if three outward-referenced currents are 2 A2\ \text{A}2 A, −5 A-5\ \text{A}−5 A, and an unknown current III, then

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

so

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

The current marked −5 A-5\ \text{A}−5 A actually flows into the node. The other two currents carry that incoming current away.

Node Voltages and the Reference Node

Voltage is always a difference between two points. If a circuit has nodes AAA, BBB, and CCC, the three possible pairwise differences are not all independent. For instance, knowing VA−VCV_A - V_CVA​−VC​ and VB−VCV_B - V_CVB​−VC​ determines the third difference:

VA−VB=(VA−VC)−(VB−VC).V_A - V_B = (V_A - V_C) - (V_B - V_C).VA​−VB​=(VA​−VC​)−(VB​−VC​).

Thus, a circuit with NNN nodes has only N−1N-1N−1 independent node voltages.

To make those voltages easy to use, one node is chosen as the reference node. Its voltage is defined as zero, and it is called ground. Ground is a bookkeeping choice: the circuit’s measurable behavior depends on voltage differences, not on the particular node chosen as zero.

Each other node is assigned a voltage measured relative to ground. For example, a four-node circuit needs only three node voltages, which might be labeled V1V_1V1​, V2V_2V2​, and V3V_3V3​. These labels mean the voltages of the corresponding nodes with respect to ground.

Think About It

Why can one voltage be assigned to every node except the reference node? The chosen reference supplies the baseline, and each remaining node needs one voltage difference from that baseline.

Using Ohm’s Law to Write KCL Equations

For a resistor RRR connecting node AAA at voltage VAV_AVA​ to node BBB at voltage VBV_BVB​, Ohm’s law gives the current from AAA to BBB as

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

The order in the numerator follows the direction of the current arrow: the starting node’s voltage comes first. If the current is instead defined from BBB to AAA, then

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

These expressions describe the same physical current with opposite reference directions.

The nodal-analysis procedure is:

  1. Choose a reference node and call it ground.
  2. Label the voltages of all other nodes relative to ground.
  3. At every non-ground node, write KCL with currents referenced as leaving that node.
  4. Use Ohm’s law for each resistor current.
  5. Solve the resulting equations, then use the voltages to find currents and powers.

A current source is handled differently from a resistor. Its current is already specified, so it does not receive an Ohm’s-law expression. At a node, a current source pointing out contributes a positive current in the leaving-current equation; one pointing in contributes a negative current.

A Small Worked Circuit

Consider a 6 A6\ \text{A}6 A current source pointing upward 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 unknown node voltages are V1V_1V1​ and V2V_2V2​.

At node 111, the source current points into the node, so its contribution to a sum of leaving currents is −6-6−6. The two resistor currents leaving node 111 are V1/2V_1/2V1​/2 and (V1−V2)/2(V_1-V_2)/2(V1​−V2​)/2. Therefore,

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

At node 222, the two leaving resistor currents are (V2−V1)/2(V_2-V_1)/2(V2​−V1​)/2 and V2/2V_2/2V2​/2, giving

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 first equation by 222 gives

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

Substituting V1=2V2V_1=2V_2V1​=2V2​ yields 3V2=123V_2=123V2​=12, so

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

The resistor currents then follow from Ohm’s law:

  • The resistor from node 111 to ground carries 8/2=4 A8/2=4\ \text{A}8/2=4 A downward.
  • The resistor between nodes 111 and 222 carries (8−4)/2=2 A(8-4)/2=2\ \text{A}(8−4)/2=2 A from node 111 to node 222.
  • The resistor from node 222 to ground carries 4/2=2 A4/2=2\ \text{A}4/2=2 A downward.

At node 111, the 6 A6\ \text{A}6 A entering equals the 4 A4\ \text{A}4 A and 2 A2\ \text{A}2 A leaving, so KCL checks.

Power also checks the solution. The resistor powers are 32 W32\ \text{W}32 W, 8 W8\ \text{W}8 W, and 8 W8\ \text{W}8 W, for a total of 48 W48\ \text{W}48 W. Using the passive sign convention—power is positive when current enters an element’s positive-voltage terminal—the source has 8 V8\ \text{V}8 V across it, but its current entering the positive terminal is −6 A-6\ \text{A}−6 A. Its power is therefore

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

The negative sign means the source delivers 48 W48\ \text{W}48 W. The total power is zero: the source delivers exactly the power absorbed by the resistors.

A Larger Numerical Circuit

Consider a circuit with three non-ground nodes and a grounded bottom wire. A 10 A10\ \text{A}10 A source points upward into node 111, and a 4 A4\ \text{A}4 A source points upward into node 333. A 4 Ω4\ \Omega4 Ω resistor joins nodes 111 and 222; a 20 Ω20\ \Omega20 Ω resistor joins nodes 222 and 333; and a 5 Ω5\ \Omega5 Ω resistor joins nodes 111 and 333. A 10 Ω10\ \Omega10 Ω resistor connects node 222 to ground, and a 16 Ω16\ \Omega16 Ω resistor connects node 333 to ground.

At node 111, the source current points into the node, so it contributes −10-10−10 to the sum of currents leaving. The KCL equation is

−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, the three resistor currents leaving are

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}4 A source points into the node, while the resistor currents are referenced as leaving. Thus,

−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 these three equations 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.3 V,V2​=80.3 V,V3​=95.6 V.

The sign of a current can reveal its actual direction without requiring a correct initial guess. For example, the current defined 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} \approx \frac{80.3-95.6}{20} \approx -0.77\ \text{A}.20V2​−V3​​≈2080.3−95.6​≈−0.77 A.

The negative value means the actual current is about 0.77 A0.77\ \text{A}0.77 A from node 333 to node 222.

The grounding resistors carry about 8.03 A8.03\ \text{A}8.03 A and 5.97 A5.97\ \text{A}5.97 A downward. Together they carry about 14 A14\ \text{A}14 A, matching the 10 A10\ \text{A}10 A and 4 A4\ \text{A}4 A supplied by the sources. The sources deliver approximately 1,093 W1{,}093\ \text{W}1,093 W and 382 W382\ \text{W}382 W, respectively; the resistors absorb the same total power.

There is no need to write a separate KCL equation at ground. If all three non-ground node equations are added, each resistor current connecting two non-ground nodes appears once in each direction and cancels. What remains is the ground-node KCL equation, with its signs reversed. It adds no new information. A circuit with NNN nodes therefore needs N−1N-1N−1 independent KCL equations for its N−1N-1N−1 unknown node voltages.

Choosing a different ground changes the numerical values of the node voltages by a common offset, but it does not change any voltage difference. For example, choosing node 222 as ground in the larger circuit subtracts about 80.3 V80.3\ \text{V}80.3 V from each original node voltage: node 111 becomes about 29.0 V29.0\ \text{V}29.0 V, node 333 becomes about 15.3 V15.3\ \text{V}15.3 V, and the original bottom wire becomes about −80.3 V-80.3\ \text{V}−80.3 V. Resistor currents and powers remain unchanged because they depend on voltage differences.

Think About It

If the chosen ground changes every node voltage by the same amount, what happens to the voltage across a resistor? Its endpoint voltage difference stays the same, so its current and power stay the same as well.

Conductance and the Matrix Form

A resistor’s conductance is the reciprocal of its resistance:

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

Conductance is measured in siemens, with symbol S\text{S}S. Writing resistor currents in terms of conductance can make nodal equations easier to organize.

For a circuit with several node voltages, the equations can be collected into the matrix form

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

Here, V\mathbf{V}V is the column of unknown node voltages, G\mathbf{G}G is the conductance matrix, and Iin\mathbf{I}_{\text{in}}Iin​ is the column of net current injected into each non-ground node. Current entering a node from a source counts as positive injection; current pushed out counts as negative injection.

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 joining the two corresponding nodes.
  • If no resistor directly joins two nodes, their off-diagonal entry is zero.

For example, a 4 Ω4\ \Omega4 Ω resistor between nodes 111 and 222 contributes 1/41/41/4 to both diagonal entries for those nodes and −1/4-1/4−1/4 to the two corresponding off-diagonal entries. The matrix is symmetric because the same resistor connects the two nodes regardless of which endpoint is considered first.

For the circuit with R1R_1R1​ through R5R_5R5​ and three current sources, the connections are as follows: R1R_1R1​ joins nodes 111 and 222; R2R_2R2​ joins node 222 to ground; R5R_5R5​ joins nodes 222 and 333; and R3R_3R3​ and R4R_4R4​ each join node 333 to ground. Source I1I_1I1​ points from ground into node 111. Source I2I_2I2​ pushes current from node 333 to node 111, and source I3I_3I3​ pushes current from node 222 to node 333.

The node equations are

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

Collecting terms gives

[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 \\ -\frac{1}{R_1} & \frac{1}{R_1}+\frac{1}{R_2}+\frac{1}{R_5} & -\frac{1}{R_5} \\ 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​​​.

For a circuit with six nodes, choosing one as ground leaves five node voltages and requires five independent KCL equations. Its conductance matrix is therefore 555 by 555.

Linearity and Scaling

For resistors obeying Ohm’s law and ideal sources, the conductance matrix depends on the resistors, while the source currents appear in the input vector. If every source current is multiplied by a factor and the resistors remain unchanged, the right-hand side of

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

is multiplied by that factor. The node voltages must then be multiplied by the same factor, and the resistor currents scale with them. This proportional behavior is called linearity.

For example, if every source in a circuit is doubled, every node voltage and resistor current doubles. If every source is reversed, each source current changes sign, and every node voltage and resistor current changes sign as well. In the larger numerical circuit, tripling the 10 A10\ \text{A}10 A and 4 A4\ \text{A}4 A sources triples the node voltages. The new value of V2V_2V2​ is therefore approximately

3(80.3)=240.9 V.3(80.3) = 240.9\ \text{V}.3(80.3)=240.9 V.

Quick Applications

These short cases reinforce the sign conventions and the counting rules.

  • Several dots on one wire: A continuous wire with four solder dots is still one node because its voltage is the same all along.
  • Four outward-referenced currents: If they are 4 A4\ \text{A}4 A, −1 A-1\ \text{A}−1 A, −6 A-6\ \text{A}−6 A, and III, then 4−1−6+I=0,4-1-6+I=0,4−1−6+I=0, so I=3 AI=3\ \text{A}I=3 A.
  • Current direction through a resistor: A 5 Ω5\ \Omega5 Ω resistor joins node AAA at 12 V12\ \text{V}12 V and node BBB at 2 V2\ \text{V}2 V. The current defined from BBB to AAA is 2−125=−2 A.\frac{2-12}{5}=-2\ \text{A}.52−12​=−2 A. Thus, the actual current is 2 A2\ \text{A}2 A from AAA to BBB.
  • Equation count: A circuit with seven nodes requires six nodal KCL equations after one node is chosen as ground.
  • One node fed by a source: A 3 A3\ \text{A}3 A 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, so V=6 VV=6\ \text{V}V=6 V.
  • Conductance: A 4 Ω4\ \Omega4 Ω resistor has conductance 14=0.25 S.\frac{1}{4}=0.25\ \text{S}.41​=0.25 S.
  • Reversing every source: Every node voltage changes sign because the source-current vector is multiplied by −1-1−1 while the conductance matrix remains the same.
  • Adding resistor currents leaving a node: A 10 V10\ \text{V}10 V node connects through 2 Ω2\ \Omega2 Ω to a 4 V4\ \text{V}4 V node and through 5 Ω5\ \Omega5 Ω to ground. The two currents leaving the 10 V10\ \text{V}10 V node are 10−42=3 Aand105=2 A,\frac{10-4}{2}=3\ \text{A} \qquad\text{and}\qquad \frac{10}{5}=2\ \text{A},210−4​=3 Aand510​=2 A, for a total of 5 A5\ \text{A}5 A.

Review: The Nodal-Analysis Method

A node is a connected region of ideal wire, and an entire continuous wire counts as one node. A branch is one element between two nodes; a loop is a closed path that does not revisit an intermediate node. KCL expresses conservation of charge by requiring the outward-referenced currents at a node to sum algebraically to zero.

Nodal analysis chooses one node as ground, assigns voltages to the remaining N−1N-1N−1 nodes, and writes one KCL equation at each of them. Resistor currents use the voltage of the starting node first in the numerator, while current-source contributions depend only on whether the source arrow enters or leaves the node. The resulting equations can be solved directly or arranged as GV=Iin\mathbf{G}\mathbf{V}=\mathbf{I}_{\text{in}}GV=Iin​.

Once the node voltages are known, Ohm’s law gives resistor currents, and voltage and current together give each element’s power. A different ground changes the voltage labels by a common offset but leaves physical voltage differences, currents, and powers unchanged. Because a resistor circuit with ideal sources is linear, scaling its sources scales its voltages and currents by the same factor.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent