RC Circuit Calculator
Calculate the time constant and cutoff frequency of an RC circuit.
What is an RC Circuit?
An RC circuit combines a resistor (R) and a capacitor (C) in series or parallel. When voltage is applied, the capacitor doesn't charge instantly — current flows through the resistor, gradually building charge on the capacitor plates. The voltage across the capacitor rises exponentially toward the supply voltage. When discharged, the capacitor releases stored energy through the resistor with exponential decay. This behavior is fundamental to timing circuits, filters, camera flashes, and power supply smoothing.
Consider a circuit with a 9 V battery, a 10 kΩ resistor, and a 100 μF capacitor in series. The time constant is τ = RC = 10,000 Ω × 0.0001 F = 1 second. When you close the switch, capacitor voltage starts at 0 V and rises toward 9 V. After 1 second (one time constant), it reaches 63% of 9 V = 5.67 V. After 5 seconds, it's at 99.3% of 9 V = 8.94 V — essentially fully charged. Disconnect the battery and short the capacitor through the resistor, and voltage decays with the same 1-second time constant.
The capacitor stores energy in its electric field: E = ½CV². A 100 μF capacitor charged to 9 V stores E = 0.5 × 0.0001 × 81 = 0.00405 J — small but enough to power an LED briefly or maintain memory in electronics. Camera flashes use large capacitors (100-1000 μF at 300+ V) storing tens of joules, released in milliseconds to create intense light. The resistor limits charging current and controls the timing of energy release.
How it Works: Formulas Explained
The time constant τ = RC determines response speed. Resistance R is in ohms (Ω), capacitance C in farads (F), giving τ in seconds. After one time constant, capacitor voltage reaches 63.2% of final during charging, or falls to 36.8% during discharging. After 5τ, the transient is 99.3% complete — for practical purposes, steady state.
For a series RC circuit with DC voltage V applied at t=0, capacitor voltage rises as V_C(t) = V(1 - e^(-t/τ)). Current starts at I₀ = V/R (capacitor looks like a short circuit initially) and decays as I(t) = (V/R)e^(-t/τ). Resistor voltage is V_R(t) = V × e^(-t/τ), starting at V and falling to zero as the capacitor takes over the full supply voltage.
During discharge (capacitor initially charged to V₀, then connected across resistor), voltage decays as V_C(t) = V₀ × e^(-t/τ). Current flows opposite to charging direction: I(t) = -(V₀/R)e^(-t/τ). The negative sign indicates reversed current flow. Energy stored in the capacitor dissipates as heat in the resistor: total energy dissipated equals the initial stored energy ½CV₀².
Working through a complete example: A 50 V source connects to R = 5 kΩ and C = 20 μF in series. Time constant: τ = RC = 5000 × 20×10⁻⁶ = 0.1 s = 100 ms. Final capacitor voltage: V_final = 50 V. Initial current: I₀ = 50/5000 = 0.01 A = 10 mA. Capacitor voltage at t = 50 ms (0.5τ): V_C = 50(1 - e^(-0.5)) = 50(1 - 0.607) = 50 × 0.393 = 19.65 V. At t = 200 ms (2τ): V_C = 50(1 - e^(-2)) = 50 × 0.865 = 43.25 V. Current at t = 100 ms (1τ): I = 10 mA × e^(-1) = 10 × 0.368 = 3.68 mA.
Step-by-Step Guide
- Identify circuit configuration and component values. Determine if R and C are in series or parallel. Note resistance R in ohms and capacitance C in farads. Convert units: 1 μF = 10⁻⁶ F, 1 nF = 10⁻⁹ F, 1 pF = 10⁻¹² F, 1 kΩ = 1000 Ω, 1 MΩ = 1,000,000 Ω. Example: R = 470 kΩ = 470,000 Ω, C = 2.2 μF = 2.2×10⁻⁶ F.
- Calculate the time constant τ = RC. For the example: τ = 470,000 × 2.2×10⁻⁶ = 1.034 s. This is a moderate-speed circuit — suitable for timing applications in the second range. Larger R or C gives longer time constants. Power supply filters might use τ = 10-100 ms; sample-and-hold circuits might use τ = microseconds.
- Determine initial and final conditions. For charging: V_C(0) = 0 (uncharged capacitor), V_C(∞) = V_supply, I(0) = V/R, I(∞) = 0. For discharging: V_C(0) = V_initial, V_C(∞) = 0. Capacitors are open circuits at DC steady state (no current through them once charged).
- Write the appropriate equation. Charging: V_C(t) = V_final(1 - e^(-t/τ)), I(t) = I₀ × e^(-t/τ). Discharging: V_C(t) = V₀ × e^(-t/τ), I(t) = -(V₀/R) × e^(-t/τ). Choose based on whether the capacitor is gaining or losing charge. Time t starts at 0 when the switch changes state.
- Calculate voltage or current at specific times. At t = τ: V_C = 0.632 × V_final (charging) or V_C = 0.368 × V₀ (discharging). At t = 3τ: 95% charged or 5% remaining. At t = 5τ: 99.3% — essentially complete. Example: After 3.1 s (3τ) in our circuit, charging from 0 to 50 V: V_C = 0.95 × 50 = 47.5 V.
- Find stored energy if needed. Energy in a capacitor: E = ½CV². At full charge (50 V): E = 0.5 × 2.2×10⁻⁶ × 2500 = 0.00275 J = 2.75 mJ. This energy releases during discharge, powering loads or dissipating as heat in the resistor. For camera flashes, C might be 500 μF at 350 V, storing E = 0.5 × 0.0005 × 122,500 = 30.6 J — enough for a bright flash.
Real-World Examples
Example 1: 555 timer astable multivibrator. A 555 timer uses two resistors (R₁ = 10 kΩ, R₂ = 100 kΩ) and a capacitor (C = 10 μF) to generate a square wave. Charging time (output high): t_high = 0.693 × (R₁ + R₂) × C = 0.693 × 110,000 × 10×10⁻⁶ = 0.762 s. Discharging time (output low): t_low = 0.693 × R₂ × C = 0.693 × 100,000 × 10×10⁻⁶ = 0.693 s. Total period: 1.455 s, frequency f = 1/1.455 = 0.687 Hz. Duty cycle = t_high/period = 52%. This circuit blinks an LED about once per second.
Example 2: Camera flash charging circuit. A flash capacitor C = 470 μF charges to 330 V through a current-limiting resistor. The charging circuit uses a boost converter, but we can model the final charging stage as RC. With effective R = 3.3 kΩ: τ = 3300 × 470×10⁻⁶ = 1.55 s. Time to 95% charge (3τ): 4.65 s. This matches the "ready" light timing on disposable cameras — about 5 seconds between flashes. The flash tube fires when a trigger pulse ionizes the xenon gas, dumping the capacitor's 25.6 J of stored energy in ~1 ms.
Example 3: Power supply ripple filter. A rectified AC supply uses a filter capacitor to smooth DC output. For 60 Hz full-wave rectification (120 Hz ripple), effective period is 8.33 ms. With C = 2200 μF and load R = 50 Ω (drawing 0.5 A at 25 V): τ = 50 × 0.0022 = 0.11 s = 110 ms. Since τ >> 8.33 ms, the capacitor discharges only slightly between peaks. Voltage drop ΔV ≈ I × Δt / C = 0.5 × 0.00833 / 0.0022 = 1.89 V. Output ripple is about 2 V peak-to-peak on a 25 V DC level.
Example 4: Debounce circuit for pushbuttons. Mechanical switches bounce for 5-20 ms when pressed, causing multiple false triggers. An RC debouncer uses R = 10 kΩ and C = 1 μF: τ = 10 ms. When the button is pressed, the capacitor charges through R, but contact bouncing can't discharge it quickly. The slow RC rise time filters out bounces. A Schmitt trigger or microcontroller input with threshold at ~0.6V interprets the smooth rise as a single clean transition. Release uses a discharge diode for fast reset.
Example 5: Defibrillator energy delivery. A defibrillator charges a capacitor (C = 50 μF) to high voltage (2000 V for 100 J, or 4000 V for 400 J). Stored energy E = ½CV² = 0.5 × 50×10⁻⁶ × 4000² = 400 J. When discharged through the patient's chest (effective R ≈ 50 Ω), time constant τ = RC = 50 × 50×10⁻⁶ = 2.5 ms. The capacitor discharges exponentially, delivering most energy in 5-10 ms. Current peaks at I = V/R = 4000/50 = 80 A, but the brief pulse (total charge Q = CV = 0.2 coulombs) is designed to restart the heart without tissue damage.
Common Mistakes to Avoid
Confusing capacitor behavior at t=0 vs. t=∞. An uncharged capacitor acts as a short circuit at t=0 (voltage is zero, current is maximum). At t=∞ (steady state DC), it acts as an open circuit (no current, full voltage). Students sometimes reverse these, thinking capacitors block current initially. Remember: capacitors oppose voltage changes, not current changes. Inductors do the opposite — they oppose current changes.
Using wrong time constant formula. RC circuits use τ = RC; RL circuits use τ = L/R. A common error: calculating τ = R/C for RC circuits, which gives units of Ω/F = V/A ÷ C/V = V²/(A·C) — not seconds! Dimensional analysis: ohm × farad = (V/A) × (C/V) = C/A = (A·s)/A = seconds. Always verify your time constant has units of time.
Forgetting that capacitors in series and parallel combine oppositely from resistors. Capacitors in parallel add: C_total = C₁ + C₂ + ... Capacitors in series combine like parallel resistors: 1/C_total = 1/C₁ + 1/C₂ + ... For two series capacitors: C_total = C₁C₂/(C₁ + C₂). Using resistor formulas for capacitors (or vice versa) gives wrong equivalent capacitance and wrong time constant.
Ignoring capacitor leakage and dielectric absorption. Real capacitors aren't ideal. Electrolytics have leakage current (modeled as parallel resistance, typically megaohms). Dielectric absorption causes capacitors to "recover" voltage after discharge — dangerous in high-voltage applications. For timing circuits, leakage adds a parallel resistance, changing the effective time constant. For precision applications, use film or ceramic capacitors instead of electrolytics.
Pro Tips
Use the natural logarithm to solve for time. When you need to find how long it takes to reach a specific voltage, rearrange the exponential equation. For charging to voltage V_target: t = -τ × ln(1 - V_target/V_final). For discharging to V_target: t = -τ × ln(V_target/V₀). Example: Time to charge a capacitor to 90%: t = -τ × ln(1 - 0.9) = -τ × ln(0.1) = 2.30τ. To 99%: t = 4.61τ. To 99.9%: t = 6.91τ.
Combine multiple capacitors strategically. Parallel capacitors add capacitance (more energy storage, longer τ). Series capacitors reduce total capacitance but increase voltage rating. Two 100 μF, 25 V capacitors in series give 50 μF at 50 V rating. In parallel: 200 μF at 25 V. Match voltage ratings to your application with 20-50% margin. For high-voltage circuits, series connection with balancing resistors distributes voltage evenly.
Recognize RC circuits as filters. A series RC with output across the capacitor is a low-pass filter — it passes DC and low frequencies, attenuates high frequencies. Cutoff frequency f_c = 1/(2πRC). With R = 10 kΩ and C = 10 nF: f_c = 1/(2π × 10,000 × 10×10⁻⁹) = 1592 Hz. Frequencies well above 1.6 kHz are attenuated. Output across the resistor gives a high-pass filter. These first-order filters have 20 dB/decade rolloff.
Account for source and load impedance. Real circuits have source resistance (internal to the voltage source) and load resistance (what the capacitor drives). The effective charging resistance is R_source + R_series. The effective discharging resistance is R_series || R_load (parallel combination). For accurate timing, include all resistances in the τ calculation. A microcontroller's output pin has ~25 Ω source resistance; an input has ~100 MΩ load resistance.
FAQs
DC voltage is constant, so once the capacitor charges to that voltage, no more current flows (open circuit). AC voltage continuously changes, so the capacitor continuously charges and discharges, allowing current to flow. The impedance to AC is X_C = 1/(2πfC) — inversely proportional to frequency. At DC (f = 0), X_C is infinite. At high frequency, X_C approaches zero. This frequency dependence makes capacitors essential in filters and coupling circuits.
Electrolytic capacitors offer high capacitance (μF to mF) in small packages but are polarized (must observe + and -), have higher leakage, and degrade over time. Ceramic capacitors are non-polarized, have low leakage, excellent high-frequency response, and long life, but lower capacitance (pF to low μF). Use electrolytics for power supply filtering and energy storage; use ceramics for timing, coupling, and high-frequency applications.
For low-voltage capacitors (< 50 V), a resistor of 1-10 kΩ works. For high-voltage capacitors (camera flashes, power supplies), use a high-wattage resistor (10 kΩ to 100 kΩ, 5-10 W) on an insulated probe. Never short a large capacitor directly — the surge current can weld tools, damage the capacitor, or cause an explosion. Discharge time is about 5τ = 5RC. A 1000 μF, 400 V capacitor with 10 kΩ discharger: τ = 10 s, safe in 50 s.
RC timing is simple but not highly precise. Component tolerances (±5% to ±20% for capacitors, ±1% to ±5% for resistors) and temperature drift affect accuracy. For ±1% timing, use precision components and stable references. For better accuracy, use a crystal oscillator (±0.001%) or a microcontroller with internal timer. RC timing works well for non-critical applications like LED blinkers, debounce circuits, and power-on delays where exact timing isn't critical.
Related Calculators
- RL Circuit Calculator - Inductor-resistor circuits
- Ohm's Law Calculator - Circuit fundamentals
- Electrical Power Calculator - Power calculations
- Energy Converter - Energy stored in capacitors