Capacitors and Inductors as Components
On paper a capacitor is a and an inductor is an . On the bench, a "" ceramic chip may measure once is across it, an electrolytic fitted backwards bulges and vents, and an inductor that measured on the LCR meter behaves like a piece of wire at full load current. The physics is in Capacitance and Dielectrics and Magnetism, Induction and Inductance; this lesson is about the parts: the families, their markings and the few non-ideal numbers that decide which one to use.
Intuition: every real part is a small circuit
Three numbers per part cover most of the surprises: the equivalent series resistance (ESR, heats the part with ripple current), the equivalent series inductance (ESL, set by the leads and the body), and for inductors the saturation current.
Capacitor families
| Family | Typical range | Polarised? | Strengths | Watch out for |
|---|---|---|---|---|
| Ceramic Class 1 (C0G/NP0) | to | no | stable with temperature, voltage and time; low loss | small values only |
| Ceramic Class 2 (X7R, X5R; Y5V is a "Class 2" with wide drift) | to | no | tiny, cheap, very low ESR and ESL: the default for decoupling | capacitance falls with DC bias and temperature, cracks if the board bends |
| Film (polypropylene, polyester) | to | no | low loss, self-healing, high voltage | larger |
| Aluminium electrolytic | to | yes | lots of per volume and cost | higher ESR, wear out (life in hours at a temperature), vent or burst if reversed or over-voltaged |
| Tantalum / polymer | to | yes | compact, stable | manganese-dioxide tantalum can fail short and burn; follow the maker's voltage derating |
The letter codes of Class 2 ceramics are from the EIA system: in X7R, "X" = , "7" = , "R" = change over that range. That is without DC bias: a small X5R chip at a good fraction of its rated voltage can lose half its capacitance or more. Use the manufacturer's DC-bias curve, not the nominal value.
Markings. Small capacitors use a three-digit code in picofarads: two digits, then the number of zeros. "104" is , "472" is . A letter may follow for tolerance (J , K , M ). Electrolytics print the value and voltage in full (" 25 V"), with a stripe of minus signs on the negative lead; the negative lead is also the shorter one on new radial parts. Tantalum chips mark the positive end with a bar, the opposite convention: check every time.
Voltage derating. Never use a capacitor above its rated voltage. A common rule of thumb is to keep the working voltage at or below about to of the rating (stricter for tantalum, where makers often ask for ), which also improves life.
Inductor ratings
An inductor's datasheet gives the inductance at a test frequency, the DC resistance (DCR) of the winding, a rated current (the current that raises its temperature by a stated amount, often ), a saturation current (the current at which has dropped by a stated fraction, commonly to ; the maker defines it), and the self-resonant frequency (SRF). Above the core can carry no more flux, collapses and the current rises much faster than designed: in a switching converter that can destroy the switch. The energy stored is
Worked example: choosing an electrolytic for a 12 V rail
Given: a rail at needs a reservoir capacitor; stock ratings are , and . Find: a rating that keeps the working voltage at or below about , the energy stored, and the reactance at . Solve: , too high for the target; : choose . Energy: . Reactance: . Check: . Tens of millijoules will not hurt you but will spark and pit a screwdriver tip if the capacitor is shorted; see ESD, Stored Energy and Battery Hazards.
Code: decode markings and see the non-ideal capacitor
import numpy as np
import matplotlib.pyplot as plt
def cap_code(code):
"""Three-digit capacitor code: two digits and a power of ten, in picofarads."""
pf = int(code[:2]) * 10 ** int(code[2])
for unit, scale in (("uF", 1e6), ("nF", 1e3), ("pF", 1)):
if pf >= scale:
return f"{code} = {pf / scale:g} {unit}"
for code in ("104", "472", "220", "225"):
print(cap_code(code))
def z_cap(f, C, esr, esl):
"""Impedance of a real capacitor: C, ESR and ESL in series."""
w = 2 * np.pi * f
return esr + 1j * w * esl + 1 / (1j * w * C)
parts = {"100 nF ceramic": (100e-9, 0.02, 1e-9),
"100 uF electrolytic": (100e-6, 0.15, 10e-9)}
f = np.logspace(2, 8, 601) # 100 Hz .. 100 MHz
print(f"{'part':<20}{'|Z| 1 kHz':>13}{'|Z| 100 kHz':>13}{'|Z| 10 MHz':>13}{'f_srf':>12}")
for name, (C, esr, esl) in parts.items():
z = [abs(z_cap(fx, C, esr, esl)) for fx in (1e3, 1e5, 1e7)]
f_srf = 1 / (2 * np.pi * np.sqrt(esl * C))
print(f"{name:<20}" + "".join(f"{v:>9.3g} ohm" for v in z) + f"{f_srf / 1e6:>9.3g} MHz")
plt.loglog(f, abs(z_cap(f, C, esr, esl)), label=name)
plt.xlabel("frequency (Hz)"); plt.ylabel("|Z| (ohm)"); plt.grid(True, which="both", alpha=0.3)
plt.legend(); plt.title("Real capacitors: C, then ESR, then ESL")
plt.show()104 = 100 nF
472 = 4.7 nF
220 = 22 pF
225 = 2.2 uF
part |Z| 1 kHz |Z| 100 kHz |Z| 10 MHz f_srf
100 nF ceramic 1.59e+03 ohm 15.9 ohm 0.0984 ohm 15.9 MHz
100 uF electrolytic 1.6 ohm 0.15 ohm 0.646 ohm 0.159 MHz
The values of ESR and ESL are typical guesses, not taken from a datasheet. The plot shows why boards put a small ceramic next to a big electrolytic: the electrolytic has the lower impedance at low frequency, but above its self-resonance near it turns inductive, and the ceramic takes over up to about . Note "220" is (zero zeros), not .
Guided lab: measuring capacitors at low voltage
Hand calculation. A new aluminium electrolytic marked should read between and . An X7R ceramic marked 105 K is : to when measured with the small test signal of a meter (no DC bias).
Simulation. Run the code above with your own ESR and , for example the part with ESR after ageing: its at rises from to about , which is exactly what an ESR meter detects in a worn part.
What you would measure. Discharge each capacitor first (see below), then use the multimeter's capacitance range. Expect a reading inside the tolerance band plus the meter's capacitance accuracy (often a few percent plus some digits; check its manual). Electrolytics at room temperature often read a little high, ceramics close to nominal. An LCR meter at gives and ESR together.
Hazards and safe setup
- Only capacitors from your own low-voltage parts kit. Never salvage capacitors from mains equipment or camera flashes: they can hold a dangerous charge for days.
- Before handling or measuring, discharge through a resistor (for example , ), never with a screwdriver.
- Respect polarity and voltage rating when you power an electrolytic from the bench supply (current limit set, at most the rating and never above here); a reversed electrolytic can vent hot electrolyte, so wear eye protection.
Pitfalls
- Reading "104" as , or "220" as .
- Designing with the nominal value of a Class 2 ceramic at high DC bias.
- Mixing up the stripe conventions: electrolytic stripe = minus, tantalum bar = plus.
- Choosing an inductor by alone and ignoring and the rated current.
Practice
- Decode 473 J.
- A ceramic has ESL . Where is its self-resonance?
- An inductor is rated , . The design peak current is . What happens?
Answer
- , .
- .
- The core saturates near the peaks: drops sharply, the current ramps much faster than designed, and the switch and inductor overheat. Choose a part with comfortably above .
Test yourself
What capacitance does the code 104 stand for?
On a new radial aluminium electrolytic, which lead is negative?
- The lead next to the printed stripe of minus signs, usually the shorter one
- The longer lead
- Either: electrolytics are not polarised
- The lead next to a bar, as on tantalum chips
Why does a X5R chip capacitor often measure much less in a circuit at ?
- Its ESR rises
- Class 2 ceramics lose capacitance with DC bias
- It saturates like an inductor
- The meter is wrong
What does an inductor's saturation current tell you?
- The current at which the winding melts
- The current at which its inductance has dropped by a stated fraction because the core cannot carry more flux
- The fuse rating to use with it
- Its RMS current at the self-resonant frequency