A low pass filter is a circuit that allows signals with frequencies below a specific cutoff threshold to pass through while attenuating higher frequencies. In a real circuit, this changes a jagged, noisy, or pulsed waveform into a smooth, stable signal—converting digital pulses into analog DC voltages or stripping high-frequency RF interference off a sensitive sensor line. The most common mistake makers and junior engineers make is confusing the cutoff frequency ($f_c$) with a 'brick wall' that completely blocks everything above it. In reality, the cutoff frequency is merely the -3dB point, where the signal's voltage amplitude drops to 70.7% (and power drops to 50%). The attenuation continues gradually above this point, governed by the filter's order and roll-off rate.

The Core Math and a Worked Numeric Example

The simplest and most ubiquitous low pass filter is the passive first-order RC (Resistor-Capacitor) network. The resistor is placed in series with the signal path, and the capacitor is placed in parallel to ground. The formula for the -3dB cutoff frequency is:

$f_c = \frac{1}{2 \pi R C}$

Bench Example: Smoothing an ESP32 PWM Signal
You are using an ESP32 DevKit v1 to generate a 5 kHz PWM signal on GPIO 2, but you need a clean analog DC voltage (0-3.3V) to drive a control pin on a bench power supply. You need a low pass filter to smooth the 5 kHz square wave into DC.

1. Define the target cutoff: A good rule of thumb for PWM smoothing is to set the cutoff frequency at least one decade (10x) below the PWM frequency. Target $f_c$ = 500 Hz.
2. Pick a standard capacitor: We select a 100 nF (0.1 µF) ceramic capacitor, which is cheap, physically small, and readily available.
3. Calculate the resistor: Rearranging the formula to solve for R:
$R = \frac{1}{2 \pi \times 500 \text{ Hz} \times 100 \times 10^{-9} \text{ F}} \approx 3183 \, \Omega$
4. Select the nearest standard value: The closest E24 series resistor is 3.3 kΩ.
5. Verify the actual cutoff: Plugging 3.3 kΩ and 100 nF back in yields an actual $f_c$ of 482 Hz.

At 5 kHz (the PWM frequency), this first-order filter provides an attenuation of roughly -20 dB per decade. The 3.3V square wave will be smoothed into a highly stable DC voltage with less than 20 mV of ripple, perfectly safe for the power supply's analog input.

Where You Meet Low Pass Filters in Practice

You will encounter low pass filter design across nearly every sub-discipline of electrical and electronic engineering. Here is where they do the heavy lifting on the bench and in the field:

  • Microcontroller DACs: As shown in the ESP32 example above, converting Pulse Width Modulation (PWM) into a true analog voltage for motor control, LED dimming, or programmable power supplies.
  • Sensor Signal Conditioning: Load cells (via HX711 amplifiers) and thermocouples are highly susceptible to 50/60 Hz mains hum and high-frequency RF noise. A carefully tuned RC or active filter removes this noise before it aliases into the ADC's sampling window.
  • Audio Crossovers: In multi-way speaker systems, passive inductors and capacitors (or active op-amp circuits) route low-frequency bass signals to the subwoofer while blocking mid and high frequencies that would distort the driver.
  • Power Rail EMI Filtering: A ferrite bead (which acts as a frequency-dependent resistor) paired with a bypass capacitor forms a low pass filter that prevents high-frequency switching noise from a buck converter from propagating back to the main DC bus.

Component Selection and Real-World Parasitics

Theoretical math assumes ideal components. Real-world low pass filter design requires accounting for parasitics, dielectric absorption, and loading effects. If you just grab any capacitor from your parts bin, your filter's performance will drift with temperature, applied voltage, and mechanical vibration.

Passive RC vs. Active Op-Amp Low Pass Filters
Criteria Passive RC Filter Active Filter (e.g., Sallen-Key)
Gain Always < 1 (insertion loss) Can be unity (1) or amplified
Loading Effect High output impedance; load alters $f_c$ Low output impedance; isolated from load
Roll-off (1st order) -20 dB/decade -40 dB/decade or steeper (2nd order+)
Power Requirement None (passive) Requires DC power rails for op-amp
Best Use Case PWM smoothing, basic decoupling Precision audio, anti-aliasing for ADCs

The Capacitor Dielectric Trap: For precision analog filtering, avoid X7R or Y5V ceramic capacitors. These Class II dielectrics exhibit severe DC bias effects (a 10 µF X7R cap might drop to 2 µF at its rated voltage) and are piezoelectric, meaning they generate voltage when subjected to mechanical vibration (microphonics). For precision low pass filter design, always specify C0G/NP0 dielectrics, or use film capacitors (like WIMA MKS series) for larger values. See the All About Circuits guide on passive filters for deeper impedance analysis.

The Loading Effect: A passive RC filter has an output impedance roughly equal to the resistor value at low frequencies. If you connect a 10 kΩ load to our 3.3 kΩ PWM filter, the load forms a voltage divider, dropping your maximum output voltage and shifting your cutoff frequency higher. If your load impedance is less than 10x the filter resistor value, you must buffer the output with a unity-gain op-amp (like the TI OPA333 or a basic LM358) to isolate the filter from the load.

Frequently Asked Questions

How do I calculate the resistor and capacitor for a specific low pass filter design?

Start with your target cutoff frequency ($f_c$). Choose a standard capacitor value (like 10 nF, 100 nF, or 1 µF) based on physical size and cost constraints. Then, use the rearranged formula $R = 1 / (2 \pi f_c C)$ to find the required resistance. Round to the nearest standard E24 or E96 resistor value, and recalculate the exact $f_c$ to ensure it still meets your system requirements. Online tools like the Analog Devices Filter Wizard can automate this for higher-order active filters.

Why is my low pass filter output voltage dropping under load?

This is the 'loading effect.' A passive RC filter is not an ideal voltage source; it has a series output impedance equal to the resistor. When current flows into your load, a voltage drop occurs across the resistor ($V = IR$). To fix this, either increase the resistor value and proportionally decrease the capacitor value to maintain the same $f_c$, or add an op-amp voltage follower (buffer) to the output of the filter to provide high current drive without altering the filter's cutoff point.

What is the difference between a 1st-order and 2nd-order low pass filter design?

The 'order' refers to the number of reactive components (capacitors/inductors) and dictates how aggressively the filter blocks unwanted frequencies. A 1st-order filter (one capacitor) rolls off at -20 dB per decade. A 2nd-order filter (two capacitors, often in a Sallen-Key active topology) rolls off at -40 dB per decade. If you need to block a 10 kHz noise signal but pass a 1 kHz audio signal, a 1st-order filter might let too much noise bleed through; a 2nd-order or 4th-order (Butterworth/Bessel) filter will provide a much sharper transition band.

Can I use a standard low pass filter to smooth 120V AC mains noise?

Yes, but you cannot use standard low-voltage bench components. Filtering mains AC requires specialized EMI/RFI filters using X2 and Y2 safety-rated capacitors and common-mode chokes. X-caps are placed line-to-neutral, and Y-caps are placed line-to-ground. If a standard ceramic capacitor fails short on a 120V/230V line, it will cause a fire or trip the breaker. Safety capacitors are designed to fail open. Always defer to pre-built, UL/CE-certified IEC inlet filters (like Schurter or TE Connectivity Corcom series) for mains voltage filtering rather than rolling your own, as local electrical codes strictly govern mains-connected components.