Build an RC Low-Pass Filter — Step by Step
An RC filter is two components — a resistor and a capacitor — that together pass some frequencies and block others. Low-pass filters are everywhere: in audio systems, sensor signal conditioning, power supply noise rejection, and ADC input filtering. This guide builds one from scratch.
Circuit Diagram
Cutoff frequency: f_c = 1 / (2π × R × C)
Below f_c: signal passes through with little attenuation. Above f_c: signal is progressively attenuated at −20dB per decade (factor of 10 in frequency = factor of 10 in output voltage reduction).
Step-by-Step Guide
Decide what frequency you want to cut off. Common targets: 160 Hz (audio low-pass, removes hiss), 1.6 kHz (removes high-frequency noise from a sensor), 16 kHz (anti-aliasing before a 32kHz ADC).
For 160 Hz: Choose R = 10kΩ, then calculate C: C = 1 / (2π × R × f_c) = 1 / (2π × 10,000 × 160) = 99.5nF → use 100nF standard value.
Open the RC low-pass filter simulation. Set R=10kΩ and C=100nF. Add a scope probe at the output node.
Change the input voltage source frequency: at 16 Hz (10× below cutoff), output ≈ input. At 160 Hz (cutoff), output ≈ 70.7% of input (−3dB). At 1600 Hz (10× above cutoff), output ≈ 10% of input (−20dB).
▶ Simulate RC Low-Pass Filter ▶ Simulate RC High-Pass FilterThe RC filter also introduces a phase shift between input and output. At the cutoff frequency, the output lags the input by exactly 45°. Well above cutoff, the lag approaches 90°.
In the simulator, use the scope to add both input and output probes. At the cutoff frequency, you will see the output waveform shifted to the right relative to the input. This matters in feedback circuits and audio phase relationships.
Add a 10kΩ load resistor from the filter output to ground. The actual cutoff frequency shifts because the effective bottom resistance is now R2 || R_load = 10kΩ || 10kΩ = 5kΩ, which changes f_c.
New f_c with load ≈ 1 / (2π × 10,000 × (5000/(10,000+5000) × 10,000) × 100nF) — it shifts upward. To avoid this, buffer the output with a voltage follower op-amp.
Swap the positions of R and C: put C in series with the signal path, R from the output to ground. The circuit now blocks DC and low frequencies, passing only frequencies above f_c. Same formula, same component values — just different positions.
High-pass filters are used for AC coupling (removing DC offset between amplifier stages) and removing 50/60 Hz mains hum from audio signals.
▶ Simulate High-Pass Version