If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

# Kirchhoff's laws

Kirchhoff's Laws describe current in a node and voltage around a loop. These two laws are the foundation of advanced circuit analysis. Written by Willy McAllister.
Kirchhoff's Laws for current and voltage lie at the heart of circuit analysis. With these two laws, plus the equations for individual component (resistor, capacitor, inductor), we have the basic tool set we need to start analyzing circuits.
This article assumes you are familiar with the definitions of node, distributed node, branch, and loop.
You may want to have a pencil and paper nearby to work the example problems.

## Currents into a node

Try to reason through this example by yourself, before we talk about the theory. The schematic below shows four branch currents flowing in and out of a distributed node. The various currents are in milliamps, start text, m, A, end text. One of the currents, start color #11accd, i, end color #11accd, is not known.
Problem 1: What is i?

Here's another example, this time with variable names instead of numerical values. This node happens to have 5 branches. Each branch might (or might not) carry a current, labeled i, start subscript, 1, end subscript, start text, t, o, end text, i, start subscript, 5, end subscript.
All the arrows are drawn pointing in. This choice of direction is arbitrary. Arrows pointing inward is as good a choice as any at this point. The arrows establish a reference direction for what we choose to call a positive current.
Look at branch current i, start subscript, 1, end subscript.
Where does it go?
The first thing i, start subscript, 1, end subscript does is flow into the node (represented by the black dot).
Then what?
Here's two things i, start subscript, 1, end subscript can't do: The flowing charge in i, start subscript, 1, end subscript can't stay inside the node. (The node does not have a place to store charge). And i, start subscript, 1, end subscript's charge can't jump off the wires into thin air. Charge just doesn't do that under normal circumstances.
What's left?: The current has to flow out of the node through one or more of the other branches.
For our example node, we would write this as,
i, start subscript, 1, end subscript, plus, i, start subscript, 2, end subscript, plus, i, start subscript, 3, end subscript, plus, i, start subscript, 4, end subscript, plus, i, start subscript, 5, end subscript, equals, 0
If i, start subscript, 1, end subscript is a positive current flowing into the node, then one or more of the other currents must be flowing out. Those outgoing currents will have a minusnegative sign.
This observation about currents flowing in a node is nicely captured in general form as Kirchhoff's Current Law.

## Kirchhoff's Current Law

Kirchhoff's Current Law says that the sum of all currents flowing into a node equals the sum of currents flowing out of the node. It can be written as,
sum, i, start subscript, i, n, end subscript, equals, sum, i, start subscript, o, u, t, end subscript

### Kirchhoff's Current Law - concept checks

Currents are in milliamps, start text, m, A, end text.
Problem 2: What is i, start subscript, 5, end subscript?

Problem 3: What is i, start subscript, 3, end subscript in this distributed node?

## Voltage around a loop

Below is a circuit with four resistors and a voltage source. We will solve this from scratch using Ohm's Law. Then we will look at the result and make some observations. The first step in solving the circuit is to compute the current. Then we will compute the voltage across the individual resistors.
We recognize this as a series circuit, so there is only one current flowing, start color #11accd, i, end color #11accd, through all five elements. To find start color #11accd, i, end color #11accd, the four series resistors can be reduced to a single equivalent resistor:
R, start subscript, s, e, r, i, e, s, end subscript, equals, 100, plus, 200, plus, 300, plus, 400, equals, 1000, \Omega
Using Ohm's Law, the current is:
start color #11accd, i, end color #11accd, equals, start fraction, V, divided by, R, start subscript, s, e, r, i, e, s, end subscript, end fraction, equals, start fraction, 20, start text, V, end text, divided by, 1000, \Omega, end fraction, equals, 0, point, 020, start text, A, end text, equals, 20, start text, m, A, end text
Now we know the current. Next we find the voltages across the four resistors. Go back to the original schematic and add voltage labels to all five elements:
Apply Ohm's Law four more times to find the voltage across each resistor:
v, empty space, equals, start color #11accd, i, end color #11accd, start text, R, end text
v, start subscript, start text, R, 1, end text, end subscript, equals, 20, start text, m, A, end text, dot, 100, \Omega, equals, plus, 2, start text, V, end text
v, start subscript, start text, R, 2, end text, end subscript, equals, 20, start text, m, A, end text, dot, 200, \Omega, equals, plus, 4, start text, V, end text
v, start subscript, start text, R, 3, end text, end subscript, equals, 20, start text, m, A, end text, dot, 300, \Omega, equals, plus, 6, start text, V, end text
v, start subscript, start text, R, 4, end text, end subscript, equals, 20, start text, m, A, end text, dot, 400, \Omega, equals, plus, 8, start text, V, end text
We know the current and all voltages. The circuit is now solved.
We can write the voltages for the resistors and the source on the schematic. These five voltages are referred to as element voltages. (The circuit nodes get names, start color #0d923f, start text, a, end text, end color #0d923f to start color #0d923f, start text, e, end text, end color #0d923f, so we can talk about them.)
Let's do a quick check. Add up the voltages across the resistors,
2, start text, V, end text, plus, 4, start text, V, end text, plus, 6, start text, V, end text, plus, 8, start text, V, end text, equals, 20, start text, V, end text
The individual resistor voltages add up to the source voltage. This makes sense, and confirms our calculations.
Now we add up the voltages again, using a slightly different procedure: by "going around the loop." There's no new science here, we are just rearranging the same computation.

### Procedure: Add element voltages around a loop

Step 1: Pick a starting node.
Step 2: Pick a direction to travel around the loop (clockwise or counterclockwise).
Step 3: Walk around the loop.
Include element voltages in a growing sum according to these rules:
• When you encounter a new element, look at the voltage sign as you enter the element.
• If the sign is plus, then there will be a voltage drop going through the element. Subtract the element voltage.
• If the sign is minus, then there will be a voltage rise going through the element. Add the element voltage.
Step 4: Continue around the loop until you reach the starting point, including element voltages all the way around.

### Apply the loop procedure

1. Start at the lower left at node start color #0d923f, start text, a, end text, end color #0d923f.
2. Walk clockwise.
1. The first element we come to is the voltage source. The first voltage sign we encounter is a minus minus sign, so there is going to be a voltage rise going through this element. Consulting the procedure step 3., we initialize the loop sum by adding the source voltage.

v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text going through the voltage source, to node start color #0d923f, start text, b, end text, end color #0d923f.
The next element we encounter is the 100, \Omega resistor. Its nearest voltage sign is plus. Consult the procedure again, and this time we subtract the element voltage from the growing sum.
v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text, minus, 2, start text, V, end text going through the 100, \Omega resistor, to node start color #0d923f, start text, c, end text, end color #0d923f.
Keep going. Next we visit the 200, \Omega resistor, and again we first encounter a plus sign, so we subtract this voltage.
v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text, minus, 2, start text, V, end text, minus, 4, start text, V, end text going through the 200, \Omega resistor, to node start color #0d923f, start text, d, end text, end color #0d923f.
We complete the loop with the addition of two more elements,
v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text, minus, 2, start text, V, end text, minus, 4, start text, V, end text, minus, 6, start text, V, end text through the 300, \Omega resistor, to node start color #0d923f, start text, e, end text, end color #0d923f.
v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text, minus, 2, start text, V, end text, minus, 4, start text, V, end text, minus, 6, start text, V, end text, minus, 8, start text, V, end text after the 400, \Omega resistor.
(Check the circuit diagram, make sure I got the last two minus signs correct.)
1. Done. We made it back home to node start color #0d923f, start text, a, end text, end color #0d923f. What does this expression for v, start subscript, l, o, o, p, end subscript add up to?

v, start subscript, l, o, o, p, end subscript, equals, plus, 20, start text, V, end text, minus, 2, start text, V, end text, minus, 4, start text, V, end text, minus, 6, start text, V, end text, minus, 8, start text, V, end text, equals, 0
The sum of voltages going around the loop is 0. The starting and ending node is the same, so the starting and ending voltage is the same. On your "walk" you went up voltage rises and down voltage drops, and they all cancel out when you get back to where you started. This happens because electric force is conservative. There isn't a net gain or loss of energy if you return to the same place you started.
We'll do another example, this time with variable names instead of numerical values. The following familiar schematic is labeled with voltages and node names. The voltage polarity on the resistors is arranged in a way you might not expect, with all the arrows pointing in the same direction around the loop. This reveals a cool property of loops.
Let's take a walk around the loop, adding up voltages as we go. Our starting point is node start color #0d923f, start text, a, end text, end color #0d923f in the lower left corner. Our walk goes clockwise around the loop (an arbitrary choice, either way works).
Starting at node start color #0d923f, start text, a, end text, end color #0d923f, going up, we first encounter a minus sign on the voltage source, which says there is going to be a voltage rise of v, start subscript, a, b, end subscript volts going through the voltage source. Because it is a voltage rise, this element voltage gets a plus sign when we include it in the loop sum.
Continue around the loop from node start color #0d923f, start text, b, end text, end color #0d923f to start color #0d923f, start text, c, end text, end color #0d923f to start color #0d923f, start text, d, end text, end color #0d923f to start color #0d923f, start text, e, end text, end color #0d923f, and finish back home at node start color #0d923f, start text, a, end text, end color #0d923f. Append resistor voltages to the loop sum along the way. The polarity labels on all the resistors are arranged so we encounter a minus sign as we approach each resistor. So the resistor voltages all go into the loop sum with a plus sign. The final loop sum looks like this:
plus, v, start subscript, start text, a, b, end text, end subscript, plus, v, start subscript, start text, R, 1, end text, end subscript, plus, v, start subscript, start text, R, 2, end text, end subscript, plus, v, start subscript, start text, R, 3, end text, end subscript, plus, v, start subscript, start text, R, 4, end text, end subscript
What does this add up to? Let's reason it out.
The loop starts and ends at the same node, so the starting and ending voltages are identical. We went around the loop, adding voltages, and we end up back at the same voltage. That means the voltages have to add to zero. For our example loop, we would write this as,
v, start subscript, start text, a, b, end text, end subscript, plus, v, start subscript, start text, R, 1, end text, end subscript, plus, v, start subscript, start text, R, 2, end text, end subscript, plus, v, start subscript, start text, R, 3, end text, end subscript, plus, v, start subscript, start text, R, 4, end text, end subscript, equals, 0
This observation about voltages around a loop is nicely captured in general form as Kirchhoff's Voltage Law.

## Kirchhoff's Voltage Law

Kirchhoff's Voltage Law: The sum of voltages around a loop is zero.
Kirchhoff's Voltage Law can be written as,
sum, start subscript, n, end subscript, v, start subscript, n, end subscript, equals, 0
where n counts the element voltages around the loop.
You can also state Kirchhoff's Voltage Law another way: The sum of voltage rises equals the sum of voltage drops around a loop.
sum, v, start subscript, r, i, s, e, end subscript, equals, sum, v, start subscript, d, r, o, p, end subscript
Kirchhoff's Voltage Law has some nice properties:
• You can trace a loop starting from any node. Walk around the loop and end up back at the starting node, the sum of voltages around the loop adds up to zero.
• You can go around the loop in either direction, clockwise or counterclockwise. Kirchhoff's Voltage Law still holds.
• If a circuit has multiple loops, Kirchhoff's Voltage Law is true for every loop.

#### Voltages all positive?

If you are wondering: how can the element voltages all be positive if they have to add up to zero? It's okay. The voltage arrows and polarity signs are just reference directions for voltage. When the circuit analysis is complete, one or more of the element voltages around the loop will be negative with respect to its voltage arrow. The signs of the actual voltages always sort themselves out during calculations.

### Kirchhoff's Voltage Law - concept check

Problem 4: What is v, start subscript, R, 3, end subscript?
Reminder: Check the first sign of each element voltage as you walk around the loop.

## Summary

We were introduced to two new friends.
Kirchhoff's Current Law for branch currents at a node,
sum, start subscript, n, end subscript, i, start subscript, n, end subscript, equals, 0
Kirchhoff's Voltage Law for element voltages around a loop,
sum, start subscript, n, end subscript, v, start subscript, n, end subscript, equals, 0
Our new friends sometimes go by their initials, KCL and KVL.
And we learned it's important to pay close attention to voltage and current signs if we want correct answers. This is a tedious process that requires attention to detail. It is a core skill of a good electrical engineer.

## Want to join the conversation?

• what is the algebraic sum? • How is this affected if there are multiple batteries, and therefore multiple currents? What if the resistors are in parallel? • Kirchhoff's Laws work for every circuit, no matter the number of batteries or resistor configuration. KCL tells you about the sum of currents at each specific node in the circuit. KVL tells you about the sum of voltage rises/drops around every loop of a circuit. KVL and KCL aren't fooled by multiple voltage or current sources, or parallel resistors. They always work.
• When I see the words "voltage on each resistor" - what does that mean? that voltage is getting eaten up or used by the resistor? Is it wasting energy? • The phrases "Voltage on" and "Voltage across" mean the same thing. One end of the resistor is at a higher potential than the other end. The difference in potential is called the "voltage across" the resistor. It is the nature of resistors that when they have a voltage across them, a current flows. When current flows, there is energy being dissipated. If the circuit is doing something useful, then we say "Nice job using the energy! I like this song." If the circuit is not useful, then we might say "What a waste of energy, how sad".
• How do we know that in kirchoff's voltage law we have to add or subtract the voltage • what is voltage? • It is the electric potential between two points. You probably know potential energy, like when a bowling ball is sitting on a skyscraper it has the potential energy stored from gravity because it could fall. Voltage is the same thing but with electrons (negatively charged) that have potential because they will try and move to a postive (or "less" negative) area.
• Where does the current flow when it enters the node.? What if all the current (arrows) are pointing inward, how is the sum of current zero in that case? • is kirchhoff's law applicable for ac circuits? • what do we understand from the arrows in the voltage diagrams
what is voltage polarity • Hello

Here is how you make the arrows.

1) Assume a direction of current flow.

2) Walk around the loop in the chosen direction of current flow. For sake of argument lets start at the 200 Ω resistor.

2) As you walk along the circuit you will encounter a component. Ask yourself if the voltage as you enter this component is greater than or less than the exit terminal.

3) If the voltage on the terminal you entered is greater than the exit terminal then the entrance terminal gets a “+”. And the other terminal gets a “-.”

For a resister you don’t need to think very hard. If you are traveling in the direction of the current then the voltage on the terminal you enter will be higher than the exit.

The battery is more interesting. As we travel we will enter the battery on the negative terminal. When we look across we see the positive terminal. Consequently the entrance terminal gets a ‘-’ and the exit terminal gets a “+” symbol.

One last point - if you were tr travel all the way around this loop the sum of the voltages is equal to zero. This property is essential to you study of electronics. We give it the special name KCL (Kirchhoff's Voltage Law).

Regards,

APD

P.S. You could have assumed the opposite direction for the current and everything would have mathematically worked out...
• In circuit diagrams for example the circuit diagram before KVL(having Vab,VR1,VR2...) how we can give + and - signs to a voltage I mean how we can give polarity signs to a component  