Kirchhoff's circuit laws are two approximate equalities that deal with the current and voltage in electrical circuits. They were first described in 1845 by Gustav Kirchhoff.^{[1]} This generalized the work of Georg Ohm and preceded the work of Maxwell. Widely used in electrical engineering, they are also called Kirchhoff's rules or simply Kirchhoff's laws (see also Kirchhoff's laws for other meanings of that term).
Both of Kirchhoff's laws can be understood as corollaries of the Maxwell equations in the lowfrequency limit  conventionally called "DC" circuits. They serve as first approximations for AC circuits.^{[2]}
Kirchhoff's current law (KCL)
This law is also called Kirchhoff's first law, Kirchhoff's point rule, or Kirchhoff's junction rule (or nodal rule).
The principle of conservation of electric charge implies that:

At any node (junction) in an electrical circuit, the sum of currents flowing into that node is equal to the sum of currents flowing out of that node, or:
 The algebraic sum of currents in a network of conductors meeting at a point is zero.
Recalling that current is a signed (positive or negative) quantity reflecting direction towards or away from a node, this principle can be stated as:
n is the total number of branches with currents flowing towards or away from the node.
This formula is valid for complex currents:
The law is based on the conservation of charge whereby the charge (measured in coulombs) is the product of the current (in amperes) and the time (in seconds).
Limitations
KCL, in its usual form, is dependent on the assumption that current flows only in conductors, and that whenever current flows into one end of a conductor it immediately flows out the other end. This is not a safe assumption for AC circuits.^{[2]} It may be possible to salvage the form of KCL by considering "parasitic capacitances" distributed along the conductors.^{[2]} However, this greatly detracts from the simplicity of KCL and invalidates the notion of topological circuit diagram as discussed below. Significant violations of KCL can occur^{[3]}^{[4]} even at 60Hz, which is not a very high frequency.
As another way of saying almost the same thing, KCL is valid only if the total electric charge,
Formally, from the volume integral of the current continuity equation,


where
Converting the volume integral to a surface integral using the divergence theorem
Hence,
The righthand side vanishes if

A particular case where KCL does not hold is the current entering a single plate of a capacitor. If one imagines a closed surface around that single plate, current enters through the surface, but does not exit, thus violating KCL. Certainly, the currents through a closed surface around the entire capacitor will meet KCL since the current entering one plate is balanced by the current exiting the other plate, and that is usually all that is important in circuit analysis, but there is a problem when considering just one plate. Another common example is the current in an antenna where current enters the antenna from the transmitter feeder but no current exits from the other end (Johnson and Graham, pp. 36–37).
Maxwell introduced the concept of displacement currents to describe these situations. The current flowing into a capacitor plate is equal to the rate of accumulation of charge and hence is also equal to the rate of change of electric flux due to that charge (electric flux is measured in the same units, Coulombs, as electric charge in the SI system of units). This rate of change of flux,
When the displacement currents are included, Kirchhoff's current law once again holds. Displacement currents are not real currents in that they do not consist of moving charges, they should be viewed more as a correction factor to make KCL true. In the case of the capacitor plate, the real current entering the plate is exactly cancelled by a displacement current leaving the plate and heading for the opposite plate.
This can also be expressed in terms of vector field quantities by taking the divergence of Ampère's law with Maxwell's correction and combining with Gauss's law, yielding:
This is simply the charge conservation equation (in integral form, it says that the current flowing out of a closed surface is equal to the rate of loss of charge within the enclosed volume (divergence theorem). Kirchhoff's current law is equivalent to the statement that the divergence of the current is zero, true for timeinvariant ρ, or always true if the displacement current is included with J.
Uses
A matrix version of Kirchhoff's current law is the basis of most circuit simulation software, such as SPICE. Kirchhoff's current law combined with Ohm's Law is used in nodal analysis.
Kirchhoff's voltage law (KVL)
This law is also called Kirchhoff's second law, Kirchhoff's loop (or mesh) rule, and Kirchhoff's second rule.
Similarly to KCL, it can be stated as:
Here, n is the total number of voltages measured. The voltages may also be complex:
This law is based one of the Maxwell equations, namely the MaxwellFaraday law of induction, which tells us that the voltage drop around any closed loop is equal to the rateofchange of the flux threading the loop. The amount of flux depends on the area of the loop and on the magnetic field strength. KVL says the loop voltage is zero. The Maxwell equations tell us that the loop voltage will be small if the area of the loop is small, the magnetic field is weak, and/or the magnetic field is slowly changing.
Routine engineering techniques  such as the use of coaxial cable and twisted pairs  can be used to minimize stray magnetic fields and minimize the area of vulnerable loops. In this way things can be arranged so that KVL becomes a good approximation, even in situations where it otherwise would not have been.
Limitations
KVL is based on the assumption that there is no fluctuating magnetic field linking the closed loop. This is not a safe assumption for AC circuits.^{[2]} In the presence of a changing magnetic field the electric field is not a conservative vector field. Therefore it cannot be the gradient of any potential. That is to say, the line integral of the electric field around the loop is not zero, which directly contradicts KVL.
It may be possible to salvage the form of KVL by considering "parasitic inductances" (including mutual inductances) distributed along the conductors.^{[2]} These are treated as imaginary circuit elements that produce a voltage drop equal to the rateofchange of the flux. However, this greatly detracts from the simplicity of KVL and invalidates the notion of topological circuit diagram.
Generalization
In the DC limit, the voltage drop around any loop is zero. This includes imaginary loops arranged arbitrarily in space  not limited to the loops delineated by the circuit elements and conductors. In the lowfrequency limit, this is a corollary of Faraday's law of induction (which is one of the Maxwell equations).
This has practical application in situations involving "static electricity".
Topological circuit diagrams
The approximations that lead to Kirchhoff's circuit laws are part of a package that also leads to topological circuit diagrams, i.e. the idea that the physical and geometrical layout of the circuit does not matter; the only thing that matters is the topology as determined by the conductors and circuit elements connected to the nodes. These can be treated as the arcs and nodes of formal graph theory. In other words, Kirchhoff's laws say it suffices to use a circuit diagram that is purely schematic. This is a very useful, powerful simplification.
This works fine in the DC limit, but it is only a first approximation for AC circuits.^{[2]} For highpower, highprecision, and/or highfrequency work, the deviations from Kirchhoff's laws cannot be neglected.^{[2]} The physical and geometrical layout of the circuit matters, because it determines the magnitude of the parasitic capacitances and inductances.^{[2]}^{[3]}^{[4]}
Example
Assume an electric network consisting of two voltage sources and three resistors:
According to the first law we have
The second law applied to the closed circuit s_{1} gives
The second law applied to the closed circuit s_{2} gives
Thus we get a linear system of equations in
Assuming
the solution is


See also
References
 Paul, Clayton R. (2001). Fundamentals of Electric Circuit Analysis. John Wiley & Sons. ISBN 0471371955.
 Kalil T. Swain Oldham, The doctrine of description: Gustav Kirchhoff, classical physics, and the "purpose of all science" in 19thcentury Germany, ProQuest, 2008, ISBN 0549831312.
 Serway, Raymond A.; Jewett, John W. (2004). Physics for Scientists and Engineers (6th ed.). Brooks/Cole. ISBN 0534408427.
 Tipler, Paul (2004). Physics for Scientists and Engineers: Electricity, Magnetism, Light, and Elementary Modern Physics (5th ed.). W. H. Freeman. ISBN 0716708108.
 Howard W. Johnson, Martin Graham, Highspeed signal propagation: advanced black magic, Prentice Hall Professional, 2003 ISBN 013084408X.
External links
 MIT video lecture on the KVL and KCL methods