TExcelTAD

Capacitance and Dielectrics

Pull the plug on a desktop computer and its power LED often glows for a second or two longer. Something inside stored energy and is giving it back: capacitors. They smooth supply voltages, set timing, couple signals and decouple chips, and every board you open has dozens of them. This lesson refreshes capacitance and dielectrics and adds the first engineering formula you will use daily: the RC time constant. For the school treatment see capacitors and capacitor energy; the component side (types, ratings, markings) is in Capacitors and Inductors as Components.

Charge per volt

Two conductors separated by an insulator form a capacitor. Put a voltage VV across them and charges +Q+Q and −Q-Q collect on the two sides. The ratio is the capacitance:

C=QV,1 F=1 C/VC = \frac{Q}{V}, \qquad 1\ \text{F} = 1\ \text{C/V}

A farad is huge. Real values run from picofarads (10−12 F10^{-12}\ \text{F}, stray capacitance between traces) through nanofarads and microfarads (filtering, timing) to farads in supercapacitors.

For two parallel plates of area AA a distance dd apart, filled with a dielectric of relative permittivity εr\varepsilon_r:

C=ε0εrAd,ε0=8.854×10−12 F/mC = \frac{\varepsilon_0 \varepsilon_r A}{d}, \qquad \varepsilon_0 = 8.854 \times 10^{-12}\ \text{F/m}

The field between the plates is E=V/dE = V/d (the uniform field of Potential and Voltage). The dielectric's molecules polarise in that field, which partly cancels it and lets more charge sit on the plates for the same voltage: that is what εr>1\varepsilon_r > 1 means. Every dielectric also has a breakdown field; above it the insulator fails, which is why every capacitor has a rated voltage.

Dielectric εr\varepsilon_r (typical) Found in
air, vacuum 1.0006, 1 variable capacitors, gaps
PCB laminate (FR-4) about 4.2 to 4.7 at 1 MHz stray and plane capacitance
polypropylene film about 2.2 audio, snubber and pulse capacitors
aluminium oxide about 9 aluminium electrolytic capacitors
barium titanate ceramic 1000 to several thousand X7R / X5R multilayer ceramics (MLCC)

Energy and the RC circuit

The energy stored in a charged capacitor is

W=12CV2W = \frac{1}{2} C V^2

and the current into it is i=C dv/dti = C\,dv/dt: a capacitor's voltage cannot jump, because that would need an infinite current. Charge a capacitor CC from a source VSV_S through a resistor RR and the voltage rises exponentially with time constant τ=RC\tau = RC:

vC(t)=VS(1−e−t/τ),discharge: vC(t)=V0 e−t/τv_C(t) = V_S \left(1 - e^{-t/\tau}\right), \qquad \text{discharge: } v_C(t) = V_0\, e^{-t/\tau}

After one τ\tau the capacitor has reached 63.2 % of the way; after 5τ5\tau, 99.3 %, which engineers call "fully charged".

+5 V S R 10k C 100uF+vC 5 V 3.16 V1 s5 s vCt

Worked example: a capacitor you did not intend

Given: a 10 mm×10 mm10\ \text{mm} \times 10\ \text{mm} copper pad over a ground plane, separated by d=0.20 mmd = 0.20\ \text{mm} of FR-4 with εr=4.4\varepsilon_r = 4.4. Find: the pad's capacitance to ground, and the energy stored at 3.3 V3.3\ \text{V}. Solve:

A=(10×10−3 m)2=1.0×10−4 m2C=8.854×10−12 F/m⋅4.4⋅1.0×10−4 m22.0×10−4 m=1.95×10−11 F=19.5 pFW=12⋅19.5×10−12 F⋅(3.3 V)2=1.06×10−10 J\begin{aligned} A &= (10 \times 10^{-3}\ \text{m})^2 = 1.0 \times 10^{-4}\ \text{m}^2 \\ C &= \frac{8.854 \times 10^{-12}\ \text{F/m} \cdot 4.4 \cdot 1.0 \times 10^{-4}\ \text{m}^2}{2.0 \times 10^{-4}\ \text{m}} = 1.95 \times 10^{-11}\ \text{F} = 19.5\ \text{pF} \\ W &= \tfrac{1}{2} \cdot 19.5 \times 10^{-12}\ \text{F} \cdot (3.3\ \text{V})^2 = 1.06 \times 10^{-10}\ \text{J} \end{aligned}

Check: (F/m)⋅m2/m=F(\text{F/m}) \cdot \text{m}^2/\text{m} = \text{F}. Tens of picofarads for a large pad close to a plane is typical; that stray capacitance slows fast edges and couples noise, and is the reason high-speed designers care about stack-ups. Fringing fields at the edges add a few percent.

Charging curves in Python

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

R, C, Vs = 10e3, 100e-6, 5.0
tau = R * C
print(f"tau = RC = {tau:.2f} s")
for n in [1, 2, 3, 5]:
    print(f"after {n} tau: vC = {Vs*(1 - np.exp(-n)):.3f} V ({100*(1 - np.exp(-n)):.1f} %)")
t63 = -tau * np.log(1 - 0.632)
print(f"time to reach 63.2 %: {float(t63):.3f} s")
print(f"energy at 5 V: {0.5*C*Vs**2*1e3:.2f} mJ")

t = np.linspace(0, 6, 300)
plt.plot(t, Vs*(1 - np.exp(-t/tau)), label="charge from 0 V")
plt.plot(t, Vs*np.exp(-t/tau), label="discharge from 5 V")
plt.axvline(tau, ls="--", c="gray")
plt.xlabel("t (s)"); plt.ylabel("vC (V)"); plt.legend(); plt.grid(True)
plt.title("RC = 10 kohm x 100 uF = 1 s")
plt.show()
tau = RC = 1.00 s
after 1 tau: vC = 3.161 V (63.2 %)
after 2 tau: vC = 4.323 V (86.5 %)
after 3 tau: vC = 4.751 V (95.0 %)
after 5 tau: vC = 4.966 V (99.3 %)
time to reach 63.2 %: 1.000 s
energy at 5 V: 1.25 mJ

Guided lab: charge and discharge at 5 V

Hand calculation. R=10 kΩR = 10\ \text{k}\Omega, C=100 μFC = 100\ \mu\text{F}, VS=5.0 VV_S = 5.0\ \text{V}: τ=1.0 s\tau = 1.0\ \text{s}; vCv_C should pass 3.16 V3.16\ \text{V} at 1 s and 4.97 V4.97\ \text{V} at 5 s. The initial current is VS/R=0.50 mAV_S/R = 0.50\ \text{mA}.

Simulation. Run the Python example above and change R and C: doubling either doubles τ\tau. (A dedicated RC transient lab is planned for this track; until then the code is the simulation.)

What you would measure. Use an electrolytic capacitor rated at least 16 V16\ \text{V}, observing its polarity (stripe = −-). Supply 5.0 V5.0\ \text{V} from a bench supply with a 10 mA10\ \text{mA} limit. With a multimeter across the capacitor and a phone stopwatch, read vCv_C every second for 6 s; better, use an oscilloscope on a slow timebase (500 ms/div) and single-shot trigger. Electrolytics typically have a tolerance of ±20 %\pm 20\,\%, so expect the 63 % point anywhere between about 0.8 and 1.2 s; the resistor adds ±1\pm 1 to 5 %5\,\%. Fit ln⁡(1−vC/VS)\ln(1 - v_C/V_S) against tt: the slope is −1/τ-1/\tau, and the actual capacitance follows. Then disconnect the supply and discharge through the same resistor: the curve falls with the same τ\tau.

Hazards and safe setup: 5 V only; a reversed or over-voltage electrolytic can vent or burst, so check polarity and rating before switching on and wear safety glasses; discharge the capacitor through a resistor (not a screwdriver) before handling it. The 1.25 mJ stored here is harmless; the large capacitors inside mains equipment are not (ESD, Stored Energy and Battery Hazards).

Pitfalls

  • Unit slips: μF=10−6\mu\text{F} = 10^{-6}, nF=10−9\text{nF} = 10^{-9}, pF=10−12 F\text{pF} = 10^{-12}\ \text{F}; kΩ⋅μF\text{k}\Omega \cdot \mu\text{F} gives milliseconds.
  • Ignoring tolerance and DC bias: an X7R or X5R ceramic can lose half or more of its capacitance at its rated voltage; datasheets show the curve.
  • Meter loading on slow circuits: a 10 MΩ10\ \text{M}\Omega meter across 100 μF100\ \mu\text{F} forms a 1000 s time constant, fine; across 1 μF1\ \mu\text{F} in a high-resistance circuit it is not.
  • Polarised parts reversed: electrolytic and tantalum capacitors must see the right polarity.

Practice

  1. Find τ\tau for 4.7 kΩ4.7\ \text{k}\Omega and 220 nF220\ \text{nF}.
  2. How much energy is in a 2200 μF2200\ \mu\text{F} capacitor at 12 V12\ \text{V}?
  3. A capacitor charged to 5 V5\ \text{V} discharges through RR with τ=2 s\tau = 2\ \text{s}. When does it reach 1 V1\ \text{V}?
Answer
  1. τ=4.7×103⋅220×10−9=1.03 ms\tau = 4.7 \times 10^3 \cdot 220 \times 10^{-9} = 1.03\ \text{ms}.
  2. W=12⋅2200×10−6⋅122=0.158 JW = \tfrac{1}{2} \cdot 2200 \times 10^{-6} \cdot 12^2 = 0.158\ \text{J}.
  3. t=τln⁡(5/1)=2 s⋅1.609=3.22 st = \tau \ln(5/1) = 2\ \text{s} \cdot 1.609 = 3.22\ \text{s}.

Test yourself

Doubling the plate separation of a parallel-plate capacitor (everything else fixed) makes its capacitance…

  1. twice as large
  2. half as large
  3. four times as large
  4. unchanged

After one time constant, a charging capacitor has reached about what fraction of the source voltage?

  1. 37 %
  2. 50 %
  3. 63 %
  4. 99 %

What is τ\tau for R=1 kΩR = 1\ \text{k}\Omega and C=10 μFC = 10\ \mu\text{F}?

  1. 10 ms
  2. 1 ms
  3. 10 s
  4. 0.1 ms

Why can the voltage across a capacitor not jump instantly?

  1. Because i=C dv/dti = C\,dv/dt would need an infinite current
  2. Because the dielectric is an insulator
  3. Because capacitors only work with AC
  4. Because of the resistor's tolerance