The capacitor charging equation is Vc(t) = Vs(1 - e-t/RC). It calculates the exact voltage across a capacitor at any time t when charging through a resistor from a constant DC source. On the bench, this formula is the backbone of RC timing circuits, debounce networks, and power-on reset delays. If you need a 5V logic pin to cross a 3.3V threshold after exactly 1.2 seconds, this equation tells you which resistor and capacitor to grab from your bins. Below, we break down the math, unit trapdoors, and a concrete decision path for sizing your components.

The Core Formula and Symbol Definitions

The standard capacitor charging equation models the exponential voltage curve as current flows into the dielectric. Here is the formula and the strict definition of every variable:

Vc(t) = Vs(1 - e-t / RC)

SymbolDefinitionStandard SI Unit
Vc(t)Voltage across the capacitor at time tVolts (V)
VsSource (supply) DC voltageVolts (V)
eEuler's number (mathematical constant ≈ 2.71828)Dimensionless
tElapsed time since charging beganSeconds (s)
RResistance in series with the capacitorOhms (Ω)
CCapacitanceFarads (F)

The product of R × C is known as the time constant, denoted by Tau (τ). At t = 1τ, the capacitor reaches 63.2% of Vs. At t = 5τ, it reaches 99.3% and is considered practically fully charged for most DC circuit analysis.

Assumptions, Limits, and Unit Traps

Before plugging numbers into your calculator, you must understand the boundaries of this equation. The formula assumes:

  • A constant DC voltage source (no AC ripple or sagging supplies).
  • An initially uncharged capacitor (V0 = 0V). If the cap starts with a pre-charge, the formula requires a modified offset.
  • Ideal components: It ignores Equivalent Series Resistance (ESR) and dielectric leakage. In reality, electrolytic capacitors leak current, meaning Vc will plateau slightly below Vs in long-duration timers.
⚠️ The Unit Trap: The number one mistake hobbyists make is ignoring metric prefixes. The formula only works with base SI units. If you plug in 100 for a 100µF capacitor, your math will be off by a factor of 1,000,000. Always convert microfarads (µF) to Farads by multiplying by 10-6, and kilo-ohms (kΩ) to Ohms by multiplying by 103.

Realistic Magnitudes: In typical hobby and embedded circuits (like an Arduino or ESP32 delay), realistic time constants (τ) range from 1 millisecond to 10 seconds. If your calculation yields a delay of 45,000 seconds, you forgot to convert your microfarads to Farads. A standard bench setup uses resistors between 1kΩ and 1MΩ, and capacitors between 10nF and 100µF.

Rearranged Forms for Circuit Design

You rarely use the base formula to find voltage; usually, you know the voltage threshold you need to hit and are solving for time, resistance, or capacitance. Here are the algebraically rearranged forms for design work:

  • 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).

Worked Examples with Strict Unit Tracking

Let's run two common bench scenarios, explicitly tracking the unit conversions to prevent order-of-magnitude errors.

Problem 1: Finding Voltage at a Specific Time

Scenario: You have a 12V DC supply charging a capacitor through a 4.7kΩ resistor. The capacitor is 220µF. What is the voltage across the capacitor exactly 2 seconds after the circuit is closed?

  1. Convert to base units:
    R = 4.7 kΩ = 4,700 Ω
    C = 220 µF = 0.00022 F
    t = 2 s
    Vs = 12 V
  2. Calculate the time constant (τ):
    τ = R × C = 4,700 × 0.00022 = 1.034 seconds
  3. Calculate the exponent (-t/RC):
    -t / τ = -2 / 1.034 = -1.9342
  4. Apply Euler's number:
    e-1.93420.1445
  5. Final calculation:
    Vc = 12 × (1 - 0.1445) = 12 × 0.8555 = 10.26 V

Answer: At 2 seconds, the capacitor has charged to 10.26V.

Problem 2: Finding Time to Reach a Logic Threshold

Scenario: You are building a power-on reset circuit for an ESP32. The GPIO pin registers a logical HIGH at 3.3V (per the Espressif ESP32 Datasheet). Your supply is 5V. You are using a 100kΩ resistor and a 10µF capacitor. How long after power-on will the ESP32 wake up?

  1. Convert to base units:
    Vs = 5 V
    Vc = 3.3 V
    R = 100 kΩ = 100,000 Ω
    C = 10 µF = 0.00001 F
  2. Calculate the time constant (τ):
    τ = 100,000 × 0.00001 = 1.0 second
  3. Calculate the voltage ratio:
    Vc / Vs = 3.3 / 5 = 0.66
  4. Apply the rearranged time formula:
    t = -1.0 × ln(1 - 0.66)
    t = -1.0 × ln(0.34)
  5. Compute the natural log:
    ln(0.34) ≈ -1.0788
  6. Final calculation:
    t = -1.0 × -1.0788 = 1.0788 seconds

Answer: The GPIO pin will cross the 3.3V threshold 1.08 seconds after power is applied.

Decision Path: Sizing R and C for an RC Delay

When designing a delay circuit (like a 555 monostable timer or a simple transistor latch), you usually know your target time (t) and threshold voltage, leaving you with infinite combinations of R and C. How do you pick the right pair? Use this decision tree to terminate on a concrete bill of materials.

Design ConstraintComponent StrategyPitfall to Avoid
Strict PCB Space Limit Pick a tiny C (e.g., 10nF to 100nF) and calculate a massive R (e.g., 1MΩ to 10MΩ). High-value resistors make the node highly susceptible to EMI noise and parasitic PCB leakage.
Ultra-Low Power / Battery Maximize R (1MΩ+) to minimize steady-state charging current. Use C0G/NP0 ceramic caps. Input bias current of the reading op-amp or MCU GPIO will pull the voltage down, ruining the timing.
Precision & Stability (Default) Target R between 10kΩ and 100kΩ. Calculate C to match. Use X7R ceramics or film caps. Using standard electrolytic capacitors (which have -20%/+80% tolerances and high leakage).
💡 The Concrete Pick (1.5 Second Delay to 63.2%):
If you need a reliable, general-purpose 1.5-second delay (where t = 1τ) on a 5V logic line, do not use a 1.5MΩ resistor and a 1µF electrolytic capacitor. The electrolytic leakage will stretch your delay unpredictably.

Buy these exact parts:
1. Resistor: 100kΩ, 1% tolerance, 1/4W Metal Film (e.g., Yageo MFR-25FBF52-100K).
2. Capacitor: 15µF (or closest standard value like 10µF + 4.7µF in parallel), X7R Ceramic, 16V or higher (e.g., Murata GRM series).
Calculation check: τ = 100,000Ω × 0.000015F = 1.5 seconds. Stable, low leakage, and immune to standard EMI.

For deeper reading on how parasitic elements affect these ideal calculations, refer to the RC Charging Circuit guide on Electronics Tutorials, which covers the practical discharge curves and real-world dielectric absorption effects that can cause a capacitor to "rebound" in voltage after being shorted.