RC Filter Calculator
Design a first-order RC low-pass or high-pass filter. Get the cutoff frequency from R and C, or the R or C for a cutoff you need, then the gain and phase shift at any frequency, with the time shift and a Bode plot.
How to Use
- Pick Low-pass, High-pass or Phase shift.
- Choose what to solve for: the cutoff from R and C, or the R or C that gives a cutoff you need.
- Enter the values; choose a unit beside each box or type a suffix such as 10k, 10nF or 1kHz.
- Enter a signal frequency to see the gain and phase there; the Phase shift mode also gives how far the output sine is shifted in time.
- Read the Bode plot and Show Work for each step.
Worked Example
Low-pass. R = 10 kΩ, C = 10 nF. τ = 100 µs and fc = 1 ÷ (2π × 100 µs) = 1.592 kHz. At 10 kHz, f / fc = 6.283, so |H| = 1 ÷ √(1 + 6.283²) = 0.1572 = −16.07 dB and the phase is −arctan(6.283) = −80.96°.
Phase shift. The same parts at 1 kHz: f / fc = 0.6283. The low-pass lags by arctan(0.6283) = 32.14°, which is 32.14 ÷ 360 × 1 ms = 89.3 µs of delay, and is down 1.45 dB. Swap R and C to make a high-pass and it leads by 90° − 32.14° = 57.86° at −5.48 dB.
The common mistake: leaving out 2π. Taking fc = 1 ÷ RC gives 1 ÷ 100 µs = 10 kHz, 6.28 times too high. 1 ÷ RC is the corner in radians per second (ω = 10,000 rad/s); in hertz it is 1 ÷ (2πRC) = 1.592 kHz.
Show Work
Formulas
Background: A Frequency-Dependent Divider
A capacitor’s impedance, 1 / (j2πfC), falls as frequency rises. Put it with a resistor and you get a voltage divider whose ratio depends on frequency. With the capacitor across the output (low-pass), low frequencies pass and high ones are shorted to ground; with the capacitor in series (high-pass), DC is blocked and high frequencies pass. The two meet at fc = 1 / (2πRC), where the resistor and the capacitor’s reactance are equal, the output is 1/√2 of the input, and the phase is 45°.
Because the impedance is imaginary, the output is shifted in phase as well as reduced: up to 90° of lag for the low-pass and up to 90° of lead for the high-pass. That phase shift is the raw material of RC oscillators: Max Wien’s 1891 bridge became, in William Hewlett’s 1939 Stanford thesis, the audio oscillator that was Hewlett-Packard’s first product, and Hendrik Bode’s 1945 Network Analysis and Feedback Amplifier Design set out how gain and phase together decide whether a feedback loop is stable, the reason the gain-and-phase chart is still called a Bode plot.
The single RC pole is the filter Microchip’s AN699 puts in front of a data converter, the coupling capacitor at the input of an audio amplifier, and the smoothing that turns PWM into a DC level. Its 20 dB per decade is gentle, so where a converter needs more rejection AN699 moves on to multi-pole active filters.
About This Calculator
This page designs a first-order RC filter. It gives the cutoff from R and C or solves for the resistor or capacitor that produces a cutoff, then the gain (as a ratio and in dB) and the phase at any signal frequency, and draws the circuit and a Bode plot of gain and phase. The Phase shift mode gives the lag or lead of either network at one frequency, the gain there, the time shift of the sine and the group delay.
The results assume an ideal capacitor, a source with no resistance of its own (or one you have added to R) and an output that drives nothing. Everything runs in your browser; nothing you type is sent anywhere.
Related calculators: RC Time Constant Calculator, RL Filter, and LC Resonance Calculator.
Frequently Asked Questions
How do I calculate an RC filter’s cutoff frequency?
fc = 1 / (2π × R × C). 10 kΩ and 10 nF give 1 / (2π × 10,000 × 0.00000001) = 1.592 kHz. Microchip’s AN699 gives the reverse example: a 1 kHz low-pass with a 0.1 µF capacitor needs R = 1 / (2π × 1,000 × 0.0000001) = 1.59 kΩ.
What happens at the cutoff frequency?
The output is 1/√2 = 70.7 % of the input, −3.01 dB, so it carries half the power. The phase shift is exactly 45°: the low-pass output lags the input and the high-pass output leads it.
How fast does a first-order RC filter roll off?
20 dB per decade, 6 dB per octave, once you are well past the cutoff. The 10 kΩ, 10 nF low-pass (1.592 kHz) is −1.45 dB at 1 kHz, −16.07 dB at 10 kHz and about −36 dB at 100 kHz. For a steeper slope you need more poles, an active filter or an LC network.
What is the phase shift of an RC circuit?
Low-pass: φ = −arctan(f / fc), going from 0° at low frequency through −45° at fc toward −90°. High-pass: φ = 90° − arctan(f / fc), from +90° down to 0°. 10 kΩ and 10 nF at 1 kHz give −32.14° (low-pass), which delays the sine by 89.3 µs, or +57.86° (high-pass).
Does the load change an RC filter?
Yes. The formulas assume nothing draws current from the output. A load resistance appears in parallel with the capacitor (low-pass) or the resistor (high-pass) and moves the cutoff and the gain. Keep the load at least ten times R, or buffer the output with an op-amp follower.
How do I use the RC Filter Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
ADC anti-alias filter
4 kΩ and 100 nF put the cutoff at 397.9 Hz; at 500 Hz, half of a 1 kHz sample rate, the signal is down 4.11 dB. Microchip AN699 explains why one pole is rarely enough.
Audio coupling capacitor
A 10 µF capacitor into 800 Ω is a high-pass at 19.89 Hz: −2.99 dB at 20 Hz and only −0.17 dB at 100 Hz. For 20 Hz into 10 kΩ, C = 0.796 µF.
PWM to DC
10 kΩ and 1 µF (15.92 Hz) knock a 20 kHz PWM ripple down by 62 dB, about 1,260 times.
Phase in oscillators and feedback
A 10 kΩ, 10 nF low-pass lags 32.14° at 1 kHz and 80.96° at 10 kHz; RC phase is what phase-shift oscillators and loop compensation are built from.
Smoothing a sensor
Microchip’s 1 kHz example: 1.59 kΩ and 0.1 µF give −14.15 dB at 5 kHz while passing slow sensor changes almost untouched.
Last updated: