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 across them and charges and collect on the two sides. The ratio is the capacitance:
A farad is huge. Real values run from picofarads (, stray capacitance between traces) through nanofarads and microfarads (filtering, timing) to farads in supercapacitors.
For two parallel plates of area a distance apart, filled with a dielectric of relative permittivity :
The field between the plates is (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 means. Every dielectric also has a breakdown field; above it the insulator fails, which is why every capacitor has a rated voltage.
| Dielectric | (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
and the current into it is : a capacitor's voltage cannot jump, because that would need an infinite current. Charge a capacitor from a source through a resistor and the voltage rises exponentially with time constant :
After one the capacitor has reached 63.2 % of the way; after , 99.3 %, which engineers call "fully charged".
Worked example: a capacitor you did not intend
Given: a copper pad over a ground plane, separated by of FR-4 with . Find: the pad's capacitance to ground, and the energy stored at . Solve:
Check: . 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
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. , , : ; should pass at 1 s and at 5 s. The initial current is .
Simulation. Run the Python example above and change R and C: doubling either doubles . (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 , observing its polarity (stripe = ). Supply from a bench supply with a limit. With a multimeter across the capacitor and a phone stopwatch, read 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 , so expect the 63 % point anywhere between about 0.8 and 1.2 s; the resistor adds to . Fit against : the slope is , and the actual capacitance follows. Then disconnect the supply and discharge through the same resistor: the curve falls with the same .
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: , , ; 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 meter across forms a 1000 s time constant, fine; across in a high-resistance circuit it is not.
- Polarised parts reversed: electrolytic and tantalum capacitors must see the right polarity.
Practice
- Find for and .
- How much energy is in a capacitor at ?
- A capacitor charged to discharges through with . When does it reach ?
Answer
- .
- .
- .
Test yourself
Doubling the plate separation of a parallel-plate capacitor (everything else fixed) makes its capacitance…
- twice as large
- half as large
- four times as large
- unchanged
After one time constant, a charging capacitor has reached about what fraction of the source voltage?
- 37 %
- 50 %
- 63 %
- 99 %
What is for and ?
- 10 ms
- 1 ms
- 10 s
- 0.1 ms
Why can the voltage across a capacitor not jump instantly?
- Because would need an infinite current
- Because the dielectric is an insulator
- Because capacitors only work with AC
- Because of the resistor's tolerance