Math calculator

Root Mean Square Calculator

The average for values whose sign should not be allowed to cancel.

When the sign must not cancel

Square, average, root.

Samples, errors, deviations. Negatives welcome — they are the point.

2 values

340

Their arithmetic mean is 0.0000 — they cancel, which is exactly why this measure exists.

Root mean square

340

the equivalent steady value

Arithmetic mean

0

cancels to nothing

Peak

340

crest factor 1.0000

RMS of deviations

340

which is the standard deviation

The three steps

  1. 1. Square each value — the sum of squares is 231,200
  2. 2. Average them — 231,200 ÷ 2 = 115,600
  3. 3. Take the root — √115,600 = 340

Squaring removes the sign before anything can cancel. The root at the end puts the answer back into the original units, so it can be compared with the values themselves.

Crest factor

A pure sine wave has a crest factor of exactly √2 ≈ 1.4142. This series is at 1, which is flatter than a sine wave. A square wave sits at exactly 1; a spiky signal can go far above 2.

  • The arithmetic mean of these values is 0 — essentially zero, because the positives and negatives cancel. That is a true statement and a useless one about anything that does work regardless of sign, which is exactly the situation root mean square exists for.
  • Square, average, root. Squaring removes the sign before anything cancels; the root puts the answer back in the original units so it is comparable with the values themselves.
  • The root mean square is never smaller than the arithmetic mean of the absolute values, and never smaller than the plain arithmetic mean either. Here it is 340 against 0.
  • Standard deviation is exactly this measure applied to the deviations from the mean: 340 here. Seeing them as the same operation is usually the moment standard deviation stops feeling arbitrary.

The root mean square is never below the arithmetic mean — the suite checks that on every generated series.

What this tool shows

Mains voltage swings to +340 and −340. Its arithmetic mean is zero, and it boils a kettle. Square, average, then root, and you get the steady voltage that would do the same work — which is what “240 volts” has always meant.

  • Root mean square of any set of values
  • The squaring, averaging and rooting as separate steps
  • The arithmetic mean, and whether it cancels
  • Peak value and crest factor
  • How the crest factor compares with a sine wave
  • Standard deviation as the same operation on deviations
Signs cannot cancel Three steps shown separately Crest factor against √2 The same thing as standard deviation

Exact on the samples entered.

Updated 7 September 2026 · Works in any browser, no installation

Square every value, average the squares, then take the square root. Squaring removes the sign before anything can cancel; the root at the end puts the answer back into the original units. For +340 and −340 the arithmetic mean is 0 and the root mean square is 340 — and 340 is the number that describes what the supply actually does.

At a glance

Formula shown
RMS = \u221a(\u03a3x\u1d62\u00b2 \u00f7 n). Crest factor = peak \u00f7 RMS, which is exactly \u221a2 for a sine wave and 1 for a square wave. Standard deviation is the RMS of the deviations from the mean.
Scenario support
Quoting an AC voltage or current; summarising signed errors in a model; comparing the roughness of two signals with the same average.
Educational estimate
Planning support from the values you enter — not professional advice.

Why not just average them

Take a set of errors: +10, −10, +20, −20. Their arithmetic mean is exactly zero, which correctly says the errors are unbiased and says nothing at all about how large they are.

A model with those errors is not a perfect model. Averaging the absolute values would work — that is mean absolute error, and it is a real measure — but squaring has two properties the absolute value lacks: it is smooth everywhere, which matters for anything differentiable, and it penalises large errors disproportionately.

So RMS is 15.81 here. Larger than the mean absolute error of 15, because the twenties count for more than their size.

Why 230 volts is not the peak

A UK mains supply is quoted at 230 V and peaks at about 325 V. Neither number is wrong; they measure different things.

The voltage is a sine wave swinging symmetrically about zero, so its arithmetic mean is zero. The RMS is the DC voltage that would deliver the same power into the same resistance — which is the only number that lets you compare AC with DC at all.

For a pure sine wave the peak is exactly √2 times the RMS. 230 × √2 is 325, and every mains figure you have ever seen is an RMS one for this reason.

Crest factor

Peak divided by RMS. It says how spiky a signal is, independently of how large it is.

A pure sine wave is exactly √2 ≈ 1.414. A square wave is exactly 1, since it spends all its time at its peak. A signal that is mostly quiet with occasional spikes can go far above 2.

It matters practically: an amplifier or a power supply has to survive the PEAK while doing the work described by the RMS, so a high crest factor means over-specifying for something that rarely happens.

RMS error, and why it is squared

Root mean square error is the standard way to summarise how far a model’s predictions sit from reality, and the squaring is a deliberate choice rather than a convenience.

It makes one error of 10 count more than ten errors of 1 — 10 against 3.16 — which is right whenever a large miss is worse than several small ones. If it is not right for your problem, mean absolute error is the alternative and it treats them equally.

RMS error is also in the original units, unlike the mean squared error it comes from. That is the practical reason for the final root: an RMSE of 3.2 metres is a sentence anyone can act on.

Standard deviation is this

Standard deviation is the root mean square of the deviations from the mean. Not analogous to it — identical, applied to a shifted set of numbers.

Subtract the mean from every value and the deviations sum to zero by construction, so their arithmetic mean is useless and the same cancellation problem appears. Squaring solves it the same way.

Seeing them as one operation is usually the moment standard deviation stops feeling arbitrary. This page computes both, so the identity is visible on your own numbers. The full spread analysis is on the Standard Deviation Calculator.

Where it sits among the other means

For positive data, the four classical means are always in this order: harmonic ≤ geometric ≤ arithmetic ≤ root mean square.

RMS is the largest, and it is largest by the most when the values are spread out — because squaring exaggerates the big ones before the averaging happens.

So the gap between the RMS and the arithmetic mean is itself a measure of spread. In fact it is exactly related to the standard deviation: RMS² = mean² + SD², which is the same Pythagorean relationship in a different costume.

Sources and methodology

RMS is defined the same way across engineering and statistics; these are the references.

Method. Each value is squared, the squares are averaged, and the root is taken — the three steps are computed and displayed separately rather than collapsed, because the middle one is where the sign disappears. The peak and crest factor are computed from the same samples, and the RMS of the deviations from the mean is computed alongside so the identity with standard deviation is visible rather than asserted. That engine is verified on every change against 61 hand-written assertions, including that the root mean square never falls below the arithmetic mean on any generated series, which is the inequality this measure sits at the top of. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Geometric MeanThe average for things that compound. Growth of +50% then -50% averages to zero arithmetically and to a real 13.4% loss geometrically, which is what actually happened.
Harmonic MeanSixty there and forty back averages 48, not 50. The page simulates the journey from its legs as well as computing the formula, so the answer arrives with its own proof.
Standard DeviationSample and population standard deviation, plus variance, mean, median, quartiles, z-scores, outliers, and confidence intervals.
Weighted AverageEach value carries the weight you give it, with every item's share of the total shown as a percentage so you can see what is actually driving the answer.
Square RootThe exact square root first — 72 gives 6 root 2 — then the decimal to as many as sixty places, computed on whole numbers rather than a double.
Percent ErrorPercent error against an accepted value, rounded to your significant figures, for one measurement, repeated trials, or a whole column of pairs.

More in Math, or browse all calculators.

Read the guide

The full spread analysis — variance, quartiles, z-scores, outliers — is on the Standard Deviation Calculator, which uses exactly this operation on the deviations. For quantities that multiply, the Geometric Mean Calculator is the right average.

Educational use disclaimer

This is an educational tool. The arithmetic is exact for the samples entered; a real signal’s RMS depends on sampling it densely enough, which is a measurement question rather than a calculation one.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the root mean square page with the squaring, averaging and rooting shown as three separate steps, since the middle one is where the sign disappears.
  2. The crest factor is reported against a sine wave's exact root two, which is what turns the number into a statement about the signal's shape.
  3. The RMS of the deviations from the mean is computed alongside, so the identity with standard deviation is visible on the page rather than claimed in prose.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.