Your Equation

Library / Electrical / ELE-17

Electrical

RC circuit response

Capacitor voltage at any time after a switch is thrown.

Ref
ELE-17
Rev
v1
Field
Electrical
Result
vC [V]

Vf the final voltage the capacitor heads towards, Vi the initial voltage, Rth the resistance the capacitor sees after the switching and C the capacitance. The time constant τ = Rth C.

After a switch, a capacitor’s voltage moves smoothly from where it started towards where the circuit wants it, covering about 63% of the gap in one time constant.

Calculator

Solve for
V
V
150
V
03
kΩ
1100
µF
11,000
ms
11,000
  • Time constant τ = RC100 ms
  • Fraction of the step completed63.21 %

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Capacitor voltage (V) current value 3.161 V
VfFinal voltageKey driver
0.63231.6
CCapacitance
0.04985
tTime since switching
0.04985
RResistance
0.4765
ViInitial voltage
4.26
  • After 1τ the capacitor has covered 63.2% of the step, after 3τ 95%, and after 5τ over 99%.
  • The same equation describes charging (Vi below Vf) and discharging (Vf = 0).
  • A low-pass filter or debounce circuit is just an RC response watched at its output.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (V)Local stepChange in result
Vf Final voltage1 to 50 V0.632131.6130.97+10%+10 %
C Capacitance1 to 1,000 µF0.0497554.95+10%−5.54 %
t Time since switching1 to 1,000 ms0.0497554.95+10%+5.54 %
R Resistance1 to 100 kΩ0.475854.524+10%−5.54 %
Vi Initial voltage0 to 3 V3.1614.2641.104+10%0 %

Sweep of Time since switching

Time since switching (ms)Capacitor voltage (V)
10.04975
2.3710.1172
5.6230.2734
13.340.6242
31.621.356
74.992.638
177.84.155
421.74.926
1,0005

Sweep one variable

Capacitor voltage (V)Hover, touch, or use the arrow keys on the chart
012345 1520100500 Time since switching (ms), log scale now 3.161

Variables and how each one contributes

vC

Capacitor voltage

Result · V

What the equation gives you. Everything else feeds it.

Vf

Final voltage

V · typical 1 to 50

Voltage the capacitor settles at after a long time. Raises the answer in proportion to the share of the step completed.

Vi

Initial voltage

V · typical 0 to 3

Capacitor voltage at the instant of switching. Its influence fades as e^(−t/τ).

R

Resistance

kΩ · typical 1 to 100

Resistance seen by the capacitor after switching. Larger R slows the response.

C

Capacitance

µF · typical 1 to 1,000

Capacitor value. Larger C slows the response.

t

Time since switching

ms · typical 1 to 1,000

Elapsed time. Moves the voltage towards Vf.

Worked example with the values above

  1. Time constant: τ = RC = 10 kΩ × 10 µF = 100 ms.
  2. Decay factor: e−t/τ = e−1 = 0.3679.
  3. vC = 5 + (0 − 5) × 0.3679 = 3.161 V.

Assumptions and limits

  • One switching event, constant sources afterwards.
  • Ideal linear capacitor and resistor.
  • Rth is the Thévenin resistance seen by the capacitor.

Common mistakes

  • Using the supply resistor instead of the Thévenin resistance.
  • Mixing ms with s or kΩ·µF units.
  • Forgetting the initial charge.

Statistics and uncertainty

R and C are typically ±1–20% parts, so τ can be off by ±20% or more. Error in the voltage depends on where you are on the curve: the response is most sensitive to τ at around t = τ.

Where it is used

  • Timing, filtering and debounce circuits.
  • Charge time for firing circuits and flashes.
  • Sensor settling time.

Maths you need

  • Exponentials: e^(−x) decays to zero
  • Time constant: τ = RC

Related formulas

Practise this formula