Skip to main content
DD-CAT IDE logoDD-CAT IDE

Article · Tech Insights

Online RC Filter Calculator: Cutoff Frequency, Time Constant, and Frequency Response in One Step

Favorite

An online RC filter calculator I used for ADC front-end filtering: enter resistance, capacitance, and the frequency of interest to get the -3dB cutoff frequency, time constant, and attenuation at any frequency, plus low-pass/high-pass circuit diagrams and Bode plots. Notes from several real use sessions.

ShareWeiboXLinkedIn

Key points

DD-CAT's online RC filter calculator accepts resistance (kΩ), capacitance (nF), and an observation frequency (Hz), and instantly returns the -3dB cutoff frequency fc=1/(2πRC), the time constant τ=RC, and gain in dB/ratio at any frequency, along with linked low-pass/high-pass circuit diagrams and a Bode plot. For example, with R=1kΩ and C=100nF, fc≈1.59kHz, τ=100µs, gain at 1kHz is about -1.4dB, and at 10kHz it is about -16dB. Parameters are synced into the URL for easy sharing. It is useful for ADC anti-aliasing, PWM-to-analog smoothing, AC coupling, slow start, and key debouncing.

Recently I was building an ADC front-end filter for a data acquisition board. The formula fc = 1/(2πRC) had to be worked out on a calculator every time, and knowing only fc was not enough—I also needed to know exactly how much attenuation occurs at a specific frequency and whether the filter would slow down the response. Later I used an online RC filter calculator: fill in three parameters and the results come out. I'm writing down the usage and a few real measurements as notes for future reference.

Tool URL: https://www.dd-cat.cn/tools/rc-filter

Three Inputs, Just the Outputs You Need

The inputs are three numbers: resistance R (unit: kΩ), capacitance C (unit: nF), and observation frequency f (unit: Hz; enter 0 to calculate only the cutoff frequency and skip attenuation).

The outputs are:

  • -3dB cutoff frequency fc: applies to both low-pass and high-pass; at this point gain drops about 3dB and phase lags about 45°;
  • Time constant τ = RC: the time for the capacitor to charge to 63.2% under a step input; 5τ is essentially considered settled;
  • Gain at any frequency: shows both dB and amplitude ratio, with the note 'first-order, -20dB/decade';
  • Circuit diagram and Bode plot: low-pass (R in series, C to ground) and high-pass (C in series, R to ground) diagrams update with the parameters; the Bode plot marks the fc red line and the observation frequency.

Change one number and the result updates immediately. The current parameters are synced into the URL, so when you share the link with a colleague they see exactly the same values—no screenshots needed to compare parameters.

One Real Use: ADC Anti-Aliasing

The default parameters are the common R = 1kΩ, C = 100nF, f = 1kHz:

  • fc ≈ 1.59 kHz;
  • τ = 100 µs;
  • At 1 kHz it is about -1.4 dB, essentially no loss in the passband.

This is exactly the most common combination for ADC front ends. According to the sampling theorem, interference above half the sample rate (fs/2) folds into the band and digital filtering cannot recover it, so you must use an analog low-pass filter to suppress high frequencies before the ADC. For example, with 100 kHz sampling, placing fc at a few kHz gives almost no passband attenuation while still providing out-of-band rejection.

Change f to 10 kHz and recalculate: f/fc ≈ 6.3, gain is about -16 dB (amplitude ×0.157). After one octave beyond fc, a first-order network drops another 20 dB per decade, which clearly suppresses out-of-band spikes.

Three Other Scenarios I've Used

PWM to Analog

MCUs without a true DAC often use PWM plus a low-pass filter to approximate a DC level. With 10 kHz PWM, R = 1kΩ, C = 100nF, fc ≈ 1.59 kHz, and the 10 kHz fundamental is about -16 dB. To reduce ripple further, lower fc or move to a second-order filter, but accept slower settling: τ = 100 µs means 5τ = 0.5 ms to settle to 99.3%. These two are two sides of the same coin.

High-Pass AC Coupling

Put C in series and R to ground and it becomes a high-pass filter, used to block DC. For audio inputs, C = 1µF and R = 10kΩ are common, giving fc ≈ 15.9 Hz and τ = 10 ms. Above 20 Hz there is essentially no loss, and DC is completely blocked. The diagram automatically switches to the high-pass connection, helping avoid reversing the low-pass/high-pass configuration.

Slow Start and Debouncing

Reset stretching, power-on slow start, and key debouncing are all essentially RC charge/discharge timing. With R = 10kΩ and C = 1µF, τ = 10 ms and 5τ = 50 ms; compare the τ from the tool directly to judge whether the response is fast enough.

Quick Reference for Common Combinations

RCfcτWhat I often use it for
1 kΩ100 nF≈ 1.59 kHz100 µsADC anti-aliasing, PWM smoothing
4.7 kΩ100 nF≈ 339 Hz470 µsSlow-signal conditioning
10 kΩ100 nF≈ 159 Hz1 msLow-frequency noise removal
10 kΩ1 µF≈ 15.9 Hz10 msAC coupling, DC blocking
100 Ω10 nF≈ 159 kHz1 µsHigh-speed signal bandwidth limiting

A Few Notes

  • Know the low-pass / high-pass configuration: low-pass has R in series, C to ground, output taken across C; high-pass has C in series, R to ground, output taken across R. Both use the same fc = 1/(2πRC) formula; only the output point differs.
  • First-order means -20dB/decade: for a steeper transition band, cascade into second order or higher.
  • τ determines settling speed: 1τ reaches 63.2%, 3τ reaches 95%, 5τ reaches 99.3%. Deeper filtering means slower response.
  • Capacitor selection: prefer NP0/C0G (small capacitance, temperature-stable) or X7R (moderate capacitance); avoid Y5V-type parts with obvious temperature drift and piezoelectric effects. Don't make the resistance too large, or it may divide voltage with the next stage's input impedance and cause errors.

How to Read the Bode Plot

For the low-pass plot: the magnitude trace is flat near 0dB at low frequencies, then after fc (red line) it falls at -20dB/decade, and at fc it is exactly -3dB. The phase trace is -45° at fc, approaching 0° at low frequencies and -90° at high frequencies (high-pass is the mirror image). The f you enter is marked as the observation frequency on the magnitude curve, so you can see at a glance how much attenuation occurs at that frequency.

One conclusion: the formula is simple, but the 'next' steps—how much attenuation at a given frequency, how slow the response—are all calculated for you. The link is now in my bookmarks, ready to use together with the voltage divider and LC resonance tools.

Get new articles by email

Enter your email — we notify you about new articles and releases (unsubscribe anytime).

Related reading

Tech Insights

MOS 管参数速查:水闸讲清工作区、损耗、小信号、SOA 与选型折中(附数据手册读法)

MOS 管的数据手册动辄二十页,真正决定设计成败的只有十几行和几条曲线。这篇用「城堡水闸」把阈值电压、过驱动、R_DS(on)、跨导、Qg、米勒平台串成一条线,再单独讲清两件最容易含糊的事:饱和区的小信号模型(gm、ro、Cgs、Cgd 到底怎么来)和安全工作区 SOA(为什么功率没超却会炸)。配七张手绘图(含选型四象限图)、一个 30 V/5 mΩ 的损耗与结温迭代算例、两颗管的 FOM 与损耗对比,最后是数据手册的三看三不看——包括「标称 60 A 实际只能用 20 A」。

Tech Insights

童话版基尔霍夫定律:两条铁律,一篇讲清 KCL、KVL 和方向里的负号

KCL 和 KVL 是电路分析的地基,但真正让人翻车的从来不是公式,而是参考方向、电源升降和「什么时候不能直接用」。我用一个森林引水渠的童话把两条铁律讲清:分水桩进出相等(KCL)、绕渠一圈水位回到原处(KVL),再配一个 12 V/6 V 三支路实例手算到 1.6 A、−1.2 A、−0.4 A,并用功率守恒验算,最后是 4 条最容易踩的注意事项(含变压器磁芯回路为什么不能乱用 KVL)。

Tech Insights

童话版诺顿定理:泉眼、暗渠、两个公式,外加 6 条注意事项

诺顿定理其实是戴维南的「并联兄弟」,但很多人只会背不会用,还容易把电流源方向标反、真去短接量短路电流。我用同一个黑箱城堡的第二个童话把三件事串起来:短接出口量流量得 I_N、熄灯量内阻得 R_N、整座城堡折叠成一个恒定泉眼并联一条暗渠;再补上电流分流公式、12 V 分压器的数值试炼、与戴维南的互换,以及 6 条实战注意事项。