Capacitor: types, codes and how to use it
Published on Oct 29, 2026
A capacitor stores electric charge between two plates and gives it back to the circuit when needed: that is why it filters noise, steadies power supplies and sets the timing of circuits. Its capacity is measured in farads (F), almost always in microfarads (µF), nanofarads (nF) or picofarads (pF). To use it well, you need to know the value, the maximum voltage and, for electrolytics, the polarity.
What a capacitor is
A capacitor is made of two conductive plates separated by an insulator (the dielectric). When a voltage is applied, one plate builds up positive charges and the other, negative ones. The relation between the stored charge and the voltage is the capacitance:
Q = C × V
The stored energy is E = ½ × C × V². In direct current, once charged, the capacitor blocks current flow; in alternating current it lets current through, and the faster the variation, the easier the passage.
Units and conversions
| Unit | Symbol | Equals |
|---|---|---|
| Microfarad | µF | 0.000001 F |
| Nanofarad | nF | 0.001 µF |
| Picofarad | pF | 0.001 nF |
In practice: 1 µF = 1,000 nF = 1,000,000 pF. A 100 nF capacitor is the same as 0.1 µF.
Main types
- Electrolytic: aluminum, ranging from 1 µF to thousands of µF, and polarized. Used in power supply filters and audio coupling. The light stripe on the body marks the negative terminal, and the longer leg is the positive one.
- Ceramic: small, non-polarized, from pF to a few µF. It is the favorite for decoupling next to ICs and for high frequencies.
- Polyester and film: non-polarized, stable, from nF to a few µF. Used in filters, timing and audio.
- Tantalum: polarized, compact, with good stability; it is sensitive to voltage above its rating.
How to read the printed value
Small ceramic and polyester capacitors carry a three-digit code, in picofarads: the first two digits are the value and the third is the number of zeros.
| Code | Math | Value |
|---|---|---|
| 104 | 10 + 4 zeros = 100,000 pF | 100 nF (0.1 µF) |
| 103 | 10 + 3 zeros = 10,000 pF | 10 nF |
| 473 | 47 + 3 zeros = 47,000 pF | 47 nF |
| 221 | 22 + 1 zero = 220 pF | 220 pF |
| 220 | 22, no zeros | 22 pF |
A letter after the number indicates the tolerance: J = ±5%, K = ±10% and M = ±20%. So 104K is 100 nF with ±10%. Electrolytics print the value and the voltage in full, such as “470 µF 16 V”.
Voltage rating: the value you must not exceed
Every capacitor has a maximum working voltage. Above it, the dielectric can break down and the part fails, in electrolytics sometimes by bursting. Choose a voltage rating with a margin of at least 50% to 100% over the circuit voltage: on a 12 V supply, use 25 V; on 5 V, use 10 V or more.
Parallel and series connection
- Parallel: the capacitances add up. 10 µF + 22 µF = 32 µF.
- Series: the total is smaller than the smallest value: 1/C = 1/C1 + 1/C2. Two 10 µF capacitors in series give 5 µF, and the voltage they withstand increases.
It is the opposite of what happens with resistors.
RC time constant
You can compute it with the RC time constant calculator.
Connected to a resistor, the capacitor charges and discharges gradually. The characteristic time is the time constant:
τ = R × C
In one τ, the capacitor reaches about 63% of the final voltage; in 5 τ, about 99%. Example: 10 kΩ × 100 µF = 1 s, so the capacitor takes about 5 seconds to charge fully. This calculation sets the blink time of a 555, the delay of a button and the cutoff frequency of a filter.
Reactance: how it behaves in AC
In alternating current, the capacitor's opposition is the capacitive reactance:
Xc = 1 ÷ (2π × f × C)
Example: 100 nF at 1 kHz gives Xc ≈ 1.6 kΩ. At higher frequencies the reactance drops, which is why the capacitor lets fast signals through and blocks direct current. This property is what makes low-pass and high-pass filters possible.
What capacitors are used for
- Power supply filtering: the electrolytic right after the rectifier smooths the pulsating voltage.
- Decoupling: a 100 nF ceramic near the power pin of each IC absorbs spikes and noise.
- Coupling: passes the signal from one stage to the next and blocks the DC level.
- Timing: together with a resistor, sets times and frequencies (555, oscillators).
- Filters: low-pass, high-pass and band-pass.
Common mistakes
- Reversing the polarity of an electrolytic: it heats up, leaks or bursts.
- Using a voltage rating equal to or lower than the circuit voltage.
- Mixing up nF and µF (a factor of 1,000) when reading the printed code.
- Forgetting the decoupling capacitor next to the IC, which causes lockups and noise.
- Touching the terminals of a large capacitor without discharging it first: it can hold charge even with the device turned off.
- Measuring the capacitor while still connected in the circuit, with the result altered by other components.
How to do this on the platform
In the 4DVolt electronics design editor, you drag the capacitor onto the schematic, set the value and press play on the simulation. With a series resistor and the oscilloscope, you can see the charge and discharge curve and check the RC time constant from the example, changing the capacitor value and watching the change right away. For another circuit that uses memory and timing, see how to build a flip-flop circuit.
To recognize the capacitor in a schematic, see electronic component symbols.
This text is informational and simplified. Check the specifications and voltage limits in the component datasheet. Large capacitors can hold dangerous charge: discharge them before handling.
Frequently asked questions
What does the code 104 mean on a capacitor?
The first two digits are the value and the third is the multiplier, in picofarads: 10 × 10^4 pF = 100,000 pF, which is 100 nF (0.1 µF).
Can I use a capacitor with a higher voltage rating than the original?
Yes, as long as the capacitance is the same. The voltage rating can be higher, never lower than the circuit voltage.
Does an electrolytic capacitor have polarity?
Yes. Connecting it backwards can damage the part and even make it burst. The stripe on the body marks the negative terminal.
What is the 100 nF capacitor near an integrated circuit for?
It is the decoupling capacitor: it supplies fast current peaks to the IC and filters noise on the power rail.
Read also
Resistor Color Code: Chart, Values and How to Read It
Resistor color code chart for 4 and 5 bands, with E12/E24 standard values, tolerance and examples like 880 ohm, plus how to size a resistor for an LED.
How to read a resistor color code (with calculator)
Learn to read resistor values from the colors, with a chart, examples (red, black, brown...) and a free online resistor color code calculator.