---
title: Capacitors in AC circuits
heading: Current that leads the voltage by a quarter cycle
eyebrow: C3 · Lesson 3 · Capacitors in AC circuits
xp: 40
---

::: hook
A capacitor's current is set by how fast its voltage changes: $i = C\,dv/dt$. Drive it with a sine wave and the current is largest when the voltage crosses zero, where it's changing fastest, and zero at the voltage's peaks. So the current runs a quarter cycle ahead of the voltage. And because faster changes mean more current, a capacitor passes high frequencies easily and blocks DC completely.

::: play
- The arrows are the voltage phasor V and the current phasor I (drawn as I × 1 kΩ so they fit together). Press Play: their shadows on the real axis are the actual voltage and current.
- Which reaches its peak first? By how much of a turn?
- Raise the frequency, then the capacitance. What happens to the current?
:::
:::

```sim plot
view: complex
range: 8
slider: Vp = 1..5 step 0.5 = 5 V
slider: f = 20..200 step 5 = 100 Hz
slider: C = 0.2..1.5 step 0.1 = 1 µF
spin: 0.25
arrow: Vp∠0 | label: V
arrow: (Vp*2*pi*f*C*1e-6*1000)∠90 | color: ch2 | label: I × 1 kΩ
shadow: on
readout: reactance Xc = 1/(2*pi*f*C*1e-6) Ω
readout: current amplitude in mA = Vp*2*pi*f*C*1e-6*1000
```

::: predict
## A capacitor's AC current is 10 mA at 100 Hz. With the same voltage, what is it at 1 kHz?

- [ ] 1 mA
- [ ] 10 mA
- [x] 100 mA
- [ ] 1 A

::: reveal
100 mA. Ten times the frequency means the voltage changes ten times as fast, so $C\,dv/dt$ is ten times larger. A capacitor's opposition to AC, its reactance $1/(2\pi fC)$, falls as frequency rises. That's why capacitors are used to pass audio signals while blocking DC, and to shunt high-frequency noise to ground.
:::
:::

::: nameit
## A capacitor with a sine wave

**Current leads by 90°.** With $v = V_p\cos\omega t$:

$$i = C\frac{dv}{dt} = -\omega CV_p\sin\omega t = \omega CV_p\cos(\omega t + 90°)$$

**As phasors** (A3.15: differentiating multiplies by $j\omega$):

$$\mathbf I = j\omega C\,\mathbf V$$

The factor $j$ is the 90° lead. The magnitude ratio is the **capacitive reactance**:

$$X_C = \frac{1}{\omega C} = \frac{1}{2\pi fC} \qquad |\mathbf V| = X_C|\mathbf I|$$

**Impedance.** Combining both, the capacitor's impedance is

$$Z_C = \frac{\mathbf V}{\mathbf I} = \frac{1}{j\omega C} = -\frac{j}{\omega C}$$

a negative imaginary number: no resistive part, with the voltage lagging the current.

**Limits.**

- At DC ($f = 0$), $X_C$ is infinite: an open circuit, as in C2.
- At high frequencies, $X_C \to 0$: nearly a short circuit.

**No average power.** For a quarter cycle the capacitor absorbs energy as its field builds, and for the next quarter it gives it back. On average an ideal capacitor dissipates nothing, though current flows constantly.

**In the field.** The field between the plates follows the voltage. The displacement current, $\varepsilon A\,dE/dt$, follows the field's rate of change and peaks as the field passes through zero: the same quarter-cycle lead seen from inside the gap.
:::

```sim circuit
V1 in 0 sine 5 V 100 Hz     @ 0,0 down
R1 in a 10                  @ 0,0 right
C1 a 0 1u                   @ 2,0 down
slider: V1.f 20..2k log
slider: C1 100n..10u log
scope: v(in), i(C1)
time: 0..20m s
meter: v(in), i(C1)
```

The same capacitor in a circuit (the 10 Ω only keeps the source and capacitor from being joined directly). The meters read amplitude and phase: the current leads by almost exactly 90°.

::: example
## What reactance does 10 µF have at 50 Hz, and what current does it draw from 230 V?

::: solution
1. **Reactance.**
   $$\begin{aligned} X_C &= \frac{1}{2\pi \times 50 \times 10^{-5}} \\ &= 318\ \Omega \end{aligned}$$
2. **Current.**
   $$\begin{aligned} I &= \frac{230}{318} \\ &= 0.72\ \text{A} \end{aligned}$$
   leading the voltage by 90°.

**Answer:** 318 Ω, drawing 0.72 A that leads the voltage by 90°.
:::
:::

::: example
## At what frequency does 100 nF have a reactance of 1 kΩ?

::: solution
1. **Solve the reactance formula for $f$.**
   $$\begin{aligned} f &= \frac{1}{2\pi X_C C} \\ &= \frac{1}{2\pi \times 1000 \times 10^{-7}} \\ &= 1.59\ \text{kHz} \end{aligned}$$
2. **Ten times higher.** At ten times that frequency, the reactance is 100 Ω.

**Answer:** 1.59 kHz.
:::
:::

::: example
## An audio input has 10 kΩ input resistance. What coupling capacitor puts the low-frequency corner at 20 Hz, and what's its reactance at 1 kHz?

::: solution
1. **Capacitor for a 20 Hz corner.** The capacitor and the input resistance form a high-pass with corner $\frac{1}{2\pi RC}$, so
   $$\begin{aligned} C &= \frac{1}{2\pi \times 20 \times 10^4} \\ &= 796\ \text{nF} \end{aligned}$$
   about 1 µF in practice.
2. **Reactance at 1 kHz.**
   $$\begin{aligned} X_C &= \frac{1}{2\pi \times 1000 \times 796\ \text{nF}} \\ &= 200\ \Omega \end{aligned}$$
   only 2% of the input resistance.
3. **What it does.** Mid-band signals pass almost untouched while DC is blocked completely.

**Answer:** 796 nF (about 1 µF in practice), with a reactance of 200 Ω at 1 kHz.
:::
:::

::: check
given: f = 50 | 100 | 1000; C = 1 | 10 | 100
answer: 1/(2*pi*f*C*1e-6)
unit: Ω
tolerance: 0.5%

## What is the reactance of a {C} µF capacitor at {f} Hz?

::: right
Right. $X_C = 1/(2\pi fC)$ = {answer}.
:::

::: misses
- [1/(f*C*1e-6)] Include the 2π: $\omega = 2\pi f$.
- [2*pi*f*C*1e-6] That's $\omega C$. Reactance is its reciprocal.
- [any] Not yet. $X_C = 1/(2\pi fC)$.
:::
:::

::: check
given: V = 1 | 5 | 10; f = 100 | 1000; C = 0.1 | 1
answer: V*2*pi*f*C*1e-6*1000
unit: mA
tolerance: 0.5%

## A {V} V (peak) sine at {f} Hz drives a {C} µF capacitor. What is the peak current?

::: right
Right. $I = \omega CV$ = {answer}.
:::

::: misses
- [V*f*C*1e-6*1000] Include 2π.
- [V/(2*pi*f*C*1e-6)*1000] Divide V by the reactance, $1/(\omega C)$: that's multiplying by $\omega C$.
- [any] Not yet. $I = V/X_C = \omega CV$.
:::
:::

::: check
given: f = 100 | 1000 | 10000; C = 10 | 100 | 1000
answer: -1/(2*pi*f*C*1e-9)
unit: Ω
tolerance: 0.5%

## A {C} nF capacitor's impedance at {f} Hz is $Z_C = jX$. What is X (with its sign)?

::: right
Right. $Z_C = -j/(\omega C)$, so X = {answer}.
:::

::: misses
- [1/(2*pi*f*C*1e-9)] A capacitor's impedance is negative imaginary.
- [any] Not yet. $Z_C = 1/(j\omega C) = -j/(\omega C)$.
:::
:::

::: check
given: X = 100 | 1000 | 10000; C = 0.1 | 1 | 10
answer: 1/(2*pi*X*C*1e-6)
unit: Hz
tolerance: 0.5%

## At what frequency does a {C} µF capacitor have a reactance of {X} Ω?

::: right
Right. $f = 1/(2\pi X_CC)$ = {answer}.
:::

::: misses
- [1/(X*C*1e-6)] Include the 2π.
- [any] Not yet. Solve $X_C = 1/(2\pi fC)$ for f.
:::
:::

::: check
kind: choice

## A capacitor is driven by a sine wave. At the instant its voltage is at its positive peak, what is its current?

- [ ] At its positive peak
- [x] Zero
- [ ] At its negative peak
- [ ] Half its peak

::: right
Right. At the peak the voltage is momentarily not changing, so $C\,dv/dt = 0$.
:::

::: misses
- [1] That would be in phase, like a resistor.
- [3] The current peaks a quarter cycle earlier.
- [4] The voltage's slope is exactly zero at its peak.
:::
:::

::: check
kind: parts
given: f = 10 | 20 | 50; R = 10 | 47; g = 1 | 10

## A coupling capacitor feeds an input of {R} kΩ and must put the corner at {f} Hz.

::: part
answer: 1/(2*pi*f*R*1e3)*1e9
unit: nF
tolerance: 0.5%

### What capacitance does it need?

::: misses
- [any] $C = \frac{1}{2\pi fR}$.
:::
:::

::: part
answer: 1/(2*pi*g*1e3*1/(2*pi*f*R*1e3))
unit: Ω
tolerance: 0.5%

### What's its reactance at {g} kHz?

::: misses
- [any] $\frac{1}{2\pi fC}$.
:::
:::
:::

::: check
kind: derivation
vars: C = 0.000000000001..0.001, f = 1..10000000, V = 0.1..400

## A capacitor C carries a sine of RMS voltage V at f.

::: step
answer: 1/(2*pi*f*C)

### What's its reactance?
:::

::: step
answer: V*2*pi*f*C

### What RMS current flows?
:::

::: step
answer: V^2*2*pi*f*C

### What reactive power does it take?
:::

::: right
Right. A capacitor's current rises with frequency.
:::
:::

::: explain
## Why does a capacitor's current lead its voltage by 90° in an AC circuit?

::: model
A capacitor's current is proportional to how fast its voltage is changing, $i = C\,dv/dt$. For a sine wave, the voltage changes fastest as it crosses zero going up and not at all at its peaks. So the current peaks when the voltage is crossing zero, a quarter cycle before the voltage reaches its own peak, and is zero at the voltage's peaks. That quarter cycle is 90°, with the current ahead.
:::
:::

::: practice

::: check
given: f = 50 | 60; C = 10 | 100
answer: 1/(2*pi*f*C*1e-6)
unit: Ω
tolerance: 0.5%

## {C} µF at {f} Hz. Reactance?

::: misses
- [2*pi*f*C*1e-6] Take the reciprocal.
- [any] $1/(2\pi fC)$.
:::
:::

::: check
given: k = 2 | 5 | 10
answer: 1/k
tolerance: 0.5%

## The frequency is raised {k} times. By what factor does a capacitor's reactance change?

::: misses
- [k] Reactance falls as frequency rises.
- [any] $X_C \propto 1/f$.
:::
:::

::: check
given: V = 2 | 5; X = 100 | 500
answer: V/X*1000
unit: mA
tolerance: 0.5%

## {V} V peak across a capacitor with {X} Ω reactance. Peak current?

::: misses
- [V*X] Divide by the reactance.
- [any] $V/X_C$.
:::
:::
:::
