---
title: A capacitor charging, in field view
heading: Where the charge goes, and the field it builds
eyebrow: C2 · Lesson 1 · A capacitor charging
xp: 40
---

::: hook
Connect a capacitor to a battery through a resistor. Current flows, yet no charge ever crosses the gap between the plates. Charge piles up on one plate, an equal amount leaves the other, and the electric field between them grows. That field pushes back against the battery, so the current slows. Watching the field build explains why every capacitor charges along the same curve.

::: play
- A cross-section of two plates, charged through a resistor. The arrows are the electric field, drawn as long as it's strong. Press Play: the charging runs in slow motion, one second for each millisecond.
- Watch the field and the readouts together. When is the current largest? When does the field grow fastest?
- Raise R or C. The time constant τ = RC sets the pace.
:::
:::

```sim plot
view: flow
x: x = -2..2 cm
y: y = -1.2..1.2 cm
time: tt
slider: R = 0.5..5 step 0.5 = 1 kΩ
slider: C = 0.5..5 step 0.5 = 1 µF
slider: V = 1..12 step 1 = 9 V
dx: (1.001 - exp(-(tt - 6*R*C*floor(tt/(6*R*C)))/(R*C)))*(0.5*ln(((x + 1)^2 + (y - 0.3)^2)/((x - 1)^2 + (y - 0.3)^2)) - 0.5*ln(((x + 1)^2 + (y + 0.3)^2)/((x - 1)^2 + (y + 0.3)^2)))
dy: (1.001 - exp(-(tt - 6*R*C*floor(tt/(6*R*C)))/(R*C)))*(atan((x + 1)/(y - 0.3)) - atan((x - 1)/(y - 0.3)) - atan((x + 1)/(y + 0.3)) + atan((x - 1)/(y + 0.3)))
arrows: scaled
heads: on
grid: 18
path: u, 0.3 | over: u = -1..1 | label: + plate
path: u, -0.3 | over: u = -1..1 | label: − plate
readout: time in ms = tt - 6*R*C*floor(tt/(6*R*C))
readout: capacitor voltage in V = V*(1 - exp(-(tt - 6*R*C*floor(tt/(6*R*C)))/(R*C)))
readout: current in mA = V/R*exp(-(tt - 6*R*C*floor(tt/(6*R*C)))/(R*C))
readout: charge in µC = C*V*(1 - exp(-(tt - 6*R*C*floor(tt/(6*R*C)))/(R*C)))
```

::: predict
## The plates are uncharged and the switch closes. At that instant, what limits the current?

- [x] Only the resistor: the capacitor has no voltage yet
- [ ] Only the capacitor
- [ ] Both equally
- [ ] Nothing: the current is infinite

::: reveal
Only the resistor. With no charge on the plates there's no field and no voltage across the capacitor, so the whole battery voltage sits across R and the current starts at $V/R$. As charge builds, the capacitor's voltage $q/C$ grows and opposes the battery, leaving less across R, so the current falls. When the capacitor's voltage equals the battery's, the current stops.
:::
:::

::: nameit
## Charging a capacitor

**What moves.** Current flows into one plate and out of the other. The plates gain charges $+q$ and $-q$, and the field between them is $E = q/(\varepsilon A)$ (B3.7), so the voltage across the gap is

$$v_C = Ed = \frac{q}{C}$$

**What doesn't.** No charge crosses the insulating gap. The current is continued across it by the changing field: the displacement current $\varepsilon A\,dE/dt$, which equals the wire current exactly (B7.1). So KCL holds at each plate's terminal, as C1.3 said.

**The equation.** KVL around the loop, with $i = dq/dt = C\,dv_C/dt$:

$$V = iR + v_C = RC\frac{dv_C}{dt} + v_C$$

A first-order linear differential equation (A8). Starting from $v_C = 0$:

$$v_C = V\left(1 - e^{-t/\tau}\right) \qquad i = \frac{V}{R}e^{-t/\tau} \qquad \tau = RC$$

**Reading the curve.**

- The rate of change is proportional to how far the capacitor still has to go, $V - v_C$. That's what makes it exponential.
- After one τ it's 63% charged; after five, more than 99%.
- The field and the charge follow $v_C$; the current follows the remaining gap.

**Units.** Ohms times farads is seconds: 1 kΩ × 1 µF = 1 ms.
:::

::: example
## A constant 1 mA charges a 10 µF capacitor from empty. How fast does its voltage rise, and when does it reach 5 V?

::: solution
1. **Rate of rise.**
   $$\begin{aligned} \frac{dv}{dt} &= \frac iC \\ &= \frac{10^{-3}}{10^{-5}} \\ &= 100\ \text{V/s} \end{aligned}$$
2. **Time to reach 5 V.** The voltage rises in a straight line, so
   $$\begin{aligned} t &= \frac{5\ \text{V}}{100\ \text{V/s}} \\ &= 50\ \text{ms} \end{aligned}$$

**Answer:** the voltage rises in a straight line at 100 V/s, and reaches 5 V after 50 ms.
:::
:::

::: example
## Plates of 1 cm² sit 0.1 mm apart in air, at 10 V. Find the capacitance, the charge and the field in the gap.

::: solution
1. **Capacitance.**
   $$\begin{aligned} C &= \frac{\varepsilon_0A}{d} \\ &= \frac{8.854 \times 10^{-12} \times 10^{-4}}{10^{-4}}\ \text{F} \\ &= 8.85\ \text{pF} \end{aligned}$$
2. **Charge.**
   $$\begin{aligned} Q &= CV \\ &= 8.85\ \text{pF} \times 10\ \text{V} \\ &= 88.5\ \text{pC} \end{aligned}$$
3. **Field in the gap.**
   $$\begin{aligned} E &= \frac Vd \\ &= \frac{10\ \text{V}}{10^{-4}\ \text{m}} \\ &= 100\ \text{kV/m} \end{aligned}$$

**Answer:** the capacitance is 8.85 pF, it holds 88.5 pC, and the field in the gap is 100 kV/m.
:::
:::

::: example
## A touch pad has 10 pF to ground, and a finger adds 2 pF. The sensor charges it through 1 MΩ and times how long it takes. How much longer does a touch make that time?

::: solution
1. **Time constant untouched.** The charging time constant is RC:
   $$\begin{aligned} \tau &= 1\ \text{M}\Omega \times 10\ \text{pF} \\ &= 10\ \mu\text{s} \end{aligned}$$
2. **Time constant touched.** The finger adds 2 pF:
   $$\begin{aligned} \tau &= 1\ \text{M}\Omega \times 12\ \text{pF} \\ &= 12\ \mu\text{s} \end{aligned}$$
3. **Compare the times.** Timing to any fixed threshold scales with RC, so the touch stretches the time by 20%, 2 µs, easy for a microcontroller's timer to see.
4. **Why a finger counts.** The finger is a conductor coupled to ground through the body, so it acts as one more plate.
5. **Where this is used.** Capacitive touch buttons and phone screens measure exactly this change, often a fraction of a picofarad.

**Answer:** a touch makes the charging time 20% longer, 12 µs against 10 µs, a 2 µs difference.
:::
:::

::: check
given: R = 1 | 4.7 | 10; C = 2.2 | 4.7 | 10
answer: R*C
unit: ms
tolerance: 0.5%

## A {R} kΩ resistor charges a {C} µF capacitor. What is the time constant?

::: right
Right. $\tau = RC$ = {answer}.
:::

::: misses
- [R*C*1000] kΩ × µF is milliseconds.
- [R/C] Multiply: $\tau = RC$.
- [any] Not yet. $\tau = RC$.
:::
:::

::: check
given: V = 5 | 9 | 12; R = 1 | 2 | 10
answer: V/R
unit: mA
tolerance: 0.5%

## An uncharged capacitor is connected to {V} V through {R} kΩ. What current flows at the first instant?

::: right
Right. The capacitor has no voltage yet, so $V/R$ = {answer}.
:::

::: misses
- [0] The current is largest at the start, when the capacitor has no voltage to oppose it.
- [any] Not yet. At first all the voltage is across R.
:::
:::

::: check
given: V = 5 | 9 | 12; n = 1 | 2 | 3
answer: V*(1 - exp(-n))
unit: V
tolerance: 0.5%

## A capacitor charges toward {V} V. What is its voltage after {n} time constant(s)?

::: right
Right. $V(1 - e^{-n})$ = {answer}.
:::

::: misses
- [V*exp(-n)] That's what's left to go. Subtract from V.
- [V*n/5] The rise is exponential, not linear.
- [any] Not yet. $v_C = V(1 - e^{-t/\tau})$.
:::
:::

::: check
given: C = 1 | 10 | 100; V = 5 | 12
answer: C*V
unit: µC
tolerance: 0.5%

## A {C} µF capacitor is fully charged to {V} V. How much charge sits on each plate?

::: right
Right. $q = CV$ = {answer}, positive on one plate and negative on the other.
:::

::: misses
- [2*C*V] Each plate holds $CV$; the total is zero.
- [C/V] Multiply: $q = CV$.
- [any] Not yet. $q = CV$.
:::
:::

::: check
kind: choice

## Current flows in the wires while a capacitor charges. What happens in the gap between the plates?

- [ ] Electrons jump across
- [x] No charge crosses; the electric field grows, and its rate of change carries the current across as displacement current
- [ ] Nothing at all
- [ ] Ions carry the current

::: right
Right. Charge collects on the plates, and the changing field in the gap continues the current.
:::

::: misses
- [1] The gap is an insulator; no charge crosses it.
- [3] The field in the gap is growing.
- [4] There are no ions in a vacuum or plastic film gap.
:::
:::

::: check
kind: parts
given: C = 5 | 10 | 20; d = 1 | 3; R = 0.5 | 2

## A touch pad of {C} pF is charged through {R} MΩ, and a finger adds {d} pF.

::: part
answer: R*C
unit: µs
tolerance: 0.5%

### What's the untouched time constant?

::: misses
- [any] τ = RC.
:::
:::

::: part
answer: d/C*100
unit: %
tolerance: 0.5%

### By what percentage does a touch lengthen the charging time?

::: misses
- [any] Time scales with C.
:::
:::
:::

::: check
kind: derivation
vars: I = 0.000001..0.1, C = 0.000000001..0.001, t = 0.000001..10

## A constant current I charges an empty capacitor C.

::: step
answer: I*t/C

### What's its voltage after time t?
:::

::: step
answer: I/C

### At what rate does the voltage rise?
:::

::: step
answer: (I*t)^2/(2*C)

### How much energy does it hold after time t?
:::

::: right
Right. Constant current gives a linear ramp, and the energy grows as the square of time.
:::
:::

::: explain
## Why does a capacitor's charging current fall as it charges?

::: model
The current is driven by the voltage across the resistor, which is the battery's voltage minus the capacitor's. As charge builds on the plates, the field between them and the capacitor's voltage grow, and that voltage opposes the battery. Less voltage remains across the resistor, so less current flows, which slows the charging further. The current falls toward zero as the capacitor's voltage approaches the battery's.
:::
:::

::: practice

::: check
given: tau = 1 | 2 | 5; n = 3 | 5
answer: n*tau
unit: ms
tolerance: 0.5%

## τ = {tau} ms. How long is {n}τ?

::: misses
- [any] Multiply.
:::
:::

::: check
given: n = 1 | 2 | 4
answer: 100*(1 - exp(-n))
unit: %
tolerance: 0.5%

## What percentage of its final voltage has a charging capacitor reached after {n}τ?

::: misses
- [100*exp(-n)] That's what's left.
- [any] $1 - e^{-n}$.
:::
:::

::: check
given: V = 5 | 10; R = 1 | 5; n = 1 | 2
answer: V/R*exp(-n)
unit: mA
tolerance: 0.5%

## {V} V charges a capacitor through {R} kΩ. Current after {n}τ?

::: misses
- [V/R*(1 - exp(-n))] The current decays.
- [any] $(V/R)e^{-n}$.
:::
:::
:::
