If you have ever built a circuit with a microcontroller, op-amp, or logic IC and noticed unexpected resets, oscillation, or erratic behavior—especially when motors, relays, or other switching loads were running nearby—the cause was almost certainly noise on the power supply rail. The solution is decoupling capacitors: small capacitors placed physically close to each IC’s power pins, connected between VCC and GND. This is one of the most important practices in practical electronics, yet it receives little coverage in beginner tutorials. This post explains what decoupling capacitors do, which values to use, and why two different capacitor types together work better than either alone.
What Is Power Supply Noise and Why Does It Matter?
Real power supplies are not ideal voltage sources. They have internal impedance—a combination of resistance and inductance—in the wiring, PCB traces, and supply components themselves. When an IC’s internal logic switches states, it briefly draws a pulse of current. This current pulse, flowing through the supply impedance, creates a momentary voltage drop on the VCC rail—a glitch that can be tens or hundreds of millivolts in amplitude. If the VCC pin of a neighboring IC sees this glitch, it may interpret it as a spurious signal and malfunction.
The frequency content of this noise spans a wide range. Low-frequency noise comes from motor brushes, relay switching, and power supply ripple—typically below 1 kHz. High-frequency noise comes from digital logic switching, PWM signals, and fast rise-time transitions—from kilohertz up to hundreds of megahertz. A single capacitor type cannot handle both ends of this spectrum efficiently, which is why professional designs use two capacitors in parallel: a larger electrolytic for low-frequency noise and a small ceramic for high-frequency noise.
How Decoupling Capacitors Work
A decoupling capacitor (also called a bypass capacitor) acts as a local charge reservoir for the IC. When the IC’s internal logic switches and demands a burst of current, the decoupling capacitor immediately supplies that current from its stored charge—faster than the supply line can respond. The capacitor then recharges slowly from the main supply between switching events. Because the current for the switching transient comes from the local capacitor rather than traveling down the supply trace, the voltage spike never gets a chance to propagate to neighboring circuits.
The effectiveness of this local reservoir depends on how quickly the capacitor can deliver charge—which depends on its capacitance, its ESR (Equivalent Series Resistance), and its ESL (Equivalent Series Inductance). This is where the two-capacitor strategy becomes critical. The electrolytic has high capacitance (for sustained low-frequency energy storage) but also has relatively high ESL that limits its effectiveness above ~1 MHz. The ceramic has low capacitance but extremely low ESL, making it effective well into the hundreds of MHz range.
Circuit Diagram

The diagram shows both capacitors placed between the VCC and GND rails close to the IC. The noisy VCC signal on the left (shown in orange) becomes the clean VCC signal near the IC (shown in blue) after both capacitors do their work. The electrolytic handles the bulk energy storage and low-frequency filtering; the ceramic handles fast transients that the electrolytic’s inductance cannot.
Which Values to Use
The standard recommendation that appears in nearly every IC datasheet is:
- 100 nF (0.1µF) ceramic capacitor per IC power pin, placed as physically close as possible to the VCC and GND pins.
- 1µF–10µF electrolytic capacitor shared among a group of ICs (or one per IC for critical devices), placed near the IC cluster.
The 100 nF ceramic value is essentially universal—it appears in the application notes of microcontrollers, op-amps, LED driver ICs, logic gates, and power management ICs from every major manufacturer. The physical proximity rule is equally important: a capacitor six inches from the IC is nearly useless for high-frequency decoupling because the connecting wire adds inductance that limits the speed at which the capacitor can respond. On a PCB, decoupling capacitors should be within a few millimeters of the power pin.
Choosing the Right Capacitor Type
For the 100 nF ceramic: Use a Class II ceramic (X5R or X7R dielectric). Avoid Y5V and Z5U—their capacitance drops dramatically with applied voltage (derating), which means a Y5V 100 nF capacitor at its rated voltage can have effective capacitance of 20 nF or less. X5R and X7R maintain capacitance within ±15% across temperature and voltage. MLCC (multi-layer ceramic chip) capacitors in 0402, 0603, or 0805 package sizes are the standard choice for PCB designs.
For the larger electrolytic: An aluminum electrolytic capacitor in the 1µF–10µF range works well for breadboard and through-hole designs. Choose a voltage rating well above your supply voltage: a 50V-rated capacitor on a 5V circuit is perfectly appropriate and gives you decades of margin. Tantalum capacitors are an alternative—they have lower ESR and better temperature performance than aluminum electrolytics—but they are more expensive and must never be installed with reverse polarity (tantalum capacitors can fail catastrophically under reverse voltage).
Frequency Response: Why You Need Both
An electrolytic capacitor looks like an ideal capacitor at low frequencies, but at higher frequencies its internal inductance (ESL) begins to dominate. Above the self-resonant frequency—typically 1 MHz to 10 MHz for a through-hole electrolytic—the component actually looks more like an inductor than a capacitor. Its impedance increases with frequency. This means it provides zero decoupling benefit for the high-frequency transients from digital logic.
A 100 nF MLCC ceramic capacitor has an ESL of 1 nH or less, giving a self-resonant frequency in the hundreds of MHz range. It remains an effective capacitor—and therefore an effective decoupler—well into the frequency range where logic transitions create noise. The two capacitors together cover the full noise spectrum:
| Capacitor | Value | Effective Frequency Range | What It Handles |
|---|---|---|---|
| Electrolytic | 1µF–10µF | 0.1 Hz – ~100 kHz | Power supply ripple, motor/relay switching, bulk charge storage |
| Ceramic (MLCC) | 100 nF | 1 kHz – ~200 MHz | Logic switching transients, PWM noise, RF interference |
The overlap region between 1 kHz and 100 kHz means both capacitors contribute in the mid-frequency range. This redundancy is intentional—it ensures no “gap” in the noise rejection spectrum where a noise frequency could slip through unfiltered.
Placement Rules
The three physical rules for effective decoupling are:
- Place the ceramic capacitor as close as possible to the IC power pin. On a PCB, this means directly adjacent to the VCC and GND pins, with the capacitor in the path of current flow so the loop inductance of the trace from capacitor to IC is minimized. On a breadboard, put the capacitor in the same row as the IC power pin.
- Connect directly from VCC pin to GND pin. Do not route the decoupling capacitor wires across the board to a distant GND bus. The wire inductance defeats the purpose. Every extra inch of wire adds ~25 nH of inductance that limits the capacitor’s high-frequency effectiveness.
- Use a decoupling capacitor on every VCC pin. Many ICs have multiple VCC and GND pins (especially microcontrollers and FPGAs). Each power pin pair needs its own 100 nF ceramic capacitor. Sharing one capacitor among several power pins introduces inductance in the path to some pins and degrades performance.
Real-World Example: LED Driver IC
Consider a constant-current LED driver IC—a common component in LED lighting applications. The driver switches at frequencies from tens of kHz (for PWM dimming) to several MHz (for the internal DC-DC converter). Without decoupling capacitors, the switching transients couple back onto the VCC rail and can cause instability in the driver’s feedback loop, producing visible LED flicker or audible noise from magnetic components. The fix is straightforward: place a 100 nF ceramic directly on the driver’s VCC pin and a 10µF aluminum electrolytic capacitor nearby. This is the circuit recommended in virtually every LED driver IC application note. The ceramic handles the fast switching noise; the electrolytic provides the bulk energy during PWM on-cycles when the driver draws peak current.
Common Mistakes
- Omitting the electrolytic and using only ceramic: A 100 nF ceramic stores only 0.025µJ at 5V, which is insufficient for the energy demands of large microcontrollers or modules with high transient currents. The electrolytic provides 2–3 orders of magnitude more energy storage.
- Using the wrong ceramic dielectric (Y5V, Z5U): These cheap ceramics can lose up to 80% of their rated capacitance in circuit. Always specify X5R or X7R.
- Placing the capacitor too far from the IC: Even 5 cm of trace adds enough inductance to significantly degrade high-frequency performance. In prototype circuits, use the shortest practical wire connections.
- Using polarized capacitors backwards: An electrolytic installed backwards will appear to work briefly, then fail (sometimes destructively). Always double-check polarity: the positive terminal (longer lead, marked +) connects to the higher voltage (VCC).
- Omitting decoupling entirely: In slow, simple circuits (pure resistor-LED, 555 timer), you can sometimes get away without decoupling. But as soon as a microcontroller, switching regulator, motor driver, or RF module enters the design, proper decoupling is non-negotiable.
Related Guides
- Power Supply Filter Capacitor: Smoothing Ripple from a Bridge Rectifier — the bulk filter capacitor that works alongside your decoupling caps at the supply output
- Bridge Rectifier + LED: AC and DCC Wiring Guide — AC-to-DC conversion for LED lighting, where decoupling protects the LED driver IC
- 555 Timer LED Blinker: RC Timing Network and Blink Rate — a circuit where proper power supply decoupling prevents timing jitter and false triggering