The exact mathematical model for a capacitor charging through a resistor from a DC source is defined by the exponential equation: Vc(t) = Vs(1 - e-t/RC). This formula dictates the voltage across the capacitor (Vc) at any specific time (t) after the circuit is energized. Whether you are designing a 555 timer astable oscillator, a microcontroller brownout reset delay, or a soft-start gate driver for a power MOSFET, this single relationship governs the timing behavior of your circuit.
The Equation of Charging Capacitor: Core Formula & Symbol Definitions
The standard charging equation assumes a step-input voltage applied to a series resistor-capacitor (RC) network. The capacitor starts at 0V and charges asymptotically toward the source voltage. The rate of this charge is governed by the time constant, tau (τ).
| Symbol | Parameter | Standard Unit | Description & Practical Context |
|---|---|---|---|
| Vc(t) | Capacitor Voltage | Volts (V) | The instantaneous voltage across the capacitor at time t. |
| Vs | Source Voltage | Volts (V) | The constant DC supply voltage driving the circuit. |
| e | Euler's Number | Dimensionless | Mathematical constant ≈ 2.71828. Base of the natural logarithm. |
| t | Time | Seconds (s) | Elapsed time since the DC voltage was applied to the RC network. |
| R | Resistance | Ohms (Ω) | Total series resistance limiting the charging current. |
| C | Capacitance | Farads (F) | The nominal capacitance value storing the electrical energy. |
| τ (tau) | Time Constant | Seconds (s) | τ = R × C. The time required to reach 63.2% of Vs. |
Rearranged Forms: Solving for Time, Resistance, and Capacitance
In practical circuit design, you rarely need to find the voltage at a known time. Instead, you usually have a target threshold voltage (like a logic gate's switching threshold or a MOSFET's gate-source threshold) and need to calculate the required component values to hit that threshold at a specific time. Here are the algebraically rearranged forms of the core equation:
- 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))] - Solving for Source Voltage (Vs):
Vs = Vc / (1 - e-t/RC)
Note: 'ln' represents the natural logarithm (base e), not the base-10 logarithm (log). Using base-10 on your calculator will yield drastically incorrect component values.
Worked Examples with Unit Tracking
Theoretical formulas fail on the workbench when unit prefixes are ignored. The following examples track every unit conversion explicitly.
Problem 1: Microcontroller Reset Delay Timing
Scenario: You are designing a power-on reset circuit for a 3.3V microcontroller. The reset pin requires a logic HIGH threshold of 2.1V to release the reset state. Your RC network uses a 47kΩ resistor and a 100nF ceramic capacitor. How long after power is applied will the microcontroller boot?
- Identify and Convert Variables:
Vs = 3.3V
Vc = 2.1V
R = 47kΩ = 47,000 Ω
C = 100nF = 100 × 10-9 F = 0.0000001 F - Calculate the Time Constant (τ):
τ = R × C = 47,000 Ω × 0.0000001 F = 0.0047 seconds (4.7 ms) - Apply the Rearranged Time Formula:
t = -τ × ln(1 - (Vc / Vs))
t = -0.0047 × ln(1 - (2.1 / 3.3))
t = -0.0047 × ln(1 - 0.6363)
t = -0.0047 × ln(0.3636) - Compute Final Value:
ln(0.3636) ≈ -1.0116
t = -0.0047 × -1.0116 = 0.00475 seconds (4.75 ms)
Problem 2: Sizing a Capacitor for a MOSFET Soft-Start
Scenario: You need a 12V DC motor to soft-start. You are driving the gate of an IRFZ44N MOSFET through an RC network to delay turn-on. The MOSFET begins conducting heavily at a gate-source voltage (Vgs) of 4.5V. You want a delay of exactly 2.5 seconds and have chosen a 330kΩ charging resistor. What capacitance do you need?
- Identify and Convert Variables:
Vs = 12V
Vc = 4.5V
t = 2.5 s
R = 330kΩ = 330,000 Ω - Apply the Rearranged Capacitance Formula:
C = -t / [R × ln(1 - (Vc / Vs))]
C = -2.5 / [330,000 × ln(1 - (4.5 / 12))]
C = -2.5 / [330,000 × ln(1 - 0.375)]
C = -2.5 / [330,000 × ln(0.625)] - Compute the Denominator:
ln(0.625) ≈ -0.4700
330,000 × -0.4700 = -155,100 - Compute Final Value:
C = -2.5 / -155,100 = 0.00001611 Farads
Convert to microfarads: 16.11 µF - Real-World Component Selection:
16.11 µF is not a standard E12/E24 value. To guarantee the delay is at least 2.5 seconds, round up to the next standard value: 22 µF. Select a 25V rated aluminum electrolytic capacitor (e.g., Panasonic EEU-FR1E220) to provide adequate voltage headroom above the 12V source.
When the Formula Applies (and When It Breaks)
The equation of charging capacitor is derived under strict ideal conditions. According to foundational circuit theory documented by resources like HyperPhysics and Electronics Tutorials, the formula assumes:
- A Perfect Step Input: The source voltage Vs transitions from 0V to its final value instantaneously. If your source is a slow-rising ramp (like a poorly regulated solar array waking up), this formula will overestimate the charge state.
- Zero Source Impedance: The power supply must be able to deliver the initial inrush current (Ipeak = Vs / R) without its output voltage sagging. If R is very small (e.g., 1Ω) and your supply has a 0.5Ω internal resistance, your actual charging time will be 50% longer than calculated.
- Ideal Capacitor Behavior: The formula ignores Equivalent Series Resistance (ESR), Equivalent Series Inductance (ESL), and dielectric absorption. For timing circuits using values above 10µF, aluminum electrolytic capacitors exhibit significant leakage current, which acts as a parallel discharge resistor and prevents the capacitor from ever truly reaching Vs.
Realistic Answer Magnitudes: Time constants (τ) in practical electronics span massive scales. A 10pF parasitic trace capacitance charging through a 50Ω oscilloscope probe yields a τ of 0.5 nanoseconds. Conversely, a 10-Farad supercapacitor charging through a 100Ω current-limiting resistor yields a τ of 1,000 seconds (16.6 minutes). If your hand-calculated τ for a standard PCB timing circuit falls outside the microsecond-to-second range, you likely have a unit conversion error.
Common Unit Mistakes That Ruin Your Math
The most frequent cause of RC timing failure on the bench is the 'micro' trap. Engineers correctly write the formula, but fail to convert prefixes to base SI units before calculating.
If you multiply 10 µF by 10 kΩ, the math is NOT 10 × 10,000 = 100,000 seconds.
The correct base-unit math is: (10 × 10-6 F) × (10 × 103 Ω) = 100 × 10-3 seconds = 0.1 seconds.
Always convert µF to Farads (×10-6), nF to Farads (×10-9), and kΩ to Ohms (×103) before plugging values into the natural log equations.
Decision Tree: Picking R and C for a Real-World Timing Circuit
Calculating the theoretical value is only half the job. Component tolerances, temperature coefficients, and dielectric materials dictate whether your circuit works on the bench and in the field. Use this decision matrix to select your physical components based on your timing requirements.
| Design Requirement | Capacitor Dielectric | Resistor Type | Expected Timing Error |
|---|---|---|---|
| Precision timing (< 2% error), high temp stability | C0G / NP0 Ceramic | 1% Metal Film (e.g., Vishay MRS25) | ±2% max over -40°C to 85°C |
| General purpose (1ms to 1s), cost-sensitive | X7R Ceramic | 5% Carbon or Metal Film | ±15% (X7R loses capacitance with applied DC bias) |
| Long delays (> 1 second), large capacitance needed | Aluminum Electrolytic | 1% Metal Film | ±25% (Electrolytics have -20%/+80% tolerances and high leakage) |
| High voltage (>50V) snubber or timing | Polypropylene Film | 1% Metal Oxide | ±5% (Excellent linearity, physically large) |
The Concrete Default Pick: If you are prototyping a standard microcontroller debounce, reset delay, or general-purpose logic timer in the 100µs to 500ms range, do not overthink the bill of materials. Terminate your design process with this exact combination: Use a Vishay MRS25 series 10kΩ 1% metal film resistor paired with a Murata GRM 100nF (0.1µF) X7R ceramic capacitor. This yields a highly predictable 1ms base time constant, costs under $0.05 in total, and avoids the DC bias derating issues that plague larger X7R capacitors, ensuring your calculated math matches your oscilloscope traces.






