Capacitors and RC Circuits
How capacitors store and release charge: capacitance and units, series and parallel capacitors, the RC time constant, charging and discharging curves, decoupling and smoothing, RC filters and cutoff frequency, polarity, voltage ratings and the common capacitor types.
1. What a capacitor does
A capacitor is two conductive plates separated by an insulator. It stores energy in an electric field and can release it quickly. Its capacitance C is measured in farads (F), but real parts are tiny fractions of a farad:
| Unit | Symbol | In farads | Typical use |
|---|---|---|---|
| picofarad | pF | 10⁻¹² | Crystals, RF, small tuning |
| nanofarad | nF | 10⁻⁹ | Filters, coupling, decoupling (100 nF) |
| microfarad | µF | 10⁻⁶ | Smoothing, timing, audio |
| millifarad | mF | 10⁻³ | Large supply reservoirs (rarely a part value) |
Key behaviours:
- A capacitor blocks steady DC once charged, but passes changing signals. That is why they couple AC and filter noise.
- The voltage across a capacitor cannot change instantly; it takes time to charge or discharge through a resistance.
- Stored energy is E = ½ × C × V²: 100 µF at 5 V stores 0.5 × 100×10⁻⁶ × 25 = 1.25 mJ.
2. Series and parallel capacitors
The rules are the opposite of resistors:
- Parallel: capacitances add: C_total = C1 + C2 + C3. 10 µF + 22 µF = 32 µF. Use this to build larger values.
- Series: 1 / C_total = 1 / C1 + 1 / C2. Two equal capacitors give half: 10 µF in series with 10 µF is 5 µF. Series also raises the voltage rating (with balancing resistors for electrolytics).
3. The RC time constant
When a capacitor charges or discharges through a resistor, the speed depends on the time constant:
tau = R × C (seconds, with R in ohms and C in farads)
Charging from 0 V toward the supply V: v(t) = V × (1 − e^(−t/tau)).
| After | Charged to |
|---|---|
| 1 tau | 63.2 % |
| 2 tau | 86.5 % |
| 3 tau | 95.0 % |
| 5 tau | 99.3 % (treated as full) |
Discharging falls the opposite way: 36.8 percent left after one tau and under 1 percent after five.
Example. R = 10 kΩ, C = 100 µF: tau = 10,000 × 0.0001 = 1 s. The capacitor reaches 63 percent in 1 second and is practically full in 5 seconds. To find the time to reach a given percentage: t = −tau × ln(1 − fraction). To reach 90 percent takes tau × ln(10) = 2.3 tau.
Uses: delays (a power-on reset that holds a chip in reset briefly), debouncing a button, timing with a 555, and LED fade effects.
4. Capacitors on the power supply: smoothing and decoupling
- Smoothing (reservoir) capacitors, usually electrolytic, store energy between the peaks of a rectified AC signal and fill the gaps, so the DC has less ripple.
- Decoupling (bypass) capacitors, usually 100 nF ceramic placed right next to each chip’s power pin, supply the sudden fast current a digital chip needs. Without them the supply voltage dips at each clock edge and noise spreads through the board. A bulk 10 µF or more per board section covers slower demands.
- Keep the connection to the capacitor short and direct; long leads add inductance and defeat the purpose.
5. RC filters
A resistor and a capacitor make a simple filter. In a low-pass filter (series R, capacitor to ground, output across C) low frequencies pass and high frequencies are attenuated. The cutoff frequency is where the output has fallen to 70.7 percent (−3 dB):
f_c = 1 / (2 × π × R × C)
Example. R = 1 kΩ, C = 100 nF (0.1 µF): f_c = 1 / (2π × 1000 × 1×10⁻⁷) ≈ 1,592 Hz. A noisy 50 kHz signal is heavily reduced while a 100 Hz signal passes almost untouched. Swap the positions (capacitor in series, resistor to ground) and you get a high-pass filter that blocks DC and slow drift.
6. Types, ratings and polarity
| Type | Strengths | Watch out for |
|---|---|---|
| Ceramic (MLCC) | Small, cheap, low loss, no polarity; 100 nF decoupling | Capacitance falls with DC bias on high-value, small-package types |
| Film | Stable, precise, high voltage | Larger |
| Aluminium electrolytic | Big values (µF to mF) cheaply | Polarised; reversed or over-voltage can overheat and burst; ageing; ESR |
| Tantalum | Compact, stable | Polarised, fail short and can ignite if over-stressed, so derate voltage |
Rules:
- Choose a voltage rating at least 1.5 to 2 times the working voltage.
- Polarity: the stripe on an electrolytic marks the negative lead; the longer leg is positive. Connect it the right way round.
- Discharge large capacitors before touching a circuit, especially in power supplies, because they can hold charge for a long time.
7. On your bench
- Charge a 100 µF capacitor through a 10 kΩ resistor from 5 V and watch the voltage on a multimeter: after 1 second it should be near 3.2 V, after 5 seconds near 5 V. (Short the capacitor with a resistor first to discharge it.) Watch the polarity.
- Measure the real capacitance with a meter that has a capacitance mode and compare it with the label and tolerance (often ±20 percent for electrolytics).
- With an oscilloscope, put a 1 kHz square wave through 1 kΩ and 100 nF (cutoff about 1.6 kHz) and see the rounded edges. Repeat at 10 kHz and see the signal shrink.
- Add and remove a 100 nF decoupling capacitor on a digital circuit’s supply and look at the ripple on the scope.
8. Hands-on lab: RC calculations
9. Common mistakes
| Mistake | Better |
|---|---|
| Reversing an electrolytic | Check the stripe and polarity |
| Using a capacitor near its voltage rating | Derate: 1.5 to 2 times the working voltage |
| Long leads on a decoupling capacitor | Place it right at the chip’s power pins |
| Adding capacitor values as if in series | Parallel adds; series is smaller |
| Forgetting that capacitors hold charge | Discharge through a resistor before handling |
| Trusting an electrolytic’s tolerance | Often ±20 percent; do not use for precise timing |
10. Key takeaways
- A capacitor stores charge: C in farads, usually nF to µF; it blocks DC and passes changes.
- Parallel adds; series is smaller, the opposite of resistors.
- tau = R × C; 63 percent after 1 tau, 99 percent after 5.
- Decoupling (100 nF ceramic at each chip) and smoothing keep supplies clean.
- RC filter cutoff: f_c = 1 / (2πRC). Respect polarity and voltage rating.
You want a button-debounce delay of about 20 ms using a 10 kΩ resistor. What capacitor, roughly?
Aim for a time constant of a few milliseconds so contact bounce settles: C = tau / R. For tau = 5 ms, C = 0.005 / 10,000 = 0.5 µF, so 470 nF or 1 µF works. Check on a scope or with a test program, because it also depends on the input threshold of the chip.
Can You Explain It?
Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.
- Explain what the RC time constant is and how long a capacitor takes to charge.
- Describe the roles of smoothing and decoupling capacitors on a power supply.
- Explain how an RC low-pass filter works and how to find its cutoff frequency.
🧪 Want to practise this on your own computer? See how to set up your lab →