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 A current through a 5 Ω resistor produces a voltage of 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.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 A, −5 A, and an unknown current I, then
2+(−5)+I=0,so
I=3 A.The current marked −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 A, B, and C, the three possible pairwise differences are not all independent. For instance, knowing VA−VC and VB−VC determines the third difference:
VA−VB=(VA−VC)−(VB−VC).Thus, a circuit with N nodes has only N−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 V1, V2, and V3. 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 R connecting node A at voltage VA to node B at voltage VB, Ohm’s law gives the current from A to B as
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 B to A, then
IB→A=RVB−VA.These expressions describe the same physical current with opposite reference directions.
The nodal-analysis procedure is:
- Choose a reference node and call it ground.
- Label the voltages of all other nodes relative to ground.
- At every non-ground node, write KCL with currents referenced as leaving that node.
- Use Ohm’s law for each resistor current.
- 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 A current source pointing upward from ground into node 1. Three 2 Ω resistors connect node 1 to ground, node 1 to node 2, and node 2 to ground. The unknown node voltages are V1 and V2.
At node 1, the source current points into the node, so its contribution to a sum of leaving currents is −6. The two resistor currents leaving node 1 are V1/2 and (V1−V2)/2. Therefore,
−6+2V1+2V1−V2=0.At node 2, the two leaving resistor currents are (V2−V1)/2 and V2/2, giving
2V2−V1+2V2=0.The second equation gives
V1=2V2.Multiplying the first equation by 2 gives
2V1−V2=12.Substituting V1=2V2 yields 3V2=12, so
V2=4 V,V1=8 V.The resistor currents then follow from Ohm’s law:
- The resistor from node 1 to ground carries 8/2=4 A downward.
- The resistor between nodes 1 and 2 carries (8−4)/2=2 A from node 1 to node 2.
- The resistor from node 2 to ground carries 4/2=2 A downward.
At node 1, the 6 A entering equals the 4 A and 2 A leaving, so KCL checks.
Power also checks the solution. The resistor powers are 32 W, 8 W, and 8 W, for a total of 48 W. Using the passive sign convention—power is positive when current enters an element’s positive-voltage terminal—the source has 8 V across it, but its current entering the positive terminal is −6 A. Its power is therefore
P=(8)(−6)=−48 W.The negative sign means the source delivers 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 A source points upward into node 1, and a 4 A source points upward into node 3. A 4 Ω resistor joins nodes 1 and 2; a 20 Ω resistor joins nodes 2 and 3; and a 5 Ω resistor joins nodes 1 and 3. A 10 Ω resistor connects node 2 to ground, and a 16 Ω resistor connects node 3 to ground.
At node 1, the source current points into the node, so it contributes −10 to the sum of currents leaving. The KCL equation is
−10+4V1−V2+5V1−V3=0.At node 2, the three resistor currents leaving are
4V2−V1+10V2+20V2−V3=0.At node 3, the 4 A source points into the node, while the resistor currents are referenced as leaving. Thus,
−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.The sign of a current can reveal its actual direction without requiring a correct initial guess. For example, the current defined from node 2 to node 3 through the 20 Ω resistor is
20V2−V3≈2080.3−95.6≈−0.77 A.The negative value means the actual current is about 0.77 A from node 3 to node 2.
The grounding resistors carry about 8.03 A and 5.97 A downward. Together they carry about 14 A, matching the 10 A and 4 A supplied by the sources. The sources deliver approximately 1,093 W and 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 N nodes therefore needs N−1 independent KCL equations for its N−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 2 as ground in the larger circuit subtracts about 80.3 V from each original node voltage: node 1 becomes about 29.0 V, node 3 becomes about 15.3 V, and the original bottom wire becomes about −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=R1.Conductance is measured in siemens, with symbol 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.Here, V is the column of unknown node voltages, G is the conductance matrix, and 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 Ω resistor between nodes 1 and 2 contributes 1/4 to both diagonal entries for those nodes and −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 R1 through R5 and three current sources, the connections are as follows: R1 joins nodes 1 and 2; R2 joins node 2 to ground; R5 joins nodes 2 and 3; and R3 and R4 each join node 3 to ground. Source I1 points from ground into node 1. Source I2 pushes current from node 3 to node 1, and source I3 pushes current from node 2 to node 3.
The node equations are
−I1+R1V1−V2−I2=0, I3+R2V2+R5V2−V3+R1V2−V1=0, R4V3+R3V3+R5V3−V2−I3+I2=0.Collecting terms gives
R11−R110−R11R11+R21+R51−R510−R51R31+R41+R51V1V2V3=I1+I2−I3I3−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 5 by 5.
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=Iinis 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 A and 4 A sources triples the node voltages. The new value of V2 is therefore approximately
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 A, −1 A, −6 A, and I, then 4−1−6+I=0, so I=3 A.
- Current direction through a resistor: A 5 Ω resistor joins node A at 12 V and node B at 2 V. The current defined from B to A is 52−12=−2 A. Thus, the actual current is 2 A from A to B.
- 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 A source pushes current into a node connected to ground through 6 Ω and 3 Ω resistors. KCL gives −3+6V+3V=0, so V=6 V.
- Conductance: A 4 Ω resistor has conductance 41=0.25 S.
- Reversing every source: Every node voltage changes sign because the source-current vector is multiplied by −1 while the conductance matrix remains the same.
- Adding resistor currents leaving a node: A 10 V node connects through 2 Ω to a 4 V node and through 5 Ω to ground. The two currents leaving the 10 V node are 210−4=3 Aand510=2 A, for a total of 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−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.
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.