---
title: Capacitors in practice
heading: Types, ESR, self-resonance, leakage and lifetime
eyebrow: C2 · Lesson 4 · Capacitors in practice
xp: 40
---

::: hook
The capacitor on a schematic is just C. The one on a board has a small resistance in series that heats it, a little inductance from its leads that makes it act like an inductor at high frequencies, and some leakage that slowly drains it. Ceramic capacitors can lose more than half their capacitance at their rated voltage, and electrolytics dry out, faster when hot. Good designs pick the right type and check these effects; most dead power supplies die of a tired electrolytic capacitor.
:::

::: play
- The impedance of a real capacitor against frequency, on log scales: capacitance C in series with its equivalent series resistance (ESR) and inductance (ESL). The dashed line is an ideal capacitor.
- At low frequency it follows the ideal line. At the **self-resonant frequency** the C and L cancel and only the ESR is left. Above it, the capacitor is an inductor.
- Make it a 100 nF ceramic with 1 nH, then a 100 µF electrolytic with 20 nH and 0.1 Ω.
:::
:::

```sim plot
view: graph
x: f = 100..1e9 Hz log
y: Z = 0.001..1e4 Ω log
slider: C = 1..1e6 = 100 nF log
slider: esr = 0.001..1 = 0.01 Ω log
slider: esl = 0.1..50 = 1 nH log
plot: sqrt(esr^2 + (2*pi*f*esl*1e-9 - 1/(2*pi*f*C*1e-9))^2) | label: real capacitor | samples: 600
plot: 1/(2*pi*f*C*1e-9) | label: ideal | dashed | color: ch2
readout: self-resonant frequency, MHz = 1/(2*pi*sqrt(esl*1e-9*C*1e-9))/1e6 | digits: 4
readout: impedance at 100 kHz, Ω = sqrt(esr^2 + (2*pi*1e5*esl*1e-9 - 1/(2*pi*1e5*C*1e-9))^2) | digits: 3
```

::: predict
## A 100 nF ceramic capacitor has 1 nH of inductance from its package and pads. Above what frequency does it stop behaving like a capacitor?

- [ ] 160 kHz
- [ ] 1.6 MHz
- [x] About 16 MHz
- [ ] It's a capacitor at every frequency

::: reveal
About 16 MHz. $f = \frac{1}{2\pi\sqrt{LC}} = \frac{1}{2\pi\sqrt{10^{-9} \times 10^{-7}}} = 15.9$ MHz. Above that, the inductance dominates and the impedance rises with frequency. That's why boards place small capacitors close to chips: shorter connections mean less inductance and a higher self-resonance.
:::
:::

::: nameit
## A real capacitor

A practical model has the capacitance $C$ in series with an **ESR** (resistance of plates, leads and dielectric losses) and an **ESL** (inductance of the current path), all shunted by a large **leakage** resistance. Its impedance magnitude is

$$|Z| = \sqrt{\text{ESR}^2 + \left(2\pi fL - \frac{1}{2\pi fC}\right)^2}$$

falling as $1/f$ at low frequency, bottoming out at ESR at the **self-resonant frequency** $\frac{1}{2\pi\sqrt{LC}}$, and rising as $2\pi fL$ above it.

## Consequences

- **Heat:** a ripple current $I_\text{rms}$ dissipates $I_\text{rms}^2\,\text{ESR}$, and datasheets give a maximum ripple current.
- **Ripple voltage:** a current step $\Delta I$ makes a voltage step $\Delta I \cdot \text{ESR}$ at once, before the capacitance does anything.
- **Leakage:** a capacitor left charged loses its voltage with time constant $R_\text{leak}C$.

## Types

| Type | Range | Strengths | Watch for |
|---|---|---|---|
| ceramic, C0G/NP0 | pF to nF | stable, low loss | small values only |
| ceramic, X7R/X5R | nF to tens of µF | tiny, very low ESR | loses capacitance with DC voltage and temperature, often more than half at rated voltage in small packages |
| aluminum electrolytic | µF to F | large C per volt, cheap | polarized, higher ESR, dries out |
| film | nF to µF | stable, low loss, self-healing | bulky |
| supercapacitor | F to kF | huge energy storage | low voltage per cell, high ESR |

## Lifetime

Electrolytics are rated for a number of hours at their maximum temperature. A common rule of thumb doubles the life for every 10 °C cooler:

$$L = L_0 \times 2^{(T_0 - T)/10}$$
:::

::: example
## A 100 nF ceramic capacitor with 1 nH of ESL and 10 mΩ of ESR decouples a chip. What is its impedance at 100 kHz and at its self-resonance?

::: solution
1. **Impedance at 100 kHz.** The inductance hardly matters here, so the impedance is the capacitor's reactance:
   $$\begin{aligned} X_C &= \frac{1}{2\pi \times 10^5 \times 10^{-7}}\ \Omega \\ &= 15.9\ \Omega \end{aligned}$$
2. **Impedance at self-resonance.** At 15.9 MHz the reactances cancel, leaving the ESR:
   $$Z = 10\ \text{m}\Omega$$

**Answer:** 15.9 Ω at 100 kHz, and 10 mΩ (just the ESR) at its self-resonance of 15.9 MHz.
:::
:::

::: example
## An electrolytic capacitor is rated 2000 hours at 105 °C. About how long should it last at 65 °C?

::: solution
1. **Count the doublings.** 40 °C cooler is four doublings:
   $$\begin{aligned} \text{life} &= 2000 \times 2^4\ \text{hours} \\ &= 32{,}000\ \text{hours} \end{aligned}$$
   about 3.7 years of continuous use.
2. **In a hot enclosure.** At 95 °C it would get only 4000 hours.

**Answer:** about 32,000 hours, or 3.7 years of continuous use.
:::
:::

::: example
## A 10 µF, 6.3 V X5R ceramic capacitor keeps only 40% of its capacitance at 5 V DC bias. What capacitance does it really give, and what's its reactance at 1 MHz?

::: solution
1. **Capacitance under bias.** 40% of 10 µF is
   $$0.4 \times 10\ \mu\text{F} = 4\ \mu\text{F}$$
2. **Reactance at 1 MHz.**
   $$\begin{aligned} X &= \frac{1}{2\pi fC} \\ &= \frac{1}{2\pi \times 10^6 \times 4 \times 10^{-6}}\ \Omega \\ &= 40\ \text{m}\Omega \end{aligned}$$
   2.5 times what the label suggests.
3. **Why it happens.** High-permittivity ceramics lose capacitance as DC voltage aligns their dielectric's domains.
4. **What designers do.** They read the manufacturer's bias curves, or pick a higher voltage rating or a larger case to keep the capacitance they need.

**Answer:** it really gives 4 µF, and its reactance at 1 MHz is 40 mΩ.
:::
:::

::: check
given: C = 0.1 | 1 | 10; L = 0.5 | 2 | 10
answer: 1/(2*pi*sqrt(L*1e-9*C*1e-6))/1e6
unit: MHz
tolerance: 0.5%

## A {C} µF capacitor has {L} nH of ESL. What is its self-resonant frequency?

::: right
Right. $\frac{1}{2\pi\sqrt{LC}}$ = {answer}.
:::

::: misses
- [1/sqrt(L*1e-9*C*1e-6)/1e6] That's the angular frequency; divide by $2\pi$.
- [any] Not yet. $f = 1/(2\pi\sqrt{LC})$.
:::
:::

::: check
given: I = 0.5 | 2 | 5; esr = 10 | 50 | 200
answer: I^2*esr
unit: mW
tolerance: 0.5%

## A capacitor with {esr} mΩ of ESR carries {I} A RMS of ripple current. How much power does it dissipate?

::: right
Right. $I^2\,\text{ESR}$ = {answer}.
:::

::: misses
- [I*esr] Power is $I^2R$.
- [any] Not yet. $P = I_\text{rms}^2\,\text{ESR}$.
:::
:::

::: check
given: L0 = 1000 | 5000; T0 = 85 | 105; T = 45 | 65
answer: L0*2^((T0 - T)/10)
unit: h
tolerance: 0.5%

## An electrolytic is rated {L0} hours at {T0} °C. By the 10 °C rule, how long does it last at {T} °C?

::: right
Right. $L_0 \times 2^{(T_0 - T)/10}$ = {answer}.
:::

::: misses
- [L0*(T0 - T)/10] Each 10 °C *doubles* the life.
- [any] Not yet. Count the 10 °C steps and double for each.
:::
:::

::: check
given: dI = 0.5 | 2; esr = 20 | 100
answer: dI*esr
unit: mV
tolerance: 0.5%

## A load step of {dI} A hits a capacitor with {esr} mΩ of ESR. How big is the immediate voltage step?

::: right
Right. $\Delta I \cdot \text{ESR}$ = {answer}.
:::

::: misses
- [any] Not yet. Ohm's law on the ESR.
:::
:::

::: check
given: R = 100 | 1000; C = 10 | 470
answer: R*1e6*C*1e-6/3600
unit: h
tolerance: 0.5%

## A {C} µF capacitor has {R} MΩ of leakage resistance. What is its self-discharge time constant?

::: right
Right. $R_\text{leak}C$ = {answer}.
:::

::: misses
- [R*1e6*C*1e-6] That's in seconds; convert to hours.
- [any] Not yet. $\tau = R_\text{leak}C$.
:::
:::

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

## What is the reactance of a {C} µF capacitor at {f} kHz, ignoring ESR and ESL?

::: right
Right. $\frac{1}{2\pi fC}$ = {answer}.
:::

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

::: check
kind: parts
given: C = 4.7 | 10 | 22; k = 0.3 | 0.6; f = 0.1 | 1

## A {C} µF ceramic capacitor keeps {k} of its capacitance at its operating bias.

::: part
answer: C*k
unit: µF
tolerance: 0.5%

### What capacitance does it really give?

::: misses
- [any] Multiply by the retained fraction.
:::
:::

::: part
answer: 1/(2*pi*f*1e6*C*k*1e-6)*1000
unit: mΩ
tolerance: 0.5%

### What's its reactance at {f} MHz?

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

::: check
kind: derivation
vars: C = 0.000000001..0.0001, L = 0.0000000001..0.00000001, R = 0.001..1, f = 1000..100000000

## A capacitor C has ESL L and ESR R.

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

### What's the reactance of C alone at f?
:::

::: step
answer: 1/(2*pi*sqrt(L*C))

### At what frequency does it self-resonate?
:::

::: step
answer: R

### What's its impedance magnitude there?
:::

::: right
Right. Above self-resonance the capacitor acts as an inductor.
:::
:::

::: explain
## Why do boards often put a small ceramic capacitor right next to a large electrolytic one, across the same supply?

::: model
The electrolytic stores plenty of charge but has a fairly large ESR and ESL, so its impedance stops falling, and starts rising, at moderate frequencies. The small ceramic has far less inductance and resistance, so it keeps a low impedance up to much higher frequencies, though it holds little charge. In parallel, the electrolytic handles slow, large current changes and the ceramic handles fast ones, keeping the supply's impedance low across the whole range. Placing the ceramic close to the chip keeps the connection's inductance, which would undo its advantage, small.
:::
:::

::: practice

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

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

::: misses
- [any] $1/(2\pi fC)$.
:::
:::

::: check
given: dT = 10 | 20 | 30
answer: 2^(dT/10)
tolerance: 0.5%

## By what factor does an electrolytic's life grow if it runs {dT} °C cooler, by the 10 °C rule?

::: misses
- [any] $2^{\Delta T/10}$.
:::
:::

::: check
given: f = 10 | 100; L = 1 | 5
answer: 2*pi*f*1e6*L*1e-9
unit: Ω
tolerance: 0.5%

## What is the reactance of {L} nH at {f} MHz?

::: misses
- [any] $2\pi fL$.
:::
:::
:::
