The Core Charging a Capacitor Formula (and Symbol Definitions)
The foundational equation for calculating the voltage across a capacitor as it charges through a resistor from a DC source is:
V(t) = Vs(1 - e-t/RC)
This equation is derived directly from Kirchhoff’s Voltage Law applied to a series RC loop, assuming the capacitor begins at 0V. The term RC represents the time constant (τ), which dictates the exponential curve's shape. After one time constant (t = RC), the capacitor reaches exactly 63.2% of the supply voltage.
| Symbol | Name | SI Unit | Typical Hobby/Bench Range |
|---|---|---|---|
| V(t) | Voltage across capacitor at time t | Volts (V) | 0V to 48V |
| Vs | Source (Supply) Voltage | Volts (V) | 3.3V, 5V, 12V, 24V |
| e | Euler's number (mathematical constant) | Dimensionless | ~2.71828 |
| t | Elapsed time since charging began | Seconds (s) | 1ms to 10s |
| R | Series Resistance | Ohms (Ω) | 1kΩ to 1MΩ |
| C | Capacitance | Farads (F) | 100pF to 4,700µF |
Rearranged Forms: Solving for R, C, t, and V
On the bench, you rarely need to solve for V(t). Usually, you have a target delay time or a specific threshold voltage (like the trigger pin on a 555 timer or a microcontroller's brown-out reset level) and need to size a component. Here are the algebraic rearrangements of the charging a capacitor formula. Note that ln denotes the natural logarithm (base e), not the base-10 log.
ln) function. Using the base-10 log function will yield mathematically valid but physically incorrect component values.
- Solving for Time (t):
t = -RC × ln(1 - (V(t) / Vs)) - Solving for Resistance (R):
R = -t / [C × ln(1 - (V(t) / Vs))] - Solving for Capacitance (C):
C = -t / [R × ln(1 - (V(t) / Vs))] - Solving for Source Voltage (Vs):
Vs = V(t) / (1 - e-t/RC)
Worked Examples with Strict Unit Tracking
The most common point of failure in RC calculations is unit mismatch. The formula strictly requires base SI units: Ohms, Farads, and Seconds. If your capacitor is rated in microfarads (µF), you must multiply by 10-6.
Problem 1: Finding the Time to Reach a Threshold Voltage
Scenario: You have a 12V DC supply, a 4.7kΩ resistor, and a 100µF capacitor. How long does it take for the capacitor to charge to 9V?
- Convert to base SI units:
Vs = 12V
V(t) = 9V
R = 4,700 Ω
C = 100 × 10-6 F = 0.0001 F - Calculate the time constant (τ = RC):
τ = 4,700 × 0.0001 = 0.47 seconds - Substitute into the rearranged time formula:
t = -0.47 × ln(1 - (9 / 12))
t = -0.47 × ln(1 - 0.75)
t = -0.47 × ln(0.25) - Evaluate the natural log:
ln(0.25) ≈ -1.38629 - Final Calculation:
t = -0.47 × -1.38629 = 0.6515 seconds
Problem 2: Sizing a Resistor for a Target Delay
Scenario: You need a microcontroller enable pin to cross the 4.5V logic-high threshold exactly 2.0 seconds after a 5V rail powers up. You have a 1000µF capacitor on hand. What resistor do you need?
- Convert to base SI units:
Vs = 5V
V(t) = 4.5V
t = 2.0 s
C = 1000 × 10-6 F = 0.001 F - Substitute into the rearranged resistance formula:
R = -2.0 / [0.001 × ln(1 - (4.5 / 5))]
R = -2.0 / [0.001 × ln(1 - 0.9)]
R = -2.0 / [0.001 × ln(0.1)] - Evaluate the natural log:
ln(0.1) ≈ -2.30258 - Final Calculation:
R = -2.0 / [0.001 × -2.30258]
R = -2.0 / -0.00230258 = 868.59 Ω
Bench Action: 868.59 Ω is not a standard value. Using the E24 resistor series, you would select an 820 Ω resistor (yielding a slightly faster ~1.89s delay) or a 910 Ω resistor (yielding a slightly slower ~2.09s delay). For precision, use an E96 series 866 Ω 1% metal film resistor.
When the Formula Applies (and Where It Breaks)
The charging a capacitor formula assumes an idealized universe. On a real workbench, physics intervenes. Understanding these assumptions prevents you from building a circuit that works in SPICE but fails in reality.
Core Assumptions
- Zero Initial Voltage: The formula assumes V(0) = 0. If the capacitor holds a residual charge, you must use the generalized form:
V(t) = Vs + (V0 - Vs)e-t/RC. - Constant DC Source: Vs must be a stiff voltage source. If your power supply sags under the initial inrush current (I = Vs/R), the charging curve will flatten.
- Ideal Components: The formula ignores Equivalent Series Resistance (ESR) and dielectric absorption.
Unit Mistakes That Break the Math
C = 100 into the formula instead of C = 0.0001, your calculated time constant will be off by a factor of one million. Always write out the × 10-6 in your scratch work.
Realistic Answer Magnitudes
In hobbyist and commercial embedded timing circuits, realistic time constants (τ) range from 1 millisecond to 10 seconds. If your calculation yields a required delay of 4,000 seconds (over an hour) using an RC network, your design is flawed. At long time constants, the leakage current of the capacitor (especially aluminum electrolytics) will equal or exceed the charging current, and the capacitor will never reach the target V(t). For delays beyond 10 seconds, abandon analog RC networks and use a microcontroller or a 555 timer configured with a smaller, high-quality film capacitor.
Decision Path: Sizing Your Resistor and Capacitor
When designing a delay, debounce, or soft-start circuit, you must choose the R and C ratio. A 1-second delay can be achieved with 1MΩ and 1µF, or 1kΩ and 1000µF. Which is correct? Use this decision tree to terminate your design process with a concrete bill of materials.
| Target Delay (t) | Capacitor Type Required | Resistor Range | Why This Wins |
|---|---|---|---|
| < 1 ms | C0G/NP0 Ceramic | 1kΩ - 100kΩ | C0G ceramics have near-zero voltage coefficient and temperature drift. High R values keep inrush current low. |
| 1 ms to 5 s | X7R Ceramic or Film | 10kΩ - 470kΩ | Avoids the high leakage current of electrolytics. Film caps are bulkier but offer the tightest tolerance. |
| > 5 s | Digital Logic (Abandon RC) | N/A | Electrolytic leakage current ruins the exponential curve. Use a 555 timer, RTC, or MCU internal watchdog. |
The Concrete Default Pick
If you are designing a generic power-on reset delay or a button debounce filter targeting roughly 0.5 seconds, do not overthink the component selection. Terminate your design with this specific, highly stable combination:
- Capacitor: 10µF X7R MLCC (e.g., Murata GRM21BR71H106KE51 or equivalent 0805 package). X7R provides adequate stability without the microphonic effects of Y5V dielectrics.
- Resistor: 47kΩ 1% Metal Film (e.g., Vishay MRS25 series). This keeps the inrush current under 100µA on a 5V rail, preventing brownouts on sensitive upstream LDOs.
By pairing these specific values, your calculated τ is 0.47 seconds, reaching a 3.15V logic-high threshold on a 5V rail in approximately 0.45 seconds—perfectly bridging the gap between theoretical math and reliable bench performance.
References for further theoretical depth:
1. Electronics Tutorials - RC Charging Circuit
2. HyperPhysics - RC Circuits and Time Constants






