TExcelTAD
Home › EE Foundations: Units, Measurement, Safety & the Lab Notebook › Alternating Current and RMS Values

Alternating Current and RMS Values

A wall socket in Europe is labelled 230 V, yet the voltage between its contacts swings to 325 V and back to −325 V-325\ \text{V} fifty times a second. A cheap multimeter measures a square wave from a function generator and reads 11 % too high. Both puzzles are about how we put one number on a voltage that keeps changing: the RMS value. This lesson refreshes alternating quantities and adds what engineers need to measure them correctly. School background: alternating current and RMS values. Phasors and impedance come in Circuit Theory.

Describing a sine wave

v(t)=Vpsin⁡(ωt+φ),ω=2πf,T=1fv(t) = V_p \sin(\omega t + \varphi), \qquad \omega = 2\pi f, \qquad T = \frac{1}{f}
Symbol Name Unit Mains example (Europe)
VpV_p peak (amplitude) V 325 V325\ \text{V}
Vpp=2VpV_{pp} = 2V_p peak-to-peak V 650 V650\ \text{V}
VrmsV_{rms} root-mean-square V 230 V230\ \text{V}
ff frequency Hz 50 Hz50\ \text{Hz}
TT period s 20 ms20\ \text{ms}
ω\omega angular frequency rad/s 314 rad/s314\ \text{rad/s}
φ\varphi phase rad or degrees depends on the chosen zero of time
Vrms = 0.707 Vp-Vrms Vp Vpp T vt

Why RMS

A resistor heats according to p(t)=v(t)2/Rp(t) = v(t)^2/R. The RMS value is the DC voltage that would heat the same resistor equally:

Vrms=1T∫0Tv(t)2 dt,P=Vrms2R=VrmsIrmsV_{rms} = \sqrt{\frac{1}{T}\int_0^T v(t)^2\, dt}, \qquad P = \frac{V_{rms}^2}{R} = V_{rms} I_{rms}

For a sine Vrms=Vp/2≈0.707 VpV_{rms} = V_p/\sqrt{2} \approx 0.707\,V_p. Other waveforms have other ratios; the crest factor Vp/VrmsV_p/V_{rms} tells you how "peaky" a signal is:

Waveform (no DC offset) VrmsV_{rms} Crest factor Rectified average ∣v∣\lvert v \rvert
sine Vp/2V_p/\sqrt{2} 1.414 2Vp/π=0.637 Vp2V_p/\pi = 0.637\,V_p
square VpV_p 1 VpV_p
triangle Vp/3V_p/\sqrt{3} 1.732 Vp/2V_p/2

Mains voltages are always given as RMS. The nominal low-voltage supply in IEC 60038 (edition 7 of 2009 with amendment 1 of 2021, current in 2026) is 230 V (400 V between phases) at 50 Hz, with 120 V at 60 Hz in North America; the supply may vary by about ±10 %\pm 10\,\%. In this course mains values are only ever calculated or simulated; no lab touches them.

How meters measure AC

Older and cheaper multimeters rectify the signal, measure its average, and multiply by the sine's ratio Vrms/∣v∣‾=π/(22)=1.111V_{rms}/\overline{\lvert v \rvert} = \pi/(2\sqrt{2}) = 1.111. That is exact for a pure sine and wrong for everything else. A true-RMS meter computes the RMS of the real waveform, but only up to its stated bandwidth (often a few kHz on handheld meters) and crest factor. The oscilloscope shows the waveform itself and can compute peak-to-peak and RMS.

Worked example: a generator into a load

Given: a function generator set to 4.0 Vpp4.0\ \text{V}_{pp}, 1.0 kHz1.0\ \text{kHz} sine, driving R=100 ΩR = 100\ \Omega. (Generators usually assume a 50 Ω50\ \Omega load in their display; assume here that the 4.0 Vpp4.0\ \text{V}_{pp} really appears across RR.) Find: VpV_p, VrmsV_{rms}, IrmsI_{rms}, the average power, the period and ω\omega. Solve:

Vp=4.0 V2=2.0 V,Vrms=2.0 V2=1.41 VIrms=1.41 V100 Ω=14.1 mA,P=(1.41 V)2100 Ω=20 mWT=11000 Hz=1.0 ms,ω=2π⋅1000 Hz=6283 rad/s\begin{aligned} V_p &= \frac{4.0\ \text{V}}{2} = 2.0\ \text{V}, \qquad V_{rms} = \frac{2.0\ \text{V}}{\sqrt{2}} = 1.41\ \text{V} \\ I_{rms} &= \frac{1.41\ \text{V}}{100\ \Omega} = 14.1\ \text{mA}, \qquad P = \frac{(1.41\ \text{V})^2}{100\ \Omega} = 20\ \text{mW} \\ T &= \frac{1}{1000\ \text{Hz}} = 1.0\ \text{ms}, \qquad \omega = 2\pi \cdot 1000\ \text{Hz} = 6283\ \text{rad/s} \end{aligned}

Check: P=Vp2/(2R)=4/200=0.020 WP = V_p^2/(2R) = 4/200 = 0.020\ \text{W}, the same. 20 mW is fine for any small resistor.

RMS of real waveforms in Python

Sampling a waveform and applying the definition is exactly what a digital oscilloscope or a true-RMS meter does.

python · try it yourself
import numpy as np

Vp, f = 2.0, 1000.0
t = np.arange(0, 1/f, 1/f/10000)            # one period, 10 000 samples
waves = {
    "sine": Vp*np.sin(2*np.pi*f*t),
    "square": Vp*np.sign(np.sin(2*np.pi*f*t + 1e-9)),
    "triangle": Vp*(2/np.pi)*np.arcsin(np.sin(2*np.pi*f*t)),
}
print("wave      Vrms(true)  crest  avg-responding meter  error")
for name, v in waves.items():
    rms = float(np.sqrt(np.mean(v**2)))
    avg_meter = np.pi/(2*np.sqrt(2)) * float(np.mean(np.abs(v)))
    print(f"{name:9s} {rms:9.3f} V {Vp/rms:6.3f} {avg_meter:15.3f} V {round(100*(avg_meter/rms - 1), 1) + 0.0:+9.1f} %")
wave      Vrms(true)  crest  avg-responding meter  error
sine          1.414 V  1.414           1.414 V      +0.0 %
square        2.000 V  1.000           2.221 V     +11.1 %
triangle      1.155 V  1.732           1.111 V      -3.8 %

The 11 % square-wave error of the opening puzzle is the meter's sine correction factor applied to the wrong waveform.

Guided lab: RMS and average power

Hand calculation. Vp=10 VV_p = 10\ \text{V} across 10 Ω10\ \Omega: Vrms=7.07 VV_{rms} = 7.07\ \text{V}, the instantaneous power swings between 0 and Vp2/R=10 WV_p^2/R = 10\ \text{W}, and the average is Vp2/(2R)=5.00 WV_p^2/(2R) = 5.00\ \text{W}.

Simulation. The lab (it writes the voltage as uu and the peak as U0U_0) runs at a slow 0.5 Hz so you can follow the phasor and the power curve; its readouts show Urms=7.07 VU_{rms} = 7.07\ \text{V} and P=5.00 WP = 5.00\ \text{W}. The "mains" button switches to 230 V, 50 Hz in slow motion: a calculation, never a bench activity.

U0rotating phasoru (V)tUrms = 7.07 V10.0−10.0T = 2.00 sp = u²/R (W)average P = 5.00 W10.00R = 10 Ωi = 0.00 A

What you would measure. Set a function generator to a 1 kHz1\ \text{kHz} sine, 4 Vpp4\ \text{V}_{pp} (set its output to "high-Z" so the display matches the voltage across a high-resistance load), across a 1 kΩ1\ \text{k}\Omega resistor. On the oscilloscope expect Vpp=4.0 V±3 %V_{pp} = 4.0\ \text{V} \pm 3\,\% (typical vertical accuracy), T=1.00 msT = 1.00\ \text{ms} and a computed RMS of 1.41 V1.41\ \text{V}. A true-RMS multimeter should read 1.41 V1.41\ \text{V} within about ±1 %\pm 1\,\% at 1 kHz (check its AC bandwidth in the manual). Switch to a square wave of the same amplitude: a true-RMS meter reads 2.00 V2.00\ \text{V}, an average-responding one about 2.22 V2.22\ \text{V}.

Hazards and safe setup: function generators and bench supplies only, a few volts; never connect an oscilloscope or meter to mains to "look at the sine wave" (it needs a differential probe and a CAT-rated setup; see Safe Bench Practice).

Pitfalls

  • Mixing peak and RMS: a capacitor across rectified 230 V mains charges to the peak, about 325 V, not 230 V.
  • Trusting an average-responding meter on non-sine waves: PWM, square and distorted waveforms need a true-RMS meter or a scope.
  • Forgetting the meter's bandwidth: many handheld meters are accurate only to a few hundred Hz or kHz.
  • Generator display vs actual output: a generator set for a 50 Ω50\ \Omega load shows half the open-circuit voltage.

Practice

  1. What are VpV_p and VppV_{pp} for 120 V RMS mains?
  2. A triangle wave of 3 V3\ \text{V} peak drives 50 Ω50\ \Omega. Find the average power.
  3. Find ω\omega and TT for 60 Hz60\ \text{Hz}.
Answer
  1. Vp=1202=170 VV_p = 120\sqrt{2} = 170\ \text{V}, Vpp=339 VV_{pp} = 339\ \text{V} (by calculation only).
  2. Vrms=3/3=1.732 VV_{rms} = 3/\sqrt{3} = 1.732\ \text{V}, P=1.7322/50=60 mWP = 1.732^2/50 = 60\ \text{mW}.
  3. ω=2π⋅60=377 rad/s\omega = 2\pi \cdot 60 = 377\ \text{rad/s}, T=16.7 msT = 16.7\ \text{ms}.

Test yourself

The RMS value of a sine wave with a peak of 10 V is about…

  1. 5.0 V
  2. 6.4 V
  3. 7.1 V
  4. 14.1 V

Why is the RMS value used for AC voltages?

  1. It is always the largest value
  2. It gives the same heating in a resistor as a DC voltage of that value
  3. It is the average of the voltage over one period
  4. Meters cannot measure peaks

An average-responding meter measures a square wave of 2 V peak (no offset). It reads about…

  1. 2.00 V
  2. 1.41 V
  3. 2.22 V
  4. 1.27 V

The peak voltage of 230 V RMS mains is about…

  1. 230 V
  2. 163 V
  3. 325 V
  4. 460 V