Sub topic 2
RMS values: the DC-equivalent heating effect
This chapter assumes you know Ohm's law, the basic trigonometry of sine and cosine, and how a resistor relates voltage to current. You should also be comfortable with the idea of a sinusoidal waveform that has an amplitude, a frequency, and a phase. Everything that follows about power depends on getting RMS values right, so it is worth working through carefully.
Why an average does not work
A sinusoidal voltage swings equally positive and negative. Its ordinary average over one full period is zero. A mains outlet clearly delivers energy, so the plain average cannot describe how "big" an AC signal is.
Taking the average of the absolute value fixes the sign problem, but it does not match how a resistor heats. Heating depends on the square of the current, because the power in a resistor is p = i²R. A measure of size that suits power must therefore be built from squares.
The RMS value (root mean square) does exactly this. You square the waveform, take the mean (average) of the square over one period, and then take the square root.
The DC-equivalent definition
The RMS value of a current is the steady DC current that would deliver the same average heating power in the same resistor. This is the meaning behind the chapter title.
Suppose a resistor R carries a periodic current i(t) with period T. The average power it dissipates is:
P = (1/T) ∫ i(t)² R dt over one period
A DC current Idc in the same resistor dissipates P = Idc² R. Setting the two equal and cancelling R gives:
I_rms = sqrt( (1/T) ∫ i(t)² dt )
The same definition holds for voltage:
V_rms = sqrt( (1/T) ∫ v(t)² dt )
Notice that R cancels. The RMS value is a property of the waveform alone, not of the resistor.
Deriving the sinusoidal case
Let the current be i(t) = Im sin(ωt), where Im is the peak value and ω = 2πf. Then:
Irms² = (1/T) ∫₀ᵀ Im² sin²(ωt) dt
Use the identity sin²θ = (1 − cos 2θ)/2:
Irms² = (Im² / T) ∫₀ᵀ (1 − cos 2ωt)/2 dt
The cosine term completes exactly two cycles over the period T, so its integral is zero. Only the constant 1/2 survives:
Irms² = (Im² / T) · (T/2) = I_m² / 2
Taking the square root:
Irms = Im / √2 ≈ 0.7071 I_m
The same result holds for voltage: Vrms = Vm / √2. Going the other way, Vm = √2 · Vrms ≈ 1.414 V_rms.
For a nominal 230 V mains supply, the peak voltage is √2 × 230 ≈ 325 V. The 230 V figure is the RMS value, which is how supply voltages are quoted almost everywhere.
Why the phase does not matter
The result does not depend on the phase angle. If the current is Im sin(ωt − φ), the squared term still averages to Im²/2 over a full period, because the shifted sine covers the same set of values. RMS describes the size of a waveform, not its timing. Timing enters later, when you compare voltage and current to get power.
Common waveforms and their RMS values
The factor 1/√2 applies only to sinusoids. Other shapes have different factors, so a meter or formula built for sine waves can mislead.
| Waveform | Peak value | RMS value | Ratio RMS / peak |
|---|---|---|---|
| Sine | A | A / √2 | 0.7071 |
| Square (symmetric, ±A) | A | A | 1.0000 |
| Triangle (symmetric) | A | A / √3 | 0.5774 |
| Full-wave rectified sine | A | A / √2 | 0.7071 |
| Half-wave rectified sine | A | A / 2 | 0.5000 |
| Constant (DC) | A | A | 1.0000 |
The symmetric square wave is a quick check of the definition. Its square is always A², so the mean of the square is A² and the root is A. A square wave of amplitude 10 V heats a resistor exactly like 10 V DC.
The full-wave rectified sine has the same RMS as the original sine. Flipping the negative half upward does not change the squares.
Computing RMS numerically
A numerical check is useful when you do not have a closed-form formula, for example when you are given sampled data from a measurement. The function below applies the definition directly: square, mean, root. It assumes the samples cover an exact whole number of periods. Otherwise the answer is slightly off.
import math
def rms(samples):
return math.sqrt(sum(x * x for x in samples) / len(samples))
N = 1000 # samples over exactly one period
Vm = 325.27 # peak of a 230 V RMS sine
sine = [Vm * math.sin(2 * math.pi * n / N) for n in range(N)]
square = [Vm if n < N // 2 else -Vm for n in range(N)]
triangle = []
for n in range(N):
x = n / N
triangle.append(Vm * (4 * x if x < 0.25 else 2 - 4 * x if x < 0.75 else 4 * x - 4))
print(f"sine RMS = {rms(sine):.1f} V (expected {Vm / math.sqrt(2):.1f})")
print(f"square RMS = {rms(square):.1f} V (expected {Vm:.1f})")
print(f"triangle RMS = {rms(triangle):.1f} V (expected {Vm / math.sqrt(3):.1f})")The sine line prints about 230.0 V, which confirms the derivation. The square wave prints the full peak value, and the triangle prints about 187.8 V.
Edge cases and common errors
Several mistakes come up repeatedly when people first work with RMS values.
- Averaging the RMS values of two sources. RMS values do not add linearly in general. If two sinusoids of different frequencies are added, the squares add: V_rms,total = sqrt(V1² + V2²). If they have the same frequency, the phase between them matters.
- Using peak values in power formulas. The formula P = Vrms Irms cos φ uses RMS values. With peak values, the same expression is P = (Vm Im / 2) cos φ. Mixing the two produces an error of exactly a factor of 2.
- Assuming a meter reads true RMS. Many inexpensive meters measure the rectified average and scale it by 1.11, the ratio that holds for a pure sine, to display "RMS". On a distorted waveform they read wrongly. A true-RMS meter computes the square-mean-root itself.
- Forgetting the DC term. If a waveform has a DC offset Vdc plus an AC part with RMS value Vac, the total is Vrms = sqrt(Vdc² + V_ac²). The offset adds in the squares, not in the plain sum.
- Using an incomplete period. If you average over a fraction of a cycle, the cosine term in the derivation no longer integrates to zero, and the result is wrong. Always use a whole number of periods.
RMS and the rest of this tutorial
Every power quantity in later chapters is expressed with RMS values. Real power is P = Vrms Irms cos φ, apparent power is S = Vrms Irms, and complex power is S = V I* with V and I as RMS phasors. Because the RMS value already encodes the heating effect, these formulas need no extra factor of 2. This is the reason power engineers quote and calculate with RMS values by default.
RMS also connects to the later chapter on distorted waveforms. A non-sinusoidal current has an RMS value that combines all its harmonic components: I_rms = sqrt(I₁² + I₂² + I₃² + …). Only the fundamental component contributes to the displacement power factor, which is why the total RMS current can be larger than the useful part.
Worked example
A heater element has a resistance of 23 Ω and is connected to a 230 V RMS supply at 50 Hz. Find the RMS current, the average power, and the peak instantaneous power.
- RMS current: Irms = Vrms / R = 230 / 23 = 10 A.
- Average power: P = Vrms² / R = 230² / 23 = 2300 W. This equals Irms² R = 100 × 23.
- Peak voltage: Vm = √2 × 230 ≈ 325.3 V. Peak current: Im = 14.14 A.
- Peak instantaneous power: pmax = Vm Im = 325.3 × 14.14 ≈ 4600 W, which is twice the average. In a resistor the power p(t) = Vm I_m sin²(ωt) swings between 0 and 4600 W, with an average of 2300 W.
The 2300 W figure is the same heating a 230 V DC supply would give. That is the RMS definition at work.
Exercise
A sinusoidal current has a peak value of 20 A. It flows through a 5 Ω resistor. What is the RMS current, and what average power does the resistor dissipate? Then a 4 A DC offset is added to the current. What is the new RMS value?
Show answer
The RMS current is 20 / √2 ≈ 14.14 A. The average power is Irms² R = 200 × 5 = 1000 W (equivalently Im² R / 2 = 400 × 5 / 2). With a 4 A DC offset, the RMS value is sqrt(4² + 14.14²) = sqrt(16 + 200) = sqrt(216) ≈ 14.70 A.
Exercise
A symmetric triangle wave has a peak value of 12 V. A technician measures it with a meter that reads the rectified average and multiplies by 1.11, which is correct only for sine waves. The average of the absolute value of a triangle wave is half its peak. What does the meter display, and what is the true RMS value?
Show answer
The average of the absolute value is 12 / 2 = 6 V, so the meter shows 6 × 1.11 ≈ 6.66 V. The true RMS value is 12 / √3 ≈ 6.93 V. The meter reads about 4% low because the triangle's ratio of RMS to rectified average differs from the sine's.