The transfer function of a low pass filter is a mathematical equation, typically expressed in the Laplace or frequency domain, that defines the exact ratio of output voltage to input voltage across all frequencies, dictating how the circuit attenuates high-frequency signals while passing low-frequency ones. In a real circuit or installation, this function directly dictates your noise floor, signal delay (phase shift), and whether your microcontroller’s analog-to-digital converter (ADC) receives clean data or aliased garbage. If you are designing sensor interfaces, audio crossovers, or power supply feedback loops, the transfer function is the foundational blueprint that determines your component values.
The Core Math: Deriving the Transfer Function
To understand the transfer function of a low pass filter, we start with a basic passive RC (resistor-capacitor) voltage divider. In the time domain, the capacitor’s voltage changes based on the integral of the current. However, solving differential equations for every frequency is impractical. Instead, we move to the Laplace domain (s-domain), where the impedance of a resistor is simply R and the impedance of a capacitor is 1/(sC).
The transfer function, denoted as H(s), is the ratio of the output voltage to the input voltage:
H(s) = V_out(s) / V_in(s) = (1/sC) / [R + (1/sC)]
By multiplying the numerator and denominator by sC, we simplify this to the standard first-order form:
H(s) = 1 / (1 + sRC)
For steady-state AC analysis, we substitute the complex frequency variable s with jω (where j is the imaginary unit and ω is the angular frequency, 2πf). This gives us the frequency-domain transfer function:
H(jω) = 1 / (1 + jωRC)
From this single equation, you can extract the magnitude (attenuation in dB) and the phase shift (in degrees) at any given frequency. The magnitude is calculated as 1 / √(1 + (ωRC)²), and the phase shift is -arctan(ωRC).
Beginners frequently confuse the transfer function with the cutoff frequency formula (f_c = 1 / (2πRC)) or the Bode plot. The transfer function is the master mathematical model (H(s)). The cutoff frequency is just a single derived data point on that model (the -3dB point). The Bode plot is simply a graphical visualization of the transfer function’s magnitude and phase on a logarithmic scale. You need the transfer function to calculate phase margin in control loops; the cutoff formula alone cannot provide this.
Component Selection Table: Real-World RC Values and Filter Response
Before building a circuit, you must select components that satisfy both the mathematical transfer function and the physical constraints of your system, such as output impedance and parasitic effects. The table below maps common resistor and capacitor pairings to their resulting filter characteristics.
| Resistor (R) | Capacitor (C) | Cutoff Freq (f_c) | DC Output Impedance | Attenuation at 10 kHz | Ideal Application |
|---|---|---|---|---|---|
| 1 kΩ | 10 nF (C0G) | 15.9 kHz | 1 kΩ | -0.4 dB | High-speed RF signal conditioning |
| 10 kΩ | 100 nF (X7R) | 159 Hz | 10 kΩ | -36.0 dB | General MCU ADC anti-aliasing |
| 100 kΩ | 10 nF (C0G) | 159 Hz | 100 kΩ | -36.0 dB | Ultra-low power battery sensors |
| 10 Ω | 10 μF (Electrolytic) | 1.59 kHz | 10 Ω | -16.0 dB | Power supply ripple reduction |
| 1 kΩ | 1 μF (X7R) | 159 Hz | 1 kΩ | -36.0 dB | Audio DAC output smoothing |
Note: Capacitor dielectric matters. C0G/NP0 ceramics offer stable capacitance across temperature and voltage, keeping your transfer function accurate. X7R ceramics exhibit significant capacitance drop under DC bias, which will unintentionally shift your cutoff frequency higher. For deeper component selection guidance, refer to the All About Circuits filter design guides.
Worked Numeric Example: Filtering an ESP32 ADC Input
Let’s apply the transfer function to a highly specific, common pain point: reading a 0-3.3V analog sensor with an ESP32-WROOM-32 while a nearby 500 kHz buck converter (like a TPS5430) injects switching noise into the ground plane.
The Goal: We need to sample the sensor at 5 kHz. According to the Nyquist-Shannon sampling theorem, our anti-aliasing filter must aggressively attenuate frequencies above 2.5 kHz to prevent high-frequency noise from folding back into our DC readings. We will target a cutoff frequency (f_c) of roughly 150 Hz.
Step 1: Choose Components
We select R = 10 kΩ and C = 100 nF.
f_c = 1 / (2 * π * 10,000 * 0.0000001) = 159.15 Hz.
Step 2: Calculate High-Frequency Attenuation
We need to know how much the 500 kHz buck converter noise is reduced. Using the magnitude of our transfer function:
Ratio = f_noise / f_c = 500,000 / 159.15 = 3141.6
Attenuation (dB) = -20 * log10(3141.6) = -69.9 dB.
A -70 dB reduction means a 100 mV noise spike is crushed down to roughly 31 μV, well below the ESP32’s ADC noise floor.
Step 3: Verify ADC Source Impedance Constraints
This is where theory meets silicon reality. The Espressif ESP-IDF ADC documentation notes that the internal sampling capacitor (approx. 12 pF) must charge fully during the sample-and-hold window. If your filter resistor is too high (e.g., 100 kΩ), the RC time constant formed by the external resistor and internal capacitor prevents full charging, resulting in non-linear, low-biased readings. Our 10 kΩ resistor is safely within the recommended ≤10 kΩ source impedance limit for the ESP32, ensuring the physical circuit behaves exactly as the mathematical transfer function predicts.
Where You Meet This in Practice
Understanding the transfer function of a low pass filter extends far beyond simple RC networks on a breadboard. Here is where this math dictates real-world system performance:
- PWM to DAC Conversion: When using a microcontroller’s PWM pin to generate a pseudo-analog DC voltage, the transfer function determines the ripple. If your PWM frequency is 5 kHz and you use a 159 Hz filter (10kΩ/100nF), the fundamental PWM frequency is attenuated by roughly -30 dB, yielding a reasonably smooth DC output with minimal ripple.
- Active Sallen-Key Filters: In audio crossovers or precision instrumentation, a passive RC filter’s gentle -20 dB/decade roll-off isn’t steep enough. Engineers use op-amps to create 2nd-order Sallen-Key topologies. The transfer function denominator changes from (1 + sRC) to a quadratic equation (1 + as + bs²), allowing you to tune the Q-factor for Butterworth (flat passband) or Chebyshev (steeper roll-off) responses.
- Control Loop Compensation: In switch-mode power supplies, the transfer function of the feedback network’s low pass filter is manipulated to introduce poles and zeros. This shapes the Bode plot to ensure adequate phase margin, preventing the power supply from oscillating under dynamic loads.
FAQ: Common Low Pass Filter Transfer Function Questions
Does the transfer function change if I account for real-world parasitics?
Yes, significantly. The ideal transfer function assumes a perfect capacitor. In reality, capacitors have Equivalent Series Resistance (ESR) and Equivalent Series Inductance (ESL). The ESR introduces a “zero” into the transfer function at f_zero = 1 / (2π * ESR * C). This stops the filter from attenuating infinitely at high frequencies, creating a flat “noise floor” limit. For high-frequency filtering, always choose low-ESR ceramics or film capacitors.
What happens to the phase shift at the cutoff frequency?
At exactly the cutoff frequency (f_c), the transfer function dictates a phase shift of exactly -45°. At frequencies well below f_c, the phase shift approaches 0°, and at frequencies well above f_c, it asymptotically approaches -90°. This phase delay is critical to calculate when placing a filter inside an op-amp feedback loop to avoid turning negative feedback into positive feedback (oscillation).
Can I just cascade two identical RC filters to get a steeper roll-off?
You can, but the transfer function of the second stage will load the first stage, altering the math and creating a sloppy, peaking response rather than a clean -40 dB/decade roll-off. To cascade passive filters properly, the second stage must have an impedance at least 10x higher than the first, or you must buffer them with unity-gain op-amps to isolate the transfer functions.






