Nodal analysis
About this lesson
Nodal analysis turns any linear circuit into a small set of equations whose unknowns are node voltages. Follow one circuit, a 12 V source, a 1 mA current source and four resistors: choose a reference node, name the unknown node voltages v1 and v2, write KCL at each node with Ohm's law, and collect the result as G·v = i. Solving gives v1 = 8 V and v2 = 6 V, every branch current follows, and KCL and the power balance check the answer. It builds on Kirchhoff's current law and the Hardware lessons on Ohm's law and series and parallel circuits.
Unknowns are node voltages
Nodal analysis solves a circuit by finding a few node voltages. Everything else follows from them. Our circuit has a 12 V source, a 1 mA current source and four resistors. Its wires make four nodes.
node a point where two or more elements meet
(all wire joined to it is one node)
nodes here
top left between the source and R1
node 1 R1, R2 and R3 meet
node 2 R3, R4 and the current source
bottom the long bottom wire
nodal analysis: KCL at each unknown node,
every current written with node voltages.Read the lesson step by step
Unknowns are node voltages
Nodal analysis solves a circuit by finding a few node voltages. Everything else follows from them. Our circuit has a 12 V source, a 1 mA current source and four resistors. Its wires make four nodes.
node a point where two or more elements meet (all wire joined to it is one node) nodes here top left between the source and R1 node 1 R1, R2 and R3 meet node 2 R3, R4 and the current source bottom the long bottom wire nodal analysis: KCL at each unknown node, every current written with node voltages.Pick a reference node
First, choose one node as the reference and call it 0 V. Every other node voltage is measured from it. We pick the bottom wire: it touches the most parts. The ground symbol marks it.
reference node the 0 V node (ground) any node works, the answers for currents do not change. Choosing the node with the most connections keeps the equations short. node voltage v1 = voltage of node 1 measured from the reference: + at node 1.Name the unknowns
Next, name every other node. The top-left node is held at 12 V by the source, so it is already known. That leaves two unknowns: v1 at node 1 and v2 at node 2. Two unknowns need two equations.
nodes 4 reference 1 (0 V) known from a source 1 (12 V) unknown 2 v1, v2 A circuit with N nodes has at most N − 1 unknown node voltages. A voltage source to the reference removes one.Currents from node voltages
Every resistor current can be written with node voltages. The current through R3 from node 1 to node 2 is (v1 − v2)/R3: the voltage at the start minus the voltage at the end, over the resistance.
Ohm's law across one resistor i = (v_from − v_to) / R R3, node 1 → node 2: (v1 − v2) / 2 kΩ R2, node 1 → ref: (v1 − 0) / 8 kΩ R1, node 1 → source: (v1 − 12) / 2 kΩ If the answer is negative, the current flows the other way.KCL at node 1
Now apply KCL at node 1: the currents leaving add to zero. (v1 − 12)/2k + v1/8k + (v1 − v2)/2k = 0. Multiply every term by 8 kΩ to clear the fractions: 9v1 − 4v2 = 48.
KCL at node 1, leaving currents positive (v1 − 12)/2k + v1/8k + (v1 − v2)/2k = 0 × 8 kΩ: 4(v1 − 12) + v1 + 4(v1 − v2) = 0 4v1 − 48 + v1 + 4v1 − 4v2 = 0 9v1 − 4v2 = 48KCL at node 2
Then KCL at node 2. Currents leave through R3 and R4, and the current source pushes 1 mA in, so it counts as minus. (v2 − v1)/2k + v2/3k − 1 mA = 0. Times 6 kΩ: −3v1 + 5v2 = 6.
KCL at node 2, leaving currents positive (v2 − v1)/2k + v2/3k − 1 mA = 0 × 6 kΩ (kΩ × mA = V): 3(v2 − v1) + 2v2 − 6 = 0 −3v1 + 5v2 = 6 A current source gives its value directly: no resistor, no Ohm's law needed.Two equations, one matrix
Write both equations as G·v = i. The diagonal of G holds the total conductance at each node. The other entries hold minus the conductance joining the two nodes. The right side holds the source currents pushed in.
G·v = i (conductance G = 1/R, 1 mS = 1/kΩ) [ 1.125 −0.5 ] [v1] [6] [ −0.5 0.833 ] [v2] = [1] mS mA G11 = 1/2k + 1/8k + 1/2k = 1.125 mS G22 = 1/2k + 1/3k = 0.833 mS G12 = G21 = −1/2k = −0.5 mS right side: row 1 12 V / 2 kΩ = 6 mA row 2 Is = 1 mASolve for v1 and v2
Solve the pair with Cramer's rule. The determinant is 9·5 − 4·3 = 33. Then v1 = 264/33 = 8 V and v2 = 198/33 = 6 V. These two numbers fix every voltage in the circuit.
9v1 − 4v2 = 48 −3v1 + 5v2 = 6 det = 9·5 − (−4)(−3) = 33 v1 = (48·5 − (−4)·6) / 33 = 264/33 = 8 V v2 = (9·6 − (−3)·48) / 33 = 198/33 = 6 V check node 1: 9·8 − 4·6 = 48 ✓Every current follows
With the node voltages known, Ohm's law gives each current. i1 = (12 − 8)/2k = 2 mA, i2 = 8/8k = 1 mA, i3 = (8 − 6)/2k = 1 mA, i4 = 6/3k = 2 mA.
i1 R1 (12 − 8) / 2 kΩ = 2 mA i2 R2 8 / 8 kΩ = 1 mA i3 R3 (8 − 6) / 2 kΩ = 1 mA i4 R4 6 / 3 kΩ = 2 mA The dots move faster where more current flows: same spacing, more dots per second.Check the answer
Always check. At node 2, 1 mA arrives through R3 and 1 mA from the source, and 2 mA leaves through R4: 1 + 1 = 2. Power balances too: the sources supply 30 mW and the resistors absorb 30 mW.
KCL node 1: 2 = 1 + 1 mA ✓ KCL node 2: 1 + 1 = 2 mA ✓ power (passive sign convention) Vs supplies 12 × 2 = 24 mW Is supplies 6 × 1 = 6 mW R1 8 + R2 8 + R3 2 + R4 12 = 30 mW supplied 30 = absorbed 30 ✓Change the source
Turn Is from 0 to 4 mA. Only the right side of G·v = i changes, so v1 and v2 move along straight lines. Above 3.2 mA, v2 is higher than v1, and the current in R3 reverses.
Is v1 v2 i3 0 mA 7.27 V 4.36 V 1.45 mA 1 mA 8 V 6 V 1 mA 4 mA 10.18 V 10.91 V −0.36 mA G depends only on the resistors. A linear circuit gives straight lines in each source.
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01A circuit has 5 nodes. One is chosen as the reference, and a voltage source connects another node directly to the reference. How many unknown node voltages are left?
5 nodes minus the reference leaves 4 node voltages. The source fixes one of them, so 3 unknowns remain, needing 3 KCL equations.
02In the lesson's circuit, KCL at node 2 gave −3v1 + 5v2 = 6. If v1 = 8 V, what is v2?
Substitute v1 = 8: 5v2 = 6 + 3 × 8 = 30, so v2 = 6 V. The same values satisfy the node 1 equation, 9v1 − 4v2 = 48.
03What is the diagonal entry G11 of the conductance matrix for node 1 (R1 = 2 kΩ, R2 = 8 kΩ, R3 = 2 kΩ all touch node 1)?
The diagonal holds the total conductance joined to the node: 1/2k + 1/8k + 1/2k = 0.5 + 0.125 + 0.5 = 1.125 mS. The off-diagonal entry is minus the conductance between nodes 1 and 2, −0.5 mS.
04The current source is turned up to 4 mA. The model gives v1 = 10.18 V and v2 = 10.91 V. What does R3 (2 kΩ) carry?
i3 = (v1 − v2)/R3 = (10.18 − 10.91)/2k = −0.36 mA. The minus sign means the current flows against the node 1 → node 2 arrow: 0.36 mA from node 2 to node 1.
05With v1 = 8 V and v2 = 6 V, the 12 V source supplies 24 mW. The current source (1 mA, at node 2) supplies how much, and what do the four resistors absorb in total?
The current source pushes 1 mA up to node 2 at 6 V: 6 × 1 = 6 mW. The resistors absorb 8 + 8 + 2 + 12 = 30 mW, equal to the 30 mW supplied.
Glossary
- Node
- A point where two or more circuit elements connect. All ideal wire joined to that point is one node.
- Reference node
- The node chosen as 0 V, marked with the ground symbol. Every node voltage is measured from it.
- Node voltage
- The voltage of a node measured from the reference node, such as v1 = 8 V in the lesson's circuit.
- Nodal analysis
- A method that writes KCL at every unknown node, with each current expressed through node voltages, and solves for those voltages.
- Conductance
- The reciprocal of resistance, G = 1/R, measured in siemens (S). 1 mS is the conductance of 1 kΩ.
- Conductance matrix
- The matrix G in G·v = i. Its diagonal holds the total conductance at each node; each off-diagonal entry is minus the conductance joining two nodes.
- Cramer's rule
- A way to solve a small linear system: each unknown is a ratio of two determinants.
- Supernode
- Two nodes joined by a voltage source, treated as one region for KCL. It is the subject of the next lesson.
Notes and sources
- The figure is an ideal DC circuit: a 12 V source, a 1 mA current source, 2, 8, 2 and 3 kΩ resistors and wires with no resistance. Every voltage, current and power shown is computed from these values by the lesson's model.
- Currents leaving a node are counted as positive in every KCL equation here. Any consistent rule works; mixing rules inside one equation does not.
- A voltage source between two unknown nodes has no Ohm's-law current, so its two nodes are merged into a supernode. That case, and dependent sources, are the next lesson.
- Grid operators solve the same G·v = i idea on a much larger scale: power-flow studies of a national network are built on the network's nodal admittance matrix, with one row per busbar.
- Wikipedia, Nodal analysis
- J. M. Fiore, Laboratory Manual: DC Electrical Circuit Analysis, §13.1 Nodal Analysis: Theory Overview (LibreTexts)
- Alexander & Sadiku, Fundamentals of Electric Circuits (7th ed.), ch. 3 Methods of Analysis
- Wikipedia, Nodal admittance matrix (power-flow use)
- IEEE Std 315-1975, graphic symbols for electrical diagrams
Quiz Unlocks after the last step.