| Time | Duration | Charge % | Charge V | Discharge % | Discharge V |
|---|
RC Circuit — Charge and Discharge
The voltage across the capacitor follows an exponential curve. Charging: Vc(t) = Vs(1 − e−t/τ). Discharging: Vc(t) = Vs · e−t/τ. The time constant τ = RC sets the speed.
RC Time Constant Calculator
Enter resistance and capacitance to get the time constant τ = RC and the cutoff frequency f = 1/(2πτ). Add a supply voltage to see actual charge/discharge voltages at each milestone. Add a target voltage to find the exact time the capacitor crosses a specific threshold. The tool for timing circuits, filters, debounce networks, and 555 timer design.
Core Formulas
f = 1 / (2πτ) — cutoff frequency (−3 dB point)
Vcharge(t) = Vs × (1 − e−t/τ) — charging from 0 V
Vdischarge(t) = Vs × e−t/τ — discharging from Vs
tcharge = −τ × ln(1 − Vt/Vs) — time to charge to target Vt
tdischarge = −τ × ln(Vt/Vs) — time to discharge to target Vt
Charge/Discharge Milestone Table
The same percentages apply to every RC circuit regardless of component values — only the time scale changes.
| Time | Charge % | Charge V (5 V) | Discharge % | Discharge V (5 V) |
|---|---|---|---|---|
| 1τ | 63.2% | 3.16 V | 36.8% | 1.84 V |
| 2τ | 86.5% | 4.32 V | 13.5% | 0.68 V |
| 3τ | 95.0% | 4.75 V | 5.0% | 0.25 V |
| 4τ | 98.2% | 4.91 V | 1.8% | 0.09 V |
| 5τ | 99.3% | 4.97 V | 0.7% | 0.03 V |
At 5τ the capacitor is effectively fully charged (99.3%) or fully discharged (0.7%). Most designs treat 3τ (95%) as “done” and 5τ as the absolute guarantee.
Worked Example — 1 Second Timer (10 kΩ, 100 µF, 5 V)
Target: 3.3 V (logic HIGH threshold for a 3.3 V microcontroller reading a 5 V RC input).
f = 1 / (2π × 1.0) = 0.159 Hz
tcharge to 3.3 V = −1.0 × ln(1 − 3.3/5) = −1.0 × ln(0.34) = 1.08 s (1.08τ)
tdischarge to 3.3 V = −1.0 × ln(3.3/5) = −1.0 × ln(0.66) = 0.42 s (0.42τ)
The capacitor charges past 3.3 V in 1.08 seconds. Discharging from 5 V, it drops below 3.3 V in only 0.42 seconds. Charging is slower to cross a high threshold because the exponential curve flattens as it approaches Vs. For total charge and energy stored at 5 V, see the Capacitor Charge Calculator.
Worked Example — 555 Timer (47 kΩ, 10 µF, 5 V)
The 555’s internal comparators trigger at ⅓Vs (1.67 V) and ⅔Vs (3.33 V).
tcharge to 3.33 V = −0.47 × ln(1 − 3.33/5) = −0.47 × ln(0.334) = 0.516 s
tcharge to 1.67 V = −0.47 × ln(1 − 1.67/5) = −0.47 × ln(0.666) = 0.191 s
The capacitor charges from 0 V to the upper threshold (3.33 V) in 0.516 seconds. The time from the lower threshold to the upper threshold (the 555’s charge phase in astable mode) is 0.516 − 0.191 = 0.325 s. This is the basis for calculating 555 oscillator frequency: f = 1 / (tcharge + tdischarge).
Worked Example — Low-Pass Filter (10 kΩ, 1 nF)
f = 1 / (2π × 10×10−6) = 15.9 kHz
The same RC pair is simultaneously a 10 µs timing circuit and a 15.9 kHz low-pass filter. Below 15.9 kHz, signals pass through with less than 3 dB of attenuation. Above 15.9 kHz, the capacitor shunts signal to ground at −20 dB/decade. No voltage inputs needed for filter design — just R, C, τ, and f.
Worked Example — Switch Debounce (10 kΩ, 100 nF, 3.3 V)
f = 159 kHz
Target: 1.65 V (midpoint, Schmitt trigger threshold)
tcharge to 1.65 V = −0.001 × ln(1 − 1.65/3.3) = −0.001 × ln(0.5) = 0.693 ms
The capacitor crosses the midpoint in 0.693 ms. Mechanical switch bounce typically lasts 1–10 ms. A 1 ms time constant means the capacitor voltage changes slowly enough that short bounce transients cannot flip the logic state, but fast enough that a genuine press registers within a few milliseconds. Increase C to 1 µF (τ = 10 ms) for particularly noisy switches.
Time Constant and Cutoff Frequency — Two Views of the Same Circuit
τ = RC describes the circuit in the time domain — how fast things charge and discharge. f = 1/(2πτ) describes the same circuit in the frequency domain — what frequencies pass through and what frequencies are blocked. They are mathematically linked and always move together:
τ = 10 µs → f = 15.9 kHz
τ = 100 µs → f = 1.59 kHz
τ = 1 ms → f = 159 Hz
τ = 10 ms → f = 15.9 Hz
τ = 1 s → f = 0.159 Hz
Use whichever view suits your application. Timing circuits think in τ. Filter design thinks in f. The calculator shows both. The underlying V = IR relationship behind both is covered by our Ohm’s Law Calculator.
How to Choose R and C
Start with τ
Decide the time constant you need from the application requirements (delay time, filter frequency, debounce duration). Then pick R and C whose product equals τ. There are infinite R×C combinations for any given τ — the choice between them depends on other constraints.
Practical Constraints
R too low — high peak current (I = V/R) at t = 0. May exceed the source’s drive capability. Below ~100 Ω, the source impedance and wire resistance start affecting the actual τ.
R too high — the circuit becomes sensitive to leakage currents and noise pickup. Above ~10 MΩ, stray capacitance on the PCB and input bias currents of connected ICs can distort the timing.
C too small — parasitic capacitance (a few pF on a typical PCB) becomes a significant fraction of C, making the actual τ larger than calculated. Keep C at least 10× the estimated parasitic capacitance.
C too large — physical size, cost, and leakage current increase. Electrolytic capacitors above ~1000 µF have significant leakage that affects long timing intervals.
For most timing and debounce circuits, R in the 1 kΩ to 100 kΩ range and C in the 1 nF to 100 µF range gives reliable, predictable results.
Frequently Asked Questions
Last updated: March 2026