The RC low-pass filter (LPF) is the most common analog signal conditioning circuit on the bench. Whether you are smoothing an ESP32 PWM output into a pseudo-DAC, killing high-frequency EMI on an I2C line, or rolling off treble in an audio crossover, the math governing the -3dB cutoff point is identical. The foundational LPF formula for the cutoff frequency is fc = 1 / (2πRC). This article breaks down the formula, tracks the units through real-world solved problems, and provides a concrete decision path for selecting your physical components.
The Core LPF Formula and Symbol Definitions
The cutoff frequency (fc) is the exact point where the output signal power drops to half (-3dB) of the input power, and the voltage amplitude drops to 70.7% (1/√2) of the input. For a standard first-order passive RC low-pass filter, the relationship is defined by:
fc = 1 / (2 × π × R × C)
Every variable in this equation must be expressed in its base SI unit before calculating. Plugging in prefixed units (like microfarads or kilohms) without conversion is the primary reason hobbyists get math errors on the bench.
| Symbol | Parameter | Base SI Unit | Unit Abbreviation | Typical Bench Range |
|---|---|---|---|---|
| fc | Cutoff Frequency (-3dB point) | Hertz | Hz | 10 Hz to 100 MHz |
| R | Resistance | Ohms | Ω | 10 Ω to 1 MΩ |
| C | Capacitance | Farads | F | 10 pF to 100 μF |
| π | Pi (Mathematical Constant) | Dimensionless | ~3.14159 | N/A |
Rearranged Forms for Component Selection
On the bench, you rarely know both R and C and need to find fc. Usually, you have a target cutoff frequency and one known component value (often a standard resistor), and you need to calculate the missing part. Here are the algebraically rearranged forms of the LPF formula:
- To solve for Resistance (R):
R = 1 / (2 × π × fc × C) - To solve for Capacitance (C):
C = 1 / (2 × π × fc × R)
The math will give you an exact, continuous number (e.g., 14,231.5 Ω or 11.24 nF). Physical components only exist in discrete standard values. Always calculate your ideal value, then round to the nearest E12 or E24 series standard component value, and recalculate your actual fc based on the physical parts you can actually buy.
Worked Examples with Strict Unit Tracking
Let’s run through two common bench scenarios, paying strict attention to the intermediate steps and unit conversions.
Problem 1: Finding fc for an I2C Snubber Filter
Scenario: You are debugging a noisy I2C bus. You place a 330 Ω resistor in series with the SDA line and add a 220 pF ceramic capacitor to ground to form an LPF. What is the new cutoff frequency?
Given:
- R = 330 Ω (Already in base SI unit)
- C = 220 pF = 220 × 10-12 F (Converted from picofarads to Farads)
Calculation:
- fc = 1 / (2 × π × 330 × 220 × 10-12)
- fc = 1 / (2 × 3.14159 × 330 × 0.00000000022)
- fc = 1 / (4.561 × 10-7)
- fc ≈ 2,192,501 Hz (or ~2.19 MHz)
Result: The filter will pass I2C standard-mode (100 kHz) and fast-mode (400 kHz) signals cleanly, while heavily attenuating high-frequency RF interference above 2.19 MHz.
Problem 2: Finding C for an ESP32 PWM DAC Smoothing Filter
Scenario: You are using the ESP32 LEDC peripheral to generate a 5 kHz PWM signal that you want to smooth into a DC analog voltage. You want a cutoff frequency of 500 Hz (one decade below the PWM frequency for good ripple rejection). You have a 10 kΩ resistor on hand. What capacitor do you need?
Given:
- fc = 500 Hz (Already in base SI unit)
- R = 10 kΩ = 10,000 Ω (Converted from kilohms to Ohms)
Calculation (using the rearranged formula for C):
- C = 1 / (2 × π × fc × R)
- C = 1 / (2 × 3.14159 × 500 × 10,000)
- C = 1 / (31,415,900)
- C ≈ 3.183 × 10-8 F
- Convert to practical units: 31.83 × 10-9 F = 31.83 nF
Result: The exact math demands 31.83 nF. The nearest standard E24 capacitor value is 33 nF. If you use a 33 nF capacitor, your actual cutoff frequency shifts slightly to ~482 Hz, which is perfectly acceptable for PWM smoothing.
Unit Mistakes and Realistic Magnitudes
The most common reason the LPF formula yields wildly wrong results is failing to convert prefixed units to base SI units. If your calculator outputs an fc in the gigahertz range for an audio filter, or in the millihertz range for an RF filter, you dropped a multiplier.
| Prefix | Symbol | Multiplier | Common Trap |
|---|---|---|---|
| Mega | M | × 106 | Confusing MΩ with mΩ (milli) |
| Kilo | k | × 103 | Typing 10 instead of 10000 for 10kΩ |
| Micro | μ | × 10-6 | Entering 10 instead of 0.00001 for 10μF |
| Nano | n | × 10-9 | Confusing nF with μF (a 1000x error) |
| Pico | p | × 10-12 | Forgetting the 10-12 entirely |
Realistic Answer Magnitudes:
To sanity-check your math, compare your result to the physical domain you are working in. Audio crossover networks operate between 20 Hz and 20 kHz. Microcontroller PWM smoothing usually targets 100 Hz to 2 kHz. EMI suppression on digital buses (like SPI or I2C) targets 1 MHz to 50 MHz. If your audio LPF math spits out 4.5 MHz, you forgot to convert your 1 μF capacitor into Farads.
Decision Path: Picking Your R and C Values
Because the LPF formula has two unknowns (R and C) for any given fc, you must pick one arbitrarily to solve for the other. Use this decision tree to select your starting component based on your specific application constraints.
| Application | Constraint / Priority | First Pick (Fixed) | Calculated Component | Required Dielectric / Type |
|---|---|---|---|---|
| Audio Signal Path | Low noise, no microphonics, high impedance to avoid loading previous stage. | R = 10 kΩ to 47 kΩ | C (usually 1 nF to 100 nF) | Film (WIMA) or C0G/NP0 Ceramic. Never use X7R/Y5V for audio. |
| MCU PWM DAC | Fast settling time, low output impedance to drive ADC or op-amp. | R = 1 kΩ to 4.7 kΩ | C (usually 10 nF to 1 μF) | X7R Ceramic is acceptable; C0G is ideal for linearity. |
| Digital Bus EMI (I2C/SPI) | Must not distort fast square-wave edges; low series resistance. | R = 33 Ω to 100 Ω | C (usually 22 pF to 220 pF) | C0G/NP0 Ceramic mandatory for tight tolerance and low ESL. |
| Power Supply Ripple | Must handle high DC current without voltage drop. | R = (Use an Inductor L instead) | C (usually 10 μF to 100 μF) | Low-ESR Aluminum Electrolytic or Tantalum. |
If you just need a generic, safe low-pass filter to clean up a noisy microcontroller GPIO input or a slow analog sensor reading (like a thermistor), stop calculating and use R = 100 Ω and C = 100 nF (0.1 μF). This yields an fc of roughly 15.9 kHz. It passes slow sensor data perfectly, presents a negligible voltage drop, and the 100 nF capacitor is the most common, cheapest part in your inventory.
Assumptions, Limits, and When the Math Fails
The formula fc = 1 / (2πRC) assumes an ideal, isolated circuit. In the physical world, three parasitic factors will break the math if you ignore them.
- Source and Load Impedance Loading: The formula assumes the signal source has zero output impedance and the load has infinite input impedance. If your source has a 1 kΩ output impedance and you use a 1 kΩ resistor for your LPF, your actual R is 2 kΩ, shifting your fc down by half. Similarly, if your load is 10 kΩ and your LPF resistor is 10 kΩ, the load forms a voltage divider and alters the filter response. Rule of thumb: Make R at least 10x smaller than the load impedance.
- Parasitic Inductance (ESL): Capacitors are not perfect at high frequencies. A standard 100 nF through-hole ceramic capacitor has internal Equivalent Series Inductance (ESL). Above roughly 10 MHz to 20 MHz, that inductance dominates, and the capacitor actually starts acting like a high-pass filter. For RF LPF designs above 10 MHz, you must use small surface-mount (0402 or 0603) C0G capacitors to minimize ESL.
- Dielectric Absorption and Voltage Coefficient: High-K ceramic dielectrics (like X7R, Y5V) exhibit severe capacitance loss when a DC voltage is applied across them. A 10 μF X7R capacitor with 5V across it might physically act like a 4 μF capacitor, completely invalidating your calculated fc. For precision analog filters, always consult the manufacturer's DC bias derating curves (available in the TI Analog Engineer's Pocket Reference) or stick to C0G/NP0 dielectrics which are immune to voltage coefficient.
By strictly tracking your SI units, selecting your fixed component based on the physical constraints of your application, and respecting the parasitic limits of real-world capacitors, the LPF formula transitions from a textbook abstraction into a reliable bench tool.






