The Engineering Desk
From the makers of RS-1

DesignElectrical Engineering

For decoupling capacitors, placement beats value

A 100 nF capacitor with a long trace is mostly an inductor. How to lay out bypassing that actually works.

PCB layout of an IC power pin with a decoupling capacitor and vias, showing the current loop
PCB layout of an IC power pin with a decoupling capacitor and vias, showing the current loop

"Put a 100 nF capacitor on every power pin" is probably the most repeated rule in board design. It's a reasonable starting point. But a perfect capacitor value placed in the wrong spot does very little, because at the frequencies digital circuits care about, the connection matters more than the component.

What decoupling is for

When a logic gate switches, it draws a short burst of current. The power supply and the board's power traces are too far away and too inductive to deliver that current within nanoseconds. A local capacitor acts as a small reservoir right next to the pin. It supplies the burst, then recharges slowly from the supply. Without it, the supply voltage at the chip dips and rings on every edge. That shows up as jitter, logic errors and radiated noise.

A real capacitor is an RLC circuit

Every capacitor has some equivalent series resistance (ESR) and equivalent series inductance (ESL). Its impedance falls with frequency until it reaches its self-resonant frequency:

fSR=12πL Cf_{SR} = \frac{1}{2\pi\sqrt{L\,C}}

Above that frequency, the inductance dominates and the "capacitor" behaves like an inductor. For 100 nF with 1 nH of total loop inductance:

fSR=12π(1×10−9 H)(100×10−9 F)≈16 MHz\begin{aligned} f_{SR} &= \frac{1}{2\pi\sqrt{(1\times10^{-9}\,\text{H})(100\times10^{-9}\,\text{F})}} \\ &\approx 16\ \text{MHz} \end{aligned}

The total inductance includes the part, its pads, the traces and the vias. Add 2 nH of trace and vias, and resonance drops to about 9 MHz, with higher impedance at every frequency above it.

Source of inductanceTypical valueHow to reduce it
0402 ceramic capacitor body~0.3–0.5 nHSmaller package, or reverse-geometry (0204) parts
Trace from pad to via~0.5–1 nH per mmVia in pad, or as close to the pad as allowed
Single via through 1.6 mm board~0.5–1 nHTwo vias per pad; place planes close to the surface
Distance between power and ground planesVariesThin dielectric between adjacent power and ground planes

Order-of-magnitude values; check your fabricator's stack-up and the capacitor datasheet.

Placement rules that actually matter

  1. Minimise the loop, not just the distance. Current flows from the capacitor, through its vias to the planes, up to the IC's power pin, and back through the ground pin. The area enclosed by that path sets the inductance. Put the capacitor's power and ground vias right next to each other.
  2. Connect to the plane first, then to the pin. A capacitor connected to the IC pin by a long trace, with the via at the far end, gives the plane an easy path around the capacitor.
  3. Put the smallest capacitors closest. The 100 nF (or smaller) parts go right at the pins. The bulk capacitors (10 µF and up) handle lower frequencies and can sit a little further away.
  4. Use the same side of the board where possible. Capacitors on the far side add two via lengths of inductance. Sometimes that's still better than a long trace on the top side.

Choosing values

The modern approach is to define a target impedance for the power network, and keep the network below it across the frequency range the chip uses:

Ztarget=ΔVallowedΔItransientZ_{\text{target}} = \frac{\Delta V_{\text{allowed}}}{\Delta I_{\text{transient}}}

For a 3.3 V rail allowed ±3% (99 mV) with a 0.5 A transient:

Ztarget=0.099 V0.5 A≈0.2 ΩZ_{\text{target}} = \frac{0.099\ \text{V}}{0.5\ \text{A}} \approx 0.2\ \Omega

Bulk capacitors cover the low-kHz range, the 1–10 µF ceramics cover the middle, and the 100 nF parts plus the plane capacitance cover the high end.

Mixing many different values can create anti-resonance peaks, where one capacitor's inductive region meets another's capacitive region. Several capacitors of the same value in parallel often perform more predictably than one of each.

The DC bias trap

Class II ceramics such as X5R and X7R lose capacitance as DC voltage is applied. A small-package 10 µF, 6.3 V part on a 5 V rail can lose half or more of its rated capacitance. Always check the manufacturer's DC bias curve, and choose a higher voltage rating or larger package if the rail is near the rating.

More in Electrical Engineering