Kirchhoff's circuit laws
Kirchhoff's circuit laws are two rules about how current and Voltage behave in an electrical circuit:[1]
- The current law says that the total current flowing into any junction equals the total current flowing out.
- The voltage law says that the voltages around any closed loop add up to zero.
Gustav Kirchhoff stated both laws in 1845, while he was still a student at Königsberg.[2]
Combined with the rule linking each part's current and voltage, such as Ohm's law for resistors, the laws let engineers find every current and voltage in a circuit.[3] They are the starting point of circuit analysis.[4]
The two laws
Both laws describe a circuit as parts joined by wires. They use two terms:[3][4]
- A node (or junction) is a point where the terminals of two or more parts are connected. Terminals are the connection points on an electrical part.
- A loop is any closed path through the circuit that ends where it started.
Current law
Kirchhoff's current law (KCL) says that the currents meeting at a node add to zero.[3] Currents flowing into the node count as positive and currents flowing out count as negative:
Here is the current in the -th of the wires that meet at the node. The sum of currents in equals the sum of currents out.[1] If 3 A and 2 A flow into a node, then 5 A in total must flow out of it.
Voltage law
Kirchhoff's voltage law (KVL) says that the voltages around any closed loop add to zero.[1][3] Each voltage is counted as a rise or a drop in potential, depending on the direction of travel around the loop:
Here is the voltage across the -th of the parts in the loop. In a loop with a 9 V battery and two resistors, the drops across the resistors must add to 9 V, for example 6 V and 3 V.
Why the laws are true
Each law is a circuit form of a conservation law.[1]
| Current law | Voltage law | |
|---|---|---|
| What is added | Currents at a node | Voltages around a loop |
| Conserved quantity | Electric charge | Energy |
| Basic idea | Charge cannot pile up at a node | A charge that goes once around a loop returns to the same potential |
| Main assumption | No charge builds up in wires or nodes | No changing magnetic field links the loop |
The current law follows from conservation of charge. Current is the flow of charge, and charge is neither created nor destroyed, so whatever charge flows into a node must flow out.[1]
The voltage law follows from conservation of energy. A charge at potential has potential energy . Whatever energy the sources in a loop supply must be passed on to the other parts in that loop.[1]
Signs and directions
The laws give correct answers only if signs are applied the same way every time. A common set of rules is:[1]
- Pick a direction for each unknown current. If the guess is wrong, the answer comes out negative but with the right size.
- Pick a direction to travel around each loop, clockwise or counterclockwise.
- Crossing a resistor in the direction of its current, subtract its drop . Crossing against the current, add it.
- Crossing a voltage source from its negative terminal to its positive terminal, add its voltage. Crossing from positive to negative, subtract it.
In the drop , is the current and is the resistance, a measure of how strongly the resistor opposes current, in ohms. Traveling a loop in the other direction flips the sign of every term. This is the same as multiplying the equation by , so it gives the same answer.[5]
Solving a circuit
Kirchhoff's laws turn a circuit into a set of linear equations. In these equations each unknown appears only to the first power, and no unknown is multiplied by another. The usual steps are:[1]
- Label each unknown current and choose its direction.
- Write the current law at the nodes.
- Choose loops so that every part lies in at least one loop, and write the voltage law for each.
- Use Ohm's law () for each resistor.
- Solve the equations together.
Worked example
The circuit above has a 12 V source in series with a 2 Ω resistor on the left, and a 6 V source in series with a 2 Ω resistor on the right. In series means connected one after another along the same path. A 4 Ω resistor joins the top node A to the bottom node.
This circuit cannot be reduced to series and parallel parts, so Kirchhoff's laws are needed. The current law at node A gives one equation, and the two inner loops give two more:
Currents are in amperes. Each product such as is the voltage across a resistor in volts.
The loop equations give and . Putting these into the current law gives , so A, A, and A.
The negative sign means that flows opposite to the arrow, into the positive terminal of the 6 V source. The outer loop gives , which checks the answer. That loop adds no new information, because its equation equals the first loop equation minus the second.
How many equations are needed
Not every node and loop gives a new equation. A branch is a connection between two nodes that contains one or more circuit parts. For a connected circuit with nodes and branches, the numbers of independent equations are exactly:[6]
| Equation type | Number |
|---|---|
| Current law | |
| Voltage law |
Kirchhoff proved these counts in 1847.[4]
The current-law equation at the last node is always the sum of the others. In one circuit with five nodes, Feynman notes that any one of the five node equations follows from the other four.[3]
In the worked example, and . This gives one current equation and two loop equations, matching the three unknowns.
Together the two laws give equations. Each branch also has one equation linking its current and voltage, such as Ohm's law, so there are equations for the unknown branch currents and voltages. Methods such as nodal analysis and mesh analysis arrange these equations so that fewer unknowns must be solved at once.
Graph and matrix form
A circuit can be treated as a directed graph from graph theory. A directed graph is a set of points (vertices) and connections (edges), with a chosen direction for each connection. Each part is an edge (a branch), and each node is a vertex.[7]
This form shows that the laws depend only on how the parts are connected, not on what the parts are.[7]
Incidence matrix
The connections are stored in an incidence matrix with one row per node and one column per branch. An entry is if the branch leaves that node, if it enters, and otherwise.[7] Let be the vector of branch currents, an ordered list of the current in each branch. The current law at every node then reads:
The voltage law is equivalent to saying that each node has a potential, and each branch voltage is the difference between the potentials at its two ends:[7]
Here is the vector of branch voltages and is the vector of node potentials. The potentials are fixed only up to a shared constant.[7] So one node, called the ground, is set to zero, and the other node potentials are measured against it.[7]
The current law also holds for any set of nodes taken together. The net current across the edges that separate the set from the rest of the graph is zero.[7]
Trees and independent loops
A spanning tree is a set of branches that connects every node without forming a loop. It always has branches. The other branches are called links, and adding any one link to the tree closes exactly one loop.[8]
Writing the voltage law for each of these loops gives an independent set of equations.[8]
Kirchhoff's 1847 paper gave the solution for every current in a network of resistors and sources. He wrote each current as a fraction built from products of wire resistances.[4]
- The denominator, shared by all the currents, sums one product for each way of removing wires so that no closed loop remains.[4]
- The numerator for a given wire sums products for removals that leave exactly one closed loop through that wire. Each product is multiplied by the sum of the electromotive forces (the voltages supplied by sources) in that loop.[4]
The wires left after a removal counted in the denominator form a spanning tree. Kirchhoff's solution is the source of the matrix-tree theorem for counting spanning trees.[9]
Power balance and Tellegen's theorem
The two laws together imply that power is conserved in any circuit. Measure each branch voltage and current so that the current enters the branch at the terminal taken as positive for its voltage. Then:[10]
The proof takes one line in matrix form: . This result is Tellegen's theorem, published by Bernard Tellegen in 1952.[10] It holds whatever the parts are, linear or nonlinear.[7]
A reverse statement also holds. If the energy sum is zero for every set of branch voltages that obeys the voltage law, the currents obey the current law, and the same holds with the two laws swapped.[11]
The worked example shows the balance. The 12 V source supplies W. The resistors take W, and the 6 V source takes W, for 28.8 W in total.
Changing currents and phasors
A lumped circuit is one modeled with each part concentrated in one place and joined by ideal wires. In a lumped circuit the laws hold at every instant, not only for steady currents.[12] This lets them describe circuits with capacitors and inductors, where they lead to differential equations, equations that involve how quantities change over time.
For alternating current, a Phasor is a complex number that stands for the size and timing (phase) of a sine wave. A complex number has two parts, so one number can hold both the size and the timing.
Phasors can be used when three conditions hold:[13]
- The circuit is linear.
- Only the steady state is wanted, the condition after the circuit's start-up changes have died away.
- All sources are sine waves of the same frequency.
Under those conditions, phasor currents and voltages obey both laws. Each part is then described by its impedance, and the circuit becomes a set of algebraic equations with complex numbers.[13]
When the laws hold
Kirchhoff's laws are exact only within the lumped-element model. This model treats each part as a single element joined by ideal wires, with no field effects outside the elements.[14][15]
Derivation from Maxwell's equations
The lumped model rests on three assumptions:[14][16]
- Outside the elements, the magnetic flux through any closed path does not change. Magnetic flux measures how much magnetic field passes through the surface bounded by the path.
- Inside each element, the net charge does not change.
- Signals change slowly compared with the time light takes to cross the circuit.
Under these assumptions, Faraday's law of induction and charge conservation (the continuity equation, which follows from Maxwell's equations) become Kirchhoff's laws.[14][3] Both are written here with integrals, which add up a quantity along a path or over a surface:
Here is the electric field, is a closed path, and is the magnetic flux through that path. is the current density, the current flowing through each unit of area. is a closed surface, and is the charge inside it.
The two laws then follow:[3]
- The left side of the first equation is a line integral, which adds up the electric field along the path. When the flux through a loop that follows the wires does not change, this integral splits into the voltages across each element, and their sum is zero.
- When inside a surface around a node, the net current out of it is zero.
Where the laws fail
The laws fail when one of the assumptions breaks.
- A changing magnetic flux through the loop itself. The sum of voltages around the loop then equals , not zero. In the lumped model, an inductor keeps its magnetic field inside the element, so the voltage law still holds for the wires around it.[15]
- Charge building up on wires or nodes. The current law assumes this charge is small enough to ignore.[3] When electric fields between parts of a circuit matter, current can pass between them as displacement current, and the simple node sum no longer balances.[17]
- A circuit too large for its frequency. A signal takes time to cross a part of size , where is the speed of light. The lumped model needs frequencies much lower than .[15] For a 1 m wire, is about 3.3 ns, so the model fails badly as frequencies approach about 300 MHz.[15]
Analogies in other systems
The same two rules appear wherever a lumped model has a potential-like quantity and a conserved flow.[15]
- A loop rule holds for quantities such as pressure, temperature, or position: the net change around a closed loop of elements is zero.
- A node rule holds for conserved flows: mass in fluid systems, heat flow in thermal systems, and force (momentum per unit time) in mechanical systems.
History
Kirchhoff's first paper, "Ueber den Durchgang eines elektrischen Stromes durch eine Ebene, insbesondere durch eine kreisförmige", appeared in the Annalen der Physik und Chemie in 1845.[18] It grew out of a seminar problem set by his teacher Franz Neumann at Königsberg.[2] Kirchhoff worked out the lines of equal potential in a thin circular plate carrying a current, using the principles of Georg Ohm, and checked them by measurements on a copper disc.[18][2]
The circuit rules appear in an appendix to that paper.[2] Kirchhoff stated them in terms of Ohm's law:[4]
- If wires form a closed figure, then equals the sum of the electromotive forces (source voltages) around that figure. Here is the resistance of wire , in ohms, and is its current.
- If several wires meet at one point, and currents toward that point count as positive, then the currents add to zero.
In his 1847 paper on solving these equations, Kirchhoff counted the independent equations and gave the spanning-tree solution described above.[4] The same paper noted a form of reciprocity: an electromotive force in one wire produces the same current in a second wire as an equal force in the second produces in the first.[4]
Kirchhoff stated his laws before Maxwell's work of the 1860s.[17] Today they are taught as the low-frequency form of Maxwell's equations.[14]
References
- Kirchhoff's Rules, University Physics Volume 2, Section 10.3, OpenStax, 2016.
- Gustav Robert Kirchhoff, Dauerausstellung, Kirchhoff-Institut für Physik, Universität Heidelberg.
- The Feynman Lectures on Physics, Vol. II, Ch. 22: AC Circuits, California Institute of Technology, 1964.
- On the solution of the equations to which one will be led in the study of linear distributions of galvanic currents, G. Kirchhoff, Annalen der Physik und Chemie 72 (1847), translated by D. H. Delphenich.
- Kirchhoff's Rules, College Physics 2e, Section 21.3, OpenStax, 2022.
- Proof of the Number of Independent Kirchhoff Equations in an Electrical Circuit, P. Feldmann and R. A. Rohrer, IEEE Transactions on Circuits and Systems 38(7), 1991.
- Electrical Networks and Algebraic Graph Theory: Models, Properties, and Applications, F. Dörfler, J. W. Simpson-Porco, and F. Bullo, Proceedings of the IEEE, 2018.
- Introduction to Graph Theory (Circuits 1 notes), M. H. Miller.
- Spanning trees (lecture 2), A. Mednykh, Rogla conference lectures, 2015.
- On Kirchhoff's equations and variational approaches to electrical network analysis, A. Ercan, American Journal of Physics 84(3), 2016.
- Kirchhoff's laws from Tellegen's Theorem, V. C. Prasad.
- Circuit Synthesis based on Prescribed Lagrangian, arXiv:2008.11013, 2020.
- Chapter 9: Sinusoids and Phasors (lecture notes), R. Tymerski, Portland State University.
- 6.002 Circuits and Electronics, Lecture 2: Basic Circuit Analysis Method (KVL and KCL method), A. Agarwal and J. Lang, MIT OpenCourseWare, 2007.
- 6.200 Lecture Notes: Lumped-Element Abstraction, K. K. Berggren, Massachusetts Institute of Technology, 2023.
- Lumped Element Abstraction (6.002x lecture handout), MITx on edX, 2015.
- Kirchhoff's Current Law with Displacement Current, arXiv:2207.08277, 2022.
- Ueber den Durchgang eines elektrischen Stromes durch eine Ebene, insbesondere durch eine kreisförmige, G. Kirchhoff, Annalen der Physik, 1845.
