How do you calculate the cutoff frequency of an RC filter?
fc = 1 / (2πRC). With 10 kΩ and 100 nF that is about 159 Hz.
A series resistor and a capacitor to ground make the simplest filter there is. It passes DC and slow signals and attenuates fast ones, which is why one sits on so many sensor inputs, PWM outputs and noisy signal lines.
R1 and C1 form a voltage divider whose bottom half depends on frequency. A capacitor's reactance is XC = 1 / (2πfC): very large at low frequencies and small at high ones. At DC, C1 is an open circuit and Vout equals Vin.
As the frequency rises, C1's reactance falls and it shunts more of the signal to ground. The cutoff frequency, where the reactance equals R1, is fc = 1 / (2πRC) ≈ 159 Hz here. At that point the output is 1/√2 of the input, about −3 dB, and lags it by 45°.
Above the cutoff the output falls by 20 dB per decade: about a tenth of the input at 1.59 kHz and a hundredth at 15.9 kHz. One RC section is a first-order filter. For a steeper roll-off, use a second-order filter such as the Sallen-Key.
In the time domain the same parts give a time constant τ = RC = 1 ms. After a step at the input, the output reaches about 63 % of the step after 1 ms and over 99 % after 5 ms.
fc = 1 / (2π × R × C) = 1 / (2π × 10 kΩ × 100 nF) ≈ 159 Hzτ = R × C = 10 kΩ × 100 nF = 1 ms|Vout / Vin| = 1 / √(1 + (f / fc)²)At 1.59 kHz, ten times the cutoff, this is about 0.1, or −20 dB.
| Ref | Part | Value | What it does |
|---|---|---|---|
| C1 | Capacitor | 100 nF | 100 nF capacitor to ground. A C0G or X7R ceramic is fine. |
| R1 | Resistor | 10 kΩ | Series resistor. With C1 it sets the cutoff. |
Recovered from the drawing itself: every pin on each net below is joined by a wire, a junction or a shared supply or ground symbol.
| Net | Connects |
|---|---|
| Vin | R1.1 |
| Vout | R1.2, C1.1 |
| GND | C1.2 |
fc = 1 / (2πRC). With 10 kΩ and 100 nF that is about 159 Hz.
The same two parts in swapped positions. Low-pass: resistor in series, capacitor to ground. High-pass: capacitor in series, resistor to ground. The cutoff formula is the same.
At fc the output amplitude is 1/√2 ≈ 0.707 of the input, which is −3 dB; the output power has halved.
Yes. Put the cutoff well below the PWM frequency. The lower it is, the less ripple is left, at the cost of a slower response to changes.
Open this circuit in the AI circuit diagram maker and ask for a change in plain English, edit a value, switch to IEC symbols, or export it as SVG, PNG, PDF, a KiCad project or a SPICE netlist. Opening the example and exporting it are free.
A second-order, unity-gain active filter with a cutoff near 1.07 kHz.
A gain of −10 from a 1 kΩ input and a 10 kΩ feedback resistor.
Open the diagram in ProtoFlow, the free AI PCB design app for Windows, macOS and Linux: pick real parts, lay out and route the board, simulate with SPICE and export Gerbers. Imports and exports KiCad, Altium and EAGLE.
Free to start. No card required.