1. Home
  2. Calculators
  3. Capacitor Code Calculator

Capacitor Code Calculator

For reading the tiny numbers on ceramic and film capacitors, and for checking an RC filter or timer.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Capacitor Code Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Three- and four-digit codes and forms like 4n7
  • Tolerance letters from B to Z
  • Value in pF, nF and µF with the tolerance range
  • Code for any value
  • RC time constant, cut-off and charge curve

Supported formats

Input

  • A capacitor code, value or R and C

You get

  • On-screen results
  • Copyable text
  • Drawing as SVG and PNG

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Capacitor Code Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Voltage-rating codes differ between makers and are not decoded.
  • The RC results are for an ideal resistor and capacitor.

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.

Checked against the current version of the Capacitor Code Calculator on .

Frequently asked questions

What do the letters p, n and u mean in a code like 4n7?

The letter takes the place of the decimal point and also names the unit: p is picofarads, n is nanofarads and u is microfarads. So 4n7 is 4.7 nF, which is 4,700 pF, and 2u2 is 2.2 µF. The same style is used for resistors, where 4k7 is 4.7 kΩ. It avoids a decimal point that could be lost in printing.

Why do textbooks say five time constants?

After one time constant a capacitor charging through a resistor has reached 63.2% of the supply, and each further τ closes most of the remaining gap. At five τ the charge is 99.33%, which is close enough to call full for most circuits. The table on this page lists the fraction at half a τ and at one to five τ, so you can read the timing you need directly.

What does 104 mean on a capacitor?

10 followed by 4 zeros in picofarads: 100,000 pF, which is 100 nF or 0.1 µF.

What if the last digit is 8 or 9?

The multipliers 8 and 9 mean × 0.01 and × 0.1, used for small values, so 229 is 22 × 0.1 = 2.2 pF.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.