Calculators

RC filter calculator (low-pass)

An RC low-pass filter's cutoff frequency is fc = 1 ÷ (2π × R × C). At fc the output is 70.7% of the input (−3 dB); above it the output falls by half (−6 dB) for every doubling of frequency.

fc = 1 ÷ (2π × R × C)Vout ÷ Vin = 1 ÷ √(1 + (f ÷ fc)²)phase = −arctan(f ÷ fc)
Cutoff frequency (−3 dB)1.59 kHz
Output at 5 kHz30.3% of the input
In decibels-10.4 dB
Phase shift-72.3°
The circuit, running liveOpen in the playground →

A 5 V sine wave at your frequency goes in on the left; the voltmeter across the capacitor is the output, peaking at the share worked out above. It needs a few cycles to settle.

Worked example

R = 1 kΩ and C = 100 nF: fc = 1 ÷ (2π × 1,000 × 0.0000001) = 1,592 Hz. A 5 kHz signal comes out at 1 ÷ √(1 + (5,000 ÷ 1,592)²) = 30.3%, which is −10.4 dB, 72° behind. In the simulator a 5 V sine wave comes out swinging ±1.52 V, as worked out.

Questions

How do I make a high-pass filter?

Swap the resistor and capacitor: the capacitor in series, the resistor to ground. The cutoff frequency formula is the same; it passes frequencies above fc instead of below.

Which resistor and capacitor should I pick?

Choose a capacitor value you have, then R = 1 ÷ (2π × fc × C). Keep R between about 1 kΩ and 100 kΩ: too low loads the source, too high and the next stage loads the filter.

How do I filter more steeply?

Two RC stages in a row fall at −12 dB per doubling, but the second stage loads the first, so make its resistor about 10 times bigger. For sharp filters use an active filter with an op-amp.

Can I smooth a PWM signal with this?

Yes: set fc well below the PWM frequency, say a tenth, and the output is close to the average voltage, with a little ripple.

More calculators

Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.