The time constant
The time constant, τ (tau), is simply R × C. With R in ohms and C in farads, τ comes out in seconds. When a capacitor charges through a resistor, it reaches 63.2 % of the final voltage after one τ, 86.5 % after two, 95 % after three, and is treated as fully charged after five, at 99.3 %. Discharging follows the same curve in reverse.
The voltage while charging from 0 V is V(t) = Vs (1 − e−t/τ). Rearranged, the time to reach a fraction x of the supply is t = −τ ln(1 − x), so 90 % takes 2.3 τ.
As a filter
A resistor followed by a capacitor to ground is a first-order low-pass filter. Its cut-off frequency is fc = 1 / (2πRC). At that frequency the output is 3 dB down, about 70.7 % of the input voltage, and lags it by 45°. Above it, the output falls by 20 dB for every tenfold increase in frequency. Swap the resistor and capacitor and you have a high-pass filter with the same cut-off.
Where it differs in real life
- Whatever the filter drives loads it. A low-impedance load in parallel with the capacitor lowers the output and shifts the cut-off, so buffer it with an op-amp if needed.
- The source's own resistance adds to R.
- Capacitor tolerance moves everything. Ceramic capacitors with X7R or Y5V dielectrics also lose capacitance with DC bias voltage.
Watch the charging curve and the frequency response move in the RC charging and RC filter simulators.