A simple low pass filter is a passive circuit, typically built with a single resistor and capacitor (RC), that allows low-frequency signals to pass through to the output while attenuating frequencies above a designated cutoff threshold. In a real circuit, this component arrangement changes jagged, high-frequency noise into clean baselines, converts pulsed digital signals into steady analog DC voltages, and prevents high-frequency aliasing from corrupting microcontroller ADC readings.
The Core Math: Cutoff Frequency and Component Selection
The behavior of an RC low pass filter hinges on the capacitive reactance ($X_c$), which decreases as frequency increases. At low frequencies, the capacitor's reactance is high, forcing the signal to pass through to the output. At high frequencies, the reactance drops, effectively shorting the high-frequency noise to ground.
The critical metric is the cutoff frequency ($f_c$), also known as the -3dB point. At this exact frequency, the output voltage drops to 70.7% ($1/\sqrt{2}$) of the input voltage, and the signal power is halved. The formula to calculate this is:
$f_c = \frac{1}{2 \pi R C}$
Where $R$ is resistance in Ohms, $C$ is capacitance in Farads, and $f_c$ is in Hertz. Because real-world components come in standardized values (like the E12 or E24 resistor series and standard ceramic capacitor decades), you rarely hit your exact theoretical target. Below is a data-dense reference table of standard component pairings for common engineering applications.
| Target Cutoff ($f_c$) | Resistor (R) | Capacitor (C) | Actual $f_c$ | Primary Application |
|---|---|---|---|---|
| 20,000 Hz | 820 Ω | 10 nF | 19,413 Hz | Audio anti-aliasing (upper human hearing limit) |
| 3,000 Hz | 510 Ω | 100 nF | 3,120 Hz | Microphone voice-band limiting |
| 150 Hz | 10 kΩ | 100 nF | 159 Hz | ECG / Biomedical signal baseline extraction |
| 50 Hz | 33 kΩ | 100 nF | 48.2 Hz | Mains hum (60Hz/50Hz) rejection in sensors |
| 10 Hz | 160 kΩ | 100 nF | 9.9 Hz | Slow environmental sensor averaging (thermistors) |
Worked Example: Smoothing a 5kHz PWM Signal to Analog DC
Let us look at what this filter changes in a real installation. Suppose you are using an ESP32 microcontroller to drive a 0-5V analog actuator. The ESP32 does not have a true digital-to-analog converter (DAC) on all pins, so you use the LEDC peripheral to generate a 5kHz Pulse Width Modulation (PWM) square wave. If you feed this directly to the actuator, it will chatter and buzz. You need a simple low pass filter to smooth the 5kHz square wave into a clean DC voltage proportional to the duty cycle.
Step 1: Determine the target cutoff frequency.
A standard rule of thumb for PWM smoothing is to set the cutoff frequency to $1/10$ to $1/50$ of the PWM frequency. Let us aim for $1/20$ to balance ripple reduction with response time.
$f_c = 5000 \text{ Hz} / 20 = 250 \text{ Hz}$.
Step 2: Choose the capacitor and calculate the resistor.
We will use a standard 100 nF (0.1 µF) ceramic capacitor. Rearranging the formula to solve for R:
$R = \frac{1}{2 \pi f_c C}$
$R = \frac{1}{2 \pi \times 250 \times 100 \times 10^{-9}}$
$R = 6,366 \Omega$.
Step 3: Select the nearest standard component and verify.
The nearest standard E12 resistor is 6.8 kΩ. Let us recalculate the actual cutoff frequency:
$f_c = \frac{1}{2 \pi \times 6800 \times 100 \times 10^{-9}} = 234 \text{ Hz}$.
The Result: With a 6.8kΩ resistor in series and a 100nF capacitor to ground, your 5V PWM signal is transformed. At a 50% duty cycle, the output is no longer a square wave bouncing between 0V and 5V; it is a steady 2.5V DC line with a peak-to-peak ripple of just a few millivolts. The high-frequency switching noise is shunted to ground, leaving only the DC average.
To visualize this, think of the resistor as a narrow pipe and the capacitor as a water storage tank. A steady, slow flow of water (low frequency or DC) easily passes through the pipe and fills the tank, flowing out the other side. Rapid, choppy splashes of water (high-frequency PWM pulses) hit the narrow pipe and are absorbed by the tank's volume, resulting in a smooth, steady water level at the output.
Where You Meet This in Practice
Beyond PWM smoothing, simple low pass filters are foundational in several critical electronics domains:
- ADC Anti-Aliasing: According to the Nyquist-Shannon sampling theorem, any frequency above half your ADC sampling rate will 'fold back' and corrupt your digital data. If your microcontroller samples at 10 kHz, you must place a low pass filter with a cutoff around 4 kHz to 5 kHz at the ADC input to physically block ultrasonic noise. For deeper reading on sampling theory, refer to the Analog Devices Filter Wizard documentation.
- Audio Crossovers: In passive speaker crossovers, an inductor-capacitor (LC) or resistor-capacitor (RC) low pass filter routes bass frequencies to the woofer while blocking treble that could damage the driver.
- Power Supply Ripple Filtering: Placing a low pass filter after a voltage regulator suppresses high-frequency switching noise from DC-DC buck converters before it reaches sensitive analog sensors.
A passive RC filter has an output impedance roughly equal to the resistor value (R). If you connect this filter to a low-impedance load—like an 8-ohm speaker or a microcontroller ADC with a 10kΩ input impedance—the load forms a voltage divider with your filter resistor. This will severely attenuate your signal amplitude and shift your cutoff frequency higher. Fix: Always buffer the output of a high-value RC filter with a unity-gain op-amp (voltage follower) to provide a low-impedance drive.
Common Confusions and Troubleshooting
When debugging a filter that is not performing as expected, engineers usually fall victim to one of a few common conceptual mix-ups.
Low Pass vs. High Pass Component Placement
People frequently confuse the physical layout of low pass and high pass filters. In a low pass filter, the resistor is in series with the signal path, and the capacitor is in parallel (shunting to ground). In a high pass filter, the positions are swapped: the capacitor is in series (blocking DC), and the resistor is in parallel to ground. If your circuit is blocking DC and only letting high frequencies through, you have accidentally built a high pass filter.
Passive vs. Active Filters
A simple RC filter is passive, meaning it cannot amplify a signal; it can only attenuate. Furthermore, its roll-off is relatively gentle at -20 dB per decade (first-order). If you need a steeper 'brick wall' cutoff to aggressively eliminate noise just above your signal band, you must cascade multiple RC stages or use an active filter incorporating operational amplifiers (like the Sallen-Key topology). Texas Instruments provides excellent primers on stepping up to active designs in their Filter Design in 30 Seconds application note.
Frequently Asked Questions
Why is my filtered signal phase-shifted?
All reactive filters introduce phase shift. At the exact cutoff frequency ($f_c$), a simple low pass filter shifts the signal phase by -45 degrees. As frequencies increase well beyond $f_c$, the phase shift approaches -90 degrees. If you are filtering a clock signal or a time-critical feedback loop, this delay can cause system instability.
Can I use an inductor instead of a resistor?
Yes. An LC (inductor-capacitor) low pass filter is highly preferred in power supply applications. Unlike a resistor, an ideal inductor has zero DC resistance, meaning it does not dissipate power as heat or drop your DC voltage level, while still presenting high impedance to high-frequency AC noise.
My ceramic capacitor is microphonic and adding noise. Why?






