An RC low pass filter is a passive circuit consisting of a resistor and a capacitor that allows low-frequency signals to pass while attenuating frequencies above a specific cutoff point. In a real circuit, it changes a jagged, high-frequency noisy signal into a smooth, clean baseline—converting digital PWM into analog DC, stripping EMI from sensor lines, or preventing aliasing before an ADC. You will rarely build a complex mixed-signal board or microcontroller project without deploying at least one of these fundamental networks.
The Core Mechanism: How an RC Low Pass Filter Actually Works
The circuit relies on a frequency-dependent voltage divider. The resistor (R) remains constant, but the capacitor's impedance ($X_c$) changes inversely with frequency, governed by the formula $X_c = \frac{1}{2 \pi f C}$.
At DC (0 Hz), the capacitor's impedance is theoretically infinite. It acts as an open circuit, meaning the entire input voltage drops across the capacitor and appears at the output. As the signal frequency increases, the capacitor's impedance drops. At high frequencies, $X_c$ approaches zero, effectively shorting the high-frequency signal to ground before it can reach the output.
The critical metric is the -3dB cutoff frequency ($f_c$), the exact point where the output power is halved and the voltage drops to 70.7% of the input. You calculate it using:
$f_c = \frac{1}{2 \pi R C}$
Worked Example: Smoothing ESP32 PWM to a Clean DC Voltage
Let’s look at a highly common bench scenario. You are using an ESP32 DevKit v1 to output a 5 kHz PWM signal to simulate a 0-3.3V analog output for a motor controller's speed input. The motor controller doesn't want a 5 kHz square wave; it wants a smooth DC voltage.
The Goal: We need the cutoff frequency ($f_c$) to be well below the 5 kHz PWM frequency to heavily attenuate the ripple. Let's target a 50 Hz cutoff.
The Math: Capacitor values are available in fewer standard increments than resistors, so we pick the capacitor first. Let's choose a standard $C = 1 \mu F$ (1000 nF).
Now, solve for R:
$R = \frac{1}{2 \pi f_c C} = \frac{1}{2 \pi \times 50 \times 1 \times 10^{-6}} \approx 3183 \Omega$
The Concrete Pick: We select a standard 3.3 kΩ (3300 Ω) 1% metal film resistor.
Recalculating the actual cutoff with our real component:
$f_c = \frac{1}{2 \pi \times 3300 \times 1 \times 10^{-6}} \approx 48.2 \text{ Hz}$
What it changes in the real circuit: A first-order RC filter rolls off at -20dB per decade. The 5 kHz PWM signal is roughly two decades (100x) higher than our 48.2 Hz cutoff. Therefore, the 5 kHz ripple is attenuated by roughly -40dB (a factor of 100 in voltage). The 3.3V peak-to-peak PWM ripple is crushed down to about 33 mV of ripple on the DC line—perfectly clean for a motor control feedback loop.
Where You Meet RC Low Pass Filters in Practice
- PWM to DAC Conversion: Smoothing microcontroller PWM into analog control voltages, as demonstrated in the ESP32 example above.
- Sensor Signal Conditioning: Stripping high-frequency electromagnetic interference (EMI) from a thermocouple, RTD, or load cell amplifier output before it hits a sensitive ADC.
- Anti-Aliasing: Placed directly in front of an ADC input to ensure no frequencies above the Nyquist limit ($f_s / 2$) enter the sampler. Without this, high-frequency noise folds back into the digital domain as phantom low-frequency signals, a phenomenon thoroughly documented in Analog Devices' filter tutorials.
- Audio Crossovers and Tone Controls: Routing low frequencies to a woofer or shaping the bass response in guitar pedals, though active filters are often preferred for high-fidelity audio to avoid insertion loss.
Common Confusions: Roll-Off vs. Brick Wall and LC Alternatives
Confusion 1: The "Brick Wall" Myth. Beginners frequently assume the cutoff frequency ($f_c$) completely blocks everything above it. It does not. An RC filter is a gradual slope. If you need a sharp, "brick wall" cutoff, a single-pole RC filter will fail you. You must step up to an active filter (like a Sallen-Key op-amp topology) or cascade multiple poles.
Confusion 2: RC vs. LC Filters. Why not use an inductor and capacitor (LC) for a steeper, lossless filter? LC filters possess a resonant peak that can cause severe ringing, overshoot, and instability if the load impedance changes. RC filters are unconditionally stable, incredibly cheap, and do not ring. The rule of thumb: Use LC filters for high-current power supply rails where power loss matters; use RC filters for low-power signal conditioning where stability is paramount.
Confusion 3: Ignoring the Loading Effect. If you connect an RC filter directly to a low-impedance load, the load acts as a parallel resistor, shifting your cutoff frequency higher and attenuating your DC voltage.
Component Selection Decision Tree: Picking the Right R and C
Selecting the mathematically correct value is only half the battle. Real-world components have parasitics, tolerances, and temperature coefficients that will ruin a precision circuit if ignored. According to standard analog design practices outlined by All About Circuits, component material dictates filter performance.
| Application Scenario | Recommended Capacitor Type | Recommended Resistor Type | Concrete Part Example |
|---|---|---|---|
| Precision ADC Anti-Aliasing / Audio | C0G/NP0 Ceramic or Polypropylene Film (Zero voltage coefficient, low microphonics) | 1% Metal Film, low tempco (±50ppm/°C) | Vishay MRS25 series (R) + Kemet C315 C0G (C) |
| Microcontroller PWM Smoothing | X7R Ceramic (Acceptable voltage coefficient for non-precision DC) | 1% Metal Film (Standard tolerance) | Murata GRM series X7R (C) + Yageo MF (R) |
| High-Current Power Rail Filtering | Low-ESR Polymer Aluminum or High-Cap MLCC | Power rating > 2x calculated dissipation | Panasonic OS-CON (C) + Vishay PR02 (R) |
Why Dielectric Matters: Never use Y5V or Z5U capacitors for filtering; their capacitance can drop by 80% across temperature ranges. Furthermore, X7R capacitors exhibit a DC bias effect—a 1µF X7R capacitor might actually measure 0.7µF when 3.3V is applied across it, shifting your cutoff frequency unexpectedly. For precision analog front-ends, always pay the premium for C0G/NP0 dielectrics, which remain perfectly stable regardless of applied voltage or temperature.
Resistor Noise: Remember Johnson-Nyquist thermal noise. High-value resistors (e.g., 1MΩ) generate more inherent thermal noise. In low-noise sensor applications, keep your filter resistor below 10kΩ and scale the capacitor up accordingly to maintain your target cutoff frequency.
Frequently Asked Questions
Can I put two RC filters in series for a steeper -40dB/decade roll-off?
Yes, but they will interact. The second stage will load the first stage, ruining the Butterworth response and shifting the cutoff frequency. To cascade passive RC filters properly, you must either calculate the complex interacting transfer function, or simply place a unity-gain op-amp buffer between the two stages to isolate them.
Why is my RC filter output voltage lower than the input DC voltage?
You are violating the 10x loading rule mentioned above. Your load is drawing current through the resistor, creating a static voltage divider. Measure the input impedance of your load and either increase the load impedance, decrease the filter resistor (and increase the capacitor), or add an op-amp buffer.
What is the default recommendation if I'm unsure which components to buy?
For 90% of hobbyist and general microcontroller projects, default to a 1% tolerance metal film resistor (like the Vishay MRS25 series) and an X7R multilayer ceramic capacitor (like the Murata GRM series). They are cheap, widely available, and perfectly adequate for PWM smoothing and basic noise filtering.






