Conservation of Charge at a Node
Kirchhoff's Current Law (KCL) states that the algebraic sum of currents entering any node equals the sum of currents leaving it. Written as a single signed sum:
Physically, KCL is conservation of charge. A node is just a connection point with no capacity to store charge, so charge cannot accumulate there. Whatever flows in during any instant must flow out during that same instant. If this were violated, charge would pile up indefinitely at a single point, which is impossible for an idealized circuit node. KCL is the dual of Kirchhoff's Voltage Law: where KVL constrains voltages around a loop, KCL constrains currents at a junction, and together they fully determine any lumped circuit.
A common point of confusion is the sign. The law is an algebraic sum, so you must assign a reference direction to each branch current and stick with it. A convenient convention, and the one used throughout this article, is to treat currents leaving a node as positive. Under that rule the law becomes "the sum of currents leaving equals zero," which is the form that drops directly out of nodal analysis.
Writing a Node Equation
Consider a node at potential connected through resistors to three neighbors at potentials , , and ground (0 V), with a current source injecting current into the node. The current leaving through a resistor toward a neighbor at is by Ohm's law. Summing all currents leaving and setting equal to the current injected:
This single equation captures everything KCL requires at that node. The elegance of the node-voltage method is that each term is automatically a current expressed through the unknown node potentials, so you never have to introduce branch currents as separate variables.
A Worked Four-Node Example
Take a circuit with a reference (ground) node and two unknown nodes, and . A 10 mA current source pushes current into node 1. Node 1 connects to ground through , node 1 connects to node 2 through , and node 2 connects to ground through . Working in mA and kΩ (so volts come out directly), KCL at node 1 gives:
and KCL at node 2 (no source attached, so the leaving currents sum to zero):
The first equation simplifies to . The second multiplies through by 3 to give , i.e. , so . Substituting: , which is , so and .
Verify with KCL at node 1: the source delivers 10 mA. Current into ground through is , and current into node 2 is . Their sum is , matching the injected current exactly. The arithmetic closes, which is the surest sign the node equations were written correctly.
Supernodes
A complication arises when a voltage source connects two non-reference nodes directly. You cannot write the source's current in terms of node voltages, because an ideal voltage source allows any current. The fix is the supernode: enclose both nodes and the source in a single boundary, then apply KCL to the entire enclosed region. Charge conservation still holds for any closed surface, so the currents leaving the supernode boundary sum to zero:
The voltage source then supplies one constraint equation, , that pairs with the supernode KCL equation to keep the system solvable. This trick is what makes nodal analysis work even when floating sources would otherwise block it.
Counting Independent Equations
A practical question is how many KCL equations a circuit actually provides. For a circuit with nodes, you can write KCL at each node, but the equations are not all independent: the last one is the negative sum of the others, because a current leaving one node must arrive at another. The reliable rule is that of the node equations are independent. This is exactly why nodal analysis designates one node as the reference (ground) and writes KCL only at the remaining nodes. In the four-node example above there were three non-reference nodes' worth of structure but, with one node being a plain current-source injection, two unknown potentials and two equations sufficed. Understanding this counting prevents the frustration of writing a redundant equation and finding your system singular.
The same idea explains why KCL can be applied not just to a single node but to any closed surface enclosing several nodes, a generalization sometimes called the "Gaussian surface" view of KCL. Charge cannot accumulate inside the surface, so the net current crossing the boundary is zero. The supernode is precisely this principle applied to a region containing a troublesome voltage source, and it is one of the most powerful generalizations of the basic law.
KCL Versus KVL at a Glance
| Property | KCL | KVL |
|---|---|---|
| Conserved quantity | Charge | Energy / potential |
| Applied at | A node (or supernode) | A closed loop (mesh) |
| Sums to zero | Branch currents | Element voltages |
| Natural unknown | Node voltages | Mesh currents |
| Special construct | Supernode | Supermesh |
Common Mistakes
- Mixing sign conventions between terms. If one term is written as current leaving, every term must be. Flipping the sense of a single branch is the most frequent KCL error.
- Forgetting a branch connected to the node. Every wire touching a node contributes a current. Omitting the ground resistor or a source branch leaves the equation under-counted.
- Trying to write a branch current for an ideal voltage source between two nodes. Use a supernode instead; the source's current is an unknown that the source equation does not provide.
- Confusing a node with a branch. Two points joined by a plain wire (no element) are the same node. Treating them as two separate nodes invents a spurious equation.
- Sign errors in . The current leaving the node always uses the node's own potential first: .
KCL in the Frequency Domain
Like its voltage counterpart, KCL is not confined to resistive, steady-state circuits. Because it is a statement about charge conservation at an instant, it holds for time-varying currents exactly as written, and it carries over unchanged into phasor and -domain analysis. In those domains the branch currents are complex, and the node equation becomes a sum of complex terms set to zero. For a node connected to neighbors through admittances , the node equation takes the compact form in which the node voltage multiplies the sum of attached admittances:
This is the building block of the admittance matrix that powers computer-aided circuit simulators. Every simulator you use, from SPICE to the engine behind this site, assembles exactly these KCL equations at each node and solves them as a matrix system. Far from being a textbook abstraction, the node equation you write by hand is identical in form to the one a solver builds automatically, which is why a firm grasp of KCL translates directly into an understanding of how the tools work internally.
Related Tutorials
- Nodal Analysis Step by Step — the systematic procedure built entirely on KCL.
- Current Divider Equation — a direct application of KCL to parallel branches.
- Kirchhoff's Voltage Law (KVL) — the loop-based dual of KCL.