EE Basics · step 4 · components
Capacitors
A capacitor stores energy in an electric field between two conductors. Everything about it follows from Gauss's law and displacement current: capacitance from geometry, the \(i = C\,dv/dt\) law, the RC transient, the surprising half-energy loss when charging, filtering, \(kT/C\) noise, and why a real capacitor turns into an inductor above its resonance.
Builds onGauss's law · Circuit quantitiesLeads toInductors · MLCC decoupling
1Capacitance from Gauss's law
Capacitance is the ratio of stored charge to the voltage it produces: \(C = Q/V\), in farads (C/V). It depends only on geometry and the material between the conductors.
- Two plates of area \(A\), separation \(d \ll \sqrt A\), carry \(+Q\) and \(-Q\). The surface charge density is \(\sigma_s = Q/A\).
- Gauss's law on a pillbox straddling one plate (field inside the metal is zero, field between the plates is uniform and normal): \(E\,A_\text{box} = \sigma_s A_\text{box}/\varepsilon\), so \(E = \sigma_s/\varepsilon = Q/(\varepsilon A)\).
- Voltage is the line integral across the gap: \(V = Ed = Qd/(\varepsilon A)\).
- Therefore $$C = \frac{Q}{V} = \frac{\varepsilon A}{d} = \frac{\varepsilon_0\varepsilon_r A}{d}$$
To make capacitance large, use a large area, a thin gap and a high-permittivity dielectric. Every capacitor technology is a different way of doing those three things.
1 cm² plates, 10 µm apart, \(\varepsilon_r = 4\): \(C = (8.85\times10^{-12})(4)(10^{-4})/(10^{-5}) = 354\ \text{pF}\). That is roughly a 1 cm² patch of PCB power and ground planes on a thin core. A multilayer ceramic capacitor (MLCC) interleaves hundreds of electrode layers about 1 µm apart in a dielectric with \(\varepsilon_r\) in the thousands. \(N\) layers in parallel give \(C = N\varepsilon A/d\), which is how a 0402 package reaches 10 µF.
2Why a dielectric increases capacitance
An insulator has no free charge, but its atoms and molecules polarize in a field: electron clouds shift, ions displace, permanent dipoles rotate. The result is a layer of bound charge on each face that opposes the applied field.
- Polarization \(\mathbf{P}\) (dipole moment per volume) produces bound surface charge \(\sigma_b = \mathbf{P}\cdot\hat{\mathbf{n}}\) on the dielectric faces, opposite in sign to the adjacent plate.
- Gauss's law counts all charge: \(\varepsilon_0\nabla\cdot\mathbf{E} = \rho_\text{free} + \rho_\text{bound}\), with \(\rho_\text{bound} = -\nabla\cdot\mathbf{P}\).
- Define \(\mathbf{D} = \varepsilon_0\mathbf{E}+\mathbf{P}\). Then \(\nabla\cdot\mathbf{D} = \rho_\text{free}\): D depends only on the charge you put on the plates.
- For a linear material \(\mathbf{P} = \varepsilon_0\chi\mathbf{E}\), so \(\mathbf{D} = \varepsilon_0(1+\chi)\mathbf{E} = \varepsilon_0\varepsilon_r\mathbf{E}\).
- For the same free charge \(Q\), E (and therefore V) is smaller by \(\varepsilon_r\). Same Q, lower V: capacitance rises by \(\varepsilon_r\).
The mechanisms have different speeds, which is why \(\varepsilon_r\) varies with frequency. Electronic polarization follows into the ultraviolet, ionic polarization into the infrared, and dipole rotation and domain-wall motion (as in the ferroelectric ceramics used in X7R capacitors) only up to kHz–GHz. When a mechanism cannot keep up it dissipates energy, which shows up as the dielectric loss tangent \(\tan\delta\).
3Other geometries
- Inner conductor radius \(a\), outer radius \(b\), charge \(\lambda\) per unit length. Gauss's law on a cylinder of radius \(r\) and length \(\ell\): \(E\cdot2\pi r\ell = \lambda\ell/\varepsilon\), so \(E = \lambda/(2\pi\varepsilon r)\).
- \(V = \int_a^b E\,dr = \dfrac{\lambda}{2\pi\varepsilon}\ln\dfrac ba\).
- Capacitance per unit length: $$C' = \frac{\lambda}{V} = \frac{2\pi\varepsilon}{\ln(b/a)}$$
RG-58 (\(b/a \approx 3.5\), polyethylene \(\varepsilon_r = 2.3\)) gives about 100 pF/m. Together with the inductance per length derived on the inductor page, this sets the cable's characteristic impedance, \(Z_0 = \sqrt{L'/C'}\approx 50\ \Omega\).
An isolated sphere of radius \(R\) has \(C = 4\pi\varepsilon_0R\): about 111 pF for a 1 m sphere, and roughly 100–200 pF for a human body. That is the origin of the human-body model capacitor (100 pF) in ESD testing.
4The current–voltage law
- \(Q = Cv\) at every instant (C constant).
- Differentiate: \(dQ/dt = C\,dv/dt\). The current into the + terminal is \(dQ/dt\). $$i = C\frac{dv}{dt} \qquad\Longleftrightarrow\qquad v(t) = v(0) + \frac1C\int_0^t i\,d\tau$$
- Field check: between the plates there is no conduction current, only displacement current density \(\varepsilon\,\partial E/\partial t\). Total displacement current is \(\varepsilon A\,\frac{d}{dt}(v/d) = C\,dv/dt\): the same current that flows in the wires continues across the gap as a changing field.
Two consequences shape every circuit:
- A capacitor's voltage cannot jump. A step in \(v\) would need infinite current. That is why capacitors hold up supply rails and smooth ripple.
- At DC a capacitor is an open circuit (\(dv/dt=0\Rightarrow i=0\)). It blocks DC and passes changes.
With constant current, \(\Delta V = I\,\Delta t/C\). A 5 A load step lasting 1 µs before the regulator responds, on 100 µF: \(\Delta V = 5\times10^{-6}/10^{-4} = 50\) mV. This ignores ESR and ESL, which in practice usually dominate (section 11).
5Stored energy
- Moving charge \(dq\) onto a capacitor already at voltage \(v = q/C\) takes work \(dW = v\,dq = (q/C)\,dq\).
- Integrate from 0 to \(Q\): $$W = \int_0^Q\frac qC\,dq = \frac{Q^2}{2C} = \frac12CV^2 = \frac12QV$$
- Field check: energy density \(\tfrac12\varepsilon E^2\) times volume \(Ad\), with \(E = V/d\): \(\tfrac12\varepsilon (V/d)^2Ad = \tfrac12(\varepsilon A/d)V^2\). The energy is in the field in the gap.
Because energy goes as \(V^2\), a 450 V, 470 µF bulk capacitor stores \(\tfrac12(4.7\times10^{-4})(450^2)\approx48\) J, enough to injure. The same capacitor at 25 V would hold 0.15 J. High-voltage capacitors need bleed resistors.
The force between the plates follows from \(F = -\partial W/\partial d\) at constant charge: \(F = Q^2/(2\varepsilon A)\). This is the force that makes MLCCs sing (piezoelectric and electrostrictive strain) and that MEMS electrostatic actuators use.
6Series and parallel
- Parallel: same \(V\) on each, charges add: \(Q = (C_1+C_2+\dots)V\), so \(C_\text{eq} = \sum C_k\). Physically, the plate areas add.
- Series: the same current flows through each, so each holds the same charge \(Q\). Voltages add: \(V = Q/C_1+Q/C_2+\dots\), so \(1/C_\text{eq} = \sum 1/C_k\). Physically, the gaps add.
Capacitors combine the opposite way to resistors. In series, the voltage divides in inverse proportion to capacitance, \(V_1 = V\,C_2/(C_1+C_2)\), which is the basis of capacitive dividers and of the voltage-sharing problem when stacking electrolytics (balancing resistors are needed because leakage, not capacitance, sets the DC share).
7RC charging and discharging
- A source \(V_s\) switches on at \(t=0\) and charges \(C\) through \(R\), starting from \(v(0)=V_0\). KVL: \(V_s = iR + v\), and \(i = C\,dv/dt\): $$RC\frac{dv}{dt} + v = V_s$$
- Separate variables: \(\dfrac{dv}{V_s - v} = \dfrac{dt}{RC}\). Integrate: \(-\ln(V_s-v) = t/RC + k\).
- Apply \(v(0)=V_0\): $$v(t) = V_s + (V_0 - V_s)\,e^{-t/\tau}, \qquad \tau = RC$$
- The current is \(i = C\,dv/dt = \dfrac{V_s-V_0}{R}e^{-t/\tau}\): it starts at the value the resistor alone would allow and decays to zero.
| Time | τ | 2τ | 3τ | 4τ | 5τ | 7τ |
|---|---|---|---|---|---|---|
| Fraction reached, \(1-e^{-t/\tau}\) | 63.2% | 86.5% | 95.0% | 98.2% | 99.3% | 99.9% |
Two useful corollaries: the 10–90% rise time is \(\tau\ln 9 \approx 2.2\,\tau\), and the time to reach a threshold \(V_\text{th}\) from zero is \(t = \tau\ln\!\big(V_s/(V_s-V_\text{th})\big)\). The latter is how RC delays, power-on resets and the relaxation oscillator are timed.
Read the two switch events together. At each one the capacitor voltage is continuous, because a jump in \(v\) would need infinite current. The current takes the step instead: \(+V_s/R\) at turn-on, when the whole source voltage appears across R, and \(-V_s/R\) at turn-off, when the charged capacitor becomes the source and drives current backwards through R. Both then decay with the same \(\tau = RC\).
8The half-energy loss
Charging a capacitor from a voltage source through any resistor wastes exactly as much energy as it stores, no matter how small the resistor.
- From zero, \(i = (V_s/R)e^{-t/RC}\).
- Energy dissipated in R: $$E_R = \int_0^\infty i^2R\,dt = \frac{V_s^2}{R}\int_0^\infty e^{-2t/RC}dt = \frac{V_s^2}{R}\cdot\frac{RC}{2} = \frac12CV_s^2$$
- Energy delivered by the source: \(\int V_s i\,dt = V_sQ = CV_s^2\). Half is stored, half is burned. \(R\) cancels out: a smaller R means a larger, shorter current pulse with the same total loss.
CMOS dynamic power. Each output transition charges or discharges a load capacitance; every full cycle draws \(CV^2\) from the supply and dissipates it. At switching frequency \(f\) with activity factor \(\alpha\): \(P = \alpha CV^2f\). This quadratic dependence on V is why lowering core voltage is the most effective way to cut processor power.
Hot-plug inrush. Charging 1000 µF to 48 V dissipates \(\tfrac12(10^{-3})(48^2)\approx1.15\) J in whatever limits the inrush: the MOSFET in a hot-swap controller must absorb this within its safe operating area.
The loss is avoided only by charging gradually (current source or inductor), which is exactly what switching converters and adiabatic logic do.
9Impedance and the RC filter
- Let \(v = \mathrm{Re}\{\mathbf{V}e^{j\omega t}\}\). Then \(i = C\,dv/dt = \mathrm{Re}\{j\omega C\mathbf{V}e^{j\omega t}\}\).
- So \(\mathbf{I} = j\omega C\mathbf{V}\) and $$Z_C = \frac{\mathbf V}{\mathbf I} = \frac{1}{j\omega C} = -\frac{j}{\omega C}, \qquad |Z_C| = \frac{1}{2\pi fC}$$
- The \(-j\) means current leads voltage by 90°. Impedance falls with frequency: open at DC, short at high frequency.
- Series R, output across C. Divider with impedances: $$H(j\omega) = \frac{Z_C}{R+Z_C} = \frac{1}{1+j\omega RC}$$
- Magnitude \(|H| = 1/\sqrt{1+(\omega RC)^2}\), phase \(\angle H = -\arctan(\omega RC)\).
- At \(\omega_c = 1/RC\), i.e. \(f_c = 1/(2\pi RC)\): \(|H| = 1/\sqrt2\) (−3 dB) and phase is −45°.
- For \(\omega\gg\omega_c\), \(|H|\approx 1/(\omega RC)\): each decade of frequency costs a factor of 10, i.e. −20 dB/decade.
- Swap R and C to get the high-pass \(H = j\omega RC/(1+j\omega RC)\).
Rise time and bandwidth are linked: for a single pole, \(t_r = 2.2\tau = 2.2/(2\pi f_c) \approx 0.35/f_c\). A 100 MHz scope bandwidth means about 3.5 ns of rise time added to everything it measures.
10kT/C noise
Every resistor has thermal noise \(4kTR\) V²/Hz (see the resistor page). Put a capacitor across it and the capacitor filters that noise. The surprise is that the total noise left on the capacitor does not depend on R at all.
- The resistor's noise passes through the RC low-pass, so the noise spectral density on C is \(4kTR\,|H|^2 = \dfrac{4kTR}{1+(2\pi fRC)^2}\).
- Integrate over all frequencies. With \(x = 2\pi fRC\), \(\int_0^\infty\frac{df}{1+(2\pi fRC)^2} = \frac{1}{2\pi RC}\int_0^\infty\frac{dx}{1+x^2} = \frac{1}{2\pi RC}\cdot\frac\pi2 = \frac{1}{4RC}\).
- So $$\overline{v^2} = 4kTR\cdot\frac{1}{4RC} = \frac{kT}{C}$$
- Equipartition gives the same answer directly: the capacitor is one energy storage degree of freedom, so \(\tfrac12C\overline{v^2} = \tfrac12kT\).
A larger R gives more noise density but over a proportionally smaller bandwidth; the two cancel. At 300 K, 1 pF has 64 µV RMS of noise and 10 pF has 20 µV. Sample-and-hold circuits, switched-capacitor ADCs and image-sensor pixels are sized by this limit: to halve the noise you need four times the capacitance.
11Real capacitors: ESR, ESL and self-resonance
A real capacitor is a series RLC: capacitance \(C\), equivalent series resistance (ESR, from electrode metal, terminations and dielectric loss) and equivalent series inductance (ESL, from the current loop through the package and mounting).
Below the self-resonant frequency (SRF) the part is capacitive; at the SRF the reactances cancel and \(|Z| = \text{ESR}\); above it the part is an inductor. On a log-log plot \(|Z|\) is a V: falling at −20 dB/decade, a floor at ESR, then rising at +20 dB/decade.
ESL including mounting ≈ 0.4 nH: \(f_\text{SRF} = 1/(2\pi\sqrt{0.4\times10^{-9}\times10^{-7}}) \approx 25\) MHz. At 100 MHz its impedance is \(2\pi\times10^8\times0.4\times10^{-9} \approx 0.25\ \Omega\), set entirely by inductance. Above the SRF, a 1 µF in the same package is no better than a 100 nF: what matters is loop inductance, which depends on package size, via placement and the distance to the planes. The MLCC decoupling primer builds on this.
ESR causes dissipation from ripple current, \(P = I_\text{rms}^2\,\text{ESR}\), which limits electrolytic capacitor life (roughly halving for every 10 °C rise). The quality of a capacitor is often stated as its dissipation factor \(\text{DF} = \tan\delta = \omega C\cdot\text{ESR}\).
12Dielectric families
| Type | εr | Range | Strengths | Watch for |
|---|---|---|---|---|
| C0G / NP0 ceramic (class 1) | ~30–100 | pF–100 nF | Stable with T, V and time; very low loss | Low capacitance per volume |
| X7R / X5R ceramic (class 2) | 2000–4000 | nF–100 µF | Small, cheap, low ESR/ESL | DC-bias loss, temperature drift, aging, piezo noise, flex cracks |
| Aluminium electrolytic | ~8 (very thin oxide) | µF–F | Bulk energy, high V | ESR, wear-out, polarity, temperature life |
| Polymer Al / tantalum | ~8–27 | µF–mF | Low ESR, stable with bias | Surge rating, voltage derating |
| Film (PP, PET) | 2.2–3.3 | nF–µF | Low loss, self-healing, high V | Size |
X5R and X7R use ferroelectric barium titanate. Its permittivity comes from domains that a DC field locks in place, so \(\varepsilon_r\) falls as bias rises. A 10 µF 6.3 V X5R in 0603 can lose 50–80% of its capacitance at 5 V. Always check the manufacturer's DC-bias curve. Class 2 parts also age (about −1 to −3% per decade of hours) and recover when heated above the Curie point.
Summary
13Check yourself
Why can't you charge a capacitor from a voltage source more efficiently by using a smaller resistor?
The energy lost is \(\tfrac12CV^2\) independent of R. A smaller R raises the peak current and shortens the pulse in exact proportion. Only charging with a gradually rising voltage or a current source (an inductor, in practice) avoids the loss.
Two 10 µF capacitors in series across 10 V. What is the total capacitance and the voltage on each?
5 µF, and 5 V each (equal C share voltage equally). With unequal leakage, the steady-state DC share would be set by leakage resistance instead, which is why stacked electrolytics need balancing resistors.
What is the −3 dB frequency of 10 kΩ and 10 nF, and the 10–90% rise time?
\(\tau = 100\ \mu\)s, \(f_c = 1/(2\pi\times10^{-4}) \approx 1.59\) kHz, \(t_r = 2.2\tau = 220\ \mu\)s.
A sampling capacitor must keep thermal noise below 50 µV RMS. What is the minimum size?
\(C \ge kT/v^2 = 4.14\times10^{-21}/(50\times10^{-6})^2 \approx 1.7\) pF.
Why does adding a 10 µF next to a 100 nF sometimes make high-frequency noise worse?
Between their resonances, the larger capacitor is already inductive while the smaller is still capacitive. An inductor in parallel with a capacitor forms a parallel resonance, an impedance peak. Identical parts or a damped bank (with some ESR) avoid it; see the MLCC decoupling pages.