Rules for analyzing DC circuits, worked out by Gustav Robert Kirchhoff in the mid-nineteenth century. They are derived from the laws of conservation of charge and energy. The rules are two:

  • Kirchhoff's first or junction rule, based on conservation of charge, states that the sum of all currents entering a junction must equal the sum of all currents leaving the junction. You can't have more current going in than coming out: the charge has to go somewhere. Similarly, you can't have less current coming in than going out, because the charge has to come from somewhere.

  • Kirchoff's second or loop rule, based on conservation of energy, states that the sum of the changes in potential around any closed path of a circuit must be zero. If you go around in a loop and get back to where you started, you must be at the same potential energy, since we are dealing with a conservative force here.

Let's apply Kirchhoff's rules to the arbitary circuit below, where R1, R2, R3, R4, R5 are the resistances of the respective resistors; V1, V2, V3 are the voltages of the respective voltage sources; and I1, I2, I3 are the strengths of the currents in the three branches of the circuit.

    _____
A---|+ -|---\/\/\---B
|   -----    R1     |
|    V1             |      \/\/\ = a resistor
|                   |      _____
\                   |      |- +| = a battery
/                   |      -----  
\ R2                | 
/          I2       | ↑I1      Arrows indicate assumed direction
|          →       |          of current; note that if our as-
|    _____          |          sumed direction is incorrect, the
C----|- +|--\/\/\---D          value for current will come out 
|    -----    R3    |          negative, so we know it goes the
|    V2             | ↓I3      other way.
|                   |  
/                   \
\ R4              R5/
/        V3         \
\      _____        /
E------|- +|--------F
       -----

Taking point D as our junction, the junction rule gives us:

sum of currents in = sum of currents out

I2 = I1 + I3

Using CABD as our loop, we apply the loop rule, noting that if we are going with the current, the voltage drops over a resistor, and if we are going against the current, the voltage increases over a resistor; and that V=I*R:

sum of voltage changes = 0

I1*R2 - V1 + I1*R1 + I2*R3 - V2 = 0

We then do the same over loop CDEF, althogh we could also use ABFE, the outside loop:

sum of voltage changes = 0

V2 - I2*R3 - I3*R5 - V3 - I3*R4 = 0

Assuming we know the resistances and the voltages, we can now solve for the current in each of the parts of the circuit, since we have three unknowns, I1,I2, and I3, and three equations: the junction rule and two applications of the loop rule. We could also solve for voltages if we were given currents, or for any three unknown variables given the rest of them.