Back to Tools

RC Filter Calculator

Cutoff frequency of RC and RL low-pass and high-pass filters, LC resonance and second-order LC low-pass filters, with a live Bode plot. Or start from the frequency and get standard part values.

Filter

Filter circuitVinR 1 kΩC100 nFVout

Bode plot

1.592 kHzgain −3.0 dBphase −45.0°

Gain and phase against frequencyMagnitude (dB)100−10−20−30−40−50−60Phase (degrees)0°−45°−90°10 Hz100 Hz1 kHz10 kHz100 kHz1 MHz
  • −3 dB at 1.592 kHz

Move over the plot (or drag a finger along it) to read any frequency.

Result

Cutoff frequency (fc)
1.592 kHz

fc = 1 / (2π × R × C) = 1 / (2π × 1 kΩ × 100 nF) = 1.592 kHz

τ = R × C = 1 kΩ × 100 nF = 100 µs

Time constant (Ï„)
100 µs
Rise time, 10–90% (2.2τ)
220 µs
Angular frequency (ω = 2πfc)
10 krad/s
Roll-off
20 dB per decade

RC filter cutoff frequency

An RC low-pass filter is a resistor in series and a capacitor to ground. At low frequencies the capacitor is close to an open circuit and the signal passes. At high frequencies it is close to a short and the signal is shunted away. Swap the two parts and you get a high-pass filter. The cutoff frequency is where the two regimes meet:

fc = 1 / (2π × R × C)  ·  RL filter: fc = R / (2π × L)

At fc the output is 1/√2 = 70.7% of the input amplitude, which is half the power, or −3 dB. The phase is shifted by 45°: lagging for a low-pass, leading for a high-pass. Example: 1 kΩ and 100 nF give 1 / (2π × 1000 × 0.0000001) = 1591.5 Hz.

The cutoff is not a wall. A 1.6 kHz low-pass still lets a 3.2 kHz signal through at 45% of its amplitude. If you need a frequency gone, check it with the "Check a frequency" field above rather than assuming anything past fc disappears.

The RC time constant formula

τ = R × C  ·  fc = 1 / (2π × τ)

The same two parts set how fast the filter responds to a step. τ (tau) is the time to reach 63.2% of a step, and after 5τ the output is within 1% of it. 10 kΩ and 1 µF give τ = 10 ms: such a filter takes about 50 ms to settle, and its cutoff is 15.9 Hz. For RL filters the time constant is τ = L / R. The capacitor calculator draws the charging curve and works out the time to any voltage.

Roll-off: 20 dB per decade per order

Well past the cutoff, a first-order filter (one R and one C, or one R and one L) loses 20 dB for every tenfold step in frequency, which is 6 dB per octave. At 10 × fc the output is a tenth of the input; at 100 × fc it is a hundredth. That is the straight downward slope on the Bode plot.

A second-order filter, such as the LC low-pass, falls 40 dB per decade. Two RC stages in a row also get steeper, but the second stage loads the first, so the corner moves and softens. Make the second resistor at least ten times the first, or put a buffer between them.

LC resonant frequency and Q

f₀ = 1 / (2π × √(L × C))  ·  Q = R × √(C / L)

At the resonant frequency the inductor's reactance (2πfL) equals the capacitor's (1 / 2πfC), and they cancel. 10 µH and 100 nF resonate at 159 kHz. That is the frequency an LC tank rings at and the frequency an LC oscillator or an RF matching network is tuned to.

In an LC low-pass with a load R across the capacitor, Q says how the response behaves around f₀. At Q = 0.707 (a Butterworth filter) the passband is as flat as it gets and the −3 dB point falls on f₀. Lower Q droops early; higher Q peaks above 0 dB and rings on transients. A switching regulator's output filter with a light load can have a Q of 5 or more, which is why its datasheet asks for a minimum capacitor ESR or a damping network. The inductor's own resistance and the source impedance add damping this calculator leaves out.

Where RC filters go on a board

Anti-aliasing before an ADC

An ADC sampling at 1 kHz can't tell a 900 Hz signal from a 100 Hz one. A low-pass in front removes what it can't sample. 10 kΩ and 100 nF put fc at 159 Hz and cut 500 Hz (half the sample rate) to −10.4 dB.

The capacitor also feeds the ADC's sample-and-hold, so keep it close to the pin.

PWM to an analog voltage

Filter a 5 kHz PWM pin with 10 kΩ and 1 µF (fc = 15.9 Hz) and you get a DC voltage of duty × 3.3 V. The leftover ripple is about V × D × (1 − D) / (f × R × C): 16.5 mV peak to peak at 50% duty.

A bigger RC means less ripple but a slower response (Ï„ = 10 ms here). A faster PWM lets you have both.

Debouncing a button

Switch contacts bounce for a few milliseconds. 10 kΩ and 470 nF give τ = 4.7 ms, slow enough to smooth the bounce and fast enough that a press still feels instant.

Feed it into a Schmitt-trigger input, or the slow edge can toggle the pin more than once.

Questions people ask

How do I calculate the cutoff of a low-pass filter?
For an RC filter, fc = 1 / (2π × R × C) with R in ohms and C in farads. For an RL filter, fc = R / (2π × L). High-pass versions of both have the same cutoff; only the order of the parts changes.
How do I pick R and C for a frequency?
Choose the one you're more constrained on (often R, so the source can drive it, 1 kΩ to 100 kΩ is typical), then C = 1 / (2π × fc × R). Switch the calculator to "I need a frequency" and it rounds the result to a standard E-series value and shows the cutoff you actually get.
Does the load change the cutoff?
Yes. A load resistance RL across the output of an RC low-pass makes it behave like a filter with R replaced by R ∥ RL: the cutoff rises and the passband gain drops to RL / (R + RL). The source's output resistance adds to R. Keep the load at least ten times R and the effect is small.
Why is the cutoff at −3 dB?
At fc the resistor and the capacitor have equal impedance, so the output amplitude is 1/√2 of the input. Power goes with the square of amplitude, so half the power gets through: 10 × log10(0.5) = −3.01 dB.
How do I calculate resonant frequency?
f₀ = 1 / (2π × √(L × C)). With 1 µH and 220 pF, f₀ = 1 / (2π × √(0.000001 × 0.00000000022)) = 10.7 MHz, the classic FM intermediate frequency. Pick "LC resonance" above and it also plots both reactances crossing at f₀.

The formulas are the standard first- and second-order filter results, as in Horowitz and Hill, The Art of Electronics (3rd edition), chapter 1.7. The plot shows the ideal filter driven from a zero-ohm source.

Related tools and guides

Describe a circuit. Get a board you can order.

GrandpaCAD's chat picks real parts, draws the schematic, routes the PCB and checks it against JLCPCB's rules. You get Gerbers, BOM, pick-and-place, a KiCad project and a 3D board, plus a printed case if you want one.

"ESP32 board with a PWM output filtered to a 0–3.3 V analog signal"

3 free generations, no card required