Works on this device
RC & RL Time Constant Calculator
The time constant says how fast a capacitor charges through a resistor, or how fast the current in a coil builds up. Enter the resistance and the capacitance or inductance to get the time constant, the voltage or current at any time, and a curve of the change.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to calculate. For the plain question, choose RC time constant (τ = R × C).
- Enter the resistance and the capacitance and pick their units, for example kΩ and µF.
- Choose Calculate. The result shows the time constant, the time for an almost full charge (5 time constants) and a table of 1 to 5 time constants.
- For the voltage at a certain time, choose Capacitor charging or Capacitor discharging and enter the time. The result has a table and a chart of the curve.
- To go the other way, choose Time for a capacitor to reach a voltage or Resistor or capacitor for a wanted time.
The formulas
- RC time constant: τ = R × C, with R in ohms and C in farads. τ is in seconds.
- RL time constant: τ = L ÷ R, with L in henries.
- Charging: V(t) = Vs + (V0 − Vs) × e^(−t ÷ τ). From empty: V(t) = Vs × (1 − e^(−t ÷ τ)).
- Discharging: V(t) = V0 × e^(−t ÷ τ).
- Time to reach a voltage: t = τ × ln((Vs − V0) ÷ (Vs − V)) when charging, and t = τ × ln(V0 ÷ V) when discharging.
- Inductor current: I(t) = (V ÷ R) × (1 − e^(−t ÷ τ)) when rising, and I(t) = I0 × e^(−t ÷ τ) when falling.
- Cut-off frequency of the same parts as a filter: f = 1 ÷ (2π × R × C), or f = R ÷ (2π × L).
- e is the base of natural logarithms, about 2.71828. Vs is the supply voltage, V0 the voltage at the start.
What the time constant means
After one time constant, 63.2% of the change is done and 36.8% is left. Each further time constant takes away 63.2% of what was left. After 5 time constants 99.3% is done, and for most uses the change is over.
| Time | Done | Left |
|---|---|---|
| 1 τ | 63.2% | 36.8% |
| 2 τ | 86.5% | 13.5% |
| 3 τ | 95.0% | 5.0% |
| 4 τ | 98.2% | 1.8% |
| 5 τ | 99.3% | 0.7% |
Worked examples
RC. A 10 kΩ resistor and a 100 µF capacitor: τ = 10,000 × 0.0001 = 1 s. The capacitor is almost full after 5 s. As a filter, the two parts have a cut-off frequency of 1 ÷ (2π × 1) = 0.159 Hz.
Charging. The empty capacitor is connected to 12 V through the resistor. After 1 s its voltage is 12 × (1 − e^(−1)) = 7.585 V, and the current has fallen from 1.2 mA to 0.441 mA. It reaches 8 V after 1 × ln(12 ÷ 4) = 1.099 s.
Discharging. The same capacitor, charged to 12 V, empties through the resistor. After 1 s it is at 12 × e^(−1) = 4.415 V.
Resistor for a wanted time. A 100 µF capacitor must fall from 12 V to 8 V in 1 s. τ = 1 ÷ ln(12 ÷ 8) = 2.466 s, so R = 2.466 ÷ 0.0001 = 24.66 kΩ. The E24 values around it are 24 kΩ and 27 kΩ.
RL. A coil of 100 mH with 10 Ω in the loop: τ = 0.1 ÷ 10 = 10 ms. On 12 V the current ends at 1.2 A, and 10 ms after switching on it is 1.2 × 0.632 = 0.7585 A.
Limits you should know
- The parts are ideal and the supply steps to its voltage at once. A real capacitor leaks and has a tolerance of 10% or 20% or more, so real times differ by that much.
- By the formula a capacitor never reaches the supply voltage and never reaches 0 V. The tool refuses a target that is exactly the final voltage; use a value a little short of it.
- A resistor that discharges a capacitor must stand the full voltage and the power at the start. The tool shows that power; the voltage rating comes from the data sheet of the resistor.
- The inductor option does not cover a coil whose current path is opened. That makes a very high voltage.
- In a circuit with both an inductor and a capacitor the voltage can swing back and forth before it settles. That needs other formulas.
- This is arithmetic for learning and for low-voltage electronics. It is not professional advice. A capacitor can hold a dangerous voltage long after the power is off: measure it before you touch a circuit, and leave work on mains voltage or large capacitors to a qualified person.