Home / Circuit lab / AC impedance and phasors

AC impedance and phasor simulator (RL and RC)

In an AC circuit with an inductor or capacitor, the voltages across the parts add up to more than the supply. A phasor diagram shows why. Change the parts and the frequency and watch the triangle.

Intermediate

Challenges

  1. Set a phase angle of 45° (within 1°), where VR and the reactive voltage are equal.
  2. With R and C at 50 Hz (within 1%), make the capacitor's reactance 1 kΩ (within 2%). You can type a value.
  3. With R and L, make the inductor take over 90% of the supply voltage.
  4. Get VR + VX, added as plain numbers, to more than 13 V.

Controls

Readings

Reactance

Inductors and capacitors oppose alternating current in a way that depends on frequency. This opposition is called reactance, X, measured in ohms:

XL = 2π × f × L     XC = 1 ÷ (2π × f × C)

An inductor's reactance rises with frequency, because a faster-changing current induces a bigger opposing voltage. A capacitor's falls with frequency, because it has less time to charge up between reversals. At DC, an ideal inductor is a short circuit and a capacitor is an open circuit.

Why the voltages don't add up

In a resistor, voltage and current rise and fall together. In an inductor, the voltage peaks a quarter of a cycle before the current. In a capacitor, a quarter of a cycle after. So in series, the resistor's voltage and the inductor's or capacitor's voltage peak at different times. At no moment are both at their peak together, so their RMS values add up to more than the supply.

A phasor diagram handles this by drawing each voltage as an arrow at its phase angle. The resistor's voltage lies along the current. The inductor's points up (90° ahead), the capacitor's points down (90° behind). The supply voltage is the arrow you get by adding them head to tail, and it forms the long side of a right-angled triangle. Pythagoras gives:

V = √(VR² + VX²)    Z = √(R² + X²)

where Z is the impedance, the total opposition to current. The current is V ÷ Z.

Phase angle and power factor

The angle φ between the supply voltage and the current is tan φ = X ÷ R. With an inductor the current lags the voltage, with a capacitor it leads. Only the resistor turns energy into heat. The inductor and capacitor store energy and give it back every cycle, so the real power is I² × R, and the power factor is cos φ = R ÷ Z. That's why motors, which look like a resistance plus an inductance, have a lagging power factor. See it corrected in the power factor correction lab.

Where this matters

  • Filters: the voltage across C falls as frequency rises, which is how the RC filter works.
  • Motors, transformers and fluorescent lamp chokes, which are inductive.
  • Earth fault loop and cable calculations for large cables, where the cable's reactance starts to count.

How this simulation works

The parts are ideal: a pure resistance in series with a pure inductance or capacitance, fed by a perfect 10 V RMS sine wave. The results are the exact AC circuit equations. A real inductor also has winding resistance, which adds to R. The phasor diagram is drawn to scale, with 10 V across most of its width. To work out reactance quickly, use the reactance calculator.

Keep exploring