Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Notes: For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.
Every power supply filter, timing circuit, signal coupler, and ADC sample-and-hold network in existence depends on the same underlying physics: a capacitor charges and discharges through resistance following a predictable exponential curve. Understand that curve — really understand it, not just memorize it — and you can predict settling times, design RC filters, calculate reset delays, and explain why that decoupling cap on your FPGA power rail isn’t doing what you think it is.
This article derives the capacitor charging equation from first principles, works through the discharging case in parallel, explains the RC time constant in engineering-practical terms, and connects the mathematics to real circuit behaviour. If you’re designing a reset delay, sizing a power supply filter, or trying to understand why your oscilloscope shows an exponential rather than a step, this is the analysis you need.
## The Fundamental Capacitor Voltage-Current Relationship
Before deriving the charging equation, the core capacitor relationship needs to be established, because everything else flows from it.
A capacitor with capacitance C stores charge Q on its plates. The charge is proportional to the voltage across the plates:
Q = C × V
Current is the rate of charge flow: I = dQ/dt. Differentiating the above with respect to time gives the fundamental capacitor i-v equation:
I(t) = C × dV(t)/dt
This equation says two things that are critical for circuit analysis. First, the current through a capacitor is proportional to the rate of change of voltage across it — not the voltage itself. A DC voltage across a capacitor produces zero current. Second, you cannot change the voltage across a capacitor instantaneously unless you push infinite current through it. In real circuits with finite source impedance, this means capacitor voltage always changes gradually — the exponential behaviour we’ll derive below.
## Deriving the Capacitor Charging Equation from Kirchhoff’s Voltage Law
Consider a simple series RC circuit: a DC voltage source Vs in series with a resistor R and a capacitor C. The capacitor starts fully discharged (Vc = 0 at t = 0). A switch closes at t = 0, and we want Vc(t) — the voltage across the capacitor as a function of time.
### Setting Up the Differential Equation
Applying Kirchhoff’s Voltage Law around the loop at any instant t > 0:
Vs = VR(t) + Vc(t)
The voltage across the resistor is VR = I(t) × R. Substituting the capacitor current relationship I(t) = C × dVc/dt:
Vs = RC × dVc/dt + Vc
Rearranging into standard first-order ODE form:
dVc/dt + Vc/RC = Vs/RC
### Solving the ODE
This is a first-order linear differential equation with constant coefficients. The general solution is the sum of the homogeneous solution (Vc,h) and a particular solution (Vc,p).
The particular solution is the steady-state value: as t → ∞, dVc/dt → 0 and Vc,p = Vs.
The homogeneous solution has the form Vc,h = K × e^(−t/RC) where K is determined by initial conditions.
Full general solution: Vc(t) = Vs + K × e^(−t/RC)
Applying the initial condition Vc(0) = 0: 0 = Vs + K × e^0 = Vs + K, therefore K = −Vs
### The Capacitor Charging Equation
Substituting K = −Vs gives the complete capacitor charging equation:
Vc(t) = Vs × (1 − e^(−t/RC))
This is the equation that governs capacitor voltage during charging from a discharged initial state. The term RC appears so frequently that it gets its own symbol: the time constant τ (tau).
τ = RC
Rewriting: Vc(t) = Vs × (1 − e^(−t/τ))
The charging current at any instant is found by differentiating or from Ohm’s law applied to the resistor:
I(t) = (Vs/R) × e^(−t/τ)
At t = 0, the initial current is Vs/R — as if the capacitor weren’t there (it starts as a short circuit). As the capacitor charges, the voltage across R falls and so does the current. Both approach their final values (Vc → Vs, I → 0) asymptotically.
## The RC Time Constant: What τ Actually Means
The time constant τ = RC is the single most important parameter in RC circuit design. It determines how fast the circuit responds to changes in input voltage — and therefore sets settling time, cutoff frequency, and time delay for every RC-based function in your design.
At exactly one time constant (t = τ): Vc(τ) = Vs × (1 − e^(−1)) = Vs × (1 − 0.368) = 0.632 × Vs
The capacitor has reached 63.2% of its final value. This figure — 63.2% at one time constant — is the single most useful thing to remember about RC circuits. It comes directly from the mathematical constant e (Euler’s number, ≈ 2.718), since e^(−1) ≈ 0.368.
At five time constants (t = 5τ), Vc has reached 99.3% of Vs — close enough to “fully charged” for all practical engineering purposes.
Capacitor Charging Voltage at Each Time Constant (Vc as % of Vs):
Time
Formula
Vc / Vs
% of Final Voltage
Engineering Interpretation
0
Vs × (1 − e^0)
0
0%
Initial state — capacitor uncharged
1τ
Vs × (1 − e^−1)
0.632 Vs
63.2%
One time constant — the key reference point
2τ
Vs × (1 − e^−2)
0.865 Vs
86.5%
2 time constants
3τ
Vs × (1 − e^−3)
0.950 Vs
95.0%
“Mostly charged” for many applications
4τ
Vs × (1 − e^−4)
0.982 Vs
98.2%
Transient period effectively over
5τ
Vs × (1 − e^−5)
0.993 Vs
99.3%
“Fully charged” by engineering convention
7τ
Vs × (1 − e^−7)
0.999 Vs
99.9%
Used in precision timing applications
Note: the capacitor mathematically never reaches exactly 100% of Vs — the exponential asymptotes to, but never reaches, zero. The “fully charged at 5τ” convention is pragmatic, not exact.
RC Time Constant Units Check: R in ohms (Ω) × C in farads (F) = τ in seconds (s). Working in kΩ and µF also gives seconds directly: 10kΩ × 10µF = 100ms. This is worth remembering when sizing timing circuits quickly on paper.
## Capacitor Charging Current and the Resistor Voltage
The charging current decays from its peak in mirror image to the rising capacitor voltage:
I(t) = (Vs/R) × e^(−t/τ)
At t = 0: I = Vs/R (maximum current, limited only by the series resistance) At t = τ: I = (Vs/R) × e^(−1) = 0.368 × (Vs/R) — current has fallen to 36.8% of its starting value At t = 5τ: I ≈ 0 — circuit is at steady state
The voltage across the resistor follows the same decay as the current (VR = I × R):
VR(t) = Vs × e^(−t/τ)
At any point in time, the two voltages must sum to Vs: Vc(t) + VR(t) = Vs × (1 − e^(−t/τ)) + Vs × e^(−t/τ) = Vs. This is a useful self-check when solving RC circuit problems.
## The Capacitor Discharging Equation
When a fully charged capacitor (initial voltage V0) discharges through a resistor with no source present, the circuit equation becomes:
0 = RC × dVc/dt + Vc
(The supply term drops to zero.) The solution is a pure exponential decay:
Vc(t) = V0 × e^(−t/τ)
The discharging current flows in the opposite direction to the charging current:
I(t) = −(V0/R) × e^(−t/τ)
The negative sign reflects that charge is leaving the capacitor rather than accumulating on it. The magnitude of the initial discharge current is V0/R — identical in form to the charging case, but discharging toward zero rather than charging toward Vs.
Capacitor Discharging Voltage at Each Time Constant (Vc as % of V0):
Time
Vc / V0
% Remaining
% Discharged
Engineering Interpretation
0
V0
100%
0%
Fully charged initial state
1τ
0.368 × V0
36.8%
63.2%
One time constant — 63.2% discharged
2τ
0.135 × V0
13.5%
86.5%
2 time constants
3τ
0.050 × V0
5.0%
95.0%
3 time constants
4τ
0.018 × V0
1.8%
98.2%
4 time constants
5τ
0.007 × V0
0.7%
99.3%
“Fully discharged” by engineering convention
The symmetry is exact: charging to 63.2% at 1τ and discharging to 36.8% at 1τ are two sides of the same exponential function.
## Energy Stored and the Charging Energy Budget
A charged capacitor stores electrical energy in the electric field between its plates. The energy stored is:
U = ½ × C × V²
This is derived by integrating the power into the capacitor (p = Vc × I) from t = 0 to t = ∞. When a capacitor charges from 0 to Vs, the energy stored in the capacitor at full charge is:
U_cap = ½ × C × Vs²
The energy supplied by the voltage source during the same charging process is:
U_source = C × Vs²
The difference (½ × C × Vs²) is dissipated as heat in the series resistance R. This is a classic result: regardless of the value of R, exactly half of the energy drawn from the source is dissipated in the resistor during charging. The value of R affects how quickly charging occurs (via τ = RC) but not how much energy is lost. This has real implications for efficiency in switched-mode power supplies and energy harvesting circuits.
Charging Energy Summary:
Energy Quantity
Formula
Notes
Energy stored in capacitor
½ × C × Vs²
Useful energy, recoverable
Energy dissipated in resistor
½ × C × Vs²
Lost as heat regardless of R value
Total energy from source
C × Vs²
Always exactly twice the stored energy
Charging efficiency (max theoretical)
50%
For simple RC charging
Power at time t (in resistor)
(Vs²/R) × e^(−2t/τ)
Peak dissipation at t=0
For circuits where charging efficiency matters — battery charging, energy harvesting, supercapacitor applications — this 50% theoretical limit for simple RC charging is the starting point for understanding why switched-mode charging converters exist.
## Worked Examples: Using the Capacitor Charging Equation
### Example 1: Basic Timer Circuit — How Long to Reach a Threshold?
A 555 timer in monostable mode charges a 10µF capacitor through a 100kΩ resistor from a 5V supply. The timer triggers (output goes low) when the capacitor voltage reaches 2/3 × Vs = 3.33V. How long is the output pulse?
τ = RC = 100kΩ × 10µF = 1.0 second
Solve for t when Vc = 3.33V: 3.33 = 5 × (1 − e^(−t/1.0)) 0.667 = 1 − e^(−t) e^(−t) = 0.333 −t = ln(0.333) = −1.099 t = 1.10 seconds
This matches the standard 555 monostable formula t = 1.1 × RC — which is simply 1.1τ, directly from the charging equation evaluated at the 2/3 threshold.
### Example 2: Power Supply Filter — Ripple Estimation
A full-wave rectified supply feeds a 1000µF filter capacitor through an equivalent source resistance of 0.5Ω (transformer winding resistance + diode forward resistance). What is the RC time constant for charging?
τ = 0.5Ω × 1000µF = 0.5ms
A 50Hz full-wave rectifier has peaks every 10ms. Since 10ms = 20τ, the capacitor charges to essentially full supply voltage by the time each rectifier peak arrives — the short τ means fast charging, which is what you want in a filter. The discharging behaviour between peaks (into the load) is what determines ripple and uses a much larger effective R (the load resistance).
### Example 3: Calculating Time to Reach a Target Voltage During Discharge
A 470µF capacitor charged to 24V discharges through a 10kΩ resistor. How long until the voltage falls below 1V (safe-to-handle threshold)?
τ = 10kΩ × 470µF = 4.7 seconds
Solve Vc(t) = V0 × e^(−t/τ) for t when Vc = 1V: 1 = 24 × e^(−t/4.7) e^(−t/4.7) = 1/24 = 0.0417 −t/4.7 = ln(0.0417) = −3.176 t = 14.9 seconds
This is 3.17τ ≈ approximately 3.2 time constants — consistent with the table above showing ~5% remaining at 3τ and ~1.8% at 4τ. 1/24 = 4.2% remaining, which lands between 3τ and 4τ as expected.
Worked Examples Summary:
Scenario
R
C
τ
Target
Time
555 monostable (charge to 2/3 Vs)
100kΩ
10µF
1.00s
3.33V from 5V
1.10s
Power supply filter (charge check)
0.5Ω
1000µF
0.5ms
Check vs rectifier period (10ms)
20τ — fast enough
Discharge to safe voltage
10kΩ
470µF
4.7s
<1V from 24V
14.9s
## Complete Equation Reference
All core RC charging and discharging equations in one place:
Equation
Formula
Units
Notes
Time constant
τ = R × C
seconds
R in Ω, C in F
Charging voltage
Vc(t) = Vs × (1 − e^(−t/τ))
volts
From discharged initial state
Charging current
I(t) = (Vs/R) × e^(−t/τ)
amperes
Decays from peak Vs/R
Discharging voltage
Vc(t) = V0 × e^(−t/τ)
volts
From fully charged V0
Discharging current
I(t) = (V0/R) × e^(−t/τ)
amperes
Opposite direction to charging
Charge on plates
Q = C × V
coulombs
Instantaneous value
Energy stored
U = ½ × C × V²
joules
At any voltage V
Time to reach voltage Vt (charging)
t = −τ × ln(1 − Vt/Vs)
seconds
Solve Vc equation for t
Time to reach voltage Vt (discharging)
t = −τ × ln(Vt/V0)
seconds
Solve discharge equation for t
RC cutoff frequency
fc = 1/(2π × R × C)
hertz
−3dB point of RC filter
## Practical Engineering Implications
### Why τ Controls Response Speed but Not Efficiency
The energy loss analysis above shows that the 50% charging energy dissipation is independent of R. Reducing R makes the capacitor charge faster (smaller τ) but doesn’t change how much energy is wasted per charge cycle. This is why regulated power converters use inductor-based switching topologies rather than resistive charging — the inductor transfers energy without the fundamental 50% loss of a resistive circuit.
### The RC Time Constant as a Filter Frequency
The RC time constant also defines the -3dB cutoff frequency of a simple RC low-pass or high-pass filter: fc = 1/(2πRC). A 100Ω resistor with a 100nF ceramic bypass capacitor gives τ = 10µs and fc = 1/(2π × 10µs) ≈ 15.9kHz. This is why bypass capacitor selection affects high-frequency performance — the combination of capacitor value and the source impedance of the power rail sets the RC time constant for the local decoupling circuit.
### Initial Current Spike on Capacitor Charging
At t = 0, the charging current is I_max = Vs/R. In circuits where R is very small (low-impedance supplies with large filter capacitors), this initial current spike can be enormous. A 1000µF capacitor charging from a 12V supply through 0.1Ω of wiring resistance sees an initial current of 120A at the moment of connection. This is why inrush current limiters (NTC thermistors, soft-start circuits) are used in power supply designs — they temporarily increase R to limit the peak charging current, then allow R to drop for normal operation.
Utmel — Capacitor Discharge Calculator — Enter initial voltage, R, C and solve for time to reach a target voltage; useful for safety discharge calculations
Wikipedia — RC Circuit — Includes Laplace domain analysis for advanced readers; frequency domain treatment connects time-domain charging equations to filter behaviour
Q1: The charging equation says the capacitor never fully charges — does that mean 5τ is just a rule of thumb, and how accurate does the analysis need to be?
The exponential function e^(−t/τ) approaches zero asymptotically and never exactly reaches it, which means Vc never exactly reaches Vs. Mathematically, you’d need infinite time. In engineering practice, 5τ gives 99.3% of Vs — close enough for the vast majority of applications. For timing circuits based on a threshold (like the 555 timer at 2/3 Vs), the precise equation t = −τ × ln(1 − Vt/Vs) gives you the exact answer without needing to approximate at all. For analog filter settling or ADC sample-and-hold applications, the required number of time constants depends on your resolution requirement: a 12-bit ADC needs the signal to settle to within 1/2^12 of its final value, which is 1/4096 = 0.024% — that requires approximately 8.4τ, not 5τ. Always match the required settling accuracy to the number of time constants in your design, rather than defaulting to “5τ is fully charged.”
Q2: If I increase the resistance R in an RC circuit, the charging time gets longer. But doesn’t it also affect the efficiency? Is there an optimal R for charging?
The efficiency of simple RC charging is exactly 50% regardless of R — as derived above, the source supplies C × Vs² of energy and the capacitor stores only ½ × C × Vs², with the rest dissipated in R. Changing R changes the rate of charging (τ = RC) but not the ratio of stored to dissipated energy. There is no optimal R from an efficiency standpoint in a simple RC circuit. If you need high efficiency, you need a fundamentally different topology — a switched-mode converter with an inductor, which can achieve 90–98% efficiency because inductors store and return energy without resistive dissipation. For applications where the 50% loss is acceptable (one-shot charging of small capacitors from a regulated supply, for instance), R is chosen to limit inrush current and set the desired charging rate, not to maximize efficiency.
Q3: My RC circuit has two resistors (one series, one parallel with the capacitor) — how do I calculate the time constant?
When additional resistors are present, the time constant τ = RC still applies, but R becomes the Thevenin equivalent resistance seen by the capacitor terminals. To find this, remove the capacitor, zero all independent voltage sources (short them), open all independent current sources, and calculate the resistance looking into the capacitor terminals. For a voltage divider with R1 from supply to node and R2 from node to ground, with the capacitor in parallel with R2: the Thevenin resistance seen by the capacitor is R1 parallel with R2 (written R1 || R2 = R1×R2/(R1+R2)), and the Thevenin voltage is Vs × R2/(R1+R2). The charging equation still applies: Vc(t) = Vth × (1 − e^(−t/τ)), where τ = (R1 || R2) × C and Vth is the Thevenin voltage. This Thevenin reduction applies to any linear resistive network.
Q4: What happens to the charging equation if the capacitor has a non-zero initial voltage V_i instead of starting at 0V?
The general charging equation for a capacitor starting at initial voltage Vi and charging toward Vs is: Vc(t) = Vs + (Vi − Vs) × e^(−t/τ). When Vi = 0, this reduces to the standard equation Vc(t) = Vs × (1 − e^(−t/τ)). When Vi = V0 and Vs = 0 (discharging), it reduces to Vc(t) = V0 × e^(−t/τ). The general form handles all cases. In practical terms, this matters whenever you’re analyzing partial charging cycles — for example, a capacitor in a switching converter that charges from 3V to 5V (not from 0V) during each duty cycle, or an AC coupling capacitor with a pre-existing charge from a previous signal.
Q5: How does the RC time constant relate to the cutoff frequency of an RC filter, and why does this matter for bypass capacitor selection?
The time constant τ and the −3dB cutoff frequency fc are inversely related by: fc = 1/(2πτ) = 1/(2πRC). A larger RC product means a longer time constant AND a lower cutoff frequency. For a bypass capacitor, the relevant resistance is the impedance of the power supply rail at the point of decoupling — the equivalent series resistance of the trace inductance and supply regulation. A 100nF ceramic capacitor bypassing a power pin through 1Ω of effective resistance gives τ = 100ns and fc ≈ 1.6MHz. Noise and transients above 1.6MHz will be attenuated; those below will pass through to the IC. This is why designers use multiple bypass capacitors of different values (e.g., 100nF + 10µF) to cover different frequency ranges — each value sets a different corner frequency for a different part of the noise spectrum. The charging equation and the filter frequency equation are the same physics, viewed from time domain and frequency domain respectively.
## From Equations to Engineering
The capacitor charging equation Vc(t) = Vs × (1 − e^(−t/τ)) is not just a formula to plug numbers into — it’s a description of how energy accumulates in a reactive element over time, constrained by the dissipative resistance that limits current flow. The discharging mirror Vc(t) = V0 × e^(−t/τ) shows the same physics in reverse.
What makes these equations genuinely useful in practice is that they connect to measurable, designable parameters: set R and C and you set τ, which determines how fast your filter settles, how wide your timer pulse is, how quickly your reset circuit releases, and how much inrush current your supply sees at power-on. The mathematics is the circuit behaviour, expressed compactly enough to fit in your design notes.
Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Notes: For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.