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 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
| Symbol | Name | Unit | Mains example (Europe) |
|---|---|---|---|
| peak (amplitude) | V | ||
| peak-to-peak | V | ||
| root-mean-square | V | ||
| frequency | Hz | ||
| period | s | ||
| angular frequency | rad/s | ||
| phase | rad or degrees | depends on the chosen zero of time |
Why RMS
A resistor heats according to . The RMS value is the DC voltage that would heat the same resistor equally:
For a sine . Other waveforms have other ratios; the crest factor tells you how "peaky" a signal is:
| Waveform (no DC offset) | Crest factor | Rectified average | |
|---|---|---|---|
| sine | 1.414 | ||
| square | 1 | ||
| triangle | 1.732 |
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 . 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 . 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 , sine, driving . (Generators usually assume a load in their display; assume here that the really appears across .) Find: , , , the average power, the period and . Solve:
Check: , 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.
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. across : , the instantaneous power swings between 0 and , and the average is .
Simulation. The lab (it writes the voltage as and the peak as ) runs at a slow 0.5 Hz so you can follow the phasor and the power curve; its readouts show and . The "mains" button switches to 230 V, 50 Hz in slow motion: a calculation, never a bench activity.
What you would measure. Set a function generator to a sine, (set its output to "high-Z" so the display matches the voltage across a high-resistance load), across a resistor. On the oscilloscope expect (typical vertical accuracy), and a computed RMS of . A true-RMS multimeter should read within about at 1 kHz (check its AC bandwidth in the manual). Switch to a square wave of the same amplitude: a true-RMS meter reads , an average-responding one about .
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 load shows half the open-circuit voltage.
Practice
- What are and for 120 V RMS mains?
- A triangle wave of peak drives . Find the average power.
- Find and for .
Answer
- , (by calculation only).
- , .
- , .
Test yourself
The RMS value of a sine wave with a peak of 10 V is about…
- 5.0 V
- 6.4 V
- 7.1 V
- 14.1 V
Why is the RMS value used for AC voltages?
- It is always the largest value
- It gives the same heating in a resistor as a DC voltage of that value
- It is the average of the voltage over one period
- Meters cannot measure peaks
An average-responding meter measures a square wave of 2 V peak (no offset). It reads about…
- 2.00 V
- 1.41 V
- 2.22 V
- 1.27 V
The peak voltage of 230 V RMS mains is about…
- 230 V
- 163 V
- 325 V
- 460 V