How an RC filter works
How the cut-off frequency is calculated
fc = 1 / (2π × R × C)
A resistor and a capacitor form the simplest filter. In a low-pass filter the signal goes through R and C sits to ground: slow signals pass, fast ones are shorted by the capacitor. Swap them (C in series, R to ground) and you get a high-pass filter that blocks DC and slow drifts.
At the cut-off frequency fc the output is down to 70.7% of the input (−3 dB) and shifted by 45°. Beyond it a first-order filter falls by 20 dB per decade: ten times past fc, only about a tenth of the signal remains.
The time constant τ = R × C describes the same filter in time: after a step, the low-pass output reaches 63% of its final value after 1 τ and about 99% after 5 τ.
Worked example: smoothing a sensor with 10 kΩ and 100 nF
You put a 10 kΩ resistor and a 100 nF capacitor in front of an analog input as a low-pass filter.
- Cut-off frequency
fc = 1 / (2π × 10 000 × 100 × 10⁻⁹) ≈ 159 Hz - Time constant
τ = 10 000 × 100 × 10⁻⁹ = 1 ms - Attenuation ten times higher (1.6 kHz)
20 × log₁₀(1 / √(1 + 10²)) ≈ −20 dB
The filter passes the slow sensor signal, cuts noise above about 159 Hz, and settles within about 5 ms after a change.
Common mistakes
Forgetting the 2π
1 / (R × C) gives the angular frequency in rad/s, about 6.3 times larger than fc in hertz.
Mixing up nF and µF
100 nF is 0.1 µF. A factor of 1 000 on C moves the cut-off by a factor of 1 000 too.
Ignoring the load
Whatever follows the filter sits in parallel with it. A load that is not much larger than R (ten times or more) shifts the cut-off and lowers the output, so buffer it if needed.
Expecting a sharp cut
A single RC stage only falls by 20 dB per decade. For steeper filtering, cascade stages (with a buffer between them) or use an active filter.
RC filter FAQ
fc = 1 / (2π × R × C), with R in ohms, C in farads and fc in hertz. For 1 kΩ and 1 µF: fc ≈ 159 Hz.
Same parts, different order. Low-pass: R in series, C to ground, keeps slow signals and removes noise. High-pass: C in series, R to ground, removes DC and slow drifts and keeps fast changes.
Choose one, usually R between 1 kΩ and 100 kΩ, then compute C = 1 / (2π × R × fc) and take the nearest standard value. For 1 kHz with 3.3 kΩ: C ≈ 48 nF, so 47 nF gives about 1.03 kHz.
The output voltage is 1/√2, about 70.7% of the input, so half the power. It is the conventional edge of the filter's passband.
Yes. The Uno's PWM runs at about 490 Hz; a filter at around 10 Hz to 50 Hz (for example 10 kΩ and 1 µF, fc ≈ 16 Hz) turns it into a fairly steady DC voltage, with some ripple left.








