RC Filter Calculator
Input Parameters
Computed Results
The RC filter calculator determines the cutoff frequency, required resistance, or required capacitance for passive low-pass and high-pass circuits. By entering your component values and an optional test frequency, you can also evaluate the circuit's time constant, voltage gain, decibel attenuation, and phase shift.
Practical Use Cases
RC (resistor-capacitor) filters are fundamental building blocks in electronics, used to block or pass specific ranges of frequencies. Common applications include:
- Audio Processing: Designing low-pass filters to remove high-frequency noise or hiss from audio signals, or high-pass filters to block low-frequency rumble.
- Signal Conditioning: Filtering sensor outputs in microcontrollers to smooth out rapid fluctuations and prevent aliasing before analog-to-digital conversion.
- Power Supply Decoupling: Creating simple low-pass filters to reduce ripple voltage and high-frequency transients on power rails.
- Circuit Design: Determining the exact resistor or capacitor value needed to achieve a specific target cutoff frequency when one component is already selected.
How to Use the Calculator
Follow these steps to analyze or design your RC filter circuit:
- Select the Target Parameter: Choose whether you want to calculate the Cutoff Frequency (fc), Resistance (R), or Capacitance (C).
- Choose the Filter Configuration: Select either a low-pass filter (passes frequencies below the cutoff) or a high-pass filter (passes frequencies above the cutoff).
- Enter Known Values: Input the two known parameters (e.g., Resistance and Capacitance if calculating Cutoff Frequency). Ensure you select the correct units (such as ohms, kilo-ohms, microfarads, or picofarads).
- Set a Test Frequency (Optional): To evaluate how the filter behaves at a specific frequency, enter a test frequency (f). This calculates the voltage gain, attenuation in decibels (dB), and phase shift.
- Review the Results: The calculator will display your primary calculated parameter, the circuit's time constant, and the frequency response metrics at your test frequency.
Formula & Explanation
The behavior of a passive RC filter is governed by the relationship between the resistor and the capacitor. The most critical parameter is the cutoff frequency (also known as the -3 dB frequency or corner frequency), where the output power is half of the input power, and the output voltage is approximately 70.7% of the input voltage.
Cutoff Frequency Formula
Where:
- fc is the cutoff frequency in hertz (Hz)
- R is the resistance in ohms (Ω)
- C is the capacitance in farads (F)
- π is approximately 3.14159
The calculator rearranges this formula algebraically if you choose to solve for Resistance or Capacitance instead.
Time Constant
The time constant (τ) represents the time it takes for the capacitor to charge to about 63.2% of the supply voltage, or discharge to 36.8%.
Frequency Response (Gain and Phase)
When a test frequency (f) is applied, the filter's response depends on its configuration. The ratio of the test frequency to the cutoff frequency determines the gain and phase shift.
For a Low-Pass Filter:
For a High-Pass Filter:
The attenuation in decibels is calculated as:
Verified Scenario Walkthroughs
Here are examples of how the calculator processes different filter design scenarios:
High-Frequency Audio Filter Design
Designing a low-pass filter to calculate the cutoff frequency using a 4.7 kΩ resistor and a 2.2 nF capacitor, evaluated at a 20 kHz test frequency.
- Calculate: Cutoff Frequency (fc)
- Filter Configuration: Low Pass
- Resistance: 4.7 kΩ
- Capacitance: 2.2 nF
- Test Frequency: 20 kHz
- Result: The cutoff frequency is 15.3922 kHz. The time constant is 0.0103 ms. At 20 kHz, the voltage gain is 0.6099 (-4.29 dB), with a phase shift of -52.42°.
Calculate Required Resistance for Specific Cutoff
Finding the necessary resistor for a high-pass filter with a 100 pF capacitor to achieve a 15.915 MHz cutoff, tested at 5 MHz.
- Calculate: Resistance (R)
- Filter Configuration: High Pass
- Capacitance: 100 pF
- Cutoff Frequency: 15.915 MHz
- Test Frequency: 5 MHz
- Result: The required resistance is 100.0031 Ω. At 5 MHz, the gain is 0.2997 (-10.47 dB), and the phase shift is 72.56°.
Determine Capacitance for Low Frequency Timing
Calculating the required capacitor for a low-pass filter using a 10 MΩ resistor to set a 1 Hz cutoff, evaluated at 500 Hz.
- Calculate: Capacitance (C)
- Filter Configuration: Low Pass
- Resistance: 10 MΩ
- Cutoff Frequency: 1 Hz
- Test Frequency: 500 Hz
- Result: The required capacitance is 0.0159 µF. The time constant is 159.1549 ms. At 500 Hz, the signal is heavily attenuated with a gain of 0.002 (-53.98 dB) and a phase shift of -89.89°.
Small Signal Filter Analysis
Analyzing a high-pass filter with a 150 Ω resistor and a 470 pF capacitor to find the cutoff frequency, tested at 1 MHz.
- Calculate: Cutoff Frequency (fc)
- Filter Configuration: High Pass
- Resistance: 150 Ω
- Capacitance: 470 pF
- Test Frequency: 1 MHz
- Result: The cutoff frequency is 2.2575 MHz. The time constant is 0.0001 ms. At 1 MHz, the gain is 0.405 (-7.85 dB), and the phase shift is 66.11°.
Inputs & Outputs Table
| Field | Type | Description |
|---|---|---|
| Calculate | Input | The target parameter to solve for: Cutoff Frequency, Resistance, or Capacitance. |
| Filter Configuration | Input | Select low-pass (attenuates high frequencies) or high-pass (attenuates low frequencies). |
| Resistance (R) | Input | The resistor value in the circuit. |
| Capacitance (C) | Input | The capacitor value in the circuit. |
| Cutoff Frequency (fc) | Input | The frequency at which the signal power is reduced by half (-3 dB). |
| Test Frequency (f) | Input | An optional frequency used to evaluate the filter's gain and phase shift. |
| Calculated Parameter | Output | The primary result based on your selected calculation mode. |
| Time Constant (τ) | Output | The product of resistance and capacitance, expressed in milliseconds. |
| Voltage Gain (Vout / Vin) | Output | The linear ratio of output voltage to input voltage at the test frequency. |
| Attenuation / Gain (dB) | Output | The voltage gain expressed in decibels. A value of -3 dB occurs exactly at the cutoff frequency. |
| Phase Shift (°) | Output | The phase difference between the output and input signals at the test frequency, in degrees. |
Frequently Asked Questions
What is the cutoff frequency of an RC filter?
The cutoff frequency, also known as the -3 dB point or corner frequency, is the frequency at which the filter attenuates the input signal power by half. At this point, the output voltage is approximately 70.7% of the input voltage.
How does a low-pass filter differ from a high-pass filter?
A low-pass filter allows frequencies below the cutoff frequency to pass through with minimal attenuation while blocking higher frequencies. A high-pass filter does the opposite, allowing frequencies above the cutoff to pass while blocking lower frequencies.
What does the time constant tell me about the circuit?
The time constant (τ), calculated as Resistance multiplied by Capacitance, indicates how quickly the capacitor charges or discharges. It represents the time required for the capacitor voltage to reach approximately 63.2% of its final value during a step change.
Why is the gain negative in decibels?
Passive RC filters cannot amplify a signal; they can only attenuate it. Because the output voltage is always less than or equal to the input voltage, the linear gain is less than 1, which translates to a negative value when expressed in decibels (dB).