---
title: Average and RMS values, and what "120 V" at an outlet means
heading: One number for a voltage that never stands still
eyebrow: A5 · Lesson 51 · Average and RMS values
xp: 40
---

::: hook
The voltage at a US outlet swings between +170 V and −170 V sixty times a second. Its average is zero. Yet everyone calls it "120 V", and a 120 V light bulb glows just as brightly on it as on a 120 V battery. Which average gives 120, and why is it the one that matters?

::: play
- Choose a waveform with the shape slider: 1 sine, 2 square, 3 triangle, 4 half-wave rectified sine, 5 full-wave rectified sine. All have a peak of 1.
- The shaded area is the waveform's signed area over one cycle. The strip gives its average and its RMS value.
- Which shape has the largest RMS value for the same peak? Which has an average of zero but a large RMS?
:::
:::

```sim plot
view: graph
x: x = 0..6.283
y: y = -1.3..1.3
slider: s = 1..5 step 1 = 1
plot: step(1.5 - s)*sin(x) + step(s - 1.5)*step(2.5 - s)*sign(sin(x)) + step(s - 2.5)*step(3.5 - s)*(2/pi)*asin(sin(x)) + step(s - 3.5)*step(4.5 - s)*sin(x)*step(sin(x)) + step(s - 4.5)*abs(sin(x)) | fill: 0..6.283 | samples: 1000 | label: v
plot: step(1.5 - s)*0 + step(s - 3.5)*step(4.5 - s)/pi + step(s - 4.5)*2/pi | dashed | color: ch2 | label: average
plot: step(1.5 - s)/sqrt(2) + step(s - 1.5)*step(2.5 - s) + step(s - 2.5)*step(3.5 - s)/sqrt(3) + step(s - 3.5)*step(4.5 - s)/2 + step(s - 4.5)/sqrt(2) | dashed | color: ch3 | label: RMS
readout: average = step(s - 3.5)*step(4.5 - s)/pi + step(s - 4.5)*2/pi
readout: RMS = step(1.5 - s)/sqrt(2) + step(s - 1.5)*step(2.5 - s) + step(s - 2.5)*step(3.5 - s)/sqrt(3) + step(s - 3.5)*step(4.5 - s)/2 + step(s - 4.5)/sqrt(2)
```

::: predict
## A sine wave with a peak of 170 V heats a resistor exactly as much as a steady DC voltage of how much?

- [ ] 0 V, its average
- [ ] 85 V, half the peak
- [x] About 120 V
- [ ] 170 V, its peak

::: reveal
About 120 V: the peak divided by $\sqrt2$. Heating goes as the voltage squared, which is never negative, so the swing's two halves both heat the resistor. The average of $\sin^2$ over a cycle is ½, so the sine heats like a steady voltage of $170/\sqrt2 \approx 120$ V. That's the **RMS** value, and it's what "120 V" means.
:::
:::

::: nameit
## Two kinds of average

The **average** (or mean) value of a waveform over one period $T$ is its area divided by its length:

$$\bar v = \frac1T\int_0^T v(t)\,dt$$

For any symmetric AC wave it's zero, which says nothing about how strong the wave is.

The **root-mean-square** value squares the waveform first, averages, then takes the square root:

$$V_\text{rms} = \sqrt{\frac1T\int_0^T v(t)^2\,dt}$$

It's the steady DC voltage that would deliver the same average power to a resistor, since the power is $v^2/R$ at every instant. For a sine of amplitude $A$, the average of $\sin^2$ is ½, so

$$V_\text{rms} = \frac{A}{\sqrt2} \approx 0.707A$$

| Waveform, peak $A$ | Average | RMS |
|---|---|---|
| sine | 0 | $A/\sqrt2$ |
| square | 0 | $A$ |
| triangle | 0 | $A/\sqrt3$ |
| half-wave rectified sine | $A/\pi$ | $A/2$ |
| full-wave rectified sine | $2A/\pi$ | $A/\sqrt2$ |

**DC plus AC.** A DC level $V_\text{DC}$ with an AC wave on top has $V_\text{rms} = \sqrt{V_\text{DC}^2 + V_\text{ac,rms}^2}$: the cross term averages to zero.

**Meters.** A "true RMS" meter computes the RMS value directly. Cheaper meters measure the average of $|v|$ and multiply by 1.11, the ratio of RMS to average for a sine, so they read correctly only for sine waves. On a square wave such a meter reads 11% high.
:::

::: example
## US mains peaks at 170 V. What is its RMS value?

::: solution
1. **RMS of a sine.**
   $$\begin{aligned} V_{rms} &= \frac{V_p}{\sqrt{2}} \\ &= \frac{170}{1.414} \\ &= 120.2\ \text{V} \end{aligned}$$
2. **What it means.** That's the "120 V" on the outlet: the DC voltage that would heat a resistor equally.

**Answer:** the RMS value is 120.2 V.
:::
:::

::: example
## A 60 Ω heater runs on 120 V RMS. What is its average power?

::: solution
1. **Average power.**
   $$\begin{aligned} P &= \frac{V_{rms}^2}{R} \\ &= \frac{14\,400}{60} \\ &= 240\ \text{W} \end{aligned}$$
2. **Why the peak won't do.** Using the peak voltage, $170^2/60 = 482$ W, would double-count: that's the power only at the instant of the peak.

**Answer:** the heater's average power is 240 W.
:::
:::

::: example
## A sawtooth rises steadily from 0 to 10 V and drops back, over and over. What are its average and RMS values?

::: solution
1. **One period.** Over one period, $v = 10t/T$.
2. **Average.**
   $$\frac{1}{T}\int_0^T \frac{10t}{T}\,dt = 5\ \text{V}$$
3. **Mean square.**
   $$\frac{1}{T}\int_0^T\left(\frac{10t}{T}\right)^2dt = \frac{100}{3}$$
4. **RMS.**
   $$\begin{aligned} V_{rms} &= \frac{10}{\sqrt{3}} \\ &= 5.77\ \text{V} \end{aligned}$$
   The RMS is above the average because squaring weights the high parts more.

**Answer:** the average is 5 V and the RMS value is 5.77 V.
:::
:::

::: check
given: A = 2..20 int
answer: A/sqrt(3)
unit: V
tolerance: 0.5%

## A triangle wave swings between −{A} V and +{A} V. What is its RMS value, in volts?

::: right
Right. Averaging the square of a straight ramp over its range gives $A^2/3$, so $V_\text{rms} = A/\sqrt3$ = {answer}.
:::

::: misses
- [A/sqrt(2)] That's for a sine. A triangle spends more of its time near zero, so its RMS is smaller.
- [A/2] That's the average of $|v|$ for a triangle. RMS squares first.
- [any] Not yet. For a triangle wave, $V_\text{rms} = A/\sqrt3$.
:::
:::

::: check
given: A = 5..340 sig 2
answer: 2*A/pi
unit: V
tolerance: 0.5%

## A full-wave rectifier turns a sine of peak {A} V into $|A\sin\omega t|$. What is its average value, in volts?

::: right
Right. The area under one hump of $\sin$ is 2, over a width of π, so the average is $2A/\pi$ = {answer}.
:::

::: misses
- [A/pi] That's for a half-wave rectifier, which has a gap every other half-cycle.
- [A/sqrt(2)] That's the RMS value. The average is the area divided by the length.
- [any] Not yet. Find the area under one hump, $\int_0^\pi A\sin\theta\,d\theta$, and divide by π.
:::
:::

::: check
given: Vdc = 2..12 int; Vac = 3..9 int
answer: sqrt(Vdc^2 + Vac^2)
unit: V
tolerance: 0.5%

## A signal is {Vdc} V DC plus an AC ripple of {Vac} V RMS. What is the RMS value of the whole signal, in volts?

::: right
Right. The powers add: $\sqrt{\given{Vdc}^2 + \given{Vac}^2}$ = {answer}.
:::

::: misses
- [Vdc + Vac] RMS values don't add directly: the heating powers do, so add the squares.
- [Vdc] The ripple adds heating too.
- [any] Not yet. Use $V_\text{rms} = \sqrt{V_\text{DC}^2 + V_\text{ac,rms}^2}$.
:::
:::

::: check
kind: choice

## An average-responding meter (calibrated for sine waves) measures a square wave of peak 10 V. What does it display?

- [ ] 10 V, the true RMS value
- [x] About 11.1 V
- [ ] About 7.07 V
- [ ] 0 V

::: right
Right. It averages $|v|$, which is 10 V for a square wave, then multiplies by 1.11 as if it were a sine: 11.1 V. The true RMS is 10 V, so it reads 11% high.
:::

::: misses
- [1] A true-RMS meter would show 10 V. This one assumes a sine wave.
- [3] That's the RMS of a sine with a 10 V peak. The meter averages $|v|$ first.
- [4] It averages the absolute value, which isn't zero.
:::
:::

::: check
kind: parts
given: A = 1 | 5; D = 0.25 | 0.5

## A pulse train is {A} V for a fraction {D} of each period and 0 V otherwise.

::: part
answer: A*D
unit: V
tolerance: 0.5%

### What is its average?

::: misses
- [any] The area of one pulse over the period.
:::
:::

::: part
answer: A*sqrt(D)
unit: V
tolerance: 0.5%

### What is its RMS value?

::: misses
- [A*D] That's the average. The mean square is $A^2D$.
- [any] $\sqrt{\text{mean of } v^2}$.
:::
:::

::: part
answer: A*sqrt(D - D^2)
unit: V
tolerance: 0.5%

### What is the RMS of its AC part, $\sqrt{V_\text{rms}^2 - V_\text{avg}^2}$?

::: misses
- [any] $\sqrt{A^2D - A^2D^2}$.
:::
:::
:::

::: check
kind: derivation
vars: A = 0.5..10

## Derive the RMS of $A\sin\theta$.

::: step
answer: pi*A^2

### Use $\sin^2\theta = \tfrac12(1 - \cos 2\theta)$ to find $\int_0^{2\pi}A^2\sin^2\theta\,d\theta$.
:::

::: step
answer: A^2/2

### Divide by the period, $2\pi$, for the mean square.
:::

::: step
answer: A/sqrt(2)

### Take the square root.
:::

::: right
Right. $V_\text{rms} = A/\sqrt{2}$, from one integral.
:::
:::

::: explain
## Why is the RMS value, rather than the ordinary average, the right single number for an AC voltage that powers a heater?

::: model
A heater's power is $v^2/R$ at every instant, so what matters is the average of the voltage squared. The ordinary average of an AC voltage is zero, because the positive and negative halves cancel, but both halves heat the resistor, since squaring makes them positive. The RMS value is the square root of the average of $v^2$, which is exactly the DC voltage that would deliver the same average power.
:::
:::

::: practice

::: check
given: Vrms = 100 | 110 | 120 | 220 | 230 | 240
answer: Vrms*sqrt(2)
unit: V
tolerance: 0.5%

## An outlet is {Vrms} V RMS. What is the peak voltage, in volts?

::: misses
- [Vrms/sqrt(2)] The peak is larger than the RMS value.
- [any] Peak $= \sqrt2 \times$ RMS.
:::
:::

::: check
given: A = 1..50 sig 2
answer: A/2
unit: V
tolerance: 0.5%

## A half-wave rectified sine of peak {A} V: what is its RMS value, in volts?

::: misses
- [A/sqrt(2)] That's for a full sine. Half the time it's zero, so the mean square halves.
- [A/pi] That's the average, not the RMS.
- [any] Half of the cycle is $A\sin$, half is zero: mean square $A^2/4$.
:::
:::

::: check
given: A = 1..20 int; R = 2..100 sig 2
answer: A^2/R
unit: W
tolerance: 0.5%

## A square wave switching between −{A} V and +{A} V drives a {R} Ω resistor. What is the average power, in watts?

::: misses
- [A^2/(2*R)] That's for a sine. A square wave's RMS equals its peak.
- [any] $P = V_\text{rms}^2/R$ with $V_\text{rms} = A$.
:::
:::

::: check
given: A = 1..20 int
answer: 0
unit: V
tolerance: 0.001

## What is the average value of a square wave switching between −{A} V and +{A} V, in volts?

::: misses
- [A] That's its RMS value. Half the time it's negative.
- [any] Equal time at +A and −A.
:::
:::
:::
