Guide
Reading capacitor codes like 104 and 473, and calculating RC time constants
Ceramic and film capacitors are small enough that the manufacturer prints a short code instead of a value. The code is logical, but three digits and a letter are easy to misread, and the same style appears on both component bags and old equipment. This page decodes it, writes the code for any value, and also covers the other everyday job: working out how long a resistor and capacitor take to charge.
The three-digit code
The first two digits are the value and the third is the multiplier, the number of zeros to add, with the result in picofarads. Code 104 is 10 followed by four zeros: 100,000 pF, which is 100 nF or 0.1 µF. Code 473 is 47,000 pF, which is 47 nF. Code 220 is 22 pF. Small values use special multipliers: a third digit of 8 means ×0.01 and 9 means ×0.1, so 229 is 22 × 0.1 = 2.2 pF. Four-digit codes work the same way with three significant digits. The tool also reads written forms such as 4n7, 2u2 and p47, where the letter marks the decimal point.
Tolerance letters
A letter after the digits gives the tolerance. For small capacitors B is ±0.1 pF, C is ±0.25 pF and D is ±0.5 pF. For larger values F is ±1%, G ±2%, J ±5%, K ±10%, M ±20% and Z means +80% / −20%. Select the letter and the page gives the range, so 104K becomes 100 nF with a range of 90 to 110 nF. Voltage ratings are often printed too, such as 50V or a short code, but those differ between makers and are not decoded here.
Writing a code for a value
In the second mode you type a capacitance such as 100n, 4.7u or 22p and get the pF, nF and µF figures, the three-digit code and the letter form. A value with more than two significant digits, like 123,456 pF, has no three-digit code and the tool says so. For 4.7 µF the code is 475 and the letter form is 4u7.
RC time constant
In the third mode enter a resistance and capacitance. The time constant is τ = R × C, and a capacitor charging through R from a supply reaches a fraction 1 − e^(−t/τ) of the supply voltage. For 10 kΩ and 100 nF, τ = 1 ms. The table gives 39.35% at half a τ, 63.21% at one τ, 86.47% at two, 95.02% at three, 98.17% at four and 99.33% at five; with a 5 V supply the voltage after one τ is 3.161 V. The time to 90% is 2.303 τ and to 99% is 4.605 τ. The chart draws charging and discharging.
Cut-off frequency
The same R and C form a low-pass filter with a corner at f = 1 / (2πRC), which is 159.2 Hz for 10 kΩ and 100 nF. Below the corner signals pass; above it they are attenuated at 6 dB per octave, and at the corner the amplitude is down 3 dB. Swap the two parts around and the pair becomes a high-pass filter with the same corner frequency.
Limits
Real capacitors have tolerance, a dielectric whose value changes with voltage and temperature, and leakage, while resistors have a tolerance of their own, so measured timing differs from the ideal result. Ceramic types such as Y5V can lose most of their capacitance under bias voltage. For critical timing choose C0G or film capacitors and measure the result.
Related tools
- Resistor Color Code Calculator decodes the resistor that goes with the capacitor.
- 555 Timer Calculator uses the same R and C product to set a frequency.
- Ohm’s Law Calculator covers the current in the resistor.
- Frequency to Wavelength Converter converts the cut-off frequency to a wavelength.
Checked against the current version of the Capacitor Code Calculator on .

