RC time constant: τ = RC
A capacitor charging through a resistor does not follow a straight line but an exponential curve. How fast that curve moves is set by one number, the time constant , in seconds when is in ohms and in farads.
That number sets the length of a power-on reset, how well a debounce circuit works, the rise time of an edge and the cutoff frequency of a low-pass filter.
The formula
Voltage across an initially uncharged capacitor after the switch connects it to a source V through R.
| Symbol | Quantity | Unit |
|---|---|---|
| Capacitor voltage at time t | volt (V) | |
| Source voltage (final value) | volt (V) | |
| Time since the switch closed | second (s) | |
| Time constant | second (s) | |
| Total resistance seen by the capacitor | ohm (Ω) | |
| Capacitance | farad (F) |
Where the formula comes from
Close the switch. Kirchhoff's voltage law says the source voltage splits between the resistor, , and the capacitor, . The current through the capacitor is , which gives a first-order differential equation:
Separate the variables and integrate with the initial condition , an uncharged capacitor. The product appears as the only time scale, and the solution is:
The current follows the same exponential on the way down: it starts at , because an uncharged capacitor first behaves like a short circuit, and falls toward zero as the capacitor voltage catches up with the source. One ohm times one farad is indeed one second.
What one τ and five τ mean
After a time equal to one time constant, the exponential equals and the voltage reaches of its final value, or 63.2 %. That is the practical meaning of τ: the time to cover 63.2 % of the way.
The next time constants give 86.5 % after 2 τ, 95.0 % after 3 τ, 98.2 % after 4 τ and 99.3 % after 5 τ. The curve never reaches V exactly, but after 5 τ the gap is under 1 %, and the capacitor is then treated as charged.
For discharge, remove the source and connect the capacitor, charged to , across the resistor. The same loop law, with no source, gives a falling exponential:
After one τ, of the starting voltage remains, or 36.8 %, and after 5 τ, less than 0.7 %. Charging and discharging are two readings of the same curve.
The RL circuit works the same way
An inductor in series with a resistor obeys the same first-order equation, with current in place of voltage. The current builds up toward along the same exponential, with a time constant in seconds when is in henries. The milestones are the same: 63.2 % after one τ, more than 99 % after 5 τ. A large inductance slows the circuit down and a large resistance speeds it up, the opposite of the RC circuit, where both parts slow the charge.
Rise time and cutoff frequency
The rise time of an edge is measured between 10 % and 90 % of the final value. Solving the charging formula for those two levels gives and , and their difference is:
Since is about 2.197, the rule to remember is . Seen in the frequency domain, the same RC network is a first-order low-pass filter, with a cutoff frequency of:
At that frequency the transmitted power drops by half, which is −3 dB, and the output amplitude is 70.7 % of the input. Combining the two relations gives : a first-order network with a 1 µs rise time has a bandwidth of about 350 kHz.
Common uses in electronics
Power-on reset: a resistor to the supply and a capacitor to ground hold the reset pin low until its voltage crosses the input threshold . Setting in the charging formula gives a reset time of . A diode across the resistor discharges the capacitor quickly when the supply goes off.
Debouncing: a mechanical contact bounces for a short while when it closes. An RC network whose time constant is longer than the bounce smooths those pulses. Because the resulting edge is slow, it is best read by a Schmitt-trigger input, which avoids multiple transitions around the threshold.
Filter on an ADC input or a PWM output: an RC low-pass with a cutoff well below the PWM frequency turns the square wave into a DC voltage proportional to the duty cycle. The larger τ is compared with the period, the smaller the residual ripple, but the longer the voltage takes to follow a change of setpoint, about 5 τ.
A 10 kΩ and 100 nF reset
The active-low reset pin of a microcontroller is tied to the supply through R = 10 kΩ and to ground through C = 100 nF. Assume the input leaves reset when its voltage reaches 70 % of the supply, and that the supply steps on instantly. How long does the reset last?
- Time constant in SI units: .
- Set in the charging formula and solve for time: .
- Put in the numbers: .
- The capacitor reaches 99.3 % of the supply after , and the same network filters noise above .
Result: The reset is held for about 1.2 ms after power-on, and the capacitor is practically charged after 5 ms.
Common mistakes
- Assuming the capacitor is charged after one time constant. After one τ it is only at 63.2 % of its final voltage; it takes about 5 τ to pass 99 %.
- Treating 5 τ as a universal rule. For a 12-bit ADC the error must fall below one quantization step, which takes time constants.
- Ignoring the other resistances in the circuit. The R in the formula is the total resistance seen by the capacitor, including the source output resistance and any load in parallel.
- Mixing up and . The first is an angular frequency in radians per second, the second a frequency in hertz: a factor of 6.28 apart.
- Getting the prefixes wrong. Kilohms times nanofarads give microseconds: 10 kΩ and 100 nF make 1 ms, not 1 s.
Our design house in Montpellier, France designs and validates electronic boards, from schematic to production.
Frequently asked questions
- Why 63.2 % after one time constant?
- Because the charging voltage is V times 1 minus the exponential of minus t over τ. At t equal to τ, the exponential is e to the minus 1, about 0.368, which leaves 1 minus 0.368, or 0.632 of the final voltage. The figure depends on neither R nor C, only on the exponential shape.
- How long does a capacitor take to charge fully?
- In theory it never charges completely, because the exponential never reaches zero. In practice the rule is 5 time constants, where the voltage reaches 99.3 % of its final value. If the required accuracy is tighter, for example when an ADC samples the voltage, count more time constants.
- How is rise time related to the time constant?
- For a first-order RC network, the 10 % to 90 % rise time is τ times the natural logarithm of 9, about 2.2 τ. A network of 10 kΩ and 100 nF, with τ equal to 1 ms, therefore has a rise time of about 2.2 ms.
- How does the time constant relate to the cutoff frequency?
- The −3 dB cutoff frequency of an RC low-pass filter is 1 divided by 2π times RC, which is 1 divided by 2π times τ. A 1 ms time constant therefore corresponds to a cutoff of about 159 Hz. The product of rise time and cutoff frequency is about 0.35.
- Does an RL time constant work the same way?
- Yes, with τ equal to L divided by R. The current in the inductor builds up along the same exponential as the voltage on a capacitor, with the same milestones: 63.2 % after one τ and more than 99 % after 5 τ. The difference is that a larger resistance shortens the time constant instead of lengthening it.
Sources
- OpenStax, University Physics Volume 2, 10.5 RC Circuits
- Electronics Tutorials, RC Charging Circuit
- Electronics Tutorials, Passive Low Pass Filter
- Eric Bogatin, Signal Integrity Journal, Back to Basics: Bandwidth and Rise Time
Formulas and values checked against these published references.