Circuit Topology, KCL & KVL
KCL and KVL are the topology-level conservation laws of lumped circuits. Their independent equation counts come from the graph of nodes and branches, not from the component types.
Kirchhoff's laws say what any lumped network must obey before the element equations are considered. KCL is charge conservation at nodes; KVL follows from expressing branch voltages as differences of node potentials. Together they expose which equations are independent and why writing every visible loop or node equation over-constrains nothing but wastes work.
Nodes, branches, paths, and loops #
A node is a set of ideal connections at one potential. A branch is one two-terminal path between two nodes and carries one branch current. A loop is a closed path; a mesh is a loop containing no other loop and exists only in a planar drawing.
For a connected graph with nodes and branches:
- there are independent KCL equations;
- there are independent loop equations;
- the total matches the number of branch-current unknowns in direct analysis.
Kirchhoff's current law #
With every branch current given a signed reference direction, the algebraic sum at any node is zero:
Equivalently, for an oriented incidence matrix and branch-current vector :
One row of is redundant for each connected component because summing every node equation cancels every branch current once entering and once leaving.
Kirchhoff's voltage law #
Around any closed loop:
The sign of each term follows the traversal direction relative to the branch polarity. If branch voltage is defined as , the loop sum telescopes automatically back to the starting potential.
A reliable equation audit #
Before solving a circuit:
- merge all ideal-wire connections into nodes;
- assign one current arrow and one voltage polarity per branch;
- select node equations or a tree-based independent set;
- select independent loops if using branch currents;
- add exactly one constitutive equation per branch.
If the resulting matrix is singular, inspect topology first: floating subcircuits, redundant equations, unconstrained ideal-source loops, and missing reference nodes are more common than algebra failures.
KCL and KVL are not competing solution methods. Nodal analysis uses node potentials so KVL is built into voltage differences; mesh analysis uses loop currents so KCL is built into shared-branch differences.