The direct answer: the equation for charging a capacitor in a series DC RC (resistor-capacitor) circuit is V(t) = V_s(1 - e^{-t/RC}). This formula models the exponential voltage rise across the capacitor plates when a constant DC voltage is applied through a current-limiting resistor. It is the foundational math behind timing circuits, soft-start delays, debounce filters, and analog signal coupling.
Below, we break down every symbol, provide a reference table of real-world component pairings, list the algebraically rearranged forms for design work, and walk through two bench-tested problems with strict unit tracking.
The Core Equation and Symbol Definitions
To use the formula accurately on the bench, you must understand what each variable represents physically. The standard charging equation is:
V(t) = V_s(1 - e^{-t/RC})
| Symbol | Parameter | Standard Unit | Physical Meaning |
|---|---|---|---|
| V(t) | Voltage at time t | Volts (V) | The potential difference across the capacitor plates at a specific moment. |
| V_s | Source Voltage | Volts (V) | The constant DC supply voltage charging the circuit. |
| e | Euler's Number | Dimensionless | Mathematical constant (~2.71828) defining the exponential curve. |
| t | Time | Seconds (s) | Elapsed time since the DC voltage was applied. |
| R | Resistance | Ohms (Ω) | Series resistance limiting the initial inrush current. |
| C | Capacitance | Farads (F) | The charge storage capacity of the capacitor. |
| RC (τ) | Time Constant | Seconds (s) | Time required to reach 63.2% of V_s. Fully charged at ~5τ. |
Real-World RC Pairings and Time Constants
Abstract formulas are useless without physical context. The table below maps common bench components to their resulting time constants (τ) and full charge times (5τ), illustrating realistic magnitudes for different applications.
| Resistor (R) | Capacitor (C) | Time Constant (τ = RC) | Time to 99.3% (5τ) | Typical Application |
|---|---|---|---|---|
| 10 kΩ | 100 µF | 1.0 s | 5.0 s | Power supply soft-start relay delay |
| 1 MΩ | 10 µF | 10.0 s | 50.0 s | Long-duration timer (e.g., 555 astable) |
| 100 Ω | 1000 µF | 0.1 s | 0.5 s | Audio amplifier decoupling filter |
| 4.7 kΩ | 0.1 µF | 0.47 ms | 2.35 ms | Microcontroller GPIO debounce filter |
Rearranged Forms for Circuit Design
On the bench, you rarely solve for V(t). Usually, you have a target voltage threshold and a fixed time delay, and you need to select the resistor or capacitor. According to standard RC circuit theory, here are the algebraically rearranged forms solving for each variable:
- Solving for time (t):
t = -RC * ln(1 - (V(t) / V_s))
Use when: You have fixed R and C values and need to know how long until a microcontroller GPIO reads a logic HIGH. - Solving for resistance (R):
R = -t / (C * ln(1 - (V(t) / V_s)))
Use when: You have a specific capacitor in your parts bin and need to size the current-limiting resistor to hit a precise delay. - Solving for capacitance (C):
C = -t / (R * ln(1 - (V(t) / V_s)))
Use when: Designing a PCB with fixed trace/space constraints where resistor selection is more flexible than capacitor footprint. - Solving for source voltage (V_s):
V_s = V(t) / (1 - e^{-t/RC})
Use when: Reverse-engineering an unknown power rail based on measured capacitor charge states.
Assumptions, Unit Traps, and Realistic Magnitudes
When the Formula Applies (and When It Doesn't)
This equation assumes an ideal DC voltage source, a purely resistive series component, and a perfect capacitor with zero initial charge. It models the macro-scale charge curve. It does not account for:
- Equivalent Series Resistance (ESR): Real capacitors (especially aluminum electrolytics) have internal resistance. If your R value is very low (e.g., < 10 Ω), ESR will skew the initial charge curve.
- Dielectric Absorption: In high-precision analog sampling circuits, the dielectric material "soaks" up charge and releases it slowly, causing a voltage rebound after discharge.
- AC or Pulsed DC: If the source voltage fluctuates, you must use differential equations or Laplace transforms, not this simple exponential model.
The Unit Mistakes That Break Your Math
The most common reason hobbyists and students get wildly incorrect answers is failing to convert prefix units to base SI units before calculating. Georgia State University's HyperPhysics emphasizes strict SI adherence.
- The Microfarad Trap: Plugging "100" into the formula for a 100 µF capacitor instead of "0.0001" (100 x 10^-6). This inflates your time constant by a factor of one million.
- The Millisecond Trap: Mixing milliseconds (ms) for time with seconds (s) for the RC product. Always convert time to seconds, or convert the entire RC product to milliseconds. Never mix them in the exponent.
- Exponent Cancellation: The term
-t / RCmust be entirely dimensionless. Iftis in seconds,RCmust be in seconds. The units cancel out before Euler's number is applied.
What a Realistic Answer Looks Like
If you are designing a soft-start circuit for a 12V LED strip and your math says it takes 4,500 seconds to turn on, you forgot to convert microfarads to farads. Realistic RC delays for MCU reset circuits range from 10 ms to 500 ms. For power supply soft-starts, expect 100 ms to 2 seconds. For audio coupling high-pass filters, the time constant dictates the low-frequency cutoff, usually yielding τ values between 1 ms and 20 ms.
Worked Problem 1: Calculating Capacitor Voltage at Time t
Scenario: You are building a soft-start circuit for a bench power supply. The circuit uses a 12V DC source (V_s), a 4.7 kΩ series resistor (R), and a 220 µF electrolytic capacitor (C). What is the voltage across the capacitor exactly 2 seconds after the switch is closed?
Step 1: Convert all values to base SI units.
- V_s = 12 V
- R = 4.7 kΩ = 4,700 Ω
- C = 220 µF = 0.00022 F
- t = 2 s
Step 2: Calculate the Time Constant (τ).
- τ = R × C
- τ = 4,700 Ω × 0.00022 F
- τ = 1.034 seconds
Step 3: Calculate the exponent term.
- Exponent = -t / τ
- Exponent = -2 s / 1.034 s (Notice the seconds cancel out, leaving a dimensionless number)
- Exponent = -1.9342
- e^{-1.9342} ≈ 0.1445
Step 4: Solve for V(t).
- V(2) = 12 V × (1 - 0.1445)
- V(2) = 12 V × (0.8555)
- V(2) = 10.26 V
Bench Check: 2 seconds is roughly 2τ (since τ = 1.034s). At 2τ, a capacitor should be charged to about 86.5% of V_s. 86.5% of 12V is 10.38V. Our exact answer of 10.26V aligns perfectly with the rule-of-thumb magnitude.
Worked Problem 2: Sizing a Resistor for a Specific Trigger Delay
Scenario: You are designing a reset delay for an ESP32 microcontroller. The EN (enable) pin must be held low and then allowed to rise to a logic HIGH threshold. The ESP32's GPIO HIGH threshold is roughly 2.5V on a 3.3V rail. You need the EN pin to cross 2.5V exactly 50 ms after power is applied to ensure the 3.3V LDO is stable. You have a 10 µF capacitor in your BOM. What resistor value do you need?
Step 1: Identify knowns and convert to SI units.
- V_s = 3.3 V (The LDO output charging the RC network)
- V(t) = 2.5 V (The ESP32 logic HIGH threshold)
- t = 50 ms = 0.050 s
- C = 10 µF = 0.00001 F
- R = ?
Step 2: Select the rearranged formula for R.
- R = -t / [ C × ln(1 - (V(t) / V_s)) ]
Step 3: Calculate the natural log term first.
- V(t) / V_s = 2.5 / 3.3 = 0.7575
- 1 - 0.7575 = 0.2425
- ln(0.2425) ≈ -1.4168
Step 4: Complete the calculation.
- R = -0.050 s / [ 0.00001 F × -1.4168 ]
- R = -0.050 / -0.000014168
- R = 3,529 Ω
Step 5: Select a standard E24 component.
You cannot buy a 3,529 Ω resistor. Looking at the standard E24 resistor series (5% tolerance), the closest values are 3.3 kΩ and 3.6 kΩ. If we choose 3.6 kΩ, the delay will be slightly longer (approx 51 ms), which is perfectly safe for a power rail stabilization delay. If we chose 3.3 kΩ, the delay would be ~47 ms, which might be too tight if the LDO has a slow soft-start.
Pro-Tip for MCU Resets: Always add a 100 kΩ pull-down resistor from the EN pin to GND in parallel with the capacitor. This ensures the ESP32 reliably resets when power is removed by providing a discharge path for the 10 µF capacitor, preventing the chip from hanging in a brownout state.






