---
title: Kirchhoff's current law (KCL)
heading: What flows into a node flows out
eyebrow: C1 · Lesson 3 · Kirchhoff's current law
xp: 40
---

::: hook
Charge can't pile up at a junction of wires: there's nowhere for it to go. So at every node, the currents flowing in add up to the currents flowing out. That's Kirchhoff's current law, and with the voltage law (lesson 4) it's all you need, together with each part's own rule, to solve any circuit.

::: play
- Current from the source splits at node a into two branches. The meters read the current in each resistor.
- Add the two branch currents. Compare with the current in $R_1$.
- Change $R_3$. How do the three currents change? Does the balance at node a ever fail?
:::
:::

```sim circuit
V1 in 0 10          @ 0,0 down
R1 in a 1k          @ 0,0 right
R2 a 0 2k           @ 2,0 down
R3 a 0 3k           @ 4,0 down
slider: R2 100..10k log
slider: R3 100..10k log
scope: v(in), v(a)
time: 0..1m s
meter: i(R1), i(R2), i(R3)
```

::: predict
## Three wires meet at a node. Currents of 5 mA and 3 mA flow in along two of them. What flows in the third?

- [ ] 2 mA in
- [x] 8 mA out
- [ ] 8 mA in
- [ ] It depends on the resistances

::: reveal
8 mA out. Whatever comes in must leave, and the only way out is the third wire. Written as a sum with every current counted as entering, $5 + 3 + i_3 = 0$, so $i_3 = -8$ mA, meaning 8 mA leaving. No resistances are needed: KCL is a statement about conservation of charge alone.
:::
:::

::: nameit
## Kirchhoff's current law

**The law.** At any node, the sum of the currents entering equals the sum leaving. With every current counted as entering (leaving ones negative):

$$\sum_k i_k = 0$$

It holds at every instant, for any kind of component, because charge is conserved and a node can't store it. (A9.41 put it in field language: $\nabla \cdot \mathbf J = 0$ in a steady state.)

**Using it.**

1. Pick a reference direction for every branch current.
2. At each node, write the sum of currents in minus currents out equals zero.
3. A circuit with $n$ nodes gives $n - 1$ independent KCL equations; the last one repeats information from the others.

**Supernodes and boundaries.** KCL also holds for any closed boundary drawn around part of a circuit: the total current crossing in equals the total crossing out. That's useful for wrapping a whole subcircuit at once.

**Current dividers.** Two resistors in parallel share the incoming current in inverse proportion to their resistance:

$$i_2 = i\frac{R_3}{R_2 + R_3} \qquad i_3 = i\frac{R_2}{R_2 + R_3}$$

The smaller resistor takes the larger share. (Lesson 5 returns to dividers.)
:::

::: example
## At a node, 2 mA and 5 mA flow in and 4 mA flows out through one branch. What does the fourth branch carry?

::: solution
1. **Write KCL.** In must equal out:
   $$2 + 5 = 4 + I$$
2. **Solve.**
   $$I = 3\ \text{mA}$$
   flowing out.

**Answer:** the fourth branch carries 3 mA out of the node.
:::
:::

::: example
## A USB hub draws 500 mA from the computer and powers three devices taking 100, 150 and 200 mA. How much does the hub itself use?

::: solution
1. **KCL at the hub's supply node.**
   $$500 = 100 + 150 + 200 + I_\text{hub}$$
2. **Solve.**
   $$\begin{aligned} I_\text{hub} &= 500 - 450 \\ &= 50\ \text{mA} \end{aligned}$$

**Answer:** the hub itself uses 50 mA.
:::
:::

::: example
## A node sits at 5 V. It connects to a 12 V supply through 1 kΩ, to ground through 2 kΩ, and to a 3 V point through 1 kΩ. There's one more wire. What current must it carry?

::: solution
1. **Current from the 12 V supply.** Each resistor's current follows from the voltages at its ends. This one flows into the node:
   $$\begin{aligned} I &= \frac{12 - 5}{1} \\ &= 7\ \text{mA} \end{aligned}$$
2. **Current to ground.** It flows out:
   $$\begin{aligned} I &= \frac{5}{2} \\ &= 2.5\ \text{mA} \end{aligned}$$
3. **Current to the 3 V point.** It flows out:
   $$\begin{aligned} I &= \frac{5 - 3}{1} \\ &= 2\ \text{mA} \end{aligned}$$
4. **Apply KCL.** Into the node, 7 mA; out, 4.5 mA. KCL says the last wire must carry the rest out:
   $$7 - 4.5 = 2.5\ \text{mA}$$
5. **Why this matters.** Checking every node's currents this way is how simulators find errors and how you check a hand solution.

**Answer:** the last wire must carry 2.5 mA out of the node.
:::
:::

::: check
given: i1 = 1..9 int; i2 = 1..9 int
answer: i1 + i2
unit: mA
tolerance: 0.5%

## Currents of {i1} mA and {i2} mA flow into a node. A third wire is the only other connection. How much flows out through it?

::: right
Right. KCL: {answer} out.
:::

::: misses
- [abs(i1 - i2)] Both flow in, so both must leave by the third wire.
- [any] Not yet. What enters must leave.
:::
:::

::: check
given: iin = 10..30 int; i2 = 1..9 int; i3 = 1..5 int
answer: iin - i2 - i3
unit: mA
tolerance: 0.5%

## {iin} mA enters a node. Two of the three leaving branches carry {i2} mA and {i3} mA. How much is in the third?

::: right
Right. $\given{iin} - \given{i2} - \given{i3}$ = {answer}.
:::

::: misses
- [iin + i2 + i3] Subtract the branches already accounted for.
- [any] Not yet. Total out equals total in.
:::
:::

::: check
given: I = 10..50 step 5; R2 = 1 | 2 | 4; R3 = 3 | 6
answer: I*R3/(R2 + R3)
unit: mA
tolerance: 0.5%

## {I} mA splits between {R2} kΩ and {R3} kΩ in parallel. How much goes through the {R2} kΩ resistor?

::: right
Right. $I\frac{R_3}{R_2 + R_3}$ = {answer}: the smaller resistor takes more.
:::

::: misses
- [I*R2/(R2 + R3)] That's the share for the other resistor. The smaller resistor gets the bigger share.
- [I/2] Only for equal resistors.
- [any] Not yet. Current divides inversely to resistance.
:::
:::

::: check
given: V = 6 | 10 | 12; R = 1 | 2 | 5; n = 2 | 3 | 4
answer: n*V/R
unit: mA
tolerance: 0.5%

## {n} identical {R} kΩ resistors are each connected from a {V} V node to ground. How much current must flow into that node?

::: right
Right. Each takes $V/R$; KCL adds them: {answer}.
:::

::: misses
- [V/R] There are {n} of them.
- [V/(n*R)] They're in parallel, each with the full voltage: the currents add.
- [any] Not yet. Add the currents in all the branches.
:::
:::

::: check
kind: choice

## Why does KCL hold even for components like capacitors, where charge builds up on the plates?

- [ ] It doesn't hold for capacitors
- [x] Whatever charge arrives on one plate, an equal amount leaves the other, so the current into the capacitor's terminal equals the current out of its other terminal
- [ ] Capacitors carry no current
- [ ] Only in DC

::: right
Right. Each plate's charge is balanced by the opposite charge on the other plate; current flows through the capacitor's terminals equally.
:::

::: misses
- [1] KCL holds at every node, capacitors included.
- [3] A changing voltage drives current through a capacitor.
- [4] It holds at every instant.
:::
:::

::: check
kind: parts
given: v = 3 | 5 | 8; V = 12 | 15; R = 1 | 2

## A node at {v} V connects to a {V} V supply through 1 kΩ, to ground through {R} kΩ, and to one more wire.

::: part
answer: V - v
unit: mA
tolerance: 0.5%

### How much current flows in from the supply?

::: misses
- [any] $\frac{V - v}{1\text{ k}\Omega}$.
:::
:::

::: part
answer: (V - v) - v/R
unit: mA
tolerance: 0.5%

### How much must leave through the last wire?

::: misses
- [any] KCL: in equals out.
:::
:::
:::

::: check
kind: derivation
vars: I = 0.1..100, a = 0.01..10, b = 0.01..10, c = 0.01..10

## A current I splits among three parallel conductances a, b and c.

::: step
answer: I*a/(a + b + c)

### How much flows through a?
:::

::: step
answer: I/(a + b + c)

### What voltage appears across them?
:::

::: right
Right. Current divides in proportion to conductance.
:::
:::

::: explain
## Why must the currents into any node of a circuit sum to zero?

::: model
Current is the rate at which charge arrives. A node is just a junction of wires, which can't hold any significant charge. If more current came in than went out, charge would accumulate at the node without limit, building up a huge voltage almost instantly. So the currents must balance at every moment: what enters equals what leaves. That's conservation of charge applied at a point.
:::
:::

::: practice

::: check
given: i1 = 2..9 int; i2 = 10..20 int
answer: i2 - i1
unit: mA
tolerance: 0.5%

## {i2} mA enters a node and {i1} mA leaves by one branch. What leaves by the only other branch?

::: misses
- [i1 + i2] Subtract what's already leaving.
- [any] In = out.
:::
:::

::: check
given: I = 10 | 20 | 30; R = 1 | 2
answer: I/2
unit: mA
tolerance: 0.5%

## {I} mA splits between two equal {R} kΩ resistors in parallel. How much in each?

::: misses
- [any] Equal resistors share equally.
:::
:::

::: check
given: n = 3..6 int
answer: n - 1
tolerance: 0.5%

## A circuit has {n} nodes, including ground. How many independent KCL equations can you write?

::: misses
- [n] One of the n equations repeats the others.
- [any] $n - 1$.
:::
:::
:::
