Electronics Basics

How Capacitors Smooth and Store Energy

What capacitors do in a circuit, why decoupling capacitors sit right beside chips, and a concept-level tour of the common types makers will meet.

On this page
  1. A small reservoir for charge
  2. The two behaviours to remember
  3. Why capacitors sit next to chips
  4. Smoothing a supply
  5. Other everyday jobs
  6. Common types, at concept level
  7. Polarity and voltage ratings
  8. Charged capacitors can bite
  9. Quick checks when something misbehaves

A small reservoir for charge

A capacitor stores energy in an electric field between two conductive plates separated by an insulator. In circuit terms, it behaves like a very small, very fast rechargeable tank. It fills when the voltage across it rises, and it gives back charge when the voltage falls.

Compare it to a water tank on a pipe. If the supply surges, the tank absorbs some of the extra. If the supply dips for a moment, the tank tops it up. The tank cannot make water from nothing, and it holds only a limited amount, but it evens out short-lived bumps.

A battery is also a store of energy, but a capacitor holds far less and releases it far faster. That is why capacitors deal with brief, rapid events and batteries deal with long-lasting supply.

The two behaviours to remember

Most uses come down to two behaviours.

  1. A capacitor resists sudden changes in voltage across it. It needs charge to move in or out for the voltage to change, so the voltage on a capacitor cannot jump instantly.
  2. A capacitor passes changing signals more readily than steady ones. With steady direct current, once it is charged, almost no current flows through it. With a rapidly changing signal, charge keeps moving in and out, so it passes more easily.

From these two comes nearly everything: smoothing, filtering, timing, and blocking steady voltage while letting changes through.

Why capacitors sit next to chips

Look at almost any microcontroller board and you will see small capacitors placed right beside the chips’ power pins. These are decoupling or bypass capacitors.

Digital chips draw current in bursts. Each time many internal switches change state, the chip demands a brief jolt of current. The wiring from the supply has some inductance and resistance, so it cannot respond instantly, and the supply voltage at the chip dips and ripples. Left alone, this can cause glitches, resets or noisy readings, particularly on analog inputs.

A capacitor placed very close to the pins acts as a local reservoir. It supplies the sudden demand from nearby, then recharges from the supply in between. The closer the capacitor, the shorter the path and the better it works, which is why layout guides and datasheets stress short connections. The exact values and placement are usually recommended by the chip’s manufacturer, so reading datasheets is the safest way to pick them. A small ceramic capacitor in the region of 100 nF is a very common choice, but follow the part’s own guidance.

Larger capacitors are often added near where power enters a board to handle slower fluctuations. People sometimes call these bulk capacitors, in contrast with the small local ones.

Smoothing a supply

Capacitors also reduce ripple. In a circuit that converts alternating current to direct current, the output rises and falls in pulses. A capacitor charges at the peaks and discharges into the load in the gaps, so the output becomes steadier. How much steadier depends on the capacitor size and the current drawn.

Switching converters and the voltage regulators that follow them also rely on capacitors for stable output, and the datasheet will say which type and value they need. Using something different can cause instability, so it is worth following those notes.

Other everyday jobs

  • Timing. A capacitor charging through a resistor takes a predictable time to reach a given voltage. Simple timers and delay circuits use this behaviour.
  • Filtering. Combined with a resistor, a capacitor can pass slow signals and weaken fast ones, or the reverse. This helps tame noisy sensor readings.
  • Coupling. A capacitor can pass a changing signal from one stage to the next while blocking the steady voltage level of the first stage.
  • Button debouncing. A small capacitor across a switch can soften rapid contact bounce, though software methods are also common.

Common types, at concept level

You do not need to memorise part numbers. It helps to know the broad families and what they are generally used for.

Type General character Typical use
Ceramic Small, non-polarised, good at high frequencies Decoupling next to chips, general filtering
Electrolytic Larger stored amounts in a small size, polarised Bulk storage, power supply smoothing
Tantalum and similar Compact, polarised, can fail badly if misused Compact power filtering, where specified
Film Stable, non-polarised, often larger Audio, timing, where accuracy matters
Supercapacitor Very large capacity, low voltage rating Short backup, bursts of power

Each family has quirks. For example, some ceramic types lose a noticeable part of their capacitance when a voltage is applied, and their values can drift with temperature. Always check the datasheet for the specific part.

Polarity and voltage ratings

Two ratings deserve respect.

Polarity. Electrolytic and tantalum capacitors have a positive and a negative lead. Fitting one backwards, or applying reverse voltage, can cause it to heat, vent or fail dramatically. The negative side is usually marked on the body. Ceramic and film types do not care.

Voltage rating. Every capacitor has a maximum voltage it is designed to withstand. Staying well below it gives a safety margin, and exceeding it can lead to failure. A common habit is to pick a rating comfortably above the highest voltage the circuit will see.

Charged capacitors can bite

A capacitor can hold charge after power is removed. In low-voltage hobby circuits this is usually harmless, but large or higher-voltage capacitors can deliver a painful or dangerous shock or a sudden burst of current if shorted. Equipment fed from the mains, such as power supplies and old electronics, may keep a dangerous charge, and those are jobs for qualified people. Follow manufacturer guidance, and never open mains equipment to experiment.

Quick checks when something misbehaves

  • Random resets or noisy readings can mean decoupling is missing or too far from the chip.
  • A hot capacitor suggests wrong polarity, too little voltage margin or a short.
  • Very slow response in timing circuits can reflect larger-than-expected values or tolerance.

Capacitors are cheap, but placing them well is part of building circuits that behave reliably rather than only appearing to work on the bench.

The complete guide to electronics basics

How Electronic Circuits Work A Maker Primer
Read the guide

Keep exploring

Guides from other topics

All topics →