Lesson 3 of 3 in Step 3 · LEDs, diodes and capacitors

How a capacitor charges

By Mihai Dumitru · · · 6 min read

On this page

A capacitor stores electric charge. When it is connected to a battery through a resistor, it doesn't fill up instantly. It charges quickly at first and more and more slowly as it fills. That simple behaviour is behind delays, timers and blinking lights, including the 555 timer later in the course. You only need Ohm's law to follow this page.

What a capacitor is

A capacitor is made of two conducting plates separated by a thin insulating layer. Current can't flow through the insulator, but when a voltage is applied, charge collects on the plates, positive on one side and negative on the other. The amount of charge it can hold for each volt is its capacitance, measured in farads (F).

One farad is a very large amount, so real capacitors are given in microfarads (µF, millionths of a farad), nanofarads (nF, thousandths of a microfarad) and picofarads (pF). A 100 µF capacitor is 0.0001 F.

There are two common kinds. Electrolytic capacitors hold large values, from about 1 µF upwards, and have a plus and a minus leg. The minus side is marked with a stripe on the body. Ceramic capacitors are small, hold smaller values, and can be connected either way round.

Capacitor charging

Choose a resistor and a capacitor, then move the time slider to see how far the capacitor has charged.

Capacitor voltage now
5.69 V
Charged
63%
Time constant (R × C)
1 s
Practically full (5 × R × C)
5 s
1τ2τ3τ4τ5τ

Why it slows down

At the moment you connect the battery, the capacitor is empty and has no voltage across it, so the full battery voltage sits across the resistor and a large current flows. As charge builds up, the capacitor's voltage rises. That leaves less voltage across the resistor, so the current gets smaller and the charging slows down. The capacitor's voltage keeps getting closer to the battery voltage without ever quite reaching it.

The time constant

How fast this happens depends on the resistance multiplied by the capacitance. That product is called the time constant, written with the Greek letter τ (tau), and it comes out directly in seconds when you use ohms and farads. With 10 kΩ and 100 µF: 10,000 × 0.0001 = 1 second.

  • After 1 τ the capacitor is at about 63% of the supply voltage.
  • After 2 τ, about 86%.
  • After 3 τ, about 95%.
  • After 5 τ, about 99%, which in practice counts as full.

So with 10 kΩ, 100 µF and 9 V, the capacitor reaches about 5.7 V after one second and is practically full after five. Doubling either the resistor or the capacitor makes everything take twice as long.

Discharging follows the same curve in reverse. If the charged capacitor is connected to a resistor on its own, its voltage falls quickly at first and then more slowly. After one time constant about 37% is left.

The current behaves the same way. It is largest at the start and then fades, which is why a lamp in series with a capacitor lights up brightly for a moment and then goes dark.

Where this is used

  • Delays, such as a light that stays on for a few seconds after a button is released.
  • Timers and oscillators, which charge and discharge a capacitor over and over. The 555 timer works this way.
  • Smoothing, where a capacitor across a power supply fills in short dips in the voltage.
  • Debouncing, where a small resistor and capacitor hide the rapid on-off flickering a mechanical button produces when pressed.

Practical points

  • Connect electrolytic capacitors the right way round. Reversed, they can bulge, leak or burst.
  • Choose a capacitor whose voltage rating is above your supply. For a 9 V circuit, a 16 V rating is a good choice.
  • Electrolytic capacitors often have a tolerance of ±20%, so timings based on them are approximate.
  • Large capacitors can stay charged after the power is removed. Discharge them through a resistor before touching their legs.

Check yourself

  1. What is the time constant of 10 kΩ and 100 µF?

    Show the answer

    τ = R × C = 10,000 × 0.0001 = 1 second.

  2. With the values above and a 9 V supply, what is the capacitor voltage after one second, and when is it practically full?

    Show the answer

    After one time constant it is at about 63%, so about 5.7 V. After five time constants, here five seconds, it is at about 99% and counts as full.

  3. Why does a capacitor charge more and more slowly?

    Show the answer

    As the capacitor voltage rises, less voltage is left across the resistor, so less current flows into the capacitor and its voltage rises more slowly.

  4. What happens if you swap the resistor for one twice as large?

    Show the answer

    The time constant doubles, so charging takes twice as long. Doubling the capacitor has the same effect.

Read next