RC Filter and Anti-Aliasing Calculator
One resistor and one capacitor do three jobs at an ADC input: limit the bandwidth, hold charge for the sampler, and settle in time. Enter them to see all three.
Two or more poles assume each RC is buffered. Two RCs in a row without a buffer load each other and give a softer corner.
How it works
An RC passes frequencies below fc = 1/(2πRC) and rolls off at 20 dB per decade above it. After sampling, any frequency f is indistinguishable from |f − k·fs|, so energy above fs/2 folds into the band and no later filter can remove it. At the ADC pin the same capacitor feeds the sampling capacitor's charge, and the RC must settle to half an LSB within the acquisition time.
- fc = 1 / (2π·R·C), τ = R·C
- |H(f)| = 1 / √(1 + (f/fc)²) per pole
- Alias: f mod fs, folded into 0 to fs/2
- Settling to ½ LSB after a full-scale step: (N + 1)·ln 2 · τ
- Charge-sharing step = 2^N · Cs / (C + Cs) LSB
Worked example
A single pole at 1.2 kHz passes a 1 kHz fundamental at −2.3 dB and its 3 kHz harmonic at 37%. At fs = 44.1 kHz a 25 kHz tone lands at 19.1 kHz. A 100 Ω, 1 nF RC settles to ½ LSB at 16 bits in 1.18 µs.
Assumptions
- Ideal R and C; the source impedance adds to R.
- The ADC input is modelled as one switched capacitor; check the datasheet's input model and kickback.
- Settling assumes a full-scale step; a multiplexer changing channel can be the worst case.
Sources
- Sampling and aliasing: any signals-and-systems text; ADC input drive: the data-conversion handbooks of the major analog vendors.
Tool v1.0 · 21 Nov 2026 · formulas checked by automated tests against independent Python values.
The interview questions behind this tool
DC-01: Square wave into RC filters · DC-02: Anti-aliasing filter · AN-09: Op-amp driving an ADC oscillates · EM-08: Direction from a rotary knob