Root Mean Square Calculator

Root Mean Square Calculator

Calculate the root mean square (RMS) of a list of numbers, or the RMS value of a sine, square or triangle wave from its peak, as used for mains voltage and audio levels.

RMS = √((x₁² + x₂² + … + xₙ²) ÷ n)

Negative values are fine: RMS treats −10 and +10 the same.

Enter some numbers to find their RMS

What is Root Mean Square?

The root mean square is the square root of the average of the squared values. It's an average of size that ignores sign, so −10 and +10 count the same.

That makes it the right average for anything that swings between positive and negative, where the ordinary mean comes out close to zero. UK mains electricity is called 230 volts even though it swings between roughly +325 V and −325 V fifty times a second: 230 V is its RMS value, the steady voltage that would heat a kettle just as well.

The same calculation underlies the root mean square error (RMSE) used to judge forecasts and models, and it's how audio and vibration levels are usually measured.

Root Mean Square Formula

Waveform factors as given in standard electronics references such as Horowitz and Hill. See Sources.

1. Square every value

Squaring makes every value positive and gives larger values more weight.

2. Average the squares and take the root

RMS = √(Σx² ÷ n)
RMS² = mean² + σ² (σ = population standard deviation)

The second line shows why RMS is never smaller than the size of the mean: it adds the spread on top. For data centred on zero, RMS equals the standard deviation.

3. For a regular waveform

Sine: RMS = peak ÷ √2 ≈ 0.707 × peak
Square: RMS = peak · Triangle: RMS = peak ÷ √3 ≈ 0.577 × peak

Worked Example: Four Values and a Mains Supply

Given:
The values 10, 20, 30, 40, and a 230 V mains supply.
Step 1:
Square and add:
100 + 400 + 900 + 1,600 = 3,000
Step 2:
Average and root:
√(3,000 ÷ 4) = √750 = 27.39 (the ordinary mean is 25)
Step 3:
Mains peak voltage:
230 × √2 = 325 V
Result:
RMS 27.39; mains peak 325 V.

The RMS is above the mean of 25 because squaring gives the bigger values more weight. And a 230 V supply actually peaks at about 325 V.

RMS of Common Waveforms

For a peak amplitude of 1; multiply by your peak. The crest factor (peak ÷ RMS) says how "spiky" a signal is.

RMS and crest factor of common waveforms
WaveformRMSCrest factorRMS for a 325 V peak
Sine0.70711.414229.8 V
Square11325 V
Triangle0.57741.732187.6 V

Common RMS Mistakes

  • Squaring the mean instead of averaging the squares. RMS is √(mean of x²). For 10, 20, 30, 40 that's 27.39; squaring the mean and rooting it just gives back 25.
  • Using peak-to-peak instead of peak. A wave from −325 V to +325 V has a peak of 325 V and a peak-to-peak of 650 V. RMS = peak ÷ √2, not peak-to-peak ÷ √2.
  • Applying ÷ √2 to every waveform. The √2 factor is only for pure sine waves. Square and triangle waves, and distorted real-world signals, have different factors.
  • Treating RMS as the standard deviation. They're equal only when the mean is zero. Otherwise RMS² = mean² + σ².

Root Mean Square FAQs

Why is mains voltage quoted as RMS?

Because the heating power of a resistor depends on V², and the RMS value is the steady voltage with the same average V². A 230 V RMS supply heats a kettle exactly like 230 V DC would.

What’s the US mains peak voltage?

US household supply is about 120 V RMS, so the peak is about 120 × √2 ≈ 170 V.

Is RMS the same as the quadratic mean?

Yes. “Quadratic mean” is another name for the root mean square.

Can RMS be smaller than the mean?

Not smaller than the mean’s size. RMS is always at least the mean of the absolute values, and equal only when all values have the same size.

What does a true-RMS multimeter do?

It measures the real RMS of any waveform. Cheaper meters measure an average and multiply by the sine-wave factor, which gives wrong readings for distorted signals.

What is RMSE?

Root mean square error: the RMS of the differences between predictions and actual values. It’s a standard way to measure how accurate a model or forecast is.

How do I calculate RMS in Excel?

=SQRT(SUMSQ(range)/COUNT(range)).

Why square instead of using absolute values?

Squares relate directly to power and energy in physics, and they have neat mathematical properties. Averaging absolute values gives a different measure, the mean absolute value.

Sources

  • OpenStax, University Physics Volume 2, section 15.1: AC sources and RMS voltage.
  • P. Horowitz and W. Hill, The Art of Electronics, 3rd edition (Cambridge University Press, 2015): RMS values of waveforms.
  • IEC 60038, IEC standard voltages: the 230 V nominal low-voltage supply.

Related Tools