The Cutoff Frequency Math and Component Selection
The most common and cost-effective way to build a passive low pass filter is using a single resistor and a single capacitor (an RC network). The point at which the filter begins to significantly attenuate the signal is called the cutoff frequency ($f_c$). The formula for a first-order RC low pass filter is:$f_c = \frac{1}{2 \pi R C}$
Let's walk through a worked numeric example. Suppose you are reading a 5 kHz PWM signal from an ESP32 GPIO pin and want to smooth it into a steady DC voltage to drive a 0-10V industrial analog input. You need a cutoff frequency well below 5 kHz to strip the switching ripple, but high enough to allow the DC level to update reasonably fast. A target cutoff of roughly 160 Hz is a solid starting point.
If we select a standard 10 kΩ resistor for $R$, we can solve for $C$:
- $C = \frac{1}{2 \pi \times 10,000 \times 160}$
- $C = \frac{1}{10,053,096}$
- $C \approx 0.0000000994$ Farads, or ~100 nF (0.1 µF).
Using a 10 kΩ resistor and a 100 nF capacitor yields a precise cutoff frequency of 159.15 Hz. Below is a reference table of standard RC combinations for common bench and jobsite applications.
| Target Cutoff ($f_c$) | Resistor ($R$) | Capacitor ($C$) | Primary Application |
|---|---|---|---|
| 15.9 Hz | 100 kΩ | 100 nF | Subsonic rumble filter / DC servo loop |
| 159 Hz | 10 kΩ | 100 nF | PWM to DC smoothing (5 kHz PWM base) |
| 1.59 kHz | 1 kΩ | 100 nF | Audio midrange isolation / Sensor noise |
| 15.9 kHz | 100 Ω | 100 nF | Ultrasonic noise suppression / ADC Anti-aliasing |
| 159 kHz | 10 Ω | 100 nF | RF interference snubbing on power rails |
What It Actually Changes (and the 'Brick Wall' Confusion)
The most common mistake beginners make when asking what a low pass filter does is assuming it acts as a 'brick wall.' A brick wall filter would pass 100% of the signal at 158 Hz and instantly drop to 0% at 160 Hz. Real passive filters do not work this way.
The cutoff frequency ($f_c$) is actually the -3dB point. At this exact frequency, the output voltage drops to 70.7% ($\frac{1}{\sqrt{2}}$) of the input voltage, and the power drops by exactly 50%. As you move to frequencies higher than $f_c$, the signal continues to roll off at a rate of -20 dB per decade (or -6 dB per octave) for a first-order filter.
For example, in our 159 Hz PWM filter, a 1.59 kHz noise spike (one decade higher) won't be completely eliminated; it will be attenuated by 20 dB (reduced to 10% of its original voltage amplitude). If your application requires absolute elimination of high-frequency noise, a single RC stage is insufficient. You must either cascade multiple filter stages or use an active filter topology.
Active vs. Passive Low Pass Filters
If you simply place a second RC filter directly after the first, the second stage will load down the first, altering the math and creating a sloppy, unpredictable roll-off. To fix this, you insert a unity-gain buffer op-amp (like the $0.50 TLC27M2 or a generic LM358) between the stages. This creates an active low pass filter. Active filters allow you to achieve steeper roll-offs (-40 dB/decade or more) and can even provide signal gain, though they require a power supply and introduce op-amp noise floors. For deep technical design on active topologies, the Analog Devices filter design guides remain the gold standard for calculating Sallen-Key and Multiple Feedback component values.
Where You Meet This in Practice
You are likely already using low pass filters in your projects and home wiring, even if you don't explicitly calculate the math every time.
1. Mains EMI/RFI Inlet Filters
Look at the back of a desktop PC power supply or a 3D printer. The IEC C14 power inlet often has an integrated EMI filter (like a $3 Schaffner FN2090 series). Inside that metal box is a combination of common-mode chokes (inductors) and Y-capacitors forming a low pass filter. It allows the 50/60 Hz mains power to pass into the device while shunting high-frequency switching noise (generated by the internal SMPS) back to the ground, preventing it from polluting your home's electrical grid.
2. ADC Anti-Aliasing
When feeding an analog sensor into a microcontroller's Analog-to-Digital Converter (ADC), you must use a low pass filter to enforce the Nyquist-Shannon sampling theorem. If your ESP32 samples a temperature sensor at 1,000 Hz, any noise above 500 Hz will 'fold back' and appear as false low-frequency data (aliasing). Placing a simple RC low pass filter with a cutoff of 200 Hz directly at the ADC pin physically destroys the high-frequency noise before the digital sampler can misinterpret it. For more on ADC interfacing, All About Circuits provides excellent foundational theory on signal conditioning.
3. Audio Crossovers
In a powered subwoofer, an active low pass filter (often adjustable via a potentiometer from 50 Hz to 150 Hz) ensures the amplifier only spends energy driving the heavy woofer cone with deep bass notes, protecting it from distortion caused by midrange and treble frequencies.
Common Low Pass Filter Questions
Can I just use an inductor instead of a resistor for a low pass filter?
Yes. An RL (Resistor-Inductor) or LC (Inductor-Capacitor) filter works on the same frequency-domain principles. In power supply design, LC filters are heavily preferred over RC filters because an ideal inductor does not drop DC voltage or dissipate heat like a resistor does. However, inductors are physically larger, more expensive, and can introduce magnetic interference if unshielded.
Why does my PWM-to-DC filter still have a slight ripple?
A first-order RC filter only attenuates the fundamental PWM frequency by a set amount. If your PWM is 5 kHz and your cutoff is 159 Hz, you still have residual ripple. To achieve a truly flat DC line, you must either drastically lower the cutoff frequency (which slows down how fast the DC voltage can change in response to new PWM duty cycles) or upgrade to a second-order active filter using an op-amp.
Does a low pass filter affect the phase of the signal?
Absolutely. At the cutoff frequency, a first-order RC low pass filter introduces a -45° phase shift. As the frequency increases toward infinity, the phase shift approaches -90°. In audio applications or control loops (like PID motor controllers), this phase delay can cause instability or 'smearing' of the soundstage, which is why phase-linear digital filters or carefully compensated active analog filters are used in high-end designs.






