RC Circuit Simulator

Interactive RC circuit simulator with animated transient response, low-pass filter visualization, Bode plots, and real-time waveform display. Learn time constants, cutoff frequency, and filter behavior.

Loading simulation...

Loading simulation, please wait

RC Circuit Simulator: Master Time Constants and Filter Design

✓ Verified Content: All equations, formulas, and reference data in this simulation have been verified by the Simulations4All engineering team against authoritative sources including IEEE standards, electronics textbooks, and peer-reviewed publications. See verification log

The RC circuit calculator is an essential tool for electrical engineers, students, and hobbyists working with capacitors and resistors. Whether you're analyzing transient response, designing low-pass filters, or studying time constants, this interactive RC circuit simulator provides real-time visualization of circuit behavior. Our comprehensive tool combines animated waveforms, Bode plots, and instant calculations to help you truly understand RC circuits.

Introduction

Why does your audio signal sound muddy after passing through what should be a simple DC blocking capacitor? The datasheet says 1uF. In practice, that capacitor plus your amplifier's input impedance just created a high-pass filter with a cutoff frequency right in the middle of your bass range.

RC circuits seem deceptively simple. A resistor. A capacitor. What could go wrong? Experienced engineers find that the answer is: plenty. That "1ms time constant" you calculated assumes your capacitor is ideal. Real electrolytics have ESR, tolerance variations, and temperature coefficients that shift your cutoff frequency by 20% or more. When you probe this node to debug, your oscilloscope's input capacitance adds to the total, changing the very behavior you are trying to measure.

Circuit designers know RC networks as the fundamental building block that appears in places you do not expect. Power supply decoupling. Input filters. Debounce circuits. Audio tone controls. Every one of these applications requires understanding not just the formula, but how parasitic elements and loading effects modify real-world behavior [1].

This interactive RC circuit simulator offers two complementary views: transient response (time-domain behavior during charging and discharging) and filter response (frequency-domain behavior as a low-pass filter). The simulator provides real-time animation of current flow, synchronized voltage and current waveforms, and an interactive Bode plot showing magnitude and phase response. These visualizations help you develop the intuition that makes the difference between circuits that work on paper and circuits that work on your bench.

How to Use This Simulation

In an ideal world, you'd calculate tau = RC, trust the exponential formula, and move on. But real circuits have ESR in your capacitors, parasitic inductance in your leads, and oscilloscope probes that add 10-15 pF to every node you measure. This simulator helps you build intuition for how time constants and cutoff frequencies behave before you encounter those parasitic surprises on the bench.

Mode Selection

ModeWhat It ShowsBest For
TransientCharging/discharging curves, animated current flowUnderstanding time constants, step response analysis
FilterBode magnitude and phase plots, input/output comparisonDesigning low-pass filters, understanding cutoff frequency

Input Parameters

ControlRangeDefaultWhat It Affects
Resistance (R)100 ohm - 100 kohm1 kohmCharging current limit, time constant
Capacitance (C)0.1 uF - 1000 uF1 uFEnergy storage, time constant
Supply Voltage (Vs)1 - 24 V5 VFinal charge voltage
Signal Frequency1 - 10,000 Hz100 HzInput signal for filter mode

Output Display

The circuit schematic animates current flow direction and magnitude. The waveform canvas shows:

  • Transient Mode: Capacitor voltage (blue) and current (green) vs. time with tau markers
  • Filter Mode: Input sine wave overlaid with filtered output, showing attenuation and phase shift

The statistics panel displays calculated values:

  • Time Constant (tau): R times C in appropriate units
  • Cutoff Frequency (fc): The -3 dB point in Hz
  • 5tau (99% Charged): Time to reach effectively full charge
  • Capacitor Voltage: Real-time voltage during animation
  • Current: Instantaneous current through the resistor
  • Energy Stored: 0.5 times C times V-squared in the capacitor

Presets for Common Circuits

PresetRCtaufcApplication
Standard1 kohm1 uF1 ms159 HzGeneral-purpose demo
Audio Filter10 kohm0.1 uF1 ms159 HzAudio high-frequency rolloff
Power Supply100 ohm1000 uF100 ms1.6 HzSmoothing ripple
Fast RC1 kohm0.1 uF0.1 ms1.59 kHzSignal processing

Tips for Exploration

When you probe this node on a real oscilloscope, you add probe capacitance. The signal sees this as extra C in parallel, lowering your cutoff frequency. Use these exercises to understand why:

  1. Verify the 5-tau rule: Set any R and C, start charging, and watch the voltage at t = 5tau. It should read 99.3% of Vs. This is why engineers say "five time constants to fully charged."

  2. Switch between Transient and Filter modes with identical R and C values. Notice that tau = 1 ms corresponds to fc = 159 Hz. The relationship fc = 1/(2 pi tau) connects both domains.

  3. In Filter mode, sweep the input frequency through the cutoff point. Watch the output amplitude drop to 70.7% (-3 dB) exactly at fc, and observe the -45 degree phase shift.

  4. Try the Power Supply preset and watch how slowly the capacitor charges. This long time constant is what smooths rectified AC in power supply filter stages.

  5. Halve the resistance, then double the capacitance. The time constant stays identical (tau = R times C), but current doubles with halved R. This is the design trade-off between component stress and timing.

Understanding RC Circuits

What is an RC Circuit?

An RC circuit is an electrical circuit containing a resistor and capacitor connected in series or parallel. When voltage is applied to a series RC circuit, the capacitor charges through the resistor, creating a time-dependent voltage that follows an exponential curve.

ComponentSymbolRole in Circuit
ResistorRLimits current flow, determines charging rate
CapacitorCStores electrical energy, accumulates charge
Voltage SourceVsProvides the driving voltage
GroundGNDReference point (0V)

Types of RC Circuit Behavior

Transient Response (Charging)

When a DC voltage is suddenly applied to an uncharged capacitor through a resistor, the capacitor voltage rises exponentially toward the source voltage. The current starts at maximum (Vs/R) and decays exponentially to zero. The datasheet says "instantaneous" voltage application, but in practice your power supply has rise time, your switch has contact bounce, and your wires have inductance. The signal sees all of these as modifications to the ideal step input.

Transient Response (Discharging)

When a charged capacitor is connected through a resistor (with no voltage source), the stored energy dissipates through the resistor. Both voltage and current decay exponentially toward zero. In an ideal world, discharge would continue forever asymptotically approaching zero. But real circuits have leakage currents, and below a few millivolts your measurement noise dominates anyway.

Frequency Response (Low-Pass Filter)

For AC signals, the RC circuit acts as a frequency-dependent voltage divider. Low frequencies pass through with little attenuation, while high frequencies are increasingly blocked by the capacitor's decreasing reactance. Experienced engineers find this dual personality of RC circuits, acting as both time-domain and frequency-domain elements, essential for debugging unexpected filter behavior.

High-Pass Filter Configuration

By measuring output across the resistor instead of the capacitor, the same RC circuit becomes a high-pass filter, passing high frequencies while blocking low frequencies. When you probe this node, remember that the output impedance looking back into the circuit depends on frequency, which affects how much your measurement disturbs the signal.

Key Parameters

ParameterSymbolUnitsTypical RangeDescription
ResistanceRΩ (ohms)100Ω - 1MΩLimits current flow
CapacitanceCF (farads)1pF - 10mFCharge storage capacity
Time Constantτs (seconds)μs - sTime for 63.2% change
Cutoff FrequencyfcHzHz - MHz-3dB frequency point
Supply VoltageVsV (volts)1V - 24VDriving voltage
Maximum CurrentImaxA (amps)μA - AInitial current (Vs/R)

Key Equations and Formulas

Time Constant

Formula: τ=R×Cτ = R × C

Where:

  • τ = time constant (seconds)
  • R = resistance (ohms)
  • C = capacitance (farads)

The time constant represents the time required for the voltage to reach 63.2% of its final value during charging, or to decay to 36.8% during discharging.

Charging Voltage

Formula: Vc(t)=Vs×(1et/τ)V_c(t) = V_s × (1 - e^{-t/τ})

Where:

  • Vc(t) = capacitor voltage at time t
  • Vs = supply voltage
  • e = Euler's number (≈2.718)
  • t = elapsed time
  • τ = time constant

Discharging Voltage

Formula: Vc(t)=V0×et/τV_c(t) = V_0 × e^{-t/τ}

Where:

  • V0 = initial capacitor voltage
  • The voltage decays exponentially toward zero

Cutoff Frequency (Low-Pass Filter)

Formula: fc=12πRCf_c = \frac{1}{2πRC}

Where:

  • fc = cutoff frequency in Hz
  • At fc, output is -3dB (70.7%) of input

Filter Transfer Function Magnitude

Formula: H(f)=11+(f/fc)2|H(f)| = \frac{1}{\sqrt{1 + (f/f_c)^2}}

This gives the ratio of output to input voltage at any frequency f.

Filter Phase Shift

Formula: φ=arctan(f/fc)φ = -\arctan(f/f_c)

The phase shift ranges from 0° (at DC) to -90° (at very high frequencies), with -45° occurring at the cutoff frequency.

Learning Objectives

After completing this simulation, you will be able to:

  1. Calculate the time constant of any RC circuit from resistance and capacitance values
  2. Predict the charging/discharging behavior of capacitors using exponential equations
  3. Determine the cutoff frequency of RC low-pass and high-pass filters
  4. Interpret Bode plots showing magnitude and phase response
  5. Analyze how changing R or C affects both time-domain and frequency-domain behavior
  6. Apply the 5τ rule to estimate when capacitors are fully charged (99.3%)
  7. Design RC filters for specific cutoff frequencies

Exploration Activities

Activity 1: Investigating the Time Constant

Objective: Understand how τ affects charging speed

Setup:

  • Set R = 1 kΩ, C = 1 μF, Vs = 5V
  • Select "Transient" mode

Steps:

  1. Click "Start" and observe the charging curve
  2. Note the time when voltage reaches ~3.16V (63.2% of 5V)
  3. This time should equal τ = 1 ms
  4. Now double C to 2 μF and reset
  5. Start again and observe the slower charging

Observe: The voltage reaches 63.2% at exactly t = τ. Doubling C doubles the charging time.

Expected Result: With R = 1kΩ and C = 1μF, τ = 1ms. The capacitor reaches 3.16V at t = 1ms. With C = 2μF, τ = 2ms.


Activity 2: The 5τ Rule for Full Charging

Objective: Verify that 5τ gives 99.3% charge

Setup:

  • Set R = 10 kΩ, C = 10 μF (τ = 100ms)
  • Vs = 5V, Transient mode

Steps:

  1. Start the simulation and let it run to completion
  2. Watch for the 5τ marker on the time axis
  3. Record the final voltage (should be ~4.97V)
  4. Calculate: 5V × 0.993 = 4.965V

Observe: The waveform becomes nearly flat after 5τ, confirming the capacitor is essentially fully charged.

Expected Result: At t = 5τ = 500ms, Vc ≈ 4.97V, which is 99.3% of 5V.


Activity 3: Filter Cutoff Frequency

Objective: Understand the -3dB point in filter response

Setup:

  • Set R = 10 kΩ, C = 0.01 μF (fc ≈ 1.59 kHz)
  • Switch to "Filter" mode

Steps:

  1. Observe the Bode plot magnitude response
  2. Find where the curve crosses -3dB
  3. Verify this occurs at fc = 1/(2π×10kΩ×0.01μF) = 1.59 kHz
  4. Adjust the signal frequency slider to fc
  5. Note the output is 70.7% of input at this frequency

Observe: The magnitude response rolls off at -20dB/decade above fc.

Expected Result: At fc, |H| = 0.707 (-3dB). The phase shift at fc is exactly -45°.


Activity 4: Comparing Charge and Discharge

Objective: Observe the symmetry in exponential behavior

Setup:

  • R = 1 kΩ, C = 10 μF, Vs = 5V
  • Transient mode

Steps:

  1. Let the capacitor fully charge (wait for 5τ = 50ms)
  2. Click "Discharge" to switch modes
  3. Reset and start the discharge simulation
  4. Compare the discharge curve to the charge curve

Observe: Charging and discharging have the same time constant. The curves are mirror images about the 50% point.

Expected Result: Both curves reach 63.2% of their total change at t = τ = 10ms.

Real-World Applications

Understanding RC circuits is essential in many fields:

  1. Power Supply Filtering: RC circuits smooth the ripple in DC power supplies. A large capacitor with appropriate resistor creates a filter that blocks AC ripple while passing DC. This is essential in every electronic device from phone chargers to computer power supplies.

  2. Audio Signal Processing: RC filters are used in audio equalizers, tone controls, and crossover networks. A simple treble cut control is just an RC low-pass filter. Speaker crossovers use RC networks to direct bass to woofers and treble to tweeters.

  3. Timing Circuits: The 555 timer IC uses RC networks to set timing intervals. The charge/discharge time of a capacitor through resistors determines oscillation frequency or one-shot pulse duration. RC timing appears in everything from blinking LEDs to motor controllers.

  4. Sensor Interfaces: Many sensors require RC filters to remove noise. Temperature sensors, strain gauges, and photodiodes often need RC low-pass filters to reject high-frequency interference while preserving the slow-changing signal of interest.

  5. Anti-Aliasing Filters: Before analog-to-digital conversion, RC low-pass filters prevent high-frequency signals from causing aliasing artifacts. This is critical in audio recording, instrumentation, and data acquisition systems.

Reference Data

Common Time Constant Values

R ValueC ValueTime Constant (τ)5τ (Full Charge)
1 kΩ1 μF1 ms5 ms
10 kΩ1 μF10 ms50 ms
10 kΩ100 μF1 s5 s
100 kΩ0.1 μF10 ms50 ms
1 MΩ1 μF1 s5 s

Common Cutoff Frequencies

R ValueC ValueCutoff Frequency (fc)
10 kΩ0.01 μF1.59 kHz
1 kΩ0.1 μF1.59 kHz
10 kΩ0.1 μF159 Hz
100 Ω1 μF1.59 kHz
1 kΩ0.001 μF159 kHz

Percentage Charged at Each Time Constant

Time% Charged% Remaining
63.2%36.8%
86.5%13.5%
95.0%5.0%
98.2%1.8%
99.3%0.7%

Challenge Questions

Level 1: Basic Understanding

  1. If R = 4.7 kΩ and C = 22 μF, what is the time constant? How long until the capacitor is 99% charged?

  2. A capacitor takes 50 ms to reach 63.2% of full charge. If R = 5 kΩ, what is C?

Level 2: Intermediate

  1. Design an RC low-pass filter with a cutoff frequency of 1 kHz using a 10 kΩ resistor. What capacitor value is needed?

  2. An RC circuit has τ = 2 ms. If Vs = 12V, what is the capacitor voltage after 3 ms of charging from zero?

Level 3: Advanced

  1. For an RC low-pass filter, at what frequency is the output attenuated by -20 dB? Express in terms of fc.

  2. A circuit needs to filter out 60 Hz noise while passing signals below 10 Hz. Design an appropriate RC filter (specify R and C values).

  3. Prove mathematically that the current during charging is I(t) = (Vs/R) × e^(-t/τ).

Common Misconceptions

Misconception 1: "The capacitor charges completely after 1 time constant"

Reality: After 1τ, the capacitor is only 63.2% charged. It takes 5τ to reach 99.3%, which engineers consider "fully charged." The exponential curve never truly reaches 100%, it only asymptotically approaches it.

Misconception 2: "A larger capacitor always means slower response"

Reality: The time constant τ = RC depends on both resistance AND capacitance. A larger capacitor with proportionally smaller resistance maintains the same time constant. What matters is the product, not either value alone.

Misconception 3: "The cutoff frequency is where the signal is completely blocked"

Reality: At the cutoff frequency fc, the signal is only reduced to 70.7% (or -3 dB). Complete attenuation never occurs. The filter has a gradual rolloff. Even at 10×fc, some signal (about 10%) still passes through.

Misconception 4: "Charging and discharging currents flow in the same direction"

Reality: During charging, current flows into the capacitor (positive direction). During discharging, current flows out of the capacitor (negative direction). The current magnitude follows the same exponential decay in both cases, but the direction reverses.

Advanced Topics

Second-Order RC Filters

Cascading multiple RC stages creates steeper rolloff (-40 dB/decade for two stages). However, each stage loads the previous one, requiring buffer amplifiers between stages for accurate response.

RC Phase Shift Oscillators

By cascading three RC high-pass sections with an inverting amplifier, you can create an oscillator. The 180° phase shift from three RC stages plus 180° from the inverter creates the 360° (0°) feedback needed for oscillation.

Complex Impedance Analysis

In AC analysis, capacitors have impedance Zc = 1/(jωC). The RC voltage divider becomes a complex number calculation, naturally yielding both magnitude and phase relationships.

Summary

RC circuits are fundamental to electronics, appearing in timing, filtering, and signal conditioning applications. The time constant τ = RC governs transient behavior, determining how quickly capacitors charge and discharge. For frequency-domain applications, the cutoff frequency fc = 1/(2πRC) defines the transition between passband and stopband in filter applications.

Key takeaways:

  • After 1τ, voltage reaches 63.2% of final value
  • After 5τ, the capacitor is effectively fully charged (99.3%)
  • At fc, filter output is -3 dB (70.7% voltage)
  • Increasing R or C decreases the cutoff frequency
  • The same RC circuit can be configured as low-pass or high-pass

Use this simulator to explore these concepts interactively. Adjust parameters, observe waveforms, and build intuition for RC circuit behavior that will serve you throughout your electronics journey.

Verification Log

Claim/DataSourceStatusDate Verified
Time constant τ = RC formulaBasic circuit theory, Sedra & Smith✓ VerifiedDec 2025
Charging equation: V(t) = Vs(1 - e^(-t/τ))Nilsson & Riedel Electric Circuits✓ VerifiedDec 2025
Cutoff frequency fc = 1/(2πRC)IEEE filter design standards✓ VerifiedDec 2025
-3 dB at cutoff (70.7% voltage)Filter theory fundamentals✓ VerifiedDec 2025
63.2% at one time constantExponential decay mathematics✓ VerifiedDec 2025
99.3% at five time constantsStandard engineering approximation✓ VerifiedDec 2025
Phase shift formula: φ = -arctan(ωRC)AC circuit analysis✓ VerifiedDec 2025

This simulation is part of the Electrical Engineering collection on Simulations4All. Explore more circuit simulations to deepen your understanding of electronics.

Related Simulations

Op-Amp Circuit Builder
Electrical Engineering
intermediate
3

Op-Amp Circuit Builder

Interactive operational amplifier circuit builder with 6 configurations, animated waveforms, gain calculation, and output saturation visualization. Learn inverting, non-inverting, summing, and difference amplifiers.

View Simulation
Capacitor Circuit Simulator - RC Charging & Electric Fields
Electrical Engineering
intermediate
3

Capacitor Circuit Simulator - RC Charging & Electric Fields

Interactive capacitor circuit simulator with RC charging/discharging curves, real-time electric field visualization, animated charge distribution, and dielectric effects. Explore parallel plate capacitors with adjustable geometry, materials, and voltage.

View Simulation
Voltage Divider Calculator
Electrical Engineering
beginner
2

Voltage Divider Calculator

Interactive voltage divider calculator with loading effect analysis, Thevenin equivalent, power dissipation, and standard resistor finder. Design resistor divider circuits for sensors, microcontrollers, and analog electronics.

View Simulation

Stay Updated

Get notified about new simulations and educational content. We send 1-2 emails per month.