Learn / Passive components / Capacitors

RC Filters and Time Constants

ReviewedIntermediate MakerAbout 6 min
In short

RC Filters and Time Constants: the short answer

A resistor and capacitor together form the simplest filter. In a low-pass filter the resistor is in series and the capacitor goes from the output to ground.

Level
Intermediate
Time
About 6 min
Topic
Passive components
You will learn to

Design an RC low-pass filter, predict its settling time and use it to smooth PWM or sensor noise.

Before this: Capacitors & Inductors, PWM Timing & Actuator Interfaces

A resistor and capacitor together form the simplest filter. In a low-pass filter the resistor is in series and the capacitor goes from the output to ground. Slow changes pass through, while fast changes are absorbed by the capacitor. The cut-off frequency is fc = 1 ÷ (2π × R × C). At fc the output is 70.7 % of the input (−3 dB), and above it the output falls by about ten times for every ten times increase in frequency.

The time constant τ = R × C tells you how fast the filter responds to a step. After one τ the output has moved 63 % of the way to its new value, and after 5τ it is within 1 %. A filter that removes more noise is also slower, so choose the largest τ your application can wait for.

Two uses come up all the time. Turning PWM into a steady analog voltage: pick fc far below the PWM frequency, so the ripple is small. Cleaning a noisy sensor before an ADC: a 1 kΩ and 100 nF filter (fc ≈ 1.6 kHz) at the ADC pin removes fast spikes without slowing a temperature reading. Remember the filter's output cannot supply much current through R, so feed it into a high-impedance input such as an ADC or op-amp.

The time constant and the corner

A resistor and capacitor together have a time constant, tau = R × C. After one tau a charging capacitor reaches about 63 percent of its final voltage, and after five tau it is within 1 percent. A 10 kΩ resistor with a 100 nF capacitor gives 1 ms.

As a low-pass filter the same pair passes slow signals and reduces fast ones. The corner frequency is 1 ÷ (2π R C), which is about 159 Hz for 10 kΩ and 100 nF. At the corner the output is about 70 percent of the input, which is 3 dB down.

A first-order filter is gentle

Above the corner, a single RC stage reduces the signal by 20 dB for every tenfold increase in frequency. That is gentle. Two stages in a row steepen it, but the second loads the first, so use a buffer between them or a resistor ten times larger in the second stage.

Practical uses

A button debounce uses an RC to smooth the contact bounce. A PWM output followed by an RC gives a slowly varying voltage. A sensor input gets a small RC to take off noise before the ADC. Always choose the corner by what you need to keep: a temperature signal changes in seconds, so a corner of a few hertz loses nothing.

Common mistakes
  • Using the wrong units in R × C, such as microfarads and kilohms, and being off by a factor of 1000.
  • Chaining two RC stages without allowing for the loading.
  • Setting the corner so low that the filter removes the signal you wanted.
Key formulas
fc = 1 ÷ (2πRC)
cutoff frequency
Vout ÷ Vin = 1 ÷ √(1 + (f ÷ fc)²)
first-order low-pass response
Try it: Move the filter's cutoff

How the filter passes each frequency

0 %50 %100 %100 Hz1 kHz10 kHz100 kHzFrequencyfc, 70.7 %

The cutoff sits where the output falls to 70.7 %. Raise R or C and it moves to lower frequencies.

fc = 1 ÷ (2πRC) = 1.59 kHz

Output against frequency. Flat below 1.59 kHz, then falling 20 dB for every ten times higher frequency.

Work it with your own numbers: RC cutoff · RC filter

Intermediate lesson · Maker plan

Practise this lesson with Maker

The explanation above is free for everyone. The practice for Intermediate lessons in every domain are part of the Maker plan at ₹499 a month, and Pro includes them too.

With Maker you also get: a worked example, a hands-on task, a 3-question check.

Common questions

What will I learn in "RC Filters and Time Constants"?

Design an RC low-pass filter, predict its settling time and use it to smooth PWM or sensor noise.