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.