What this calculator does
When you switch on a supply connected to a resistor and a capacitor, the capacitor does not charge instantly. The current through the resistor is largest at first, and shrinks as the capacitor voltage rises towards the supply. The voltage follows an exponential curve:
The time constant (the Greek letter tau) sets how fast this happens. For a resistor and capacitor it is ; for a resistor and inductor, where the current builds up the same way, it is . With R in ohms, C in farads and L in henries, comes out in seconds.
Some milestones are worth remembering:
| Time | Reached (charging) | Left (discharging) |
|---|---|---|
| 63.2 % | 36.8 % | |
| 86.5 % | 13.5 % | |
| 95.0 % | 5.0 % | |
| 99.3 % | 0.7 % |
Engineers usually say a circuit has "settled" after about . The calculator also turns any percentage into a time by rearranging the curve: to reach a fraction of the final value takes
Rise time and cutoff frequency
The rise time is the time to go from 10 % to 90 % of the final value. From the formula above, 90 % is reached at and 10 % at , so the difference is exactly , which is about .
The same circuit used as a filter (a resistor in series, the capacitor across the output) passes low frequencies and blocks high ones. Its cutoff frequency, where the output has fallen to of the input (−3 dB), is
Combining the two gives a useful rule: . A circuit with a 1 µs rise time has a bandwidth of roughly 350 kHz, and the other way round. The rule is exact only for a single RC or RL stage.
How to use solve-for
To design for a given cutoff frequency, keep the capacitor you have, click ⇄ Solve next to the resistance, choose Cutoff frequency (−3 dB) and type the frequency you want. You can solve the capacitance the same way, or, for an RL circuit, the inductance. Solving the target percentage for Time to reach the target % tells you how far the capacitor will have charged after a given time.
Worked example
A 10 kΩ resistor charges a 100 nF capacitor from a step input. These are the calculator's defaults.
- Time constant: s = 1 ms.
- Cutoff frequency: = 159.15 Hz.
- Rise time: = 2.1972 ms (the "2.2τ" rule gives 2.2 ms).
- Time to 90 %: ms = 2.3026 ms.
- Settled (5τ): 5 ms.
The angular cutoff frequency is 1000 rad/s.
For an RL example, choose RL, set 1 mH and 100 Ω: = 10 µs and = 15.915 kHz.
Accuracy and validity
The exponential curve is exact for an ideal resistor and an ideal capacitor or inductor, driven by an ideal voltage step. Real circuits differ in predictable ways:
| Effect | What happens |
|---|---|
| Source resistance | Adds to R and lengthens τ. Include it in R. |
| Capacitor tolerance | Electrolytic capacitors are often −20/+80 % or ±20 %, so τ is only approximate. Film and C0G ceramics are much closer. |
| Capacitor leakage | A leaky capacitor never reaches the full supply voltage; matters for timers with megohm resistors. |
| Inductor resistance | The winding resistance adds to R. |
| Load on the output | Anything connected across the capacitor changes both the time constant and the final value. |
Practical notes
- Debouncing a switch. An RC of 10 kΩ and 1 µF ( = 10 ms) smooths out contact bounce, which lasts a few milliseconds.
- Reset circuits. A microcontroller reset pin often uses an RC so the chip starts only after the supply is stable: several τ after power-up.
- Inductors and switches. Breaking the current in an inductor suddenly creates a large voltage spike (). Always give the current a path, such as a diode across a relay coil.
- Units. Megohms with microfarads give seconds; kilohms with microfarads give milliseconds; kilohms with nanofarads give microseconds.