The charging capacitor equation defines the exact voltage across a capacitor at any given moment when connected to a DC voltage source through a resistor. The core formula is Vc(t) = Vs(1 - e-t/RC). This exponential relationship dictates everything from 555 timer delays to MOSFET soft-start circuits and power supply inrush limiting. If you are designing a timing circuit or trying to prevent a breaker from tripping on startup, this is the math that bridges the gap between a schematic and a working board.

The Core Charging Capacitor Equation and Symbol Definitions

When a DC step voltage is applied to a series Resistor-Capacitor (RC) network, the capacitor does not charge instantly. The resistor limits the initial current, forcing the voltage across the capacitor to rise exponentially. The primary voltage equation and its companion current equation are defined below.

Voltage Equation: Vc(t) = Vs(1 - e-t/RC)
Current Equation: Ic(t) = (Vs / R) × e-t/RC

Symbol Parameter Standard SI Unit Practical Bench Unit
Vc(t) Voltage across the capacitor at time t Volts (V) Volts (V)
Vs Source (supply) voltage Volts (V) Volts (V)
t Time elapsed since the circuit was energized Seconds (s) Milliseconds (ms)
R Series resistance Ohms (Ω) Kilo-ohms (kΩ)
C Capacitance Farads (F) Microfarads (μF)
e Euler's number (mathematical constant) ≈ 2.71828 ≈ 2.71828
τ (tau) RC Time Constant (where τ = R × C) Seconds (s) Milliseconds (ms)

Rearranged Forms: Solving for Time, Resistance, and Capacitance

On the bench, you rarely need to find Vc. Usually, you know your target voltage (like a microcontroller reset threshold or a MOSFET gate threshold) and need to size the resistor, capacitor, or calculate the exact delay time. Here are the algebraically rearranged forms solving for each variable:

  • Solve for Time (t): t = -RC × ln(1 - (Vc / Vs))
  • Solve for Resistance (R): R = -t / [C × ln(1 - (Vc / Vs))]
  • Solve for Capacitance (C): C = -t / [R × ln(1 - (Vc / Vs))]
  • Solve for Source Voltage (Vs): Vs = Vc / (1 - e-t/RC)

Note: 'ln' represents the natural logarithm (base e). Ensure your calculator is set to natural log, not log base 10.

Assumptions, Unit Traps, and Realistic Magnitudes

When the Formula Applies (and Its Assumptions)

This equation assumes a DC step input (the voltage snaps from 0V to Vs instantly) and an ideal series RC circuit. It assumes the capacitor is fully discharged at t=0. It also ignores Equivalent Series Resistance (ESR) and the internal resistance of the voltage source. For hobbyist and standard industrial control circuits, these assumptions hold up perfectly. For high-frequency switching or massive supercapacitor banks, ESR and parasitic inductance will skew the real-world curve.

The Water Tank Analogy

Think of the capacitor as a pressurized water tank and the resistor as a narrow pipe feeding it. When the tank is empty, water rushes in at maximum flow (high initial current, I = Vs/R). As the tank fills, back-pressure builds, choking off the flow rate exponentially until the tank pressure equals the supply pressure and flow stops entirely.

⚠ Callout: The Unit Trap

The most common mistake that bricks a timing calculation is failing to convert practical bench units into base SI units before plugging them into the exponent. The term -t/RC must be dimensionless. If you plug in 100 for μF and 4.7 for kΩ, your math will be off by a factor of 1,000. Always convert μF to Farads (multiply by 10-6) and kΩ to Ohms (multiply by 103) before calculating.

Realistic Answer Magnitudes

How do you know if your calculator output makes sense? The RC time constant (τ) is your anchor. A capacitor reaches ~63.2% of Vs at 1τ, ~86.5% at 2τ, and is considered "fully charged" (~99.3%) at 5τ. If your calculated time to reach 90% of Vs is smaller than 1τ, you made a math error. For microcontroller delays, expect τ in the 10ms to 500ms range. For motor soft-starts, expect τ in the 0.5s to 5s range.

Worked Examples with Strict Unit Tracking

Problem 1: Finding the Delay Time for a Sensor Trigger

Scenario: You have a 12V DC supply, a 4.7 kΩ resistor, and a 220 μF capacitor. A comparator triggers when the capacitor reaches 8V. How long after power-on does the trigger fire?

  1. Identify and Convert Units:
    Vs = 12 V
    Vc = 8 V
    R = 4.7 kΩ = 4,700 Ω
    C = 220 μF = 0.00022 F
  2. Calculate the Time Constant (τ):
    τ = R × C = 4,700 × 0.00022 = 1.034 seconds.
  3. Apply the Rearranged Time Formula:
    t = -RC × ln(1 - (Vc / Vs))
    t = -1.034 × ln(1 - (8 / 12))
    t = -1.034 × ln(1 - 0.6667)
    t = -1.034 × ln(0.3333)
  4. Compute Final Value:
    t = -1.034 × (-1.0986) = 1.136 seconds.

Sanity Check: 8V is 66.7% of 12V. We know 63.2% happens at 1τ (1.034s). Therefore, the time must be slightly greater than 1.034s. 1.136s is perfectly logical.

Problem 2: Sizing a Capacitor for an ESP32 Enable Pin Delay

Scenario: You need the ESP32 EN (Enable) pin to stay low for exactly 2.5 seconds after a 5V rail comes up to allow peripheral sensors to stabilize. The EN pin triggers high at 3.3V. You have chosen a 100 kΩ pull-up resistor. What capacitor value do you need?

  1. Identify and Convert Units:
    Vs = 5 V
    Vc = 3.3 V
    t = 2.5 s
    R = 100 kΩ = 100,000 Ω
  2. Apply the Rearranged Capacitance Formula:
    C = -t / [R × ln(1 - (Vc / Vs))]
    C = -2.5 / [100,000 × ln(1 - (3.3 / 5))]
    C = -2.5 / [100,000 × ln(1 - 0.66)]
    C = -2.5 / [100,000 × ln(0.34)]
  3. Compute Final Value:
    C = -2.5 / [100,000 × (-1.0788)]
    C = -2.5 / -107,880 = 0.00002317 F
  4. Convert to Practical Units:
    0.00002317 F × 1,000,000 = 23.17 μF.

Next Step: Select the next standard E12 capacitor value up, which is 27 μF, to guarantee the delay exceeds 2.5 seconds, or parallel a 22 μF and a 2.2 μF for 24.2 μF.

Decision Path: Sizing an RC Gate Delay for a MOSFET Soft-Start

When switching heavy loads (like a 12V LED strip array or a DC motor), slamming the gate voltage to maximum instantly causes a massive inrush current that can trip breakers or cause voltage sags on the microcontroller rail. We use the charging capacitor equation to create a soft-start ramp on the MOSFET gate. Use this decision tree to size your RC network.

Decision Point Condition / Action Resulting Value
1. Identify System Voltage Measure your main DC bus. Vs = 12V
2. Identify MOSFET Threshold Check datasheet for Vgs(th) (Gate-Source Threshold Voltage) where the MOSFET begins to conduct. Vc = 3.0V (Target trigger point)
3. Set Target Delay Time Determine how long the load should take to begin ramping up to prevent inrush trips. t = 0.5 seconds
4. Select Resistor (R) Pick an R value high enough to limit gate charging current to <1mA, but low enough to avoid noise susceptibility. 47 kΩ is the bench standard for 12V logic. R = 47,000 Ω
5. Calculate Capacitance (C) C = -0.5 / [47,000 × ln(1 - (3.0 / 12))]
C = -0.5 / [47,000 × ln(0.75)]
C = -0.5 / [47,000 × -0.28768]
C = 36.9 μF
6. Select Standard Part Round up to the nearest standard E6/E12 value to ensure the delay is at least 0.5s. Select a low-ESR part rated for at least 2x the system voltage. 47 μF, 50V
✅ Final Concrete Pick (BOM Ready)

For the 12V MOSFET soft-start circuit calculated above, purchase the Panasonic EEU-FC1H470. It is a 47μF, 50V radial electrolytic capacitor from the FC series (low ESR, high ripple current). Pair it with a standard 47 kΩ 1/4W metal film resistor (e.g., Yageo MFR-25FBF52-47K) and a 10 kΩ pull-down resistor on the gate to ensure the MOSFET turns off reliably when power is removed. This exact combination guarantees a 0.63-second delay to the 3V threshold, safely eliminating inrush trips on standard 12V/10A power supplies.

For further reading on RC network behaviors and capacitor dielectric characteristics, refer to the Electronics Tutorials RC Charging Circuit guide and the SparkFun Capacitor Guide for practical component selection advice.