RC Low-Pass Shelving Filter Response Interactive Calculator

Passive RC low-pass shelving filter

Resistance 1: 1

Resistance 2: 1

Capacitance: 1


RC Low-Pass Shelving Filter Interactive Calculator

This tool allows you to visualize the frequency response of a first-order passive RC low-pass shelving filter. It shows the magnitude response in decibels (dB) versus the frequency in Hertz (Hz) passing through the filter.

The default frequency range is the audio band, from 20 Hz to 20kHz.

How to use the Low-Pass Shelving Filter Interactive Tool

There are three slider controls, two for the resistance values and one for the capacitance value. Swipe the slider to the left or right to change the capacitance or resistance value.

The range of each slider control is based on unit prefixes. For capacitance, select uF, nF or pF. For resistance, you have ohms, kOhms, and MOhms.

The plot should automatically update when you:

  • choose a different unit prefix range, or
  • change the value with the slider control.

RC Low-Pass Shelving Filter Calculations

There is only one calculation involved in this tool: the magnitude/frequency response in dB.

Magnitude/Frequency Response

To calculate the magnitude/frequency response of the RC low-pass shelving filter, the tool uses the following equation (derived below):

Transfer function of the RC low-pass shelving filter.
Transfer function of the RC low-pass shelving filter.

Passive Low-Pass Shelving Filter Transfer Function Derivation

You can construct an RC low-pass shelving filter using just three components: two resistors and a capacitor. The input is fed into the resistor R1, and the output is taken between R1 and the R2+C2 branch. This resembles a voltage divider, just with C2 and R2 in the place of "R2".

RC Low-Pass Filter circuit.
RC Low-Pass Filter circuit.

We can get away with using an equation that's similar to the standard voltage divider circuit. As a reminder, here's the voltage divider equation:

Equation for the voltage divider. V out equals R2 over R1 plus R2, all multiplied by voltage in.
The voltage divider equation.

Modifying this slightly gives us a ratio of output to input (which is the mathematical definition of transfer function):

Voltage divider transfer function.
Voltage divider transfer function.

Of course, we don't have two resistors. Instead, R2 is replaced with a capacitor C2 and resistor R2. That means we need to shift our equation from using resistance values to using impedance values.

Voltage divider equation for an RC low-pass shelving circuit using impedance.
Voltage divider equation for an RC low-pass shelving circuit using impedance.

Impedance is the effective resistance of an electrical circuit, denoted using the letter Z. The top of this equation is asking for the impedance of the capacitor (Zc2) and resistor (Zr2). The bottom part of the equation asks for the impedance of all the component in series.

Impedance and Reactance of a Capacitor

The impedance of a capacitor is usually expressed as an imaginary number and involves the calculation of capacitive reactance (Xc). Wikipedia defines capacitive reactance as a quantity that describes the "opposition to the change of voltage" across the capacitor.

Reactance of a capacitor.
Reactance of a capacitor.

The impedance, Zc, of a capacitor is expressed as:

Impedance of a capacitor.
Impedance of a capacitor.

From the equation above, a capacitor has frequency-dependent reactance and impedance. So it's ability to "oppose" changes in voltage varies with the frequency of the voltage signal across it.

Impedance of a Resistor

The impedance of a resistor is simply the resistor's resistance value. There's no frequency-dependence involved with resistive impedance:

Resistive impedance is the the resistor's resistance value.
Resistive impedance is the resistor's resistance value.

Impedance of a Resistor and Capacitor in Series

At this point we have the impedance for the resistor (ZR2) and the impedance of a capacitor (ZC2). The impedance of the resistor and capacitor in series is:

Impedance of the resistor R2 and capacitor C2 in series.
Impedance of the resistor R2 and capacitor C2 in series.

Impedance of All Components in Series

Now we add the impedance of resistor R1, which is simply R1:

Impedance of all components in series.
Impedance of all components in series.

Transfer Function of the Passive RC Low-Pass Filter

Based on the above, the transfer function of a passive RC low-pass shelving filter is:

Passive RC Low-Pass Shelving filter transfer function.
Passive RC Low-Pass Shelving filter transfer function.

For us, the transfer function written like this isn't very useful. Instead, we want to know the magnitude of the transfer function. That will give us the actual ratio without having to deal with imaginary numbers.

Mathematically, this means we need to convert the cartesian form (a + jb) of the complex numbers to their magnitude-phase form. Read more on the process.

For the numerator, the cartesian form can be rewritten as:

Cartesian form of numerator imaginary number.
Cartesian form of numerator imaginary number.

And the magnitude of the numerator is the square-root of the sum of the squares of a and b. In this case, it ends up equating to the reactance of the capacitor:

The magnitude of the numerator is simply the reactance of the capacitor.
The magnitude of the numerator for the RC low-pass shelving filter.

For the denominator, the cartesian form is:

Cartesian form of denominator imaginary number.
Cartesian form of denominator imaginary number.

The magnitude of the denominator is the sum of the squares of the resistive and capacitive values:

The magnitude of the denominator for the low-pass shelving filter transfer function.

Magnitude of the Low-Pass Shelving Filter Transfer Function

Putting everything together, we have the following equation for the magnitude of the shelving filter's transfer function:

Magnitude of an RC Low-Pass shelving filter.
Magnitude of an RC Low-Pass shelving filter.

Converting to Decibels

The tool calculates the magnitude of the RC low-pass shelving filter transfer function using the equation above. Then, it converts that value to the more conventional decibel scale using the following equation:

Magnitude of a first-order passive RC shelving filter converted to decibel scale.
Magnitude of a first-order passive RC shelving filter converted to decibel scale.

Meet the Author:

Other Calculators from Stompbox Electronics