If you want to predict exactly how long it takes for a timing circuit to trigger, a soft-start to ramp up, or a filter to stabilize, you need the charging equation of a capacitor. The direct answer for the voltage across a charging capacitor at any given time is V_c(t) = V_s(1 - e^(-t/RC)). This exponential curve dictates everything from 555 timer delays to massive e-bike precharge circuits.
But memorizing the formula isn't enough for bench work. You need to know how to rearrange it to solve for unknown component values, how to track your units so you don't fry a logic gate, and where the ideal math breaks down in the real world. Let's break down the derivation, run through solved problems, and look at a scenario where ignoring the physical realities of this equation caused a component failure.
The Charging Equation of a Capacitor: Core Formula & Symbols
The standard charging equation assumes a series RC (Resistor-Capacitor) circuit connected to a constant DC voltage source, where the capacitor begins with zero initial charge. According to Georgia State University's HyperPhysics, the voltage across the capacitor as a function of time is expressed as:
| Symbol | Parameter | Standard SI Unit |
|---|---|---|
V_c(t) |
Voltage across the capacitor at time t | Volts (V) |
V_s |
Source voltage (supply voltage) | Volts (V) |
e |
Euler's number (mathematical constant ≈ 2.71828) | Dimensionless |
t |
Elapsed time since charging began | Seconds (s) |
R |
Series resistance | Ohms (Ω) |
C |
Capacitance | Farads (F) |
τ (tau) |
Time constant (where τ = R * C) | Seconds (s) |
Assumptions and Realistic Magnitudes
This specific formula applies only when the capacitor is initially fully discharged (V_0 = 0V) and the source voltage V_s is perfectly constant. If your capacitor already holds a charge, the equation shifts to V_c(t) = V_s - (V_s - V_0)e^(-t/RC).
What does a realistic answer magnitude look like? The product of R and C gives you the time constant (τ). On a typical hobbyist breadboard, if you use a 10kΩ resistor and a 100µF capacitor, τ = 10,000 * 0.0001 = 1 second. At 1τ, the capacitor reaches 63.2% of V_s. At 5τ (5 seconds), it is considered fully charged (99.3%). If your math spits out a τ of 400 seconds for a simple LED flasher, you've likely dropped a decimal point in your microfarad conversion.
Rearranged Forms: Solving for Time, Resistance, and Capacitance
On the bench, you rarely just plug in numbers to find voltage. Usually, you know your target voltage and your supply, and you need to buy the right resistor or capacitor to hit a specific timing mark. Here are the algebraically rearranged forms of the charging equation of a capacitor:
- Solve for Time (t):
t = -R * C * ln(1 - (V_c / V_s)) - Solve for Resistance (R):
R = -t / (C * ln(1 - (V_c / V_s))) - Solve for Capacitance (C):
C = -t / (R * ln(1 - (V_c / V_s))) - Solve for Source Voltage (V_s):
V_s = V_c / (1 - e^(-t / (R * C)))
Note: 'ln' represents the natural logarithm (base e). Ensure your calculator is set to natural log, not log base 10.
Worked Problem 1: Calculating a Logic Gate Delay
Scenario: You are building a power-on reset circuit. A 5V rail is charging a capacitor through a resistor. The capacitor feeds the input of a 74HC14 Schmitt trigger, which has a positive-going threshold voltage of 3.15V. You have a 100kΩ resistor and a 10µF capacitor. How long after power-on will the logic gate trigger?
- Identify knowns: V_s = 5V, V_c = 3.15V, R = 100,000 Ω, C = 10 * 10^-6 F (0.00001 F).
- Select the rearranged formula for time:
t = -R * C * ln(1 - (V_c / V_s)) - Calculate the voltage ratio: V_c / V_s = 3.15 / 5 = 0.63
- Subtract from 1: 1 - 0.63 = 0.37
- Take the natural log: ln(0.37) ≈ -0.9942
- Calculate RC (τ): 100,000 * 0.00001 = 1 second
- Multiply: t = -1 * (-0.9942) = 0.9942 seconds
Result: The logic gate will trigger approximately 994 milliseconds after power is applied. Notice that because 3.15V is roughly 63% of 5V, the time is almost exactly 1τ (1 second).
Worked Problem 2: Sizing a MOSFET Gate Capacitor
Scenario: You need a soft-start for a motor. You are driving an N-channel MOSFET gate with a 12V source through a 10kΩ gate resistor. The MOSFET begins to turn on (V_gs(th)) at 4V. You want the motor to start ramping up exactly 50ms (0.05 seconds) after the switch is flipped. What capacitor value do you need from gate to ground?
- Identify knowns: V_s = 12V, V_c = 4V, R = 10,000 Ω, t = 0.05 s.
- Select the rearranged formula for capacitance:
C = -t / (R * ln(1 - (V_c / V_s))) - Calculate the voltage ratio: 4 / 12 = 0.3333
- Subtract from 1: 1 - 0.3333 = 0.6667
- Take the natural log: ln(0.6667) ≈ -0.4055
- Multiply by R: 10,000 * (-0.4055) = -4055
- Divide time by the result: C = -0.05 / -4055 = 0.00001233 F
Result: You need a 12.33µF capacitor. Since 12.33µF isn't a standard value, you would select a standard 10µF ceramic or film capacitor (yielding a slightly faster ~40ms delay) or a 15µF electrolytic (yielding a ~60ms delay), depending on which side of the threshold you prefer to err on.
Bench Reality Check: A 48V E-Bike Precharge Scenario
Math on paper is clean; the workbench is not. Let's look at a real-world scenario where blindly trusting the charging equation of a capacitor without considering component physics leads to failure.
The Setup
When connecting a 48V e-bike battery to a motor controller, the massive input capacitors act as a dead short, causing a destructive spark at the connector. To prevent this, builders use a 'precharge' circuit: a resistor placed in parallel with the main contactor to slowly charge the caps before the main high-current switch closes.
The Numbers
The motor controller has 1000µF of total capacitance. The builder uses a 150Ω precharge resistor. The battery is 48V.
Using our formula, τ = R * C = 150 * 0.001 = 0.15 seconds. To reach 95% charge (roughly 3τ), the math says it takes 0.45 seconds. The builder sets a timer to wait half a second, then engages the main contactor.
The Outcome and What Went Wrong
The first time the builder tests this, there is a loud pop, and the 150Ω resistor cracks open, failing the circuit. Why? The math wasn't wrong, but the assumptions of the physical components were ignored.
The builder used a standard 1/4W carbon-film through-hole resistor. While the *average* power dissipated over the 0.45-second charge cycle is quite low, the instantaneous power at t=0 is massive. At the exact moment of connection, the uncharged capacitor is a short circuit. The initial current is I = V/R = 48 / 150 = 0.32A. The initial power surge is P = V²/R = 48² / 150 = 15.3 Watts.
A 1/4W resistor cannot absorb a 15W surge, even for milliseconds, without its internal carbon track vaporizing. Furthermore, standard electrolytic capacitors have a -20% tolerance; the 1000µF caps might actually be 800µF, shifting the timing. The fix: Use a 5W or 10W wirewound resistor rated for high surge energy (Joules), or an NTC thermistor designed specifically for inrush current limiting. For deeper reading on component selection, Fluke's guide on capacitance measurement highlights how ESR and tolerance impact real-world circuit behavior.
Common Unit Traps and How to Avoid Them
When calculating RC circuits, 90% of errors come from unit mismanagement. Keep these traps in mind:
Capacitors are rarely sold in whole Farads. A 100µF capacitor is 0.0001 F, not 100 F. If you plug '100' into the C variable, your calculated time constant will be a million times too large. Always convert to base SI units (Farads) before running the equation.
Look at the term
ln(1 - (V_c / V_s)). If you accidentally set your target voltage (V_c) higher than your supply voltage (V_s), the ratio becomes greater than 1. Subtracting that from 1 yields a negative number. The natural log of a negative number is undefined in real numbers, and your calculator will throw an error. A capacitor cannot charge past its source voltage.
The formula demands time in seconds. If your oscilloscope reads a delay of 50ms, you must enter 0.05 into the equation. If you enter 50 while your R and C are in base Ohms and Farads, your resulting component value will be off by a factor of 1,000.
Mastering the charging equation of a capacitor bridges the gap between theoretical circuit diagrams and functional hardware. By tracking your units, rearranging the algebra to suit your design constraints, and respecting the physical limits of your components, you can design timing and soft-start circuits that work reliably on the first power-up.






