Sub topic 4
Kirchhoff's Current Law Stated
This chapter assumes you know what a node and a branch are, how to pick a current reference direction (the arrow that defines which way a current counts as positive), and how to read a basic schematic. It also assumes you can solve small linear systems. The earlier chapters in this tutorial cover those ideas. Here the law itself is stated, written in two equivalent forms, and tested against what it does and does not claim.
The law in words
Kirchhoff's current law (KCL) says that at every instant, the total current flowing into a node equals the total current flowing out of it. A node is a point, or a set of points joined by ideal wires, where two or more circuit elements connect.
KCL follows from conservation of charge. In a lumped circuit, a node cannot store charge, so any charge that arrives must leave at the same rate. Current is the rate of charge flow, so the arriving and departing currents must match.
Two details in the statement matter.
- "At every instant" means the law holds for time-varying currents, not only for DC. If the currents are
i(t)functions, the balance holds at each timet. - "Any node" means the law applies no matter what elements meet there. Resistors, capacitors, inductors, diodes, transistors, and sources all obey it, because KCL only counts the current in each branch and ignores what the branch contains.
Form 1: currents in equal currents out
The first form compares two groups of branches. Sort the branches at a node into those whose current arrives at the node and those whose current departs. Then:
sum of entering currents = sum of leaving currents
In symbols, for a node with entering currents i_a and leaving currents i_b:
Σ iin = Σ iout
This form is easy to use when you can see which way each current actually flows. You add up one side, add up the other, and set them equal. If one current is unknown, you solve for it.
For example, suppose 3 A and 5 A enter a node, and one branch carries 8 A away. The entering total is 8 A and the leaving total is 8 A, so the node is balanced.
Form 2: the algebraic sum is zero
The second form uses one sum with signs. Pick a rule for every branch, either "positive when entering" or "positive when leaving", and apply it to all branches at the node. Then:
Σ i_k = 0
where the sum runs over all N branches connected to the node, and each i_k is the branch current measured with the sign rule you chose.
This form suits equation writing. You do not need to know the true direction of each current beforehand. You choose a reference direction for each branch, write the signed sum, and let the algebra produce negative values where the real direction is opposite to your arrow.
Why the two forms are the same
Start from Form 1 and move every term to one side:
Σ iin − Σ iout = 0
Now define a signed current for each branch: +i if the branch current enters the node, and −i if it leaves. The left side is exactly the sum of those signed currents. This is Form 2 with the rule "positive when entering".
If you choose the opposite rule, "positive when leaving", every term changes sign and the sum is still zero. Multiplying an equation that equals zero by −1 gives another equation that equals zero. So the sign rule is a free choice, provided you apply it to every branch at the node. The next chapter looks at that choice in detail.
The diagram shows a node with four branches. Each arrow is a reference direction, and the equation beside it is Form 2 written with "entering is positive".
With the arrows as drawn, Form 1 gives i1 + i2 = i3 + i4. Form 2 with "entering is positive" gives i1 + i2 − i3 − i4 = 0. These are the same equation arranged two ways.
What the law claims and what it does not
KCL is a statement about current and nothing else. It helps to be exact about its scope.
- It does not involve voltage. A node can sit at any voltage and the law still holds.
- It does not depend on resistance. Ohm's law enters only when you later rewrite branch currents in terms of node voltages.
- It does not say all branch currents are equal. It says they balance in total.
- It does not require the circuit to be linear. A diode or transistor branch obeys KCL like any other.
- It requires the lumped model. The law assumes that no charge accumulates at the node and that the node is a single point in the model. A later chapter covers where this stops being true.
A common way to remember the scope is that KCL constrains how currents divide and combine at a node, while Kirchhoff's voltage law (KVL) constrains how voltages add around a loop.
A numerical check in code
KCL gives a quick test for measured data. The residual is the entering total minus the leaving total. For a correct set of readings, it is zero within measurement error.
import math
def kcl_residual(entering, leaving):
"""Return sum(entering) - sum(leaving), in the units of the inputs."""
return sum(entering) - sum(leaving)
def check_node(entering, leaving, tol=1e-9):
r = kcl_residual(entering, leaving)
if math.isclose(r, 0.0, abs_tol=tol):
return "balanced"
return f"unbalanced by {r:.3f} mA"
# Readings in mA at a node with four branches.
print(check_node([4.2, 1.3], [2.9, 2.6])) # balanced
print(check_node([4.2, 1.3], [2.9, 2.1])) # unbalanced by 0.500 mAThe second call shows how the law is used for diagnosis. A residual of 0.500 mA means either a branch current was misread, a branch was left out of the list, or a current is leaking through a path you did not account for, such as a meter or a stray connection.
Counting independent equations
A circuit with N nodes gives N KCL equations, one per node. They are not all independent. Every branch current leaves one node and enters another, so it appears once with each sign across the full set of equations. Adding all N equations therefore cancels every term and gives 0 = 0.
This means any one of the equations follows from the other N − 1. When you solve a circuit, you write KCL at N − 1 nodes and treat the remaining node as the reference node. This count is the reason nodal analysis later in the tutorial picks one node as ground.
| Number of nodes | KCL equations available | Independent equations |
|---|---|---|
| 2 | 2 | 1 |
| 3 | 3 | 2 |
| 4 | 4 | 3 |
| N | N | N − 1 |
Common errors
The mistakes below account for most wrong KCL equations.
- Mixing sign rules. Writing "entering is positive" for one branch and "leaving is positive" for another at the same node produces an equation that is not zero for a real circuit. Choose one rule per node and apply it to every branch.
- Dropping a branch. Missing one branch, often a source or a wire that goes to ground, leaves the sum nonzero. Count the branches on the schematic before writing the equation.
- Confusing a reference arrow with the true direction. An arrow on the diagram is only a definition of positive. A negative result means the real current is opposite to the arrow. It is not an error.
- Treating two points as one node. Two points joined only through a resistor are different nodes. Two points joined by an ideal wire are the same node. Writing KCL at a point that spans a resistor mixes up two separate balances.
- Forgetting that the law holds instantaneously. For AC signals, a balance of RMS values or magnitudes does not follow from KCL in general, because currents in different branches can be out of phase. The balance holds for the instantaneous values, or for phasors added as complex numbers.
Exercises
Exercise
At a node, 6 mA enters through branch 1, 2 mA enters through branch 2, and 5 mA leaves through branch 3. A fourth branch carries an unknown current i4 that is defined as leaving the node. Find i4 using Form 1.
Show answer
Entering total = 6 + 2 = 8 mA. Leaving total = 5 + i4. Setting them equal gives 8 = 5 + i4, so i4 = 3 mA, and it leaves the node.
Exercise
Four branches meet at a node. All four currents are defined as entering the node. You know i1 = 2 A, i2 = −5 A, and i3 = 1 A. Use Form 2 to find i4, and describe what the sign of i2 means.
Show answer
The sum is i1 + i2 + i3 + i4 = 0, so 2 − 5 + 1 + i4 = 0 and i4 = 2 A (entering). The value i2 = −5 A means the real current in branch 2 is 5 A leaving the node, opposite to its reference arrow.
Exercise
A circuit has 5 nodes. How many KCL equations can you write, and how many are independent? Explain why the count differs.
Show answer
You can write 5 equations, one per node, but only 4 are independent. Each branch current appears once with a plus sign and once with a minus sign across all node equations, so adding all five gives 0 = 0. Any one equation follows from the other four.