Electronics

RC Filters

First-order RC low-pass and high-pass filter design — cutoff, roll-off, and time constant.

Formulas

Cutoff frequency f_c1 / (2π R C)
Time constant τR · C
Gain at f_c−3 dB (0.707 × input)
Roll-off−20 dB/decade (first order)
Phase shift at f_c±45°

Low-pass

  • R in series, C to ground; output across C.
  • Passes DC to f_c; attenuates above.
  • Use for anti-aliasing before ADC, smoothing PWM to get DC.

High-pass

  • C in series, R to ground; output across R.
  • Blocks DC, passes above f_c.
  • Use for AC coupling, removing DC offsets.

Common f_c values

RCf_c
1 kΩ1 µF159 Hz
10 kΩ100 nF159 Hz
10 kΩ10 nF1.59 kHz
100 kΩ10 nF159 Hz
1 kΩ10 pF15.9 MHz
50 Ω1 nF3.18 MHz

Worked example: a 1 kHz sensor filter

Take R = 1.6 kilohms and C = 100 nF. The cutoff is fc = 1 / (2π × 1,600 × 100×10-9) = 1 / 1.005×10-3 = 995 Hz. At 10 kHz, f / fc = 10.05, so the gain is 1 / √(1 + 10.05²) = 1 / 10.1 = 0.099, which is −20.1 dB, and the phase lag is arctan(10.05) = 84.3°. The time constant is 160 µs and the 10% to 90% rise time is 2.2τ = 352 µs (also 0.35 / fc).

A first-order filter cuts 10 kHz noise by only a factor of 10 here. To get a factor of 100 you need either a cutoff ten times lower (which slows the signal as well) or a second-order filter.

High-pass for AC coupling: a 1 µF coupling capacitor into a 10 kilohm input forms a high-pass at 1 / (2π × 10,000 × 10-6) = 15.9 Hz. A 20 Hz tone would still be attenuated by about 2.1 dB (gain 0.78).

Practical points

  • Watch loading. A low-pass with R = 1.6 kilohms feeding a 10 kilohm load has a DC gain of 10 / 11.6 = 0.86 (−1.3 dB), and its cutoff moves up slightly. Keep the load at least 10 times R, or buffer with an op-amp.
  • Cascaded RC stages interact. Make each stage 10 times higher in impedance than the one before it, or use an active (Sallen-Key) filter for a clean second-order response.
  • Source impedance adds to R. A sensor with 5 kilohms output impedance feeding an RC filter shifts the cutoff unless you include it.
  • Use C0G or film capacitors when the cutoff accuracy matters; X7R and similar ceramics lose capacitance under DC bias.

Notes

  • RC filters are lossy in the passband (slight attenuation from the R). For unity passband use LC or active filters.
  • Never rely on a single RC stage to anti-alias a fast ADC — cascade or use active filters with steeper roll-off.
Was this article helpful?