Root Mean Square Calculator

Enter a list of numbers to compute their root mean square (RMS = √(Σx²/n)), along with the arithmetic mean, sample count, and how far RMS sits above the mean.

Quick Facts

RMS formula
RMS = √(Σx² / n)
Square every value, average the squares, then take the square root.
Also called
Quadratic mean
One of the Pythagorean means, alongside the arithmetic and geometric mean.
QM-AM inequality
RMS ≥ mean of |x|
Equality holds only when every value has the same absolute value.

Your Results

Calculated
Root Mean Square
-
RMS = √(Σx²/n)
Arithmetic Mean
-
Sum ÷ count, for comparison
Sample Count
-
Number of values entered (n)
RMS − Mean
-
Always ≥ 0 by the QM-AM inequality

Ready

Enter two or more numbers, then press Calculate.

Formula and Method for the Root Mean Square

The root mean square (RMS), also called the quadratic mean, measures the "typical size" of a set of numbers by squaring each value, averaging the squares, and taking the square root of that average: RMS = √(Σx² / n), where x₁...xₙ are the values and n is the count. Because every value is squared before averaging, negative and positive numbers no longer cancel out, and larger-magnitude values pull the result up more than they would in a simple arithmetic mean.

How the calculation works

Enter your numbers separated by commas or spaces. The calculator squares each value (x₁², x₂², ..., xₙ²), sums the squares, divides by the count n to get the mean square, and takes the square root of that mean to produce the RMS. It also reports the ordinary arithmetic mean (sum ÷ count) so you can see how the two compare, and the gap RMS − mean, which is always zero or positive — this follows from the QM-AM inequality, one of the classical Pythagorean-mean inequalities: quadratic mean ≥ arithmetic mean ≥ geometric mean ≥ harmonic mean for non-negative data, with equality across all four only when every value is identical.

Common mistakes

  • Confusing RMS with the arithmetic mean: for 3, 4, 5, 6, 7 the arithmetic mean is 5, but the RMS is about 5.1962 — squaring before averaging always pushes the result at or above the mean of the absolute values.
  • Forgetting that negatives don't cancel: for -10 and 10, the arithmetic mean is 0, but the RMS is 10, since (-10)² = 10² = 100. This is exactly why RMS, not the arithmetic mean, is used to describe alternating current.
  • Averaging before squaring: RMS is not the square root of the mean value — you must square each value first, then average, then take the square root (this order matters because squaring is not linear).

Real-world applications

  • Electrical engineering uses RMS voltage and current to describe AC power: a "120V" household outlet in the US is 120V RMS, meaning its sine-wave peak is 120 × √2 ≈ 170V.
  • Statistics and machine learning use root-mean-square error (RMSE) to score how far predictions deviate from actual values, since squaring penalizes large errors more than small ones.
  • Acoustics and vibration analysis use RMS amplitude to quantify signal power or loudness, because power is proportional to the square of amplitude.
  • Physics uses the RMS speed of gas molecules (from the Maxwell-Boltzmann distribution) to relate molecular motion to temperature and pressure.

Frequently Asked Questions

What is the root mean square (RMS)?
The root mean square is the square root of the average of the squares of a set of values: RMS = √(Σx² / n). It is also called the quadratic mean because squaring the values before averaging gives more weight to larger magnitudes than a simple arithmetic mean.
How is RMS different from the arithmetic mean?
The arithmetic mean averages the raw values (and positive and negative values can cancel out), while RMS squares every value first, so all contributions are positive and larger magnitudes count more. For any data set, RMS is always greater than or equal to the arithmetic mean of the absolute values, with equality only when every value has the same magnitude.
What is RMS used for?
RMS is standard for describing AC voltage and current (a 120V RMS outlet has a sine-wave peak of about 170V), for quantifying error as root-mean-square error (RMSE) in statistics and machine learning, and for measuring signal power, vibration, and noise levels, since squaring naturally captures energy or power, which depends on the square of amplitude.
Can the RMS be smaller than the mean?
No. By the quadratic mean - arithmetic mean (QM-AM) inequality, RMS is always greater than or equal to the arithmetic mean of the absolute values of the same data set. The two are equal only when all the values share the same absolute value, such as 5, 5, 5 or 5, -5, 5, -5.