Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 38 · AC Circuits and Electromagnetic Waves

Alternating Current: Peak, RMS and Phase

Understand alternating current and voltage: frequency, period, peak and RMS values, average power in a resistor, mains voltages, and phase differences with examples.

Batteries give direct current (DC): the current flows one way at a steady value. The electricity from a wall socket is different. It is alternating current (AC): the voltage and current swing back and forth in a smooth sine wave, many times per second. Power stations favor AC because it is easy to change voltage with a transformer, which makes long-distance transmission efficient (you will see this in a later lesson).

In this lesson you will describe AC with frequency, peak and RMS values, calculate its power in a resistor, and meet the idea of phase.

Describing a sinusoidal AC source

The voltage of an ideal AC source can be written as

Text
v(t) = V₀ sin(ω t)
  • V₀ is the peak voltage (the amplitude).
  • ω is the angular frequency in rad/s.
  • f is the frequency in hertz (cycles per second) with ω = 2π f.
  • T = 1 / f is the period, the time for one complete cycle.

Around the world, mains frequency is 50 Hz in most countries (Europe, Africa, most of Asia and Oceania) and 60 Hz in others (for example the United States, Canada and parts of Asia and South America). Nominal mains voltages are 230 V in most of the world and 120 V in North America and a few other places.

For a 50 Hz supply, T = 0.020 s = 20 ms, and ω = 2π × 50 ≈ 314 rad/s.

Why we need RMS values

The average of a sine wave over a full cycle is zero, so the plain average voltage tells us nothing about its effect. What does matter is the heating power. In a resistor R, the instantaneous power is p = v² / R = V₀² sin²(ω t) / R. This is never negative, so its average is not zero. The average of sin² over a cycle is exactly 1/2, so

Text
P_avg = V₀² / (2 R)

To make AC comparable with DC, we define the root-mean-square (RMS) value: the square root of the mean of the square. It is the DC value that would deliver the same average power.

Text
V_rms = V₀ / √2 ≈ 0.707 V₀
I_rms = I₀ / √2
P_avg = V_rms I_rms = I_rms² R = V_rms² / R

When we say "230 V mains" or "120 V mains", we mean RMS values. A multimeter in its AC setting also shows RMS (for sine waves).

Nominal mains (RMS) Peak value
230 V 325 V
120 V 170 V

Insulation and capacitors must be rated for the peak value, not only the RMS value.

Python RMS and average power numerically

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Worked example

A heater of resistance R = 46 Ω is connected to 230 V RMS mains.

  • I_rms = 230 / 46 = 5.0 A.
  • P_avg = 230 × 5.0 = 1150 W.
  • Peak current I₀ = 5.0 × √2 ≈ 7.07 A; peak power V₀ I₀ ≈ 325 × 7.07 ≈ 2300 W, double the average, as expected for sine-squared.

Phase

Two AC quantities of the same frequency can be out of step. If the current is

Text
i(t) = I₀ sin(ω t - φ)

then φ is the phase difference: the current lags the voltage by φ (or leads if φ is negative). Phase can be expressed in degrees or radians; a full cycle is 360° = 2π rad. A shift of a quarter cycle is 90°.

  • In a resistor, current and voltage are in phase (φ = 0).
  • In an ideal inductor, the current lags the voltage by 90°.
  • In an ideal capacitor, the current leads the voltage by 90°.

A handy memory aid is "ELI the ICE man": in an inductor (L), voltage (E) leads current (I); in a capacitor (C), current (I) leads voltage (E).

flowchart LR
  A["Resistor: v and i in phase"] --> D["Voltage source: V0 sin(ωt)"]
  B["Inductor: i lags v by 90 degrees"] --> D
  C["Capacitor: i leads v by 90 degrees"] --> D

Phase relationships for ideal components (the next lesson explains why).

Python Two waves with a phase shift

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The time lag is φ / ω: a 60° shift at 50 Hz is 1/6 of the 20 ms period.

Instantaneous power with a phase difference

If the current lags the voltage by φ, the average power delivered is

Text
P_avg = V_rms I_rms cos φ

The factor cos φ is called the power factor. For a pure resistor φ = 0 and the factor is 1. For an ideal inductor or capacitor φ = 90°, so cos φ = 0 and the average power is zero: energy goes in and out each cycle but none is used up. This idea returns in the resonance lesson.

Common mistakes

  • Quoting the peak voltage when the RMS voltage was meant (or vice versa). Always state which.
  • Using P = V₀ I₀ for average power instead of V₀ I₀ / 2.
  • Taking the "average voltage" of a sine wave as useful: it is zero over a full cycle.
  • Mixing up lead and lag.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A mains supply has an RMS voltage of 230 V. What is its peak voltage?

    V₀ = √2 × V_rms = 1.414 × 230 ≈ 325 V.
  2. 2. A 50 Hz supply has what period?

    T = 1 / f = 1 / 50 = 0.020 s = 20 ms.
  3. 3. A 60 Ω resistor is connected to a 120 V RMS supply. What is the average power?

    P = V_rms² / R = 14 400 / 60 = 240 W.
  4. 4. In an ideal capacitor connected to an AC source, the current…

    ICE: in a capacitor the current leads the voltage by a quarter of a cycle.

Summary

  • AC voltage: v = V₀ sin(ω t) with ω = 2π f and T = 1 / f.
  • V_rms = V₀ / √2; AC mains ratings quote RMS values.
  • Average power in a resistor: P = V_rms I_rms = V_rms² / R.
  • Phase: current is in phase in a resistor, lags in an inductor and leads in a capacitor.
  • Average power with a phase difference: P = V_rms I_rms cos φ.

Next: Reactance and Impedance