RC time constant calculator
Enter a resistor and a capacitor to find how quickly the capacitor charges or empties through it. The calculator gives the time constant, a step-by-step table of the charge at each multiple of it, the time to reach half way and the corner frequency of the same pair used as a filter. Add the supply voltage to see the capacitor voltage at each step.
Example: τ = 1 s
10 kΩ × 100 µF = 1 s. Charging, the capacitor passes half way at 693.147 ms and is within 1% of the supply after about 5 s.
| Time | Charged | Left when discharging | Capacitor voltage |
|---|---|---|---|
| 1τ = 1 s | 63.2% | 36.8% | 3.161 V |
| 2τ = 2 s | 86.5% | 13.5% | 4.323 V |
| 3τ = 3 s | 95% | 5% | 4.751 V |
| 4τ = 4 s | 98.2% | 1.8% | 4.908 V |
| 5τ = 5 s | 99.3% | 0.7% | 4.966 V |
| Time constant τ | 1 s |
|---|---|
| Half way (0.693 τ) | 693.147 ms |
| Within 1% (5 τ) | 5 s |
| Low-pass corner frequency | 0.159 Hz |
Worked from the formula shown for low-voltage DC circuits. Part values vary within their tolerance, so confirm with a multimeter and the parts' datasheets before you rely on a figure.
Capacitors are far less exact than resistors: ceramic and electrolytic parts are often ±10% to ±20%, and their value shifts with temperature and applied voltage. Treat the times as a centre figure, not an exact one.
The formula, with a worked example
- Time constant: τ = R × C, in seconds when R is in ohms and C in farads. One microfarad is 0.000001 F, one nanofarad 0.000000001 F.
- Charging from 0 V: Vc = Vs × (1 − e^(−t/τ)). Discharging from a full charge: Vc = V0 × e^(−t/τ).
- Worked example: 10 kΩ with 100 µF gives τ = 10,000 × 0.0001 = 1 s. On a 5 V supply the capacitor reaches 3.161 V after 1 s, 4.323 V after 2 s and 4.966 V after 5 s.
- At each multiple of τ a charging capacitor has reached 63.2%, 86.5%, 95%, 98.2% and 99.3% of the supply; a discharging one has 36.8%, 13.5%, 5%, 1.8% and 0.7% left.
- Half way: t = τ × ln 2, about 0.693 τ, so the 1 s pair passes 2.5 V at 0.693 s.
- As a filter: fc = 1 ÷ (2π × R × C). 1 kΩ with 1 µF has τ = 1 ms and a corner at 159.2 Hz; 4.7 kΩ with 10 nF has τ = 47 µs and a corner at about 3.39 kHz.
What the time constant tells you
A capacitor fed through a resistor does not jump to the supply voltage. It rises quickly at first, while the gap is large and plenty of current flows, then ever more slowly as the gap closes. The time constant, written τ and spoken as tau, is the single number that sets the pace of that curve.
After one time constant the capacitor has covered about 63% of the way. Each further time constant covers 63% of what is left, so the gap shrinks to 37%, then 14%, then 5%. In practice a capacitor is treated as fully charged after five time constants, when it sits within one percent of the supply.
Charging and discharging
The curves mirror each other. Charging, the voltage climbs toward the supply; discharging through the same resistor, it falls toward zero at exactly the same pace. The table above shows both: the share reached while charging and the share left while discharging, at each whole multiple of τ.
The resistor sets the current, and the current falls along the same curve. At the very start the capacitor acts like a short, so the full supply sits across the resistor and the current is the supply divided by R. That first moment is when the resistor works hardest, which matters with large capacitors and small resistors.
Delays, debouncing and resets
An RC pair is the simplest timer. Feed a logic input from a capacitor charging through a resistor and the input changes state some time after power arrives; the time depends on the input threshold, often around half the supply, which is the 0.693 τ figure on this page.
Switch debouncing uses the same idea. A mechanical contact bounces for a few milliseconds, and a pair with τ of 5 to 20 ms smooths those pulses into one clean edge. Power-on reset circuits hold a chip in reset until the supply has settled, again by timing a capacitor through a resistor.
RC filters and the cutoff frequency
The same pair passes slow signals and holds back fast ones. Wired as a low-pass filter, with the resistor in line and the capacitor to ground, it lets through frequencies well below the corner and weakens those well above it. At the corner itself the output is about 70.7% of the input, the 3 dB point.
Swap the parts round and it becomes a high-pass filter with the same corner. The corner is 1 ÷ (2πRC), so a longer time constant means a lower corner. A first-order filter falls away gently, so a signal ten times above the corner is cut to about a tenth, not removed entirely.
Why real timings differ
Capacitors are much less precise than resistors. Electrolytic parts are often marked ±20% and lose value as they age or get cold; ceramic parts can lose a large share of their value at higher voltages. A timing circuit built from them may run fast or slow by that much, so tune it on the bench if the timing matters.
The source and the load matter too. A supply with its own resistance adds to R, and a meter or logic input across the capacitor drains a little current that slows the final approach. Electrolytic capacitors also leak, which can stop a large timing pair from ever reaching the full supply.
Time constants for common pairs
| Resistor | With 100 nF | With 1 µF | With 10 µF | With 100 µF |
|---|---|---|---|---|
| 1 kΩ | 100 µs | 1 ms | 10 ms | 100 ms |
| 10 kΩ | 1 ms | 10 ms | 100 ms | 1 s |
| 100 kΩ | 10 ms | 100 ms | 1 s | 10 s |
| 1 MΩ | 100 ms | 1 s | 10 s | 100 s |
τ = R × C. Multiply by five for the time to get within 1% of the supply.
Frequently asked questions
What is the time constant of 10k and 100 µF?
One second. 10,000 Ω × 0.0001 F = 1 s.
How long does a capacitor take to fully charge?
About five time constants, when it is within 1% of the supply. For 10 kΩ and 100 µF that is about five seconds.
Why 63%?
After one time constant the gap to the supply has shrunk to e^(−1), about 36.8% of where it started, so 63.2% of the way has been covered.
What is the cutoff frequency of an RC filter?
fc = 1 ÷ (2π × R × C). For 1 kΩ and 1 µF it is about 159 Hz.
Does the supply voltage change the time constant?
No. τ depends only on R and C. The supply only sets the voltage the curve heads toward.
How do I make a delay longer?
Raise either the resistor or the capacitor. Doubling either one doubles the time constant.
Working with through-hole parts instead of chips? Read their stripes with the Resistor color code calculator.
Other calculators on this site
-
Resistor color code calculator
Read 4, 5 and 6-band resistors: value, tolerance and the range a meter should show.
-
Voltage divider calculator
Output voltage, current and power of a two-resistor divider, with the R2 for a target voltage.
-
LED resistor calculator
The series resistor for one LED or a string, rounded to a stock value, with its power rating.
-
Parallel and series resistor calculator
Total resistance of two to six resistors in parallel and in series, with each one's current and power.
-
Ohm's law calculator
Enter any two of voltage, current, resistance and power to get the other two.
-
Resistor voltage drop calculator
The voltage across a resistor from the current, or from the supply and the rest of the circuit.
-
SMD resistor code calculator
Decode 3-digit, 4-digit, R and EIA-96 codes on surface-mount resistors.