---
title: "RC and RL transients, LC and AC impedance | Sandbox Physics"
description: "Calculate RC and RL time constants, follow energy around an LC loop and use a frequency sweep to find where the impedance phase changes sign."
canonical_url: "https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/electricity-and-magnetism/transients-and-ac-impedance/"
last_modified: "2026-11-24"
---

[Volume 3 · Electricity, Magnetism and Circuits](https://sandboxphysics.com/learn/electricity-and-magnetism/)

# How do capacitors and inductors respond to a changing voltage?

Calculate RC and RL time constants, follow energy around an LC loop and use a frequency sweep to find where the impedance phase changes sign.

Before you start: [Chapter 2](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-potential-and-capacitance/), [Chapter 3](https://sandboxphysics.com/learn/electricity-and-magnetism/direct-current-circuits/) and [Chapter 5](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/) on capacitance, loop equations and inductance. [Volume 2 Chapter 2](https://sandboxphysics.com/learn/oscillations-and-waves/damped-oscillations/) and [Chapter 3](https://sandboxphysics.com/learn/oscillations-and-waves/driven-oscillation-and-resonance/) on damping and driven resonance.

After this chapter you can: Find a switching time constant and read resistance, phase and resonance from a series circuit’s impedance.

When a switch connects a circuit to a voltage source, a capacitor's voltage and an inductor's current take time to change. With a sinusoidal source, the same component laws determine how far the current leads or lags the voltage. At series resonance, the capacitor and inductor produce equal and opposite contributions to the total voltage.

## 6.1 Watch a circuit settle after a switch closes

### 6.1.1 A resistor limits how fast a capacitor charges

Connect an ideal resistor $R$ and an initially uncharged capacitor $C$ in series to a constant source $V_s$ at $t=0$. Write $q$ for the signed charge on the capacitor plate that the positive current $i=dq/dt$ enters. The voltage drops around the loop add to the source voltage.

$$
V_s=Ri+\frac{q}{C},\qquad
v_C(t)=V_s\bigl(1-e^{-t/\tau_C}\bigr),\qquad
\tau_C=RC .
$$

Immediately after switching, the capacitor voltage is still zero and the current is $V_s/R$. As the capacitor charges, less of the source voltage appears across the resistor, so the current falls. After one time constant the capacitor has reached $1-e^{-1}\approx0.632$ of its final voltage.

If the source is removed and the capacitor is left across the resistor, the loop equation has zero on the source side. The capacitor voltage falls to zero from its value at the switch, multiplying by $e^{-1}$ every time constant. The current reverses relative to charging.

### 6.1.2 An inductor limits how fast the current builds

Now connect $R$ and an ideal inductor $L$ in series to the same constant source, starting with zero current. The inductor voltage drop is positive at the terminal where the growing positive current enters. Kirchhoff's loop rule gives

$$
V_s=Ri+L\frac{di}{dt},\qquad
i(t)=\frac{V_s}{R}\bigl(1-e^{-t/\tau_L}\bigr),\qquad
\tau_L=\frac{L}{R}.
$$

Immediately after switching, the current is still zero, so the full source voltage appears across the inductor. As the current approaches $V_s/R$, the inductor voltage falls to zero. If the source is removed and the inductor still has a closed path through the resistor, the current starts at its value just before switching and decays by $e^{-1}$ each time constant.

### 6.1.3 Compare two analytic switching records

For the RC loop use $R=2.00\,\mathrm{k\Omega}$ and $C=10.0\,\mu\mathrm F$. For the RL loop use $R=10.0\,\Omega$ and $L=0.200\,\mathrm H$. Both use $V_s=5.00\,\mathrm V$ and have a time constant of $20.0\,\mathrm{ms}$. The resistor and the energy-storing component set the rate of change together.

**Table 6.1** Analytic step responses for the two ideal series loops. The RC voltage and RL current reach the same fraction of their own final values at each time.

| Time after the step | Capacitor voltage | Inductor current |
| --- | --- | --- |
| $0\,\mathrm{ms}$ | $0\,\mathrm V$ | $0\,\mathrm A$ |
| $20.0\,\mathrm{ms}$ | $3.16\,\mathrm V$ | $0.316\,\mathrm A$ |
| $40.0\,\mathrm{ms}$ | $4.32\,\mathrm V$ | $0.432\,\mathrm A$ |
| $60.0\,\mathrm{ms}$ | $4.75\,\mathrm V$ | $0.475\,\mathrm A$ |

## 6.2 Exchange energy in a free LC loop

Connect a charged capacitor to an ideal inductor with zero resistance and no source. Let $q(0)=Q_0$ and $i(0)=0$. Keep positive current defined into the plate that carries charge $q$. The loop law is

$$
L\ddot q+\frac{q}{C}=0,\qquad
\omega_0=\frac{1}{\sqrt{LC}},\qquad
q(t)=Q_0\cos(\omega_0t).
$$

This is the same oscillator equation as for a mass and spring, with charge in place of displacement. The current rises in magnitude as the capacitor discharges. Once the charge crosses zero, the current keeps flowing and charges the capacitor with the opposite polarity.

$$
U=\frac{q^2}{2C}+\frac{Li^2}{2}.
$$

The circuit exchanges energy between the electric field of the capacitor and the magnetic field of the inductor. With zero resistance, the sum stays constant. After one quarter period, all the initial electric energy is magnetic. A small series resistance dissipates energy, so the free oscillation decays. With enough resistance, the charge can settle without oscillating.

## 6.3 Use impedance once the sinusoidal response settles

### 6.3.1 Add the voltage drops with their phases

In a series RLC circuit the same current flows through all three components. In the steady sinusoidal response, write voltage and current as the real parts of complex amplitudes times $e^{j\omega t}$, with $j^2=-1$ and $\omega=2\pi f$. The complex amplitudes, or phasors, encode magnitude and phase. Taking a time derivative of a sinusoid in this convention multiplies its phasor by $j\omega$.

The resistor voltage is in phase with the current. The inductor voltage leads the current by a quarter cycle because its voltage is proportional to the derivative of the current. The capacitor voltage lags the current by a quarter cycle because its voltage is proportional to charge, the integral of current. Dividing the total voltage phasor by the current phasor gives the impedance.

$$
Z=R+j\left(\omega L-\frac{1}{\omega C}\right),\qquad
|Z|=\sqrt{R^2+\left(\omega L-\frac{1}{\omega C}\right)^2},\qquad
\phi=\arg Z .
$$

Here $\phi$ is the voltage phase minus the current phase. Below resonance the imaginary part is negative and current leads voltage. Above resonance the imaginary part is positive and current lags. When the two reactive terms cancel, the impedance magnitude is smallest. This occurs at the angular frequency $\omega_0$ of the ideal free LC loop.

### 6.3.2 Average the power over one period

The source drives the series loop with a sinusoidal voltage. Let $V_{\mathrm{rms}}$ and $I_{\mathrm{rms}}$ be the effective voltage and current, each equal to its peak magnitude divided by $\sqrt 2$. Averaging the instantaneous voltage times current gives

$$
\overline P
=V_{\mathrm{rms}}I_{\mathrm{rms}}\cos\phi
=I_{\mathrm{rms}}^2 R.
$$

Over a full cycle each ideal storage element returns the energy it took in. The resistor dissipates energy every cycle. At resonance $\phi=0$, so the current is in phase with the voltage and the power factor is one.

## 6.4 Find the phase change in a saved sweep

Open [LCR & Impedance Analyzer](https://sandboxphysics.com/labs/lcr-impedance/) and click **Reset**. The default capacitor model contains $C=1.00\,\mu\mathrm F$, series inductance $L=100\,\mathrm{nH}$ and series resistance about $0.100\,\Omega$. The ideal series calculation predicts resonance near $503\,\mathrm{kHz}$.

Use the **Frequency** control to move the saved-record cursor through the three settings below. Read **Saved compensated impedance magnitude** and **Saved compensated phase**. The first and last settings have opposite phase signs. Between them the magnitude approaches the model's series resistance.

**Table 6.2** Three rounded points from the default simulated sweep, after fixture compensation.

| Frequency | Impedance magnitude | Voltage phase minus current phase |
| --- | --- | --- |
| $447\,\mathrm{kHz}$ | $0.125\,\Omega$ | $-37.1^\circ$ |
| $501\,\mathrm{kHz}$ | $0.100\,\Omega$ | $-1.51^\circ$ |
| $562\,\mathrm{kHz}$ | $0.122\,\Omega$ | $+35.1^\circ$ |

**Figure 6.1** Compensated impedance magnitude and phase near the minimum of the default simulated sweep. Each point is a saved frequency, and both panels share the same frequency axis. The phase changes sign between saved points.

The series fit uses the compensated voltage and current observations across the sweep. Its resonance estimate is near $503\,\mathrm{kHz}$, between the available sample frequencies. The Lab measures simulated steady sinusoidal response. The switch records in Table 6.1 are separate analytic solutions of the ideal time-domain equations.

## 6.5 Exercises

1. A series RC loop has $R=10.0\,\mathrm{k\Omega}$ and $C=5.00\,\mu\mathrm F$. The initially uncharged capacitor starts charging from a constant source. When does it reach about $63.2\%$ of the source voltage?
2. A series RL loop is connected to a constant source with initial current zero. At the first instant after closing the switch, what voltage appears across the resistor and across the inductor?
3. An RL loop begins to decay from $0.800\,\mathrm A$ after the source is removed. A resistor remains in the closed loop. If the time constant is $40.0\,\mathrm{ms}$, what current remains after that time?
4. An isolated ideal LC loop starts with a charged capacitor and zero current. How is its energy distributed after one quarter of a period? What changes if the capacitance is multiplied by four?
5. A steady sinusoidal current drives an ideal inductor. Does the inductor voltage lead or lag the current? By how much?
6. A series RLC circuit is at resonance. What is the total impedance? Do the individual capacitor and inductor voltages vanish?
7. At series resonance, the effective current is $2.00\,\mathrm A$ and the resistance is $3.00\,\Omega$. Find the mean power dissipated.
8. A compensated series sweep shows a small negative voltage-minus-current phase at one sampled frequency and a positive phase at the next higher sample. What can you infer about the resonance frequency in the series RLC model?

Exercise 1

The time constant is $RC=50.0\,\mathrm{ms}$. At one time constant, the voltage has reached $1-e^{-1}$ of the final voltage.

Exercise 2

The current is still zero at the first instant, so the resistor voltage is zero. The entire source voltage is across the inductor, which sets the initial positive rate of change of current.

Exercise 3

It remains in the original direction and falls to $0.800e^{-1}\,\mathrm A\approx0.294\,\mathrm A$. The current decays by the same factor each time constant.

Exercise 4

At a quarter period, the capacitor charge is zero and all energy is in the inductor. Multiplying the capacitance by four halves $\omega_0$ and doubles the period.

Exercise 5

It leads by a quarter cycle, or $\pi/2$. The voltage is proportional to the derivative of the current, which reaches its positive peak a quarter cycle before the current reaches its own positive peak.

Exercise 6

The impedance is $Z=R$. The two reactive voltages are equal in magnitude and opposite in phase, so their sum vanishes. Each component can still have a nonzero voltage.

Exercise 7

Use $I_{\mathrm{rms}}^2R$. The mean power is $12.0\,\mathrm W$. The reactive elements exchange energy but absorb zero net energy over the period.

Exercise 8

The zero phase lies between the two samples in the model. A model fit can estimate where it lies inside that interval. The nearest saved point represents its own sampled frequency.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[LCR & Impedance Analyzer → Sweep synchronous voltage and current, acquire open/short/load standards and separate fixture errors from a component’s own parasitics.](https://sandboxphysics.com/labs/lcr-impedance/)

## Sources and reading scope

1. [OpenStax, University Physics Volume 2, §10.5 RC Circuits](https://openstax.org/books/university-physics-volume-2/pages/10-5-rc-circuits)

   A series RC loop gives exponential charging and discharging, with the resistance and capacitance setting the time scale.

2. [OpenStax, University Physics Volume 2, §14.4 RL Circuits](https://openstax.org/books/university-physics-volume-2/pages/14-4-rl-circuits)

   The section solves the current after switching and relates its time constant to inductance and resistance.

3. [OpenStax, University Physics Volume 2, §14.5 Oscillations in an LC Circuit](https://openstax.org/books/university-physics-volume-2/pages/14-5-oscillations-in-an-lc-circuit)

   In the ideal LC loop the energy shifts periodically between the capacitor and inductor, with their values setting the frequency.

4. [OpenStax, University Physics Volume 2, §15.3 RLC Series Circuits with AC](https://openstax.org/books/university-physics-volume-2/pages/15-3-rlc-series-circuits-with-ac)

   The section adds the voltage phasors for a resistor, inductor and capacitor to find series impedance and phase.

5. [OpenStax, University Physics Volume 2, §15.4 Power in an AC Circuit](https://openstax.org/books/university-physics-volume-2/pages/15-4-power-in-an-ac-circuit)

   The section gives mean power in terms of rms voltage, rms current and the power factor.

6. [OpenStax, University Physics Volume 2, §15.5 Resonance in an AC Circuit](https://openstax.org/books/university-physics-volume-2/pages/15-5-resonance-in-an-ac-circuit)

   The section derives the resonance condition for a driven series RLC loop from the cancellation of the two reactances.

[← Chapter 5 · Why does changing magnetic flux produce an emf?](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/) [Chapter 7 · How do electric and magnetic fields travel as a wave? →](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/)

Chapters in this volume

- [1. How do charges interact through an electric field?](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-fields-and-flux/)
- [2. How does electric potential reveal the electric field?](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-potential-and-capacitance/)
- [3. How do currents divide at junctions and around loops?](https://sandboxphysics.com/learn/electricity-and-magnetism/direct-current-circuits/)
- [4. Why does a magnetic field bend a moving charge?](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/)
- [5. Why does changing magnetic flux produce an emf?](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/)
- [6. How do capacitors and inductors respond to a changing voltage?](https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/)
- [7. How do electric and magnetic fields travel as a wave?](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/)

## Keep reading

Interactive Physics Textbook · Reading path

### Electricity, Magnetism and Circuits

1. [Article **How do charges interact through an electric field?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-fields-and-flux/)
2. [Article **How does electric potential reveal the electric field?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-potential-and-capacitance/)
3. [Article **How do currents divide at junctions and around loops?**](https://sandboxphysics.com/learn/electricity-and-magnetism/direct-current-circuits/)
4. [Article **Why does a magnetic field bend a moving charge?**](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/)
5. [Article **Why does changing magnetic flux produce an emf?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/)
6. [You are here **How do capacitors and inductors respond to a changing voltage?**](https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/)
7. [Article **How do electric and magnetic fields travel as a wave?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **LCR & Impedance Analyzer**](https://sandboxphysics.com/labs/lcr-impedance/)
2. [Article **Why a capacitor can behave like an inductor**](https://sandboxphysics.com/stories/instruments/lcr-impedance/)
