Small capacitors and SMD resistors have no room to print "100nF" or "10kΩ", so they carry a code of 3 or 4 characters. The good news is that most of these codes follow the same idea.
The basic idea: two digits + number of zeros
In a 3-digit code:
- The first two digits are the value.
- The third digit is the number of zeros to add after them.
The only difference is the unit: capacitors are in picofarads (pF) and resistors in ohms (Ω).
Capacitor codes
| Code | Calculation | Value |
|---|---|---|
| 101 | 10 + one zero | 100 pF |
| 102 | 10 + two zeros | 1 nF |
| 103 | 10 + 3 zeros | 10 nF |
| 104 | 10 + 4 zeros | 100 nF = 0.1 µF |
| 105 | 10 + 5 zeros | 1 µF |
| 472 | 47 + two zeros | 4.7 nF |
| 220 | 22 + no zeros | 22 pF |
Remember the conversions: 1000 pF = 1 nF, and 1000 nF = 1 µF.
Special cases:
- Just one or two digits (like 22 or 47): that's the value in picofarads directly.
- The letter R: stands for the decimal point, so 4R7 means 4.7 pF.
- A third digit of 8 or 9: means × 0.01 and × 0.1 respectively (rare).
The letter after the code
If there's a letter after the digits (like 222J or 104K), that's the tolerance:
| Letter | Tolerance |
|---|---|
| F | ±1% |
| G | ±2% |
| J | ±5% |
| K | ±10% |
| M | ±20% |
| Z | −20% to +80% |
Sometimes the voltage is printed too, like 50V or 1KV, and that's separate from the code.
The voltage code
On film and polyester capacitors you'll find a digit-and-letter code before the value, which is the maximum voltage the capacitor can handle:
| Code | Voltage |
|---|---|
| 0J | 6.3 V |
| 1A | 10 V |
| 1C | 16 V |
| 1E | 25 V |
| 1V | 35 V |
| 1H | 50 V |
| 2A | 100 V |
| 2E | 250 V |
| 2G | 400 V |
| 2J | 630 V |
A full example: a capacitor marked 2A104J = 100 V rating, 100 nF value, 5% tolerance.
Electrolytic capacitors: the value is printed directly
Electrolytic capacitors are big enough for the value to be written out: 1000µF 25V 105°C, for example. Things to watch:
- Polarity: the stripe with a minus sign (−) on the body marks the negative leg, which is also the shorter leg on a new capacitor. Fitted backwards on a high voltage, it can bulge or burst.
- Voltage: choose a capacitor rated at least 25% above the highest voltage in the circuit. How to work that out for a filter capacitor is in the filter capacitor article.
- Temperature: a capacitor marked 105°C lives much longer than one marked 85°C, especially in power supplies. That's one of the causes of bulging capacitors.
Watch out for tantalum
SMD tantalum capacitors (the rectangular yellow or black ones) also have a stripe, but that stripe marks the positive, exactly the opposite of electrolytics. A tantalum fitted backwards can catch fire, so check twice before soldering.
Ceramic types: X7R, C0G and Y5V
SMD and slightly larger ceramic capacitors have another code in the datasheet or on the reel: the type of dielectric inside, and it makes a big difference:
- C0G (or NP0): the value is almost constant with temperature and voltage. Ideal for filters, timing and crystals, but large values are rare.
- X7R and X5R: the most common for decoupling. The value changes a little with temperature, and drops with voltage: a small 10 µF capacitor at 5 V can lose half its value or more.
- Y5V and Z5U: cheap, and the value changes dramatically with temperature and voltage. Avoid them for anything important.
So a small X5R 10 µF capacitor at 5 V may really be only 3 or 4 µF. If the value matters, check the "DC bias" curve in the datasheet, or use a bigger package or a higher voltage rating. Its main use is explained in the decoupling capacitors article.
SMD resistor codes
3 digits (usually 5% resistors)
Exactly the same idea as capacitors, but in ohms:
- 103 = 10 + 3 zeros = 10 kΩ
- 472 = 4.7 kΩ
- 100 = 10 Ω (not 100!)
4 digits (usually 1% resistors)
3 digits for the value and the fourth for the number of zeros:
- 4702 = 470 + two zeros = 47 kΩ
- 1001 = 1 kΩ
The letter R
As with capacitors, R marks the decimal point, used for small values:
- 4R7 = 4.7 Ω
- R100 = 0.1 Ω (common in current-sense resistors)
- 0 or 000 = 0 Ω, a "jumper" in place of a wire
The EIA-96 system: two digits and a letter
This is used on very small 1% resistors (such as the 0603 size). The two digits are not the value itself but the value's index in the E96 table, and the letter is the multiplier:
- 01C: index 01 in the table = 100, and C = ×100, so 10 kΩ.
- Common multipliers: A = ×1, B = ×10, C = ×100, D = ×1000, X = ×0.1, Y = ×0.01.
This system is hard to memorise because it needs the table, so it's easier to use the calculator.
How do you know which system it is?
- 3 digits → ordinary value (5%).
- 4 digits → 1% precision.
- Two digits and a letter → EIA-96.
- Contains R → decimal point.
If in doubt, a multimeter settles it, but measure the resistor off the board, or with at least one end lifted.
And parts with no marking at all?
SMD ceramic capacitors have nothing printed on them at all, and neither do 0402 and smaller resistors. So:
- Keep parts in their labelled reel or bag until the moment you solder them. An unlabelled SMD part that falls on the bench is a lost part.
- Measure the capacitor with a multimeter that has a capacitance mode (the capacitor symbol), an LCR meter, or one of the cheap component testers. Measuring it while soldered on the board isn't accurate because surrounding parts affect the reading.
- Check the board's BOM or the schematic if you're repairing. The difference between sizes like 0805 and 0603 is in the SMD vs THT article.
FAQ
Can I use a 100 nF capacitor where 104 is specified? They're exactly the same value: 104 = 100 nF = 0.1 µF. Just make sure the voltage and type suit the position.
A capacitor marked just 10: is that 10 pF or 10 µF? If it's a small ceramic, it's 10 pF. An electrolytic would have µF and the voltage next to it, because electrolytics are always marked in microfarads.
Why does an SMD resistor marked 100 measure 10 Ω? Because 100 = 10 followed by zero zeros. A 100 Ω resistor is marked 101.
Calculate it in a second
The capacitor code calculator converts a code to its value in every unit (pF, nF and µF) with the tolerance, and the SMD resistor code calculator understands all four systems and works in reverse too: type the value and it gives you the code. If your resistor has colour bands, see the resistor colour code article.