Skip to content
Electronics

Capacitor Calculator

Calculate capacitive reactance (Xc) at a given frequency, the energy stored in a capacitor, and the charge/discharge time constants. Covers decoupling, filter, and energy storage applications.

Capacitor Math

Capacitors store electrical charge and energy. Calculate capacitance from charge and voltage, find capacitive reactance (AC opposition) at a given frequency, or determine the energy stored. Essential for filter design, timing circuits, and power factor correction.

+Q−QVC = Q / V

Select a calculation mode and enter values

1 mC = 0.001 C

Enter the required values to calculate.

What this calculator works out

  • Capacitive reactance: Xc = 1 ÷ (2π f C). It is the capacitor's "AC resistance": high at low frequencies, low at high frequencies. That is why a capacitor blocks DC but passes audio or switching noise.
  • Stored energy: E = ½ C V². A 1000 µF capacitor charged to 25 V holds 0.31 J, enough to give a noticeable spark when shorted.
  • Charge time: through a resistor, a capacitor reaches 63 % of the supply after one time constant τ = R × C and is considered fully charged after about 5τ.

Reading ceramic capacitor codes

Small capacitors print a three-digit code in picofarads: two digits followed by a number of zeros.

CodeValueCommon use
101100 pFRF and timing
1021 nFFiltering
10310 nFDebouncing, snubbers
104100 nF (0.1 µF)Decoupling next to every IC
1051 µFRegulator stability
10610 µFBulk decoupling (MLCC)

A letter after the code is the tolerance: J = ±5 %, K = ±10 %, M = ±20 %. Electrolytic capacitors print the value and voltage directly (for example 470 µF 16 V).

Unit conversions

1 F = 1 000 000 µF · 1 µF = 1000 nF · 1 nF = 1000 pF. So 0.1 µF = 100 nF = 100 000 pF.

Choosing a voltage rating

Pick a rating at least 1.5–2× the highest voltage the capacitor will see. Ceramic (X5R/X7R) capacitors also lose much of their capacitance as DC voltage rises: a 10 µF 6.3 V MLCC may only give 4 µF at 5 V. Electrolytics are polarised, so the stripe marks the negative lead, and reversing them can make them vent.

Decoupling in microcontroller projects

Place a 100 nF ceramic capacitor as close as possible to each IC's power pins, and add a 10–100 µF electrolytic or MLCC where power enters the board. An ESP32 drawing Wi-Fi current bursts of several hundred milliamps commonly needs 100–470 µF near its 3.3 V regulator to avoid brownout resets.

Formula, inputs and worked examples

Formula and method

Xc = 1/(2πfC); stored energy E = ½CV²; first-order RC time constant τ = RC.

Worked examples

Reactance of a decoupling capacitor

A 100 nF capacitor has Xc = 1 / (2π × 1,000,000 × 0.0000001) = 1.59 Ω at 1 MHz, which makes it a good short for fast noise. At 50 Hz the same capacitor is 31.8 kΩ, so it barely passes mains-frequency signals.

Energy in a 1000 µF capacitor at 5 V

E = ½ × C × V² = 0.5 × 0.001 × 25 = 12.5 mJ. That is enough to bridge a very short supply dip, not to run a load for seconds.

Charge time through a resistor

A 1 kΩ resistor with a 1000 µF capacitor gives τ = 1 s. The capacitor is about 63% charged after 1 second and nearly full after 5 seconds.

Inputs

  • Capacitance — Unit: F
  • Frequency — Unit: Hz
  • Voltage — Unit: V
  • Resistance — Unit: Ω

What the result means

  • Capacitive reactance — Unit: Ω
  • Stored energy — Unit: J
  • RC time constant — Unit: s

Practical tips and common mistakes

  • Place a 100 nF ceramic capacitor right at each IC's power pins, and add a larger 10–100 µF capacitor near the module for current surges such as ESP32 radio bursts.
  • Choose a voltage rating comfortably above the working voltage; at least 1.5 to 2 times is a common rule.
  • Electrolytic and tantalum capacitors are polarized. Connecting them backwards can make them fail violently.
  • Real capacitors lose capacitance under DC bias (ceramic X5R and X7R types), age, and have ESR that limits high-frequency performance. Treat the calculated value as ideal.

Assumptions and limitations

  • Use farads and hertz in the formulas.
  • Real capacitors have tolerance, ESR, leakage, and voltage ratings.
  • The RC time constant assumes a first-order circuit and a fixed resistance.

Frequently asked questions

What does 104 mean on a capacitor?

104 means 10 followed by four zeros picofarads: 100 000 pF, which is 100 nF or 0.1 µF. It is the standard decoupling capacitor value.

How long does a capacitor take to charge?

Through a resistor, it reaches 63 % of the supply voltage after one time constant (τ = R × C) and over 99 % after five. A 100 µF capacitor through 10 kΩ has τ = 1 s, so it is effectively charged after 5 s.

Can I use a capacitor with a higher voltage rating?

Yes. A higher voltage rating is always safe; it is only bigger and sometimes more expensive. Never use one rated below the circuit voltage.

What is capacitive reactance?

It is the opposition a capacitor offers to AC, measured in ohms: Xc = 1 ÷ (2π f C). A 100 nF capacitor is about 1.6 kΩ at 1 kHz but only 1.6 Ω at 1 MHz.

Learn more

More Electronics