Decoupling Capacitors Explained: Why 100 nF, Where to Place It, and How DC Bias Steals Capacitance
How decoupling capacitors keep a chip's supply steady, how to size them with one formula, why placement beats value, and which ceramics lose most of their capacitance under bias.

Almost every chip datasheet ends its power section the same way: put a 100 nF ceramic capacitor on each supply pin, as close as possible. The advice is so routine that it is easy to follow without knowing why it works, and that is exactly how boards end up with the right capacitor in the wrong place. A decoupling capacitor that sits a centimetre away on a thin trace is mostly decoration at the frequencies where it matters.
This guide explains what a decoupling capacitor actually does, why its value matters less than its connection, how to size one with simple arithmetic, and which ceramic types quietly lose most of their capacitance once a voltage is applied. A short Python script at the end models a real capacitor so you can see the effect of layout in numbers rather than rules of thumb.
The problem: current arrives in spikes
Digital logic does not draw a smooth current. Every clock edge switches thousands of transistors at once, so the supply current rises and falls in sharp pulses lasting nanoseconds. The applied-ee embedded guide uses an STM32F4 running at 168 MHz as an example of a part whose demand spikes reach hundreds of milliamps for a few nanoseconds.
The regulator that feeds the board cannot respond that fast, and even if it could, the copper between it and the chip has inductance. Inductance resists changes in current: the voltage lost across it is proportional to how quickly the current changes. A fast spike through a long trace therefore produces a dip in the voltage the chip actually sees, along with ground bounce on the return path. JLCPCB's layout guide lists the consequences that follow from an undecoupled rail: droop, ground bounce, clock jitter, radiated noise, and microcontroller resets.
A decoupling capacitor solves this by acting as a tiny local reservoir. It sits right next to the pin and supplies the burst of charge for each edge, then refills slowly from the main supply between edges. The long, inductive path to the regulator only has to carry the average current.
Sizing the reservoir with one formula
JLCPCB's guide gives a useful first-order estimate: the capacitance needed equals the transient current multiplied by its duration, divided by the largest voltage dip you can tolerate. It is just the definition of capacitance rearranged, charge equals capacitance times voltage, applied to one current pulse.
Worked example: suppose a pulse of 200 mA lasts 10 ns and the rail may dip by no more than 50 mV. The charge is 0.2 A times 10 ns, which is 2 nC. Dividing by 0.05 V gives 40 nF. A 100 nF part covers that with margin, which is part of why 100 nF became the default value. The estimate ignores inductance entirely, so treat it as a lower bound on capacitance, not as proof that the layout will work.
Why one value is not enough
A real capacitor is not a pure capacitance. It also has a small series resistance (ESR) and a small series inductance (ESL), set by its internal construction and package. At low frequencies the capacitance dominates and impedance falls as frequency rises. At one particular frequency, the self-resonant frequency, the capacitive and inductive parts cancel and only the ESR remains, which is the lowest impedance the part will ever offer. Above that point the inductance dominates and the capacitor behaves like a small inductor, with impedance climbing as frequency rises.
This is why designs combine values. Large capacitors handle slow, energetic changes; small ones handle fast edges. The applied-ee guide sketches a typical microcontroller network along these lines:
- 10 µF for roughly 100 kHz to 1 MHz, covering slower load changes.
- 100 nF for roughly 1 MHz to 100 MHz, the workhorse at each supply pin.
- 1 nF or 100 pF for content above about 100 MHz on fast designs.
Microchip's PIC16F18425/45 hardware guide makes the same point for its own parts: where noise extends into tens of megahertz and beyond, it suggests placing a second ceramic of 0.01 µF to 0.001 µF in parallel next to each primary 100 nF capacitor.
Placement matters more than value
Because the problem is inductance, every millimetre of copper between the capacitor and the pin works against it. The applied-ee guide estimates that a 10 mm trace contributes about 10 nH, and JLCPCB puts each via at roughly 1 to 2 nH. A few millimetres of trace and a couple of vias can therefore add several nanohenries before current even reaches the capacitor, which is why the mounting so often matters more than the part.
The sources converge on a short list of rules:
- Use one capacitor per supply pin. Microchip calls decoupling on every VDD and VSS pair a requirement for its parts, and JLCPCB advises one local capacitor per pin unless the datasheet says the pins share a plane.
- Place it within a few millimetres of the pin. Microchip recommends the same board side as the chip and, if a via is unavoidable, keeping the trace from pin to capacitor no longer than 6 mm (0.25 inch).
- Route the supply to the capacitor first, then to the pin, so that the charge path from capacitor to chip is the shortest leg. This ordering comes from Microchip's layout guidance.
- Drop the ground pad straight into the ground plane with its own via, placed directly at the pad rather than at the end of a trace. Parallel vias lower the inductance further.
- Keep the loop formed by the supply pin, the capacitor, and the ground return as small as possible. The loop area, not the capacitor value, sets the inductance.
The ceramic type can eat your capacitance
Multilayer ceramic capacitors (MLCCs) are labelled with a nominal value that holds only at zero volts. High-permittivity dielectrics lose capacitance as DC bias is applied, and small packages lose the most. The applied-ee guide gives a striking example: a 10 µF X5R part in an 0402 package rated at 6.3 V may keep only 3 to 4 µF when biased at 3.3 V. JLCPCB reports losses that can reach 60 to 80 percent as the bias approaches the rated voltage.
The dielectric code matters as well. X7R is specified from −55 °C to +125 °C and X5R from −55 °C to +85 °C, according to JLCPCB, while C0G (also written NP0) is the dielectric it recommends for analog and RF circuits. Y5V is the trap: both guides warn that it loses capacitance sharply with temperature and bias, and applied-ee suggests a 100 nF Y5V part at 3.3 V may deliver only 20 to 30 nF.
The practical fix is to pick a higher voltage rating or a larger package than the rail strictly needs, and to read the manufacturer's DC bias curve rather than the number printed on the reel. According to JLCPCB, choosing a 10 V or 16 V rating for a 3.3 V or 5 V supply leaves the effective capacitance near the nominal figure.
Seeing the layout effect in numbers
The script below models a capacitor as ESR, ESL, and capacitance in series and compares two mountings of the same 100 nF part. The ESR and ESL values are illustrative assumptions, not figures for a specific part; swap in numbers from your capacitor's datasheet. The second case adds two vias at 1 nH each and 5 mm of trace at roughly 1 nH per millimetre, in line with the estimates above.
import math
def cap_impedance(f, c, esr, esl):
"""Complex impedance of a real capacitor: ESR + jwL + 1/(jwC)."""
w = 2 * math.pi * f
return complex(esr, w * esl - 1 / (w * c))
def srf(c, esl):
return 1 / (2 * math.pi * math.sqrt(esl * c))
C = 100e-9 # 100 nF
ESR = 0.02 # 20 milliohms, illustrative
PART_ESL = 0.5e-9
VIA_ESL = 1.0e-9
layouts = {
"part alone (ideal mounting)": PART_ESL,
"2 vias + 5 mm of trace": PART_ESL + 2 * VIA_ESL + 5e-9,
}
for name, esl in layouts.items():
print(f"{name}: total L = {esl * 1e9:.1f} nH, "
f"SRF = {srf(C, esl) / 1e6:.1f} MHz")
for f in (1e6, 10e6, 100e6):
z = abs(cap_impedance(f, C, ESR, esl))
print(f" |Z| at {f / 1e6:>5.0f} MHz = {z:.3f} ohm")
Running it prints a self-resonant frequency of 22.5 MHz for the ideally mounted part and 5.8 MHz once the vias and trace are added. At 100 MHz the impedance rises from about 0.30 ohm to about 4.7 ohm, roughly a sixteenfold increase, even though the capacitor itself is unchanged. At 1 MHz the two cases are almost identical, because capacitance dominates there. That is the whole argument for tight placement: bad layout does not hurt the slow end, it removes the high-frequency decoupling the capacitor was placed there to provide.
Common mistakes
- Sharing one capacitor between several supply pins because they look close together on the schematic.
- Routing a long, thin trace to the capacitor and then a via, so the ground return wanders before reaching the plane.
- Choosing an 0402 X5R or a Y5V part at a voltage near its rating and assuming the printed value still applies.
- Placing the capacitor after the pin in the supply path, so the supply current reaches the chip before passing the reservoir.
- Ignoring analog supply pins. The applied-ee guide recommends filtering VDDA with a ferrite bead followed by a 1 to 4.7 µF ceramic, separate from the digital rail.
A pre-layout checklist
- Every supply pin has its own 100 nF ceramic, X7R or X5R, rated with headroom above the rail voltage.
- A bulk capacitor in the 4.7 to 47 µF range sits near the chip or the regulator output, as the sources suggest.
- Fast or noisy designs add a smaller value, such as 1 nF or 10 nF, beside the 100 nF parts.
- Each capacitor is on the same side as the chip, with traces under a few millimetres and vias at the pads.
- DC bias curves have been checked for any MLCC above about 1 µF or in an 0402 package.
- The chip datasheet and its hardware design guide have been read, since vendor recommendations override generic rules.
When the rules bend
On multilayer boards with closely spaced power and ground planes, the planes themselves add capacitance; applied-ee cites around 50 to 200 pF per square centimetre for thin dielectrics, which helps at the highest frequencies. Very high-speed parts such as FPGAs often come with a vendor-specified decoupling scheme and benefit from via-in-pad mounting, which JLCPCB mentions. In those cases the generic 100 nF rule is a starting point, and the vendor's power distribution guidance is the real specification.
Enjoyed this?
Get the next deep dive in your inbox. No spam — just the stories worth reading.
Subscribe to the newsletter