What Does a Capacitor Do?

A capacitor is an electronic component that stores electrical energy temporarily, in an electric field, and releases it when needed. Unlike a battery, which stores energy chemically and releases it slowly over a long time, a capacitor stores and releases energy almost instantly. That makes capacitors useful for smoothing out power, filtering signals, and bridging brief gaps in power delivery.

How Capacitors Store Energy

Inside a capacitor are two conductive plates separated by an insulating material called a dielectric. When voltage is applied, charge builds up on the plates — positive on one side, negative on the other — creating an electric field between them. The capacitor holds that charge until it's connected to a circuit that lets it discharge, at which point the stored energy flows back out as current.

Capacitance and Farads

A capacitor's storage capacity is called capacitance, measured in farads (F). One farad is actually a huge amount of capacitance, so most real-world capacitors are rated in much smaller units:

Common Capacitor Types

Electrolytic capacitors offer high capacitance in a small package and are common for power smoothing, but they're polarized — they must be wired the correct direction or they can fail. Ceramic capacitors are smaller, non-polarized, and used widely for filtering and decoupling. Tantalum capacitors sit in between, offering stable performance in a compact size for more demanding applications.

Where You'll Find Capacitors in Circuits

Capacitors show up almost everywhere: smoothing out voltage ripple right after a power supply, decoupling noise near a microcontroller's power pins, helping with RC debouncing of a mechanical button (usually paired with a resistor and sometimes a logic threshold, rather than the capacitor doing the job alone), and setting timing in oscillator circuits. If you've ever opened up a piece of electronics and seen small cylindrical or disc-shaped components near the power input, those are almost certainly capacitors.

Got a capacitor with a cryptic 3-digit code printed on it? Use our free Capacitor Code Decoder to find out what it actually means.
Want to see capacitor-style power filtering in a real, open-source build? Explore our project build guides for step-by-step soldering and wiring instructions.

Frequently Asked Questions

What's the difference between a capacitor and a battery?

A battery stores energy chemically and discharges it slowly over minutes, hours, or years. A capacitor stores energy in an electric field and can charge or discharge almost instantly, but holds far less total energy than a battery of similar size.

Can capacitors be dangerous?

Small capacitors used in low-voltage hobby electronics are generally safe to handle. Larger capacitors, especially in power supplies or older CRT devices, can hold a dangerous charge even after being unplugged and should be treated with caution.

What does "decoupling" mean?

A decoupling capacitor is placed close to a component's power pins to absorb small voltage fluctuations, keeping the power supply stable and reducing electrical noise that could otherwise interfere with sensitive circuits.

That wraps up the basics — head back to all electronics tutorials to review Ohm's Law, resistors, and series vs parallel circuits.