Sub topic 6
Kirchhoff's Current Law: Currents at a Node
This chapter assumes you know Ohm's law (V = I R), can read a simple schematic, and can do algebra with fractions. It also assumes you have seen series resistors and Kirchhoff's voltage law (KVL) in earlier chapters. Here you will learn the second of Kirchhoff's two laws. It is the rule behind the current divider in the next chapter.
What the law says
A node is a point where two or more circuit elements connect. Every wire joined to that point belongs to the same node. A wire with negligible resistance has the same voltage along its whole length, so it counts as a single node.
Kirchhoff's current law (KCL) says that the currents at a node add up to zero:
- The total current flowing into a node equals the total current flowing out of it.
- Equivalently, if you give each current a sign, the signed sum is zero.
Written as an equation:
sum of I_in = sum of I_outor
I_1 + I_2 + ... + I_n = 0 (all currents measured with the same convention)Why it holds
Electric current is moving charge. A node is a junction of wires, not a container, so it has no place to store charge. In ordinary circuit analysis, the lumped-element model, charge cannot pile up at a node or disappear there. If 5 mC of charge arrives each second, 5 mC must leave each second. KCL is conservation of charge applied to a junction.
KVL and KCL are independent. KVL describes energy around a loop. KCL describes charge at a point. Together with Ohm's law, they are enough to solve any linear resistive circuit.
Sign conventions
KCL does not care which convention you choose. You must choose one and apply it to every branch at that node.
- Into positive, out negative. Each current arrow pointing toward the node counts as +, and each arrow pointing away counts as −.
- Out positive, in negative. The reverse. Many textbooks use this for node-voltage analysis.
- Two-sided form. Put all inflows on the left and all outflows on the right, then set the sums equal. This is the easiest form to read.
You can also draw the current arrows in any direction you like before you start. If you guess wrong, the solved current comes out negative. A negative result means the real current flows opposite to your arrow. It is not an error.
Worked example 1: finding a missing current
Look at the node in the diagram above. Branches 1, 2, and 3 have known currents. Suppose Branch 4's current is unknown.
Inflows: 5 mA + 2 mA = 7 mA.
Outflows: 3 mA + I_4.
Set them equal:
7 mA = 3 mA + I_4
I_4 = 4 mAThe positive sign confirms the arrow for I_4 was drawn in the right direction.
Worked example 2: KCL plus Ohm's law
Most circuit problems give you resistances, not currents. The standard method is to write each branch current with Ohm's law, in terms of the node voltage, and then apply KCL.
Consider a 12 V source connected through R1 = 10 kΩ to a node A. From node A, R2 = 5 kΩ goes to ground and R3 = 10 kΩ goes to ground. Call the node voltage V_A, measured relative to ground.
Ohm's law gives each branch current:
- Current into the node through R1: (12 − V_A) / 10 kΩ
- Current out through R2: V_A / 5 kΩ
- Current out through R3: V_A / 10 kΩ
KCL says the inflow equals the sum of the outflows:
(12 - V_A) / 10k = V_A / 5k + V_A / 10kMultiply every term by 10 kΩ to clear the fractions:
12 - V_A = 2 V_A + V_A
12 = 4 V_A
V_A = 3 VThe branch currents follow from Ohm's law:
- Through R1: (12 − 3) / 10 kΩ = 0.9 mA
- Through R2: 3 / 5 kΩ = 0.6 mA
- Through R3: 3 / 10 kΩ = 0.3 mA
Check: 0.6 mA + 0.3 mA = 0.9 mA. The node balances.
Notice that R2 and R3 sit between the same two nodes, A and ground. Both see the same voltage V_A. That shared voltage is the defining property of parallel resistors. It is also why the currents split in proportion to 1/R, which the current divider chapter develops.
Checking a node in code
The same calculation in Python can solve for the node voltage and then confirm that KCL holds. The solver uses conductance, G = 1/R, because it keeps the algebra simple. The equation above becomes G1 (Vs - V) = G2 V + G3 V, so V = Vs G1 / (G1 + G2 + G3).
def node_voltage(vs, r1, r2, r3):
"""Source vs feeds node A through r1. r2 and r3 connect node A to ground."""
g1, g2, g3 = 1.0 / r1, 1.0 / r2, 1.0 / r3
return vs * g1 / (g1 + g2 + g3)
vs, r1, r2, r3 = 12.0, 10_000, 5_000, 10_000
va = node_voltage(vs, r1, r2, r3)
i_in = (vs - va) / r1 # current arriving through r1
i_r2 = va / r2 # current leaving through r2
i_r3 = va / r3 # current leaving through r3
print(f"V_A = {va:.3f} V")
print(f"I_R1 = {i_in * 1000:.3f} mA (in)")
print(f"I_R2 = {i_r2 * 1000:.3f} mA (out)")
print(f"I_R3 = {i_r3 * 1000:.3f} mA (out)")
residual = i_in - (i_r2 + i_r3)
print(f"KCL residual = {residual:.2e} A")
assert abs(residual) < 1e-12The output shows V_A = 3.000 V, currents of 0.900, 0.600, and 0.300 mA, and a residual near zero. Floating-point arithmetic means the residual may not be exactly zero, so the check compares against a small tolerance instead of testing equality.
Beyond a single junction
KCL applies to more than the point where wires meet.
- Any closed surface. Draw a boundary around any part of a circuit. The total current entering that region equals the total current leaving it. A region can contain many components, as long as no charge accumulates inside.
- Supernodes. If an ideal voltage source sits between two nodes, you can treat both nodes and the source as one region and write a single KCL equation for it. This avoids needing the current through the source, which Ohm's law cannot give you.
- Single-wire connections. If a wire connects one part of a circuit to another part by only one conductor, the current in that wire is zero. Nothing can return the charge.
Common errors
- Mixing sign conventions. If you count inflows as positive for one branch and outflows as positive for another, the equation is wrong. Pick one rule per node.
- Using KCL on the wrong object. KCL applies to nodes and closed surfaces. It does not apply to a single component. The current entering a resistor is the same as the current leaving it, but that is a statement about a series path, not a junction.
- Treating a resistor between two nodes as if it were connected to ground. The branch current is (Va − Vb) / R, using the voltage difference across the resistor. Using only one node voltage gives the wrong current unless the other end is ground.
- Forgetting that the node voltage is shared. Every branch attached to node A uses the same V_A in its Ohm's law term. If the unknown differs between branches, you have drawn two nodes, not one.
- Mistaking a negative answer for an error. It only says your arrow pointed opposite to the real current.
- Dropping a branch. Count the wires at the node before you write the equation. A missed branch breaks the balance.
How this leads to the current divider
In Worked example 2, the two parallel resistors received the same voltage and shared the incoming current. Writing KCL at the node with those branch currents expressed through Ohm's law is exactly how the current divider rule is derived. The next chapter takes that step and turns it into a formula.
Exercise
At a node, 8 mA flows in through one wire and 1 mA flows in through a second wire. Two other wires carry current away: one carries 3 mA, and the third carries an unknown current Ix. Find Ix, and state whether your original arrow for I_x pointing away from the node was correct.
Show answer
Inflows: 8 mA + 1 mA = 9 mA. Outflows: 3 mA + Ix. Setting them equal gives Ix = 9 − 3 = 6 mA. The result is positive, so the arrow pointing away from the node was correct.
Exercise
A 6 V source feeds node A through a 1 kΩ resistor. Two 2 kΩ resistors connect node A to ground. Write the KCL equation at node A, solve for V_A, and find the current through the 1 kΩ resistor.
Show answer
KCL: (6 − VA) / 1k = VA / 2k + VA / 2k. The right side simplifies to VA / 1k, so 6 − VA = VA, giving V_A = 3 V. The current through the 1 kΩ resistor is (6 − 3) / 1 kΩ = 3 mA. Each 2 kΩ resistor carries 3 V / 2 kΩ = 1.5 mA, and 1.5 mA + 1.5 mA = 3 mA balances the inflow.