Quadratic Mean (RMS) Calculator
- Square each of the 3 values and add them: sum of squares = 50.0000.
- Mean of squares = 50.0000 / 3 = 16.6667.
- Quadratic mean (root mean square) = sqrt(16.6667) = 4.0825.
- For comparison, the ordinary arithmetic mean of the same values is 4.0000; the quadratic mean is never smaller.
This quadratic mean calculator finds the quadratic mean, also called the root mean square (RMS), of any set of numbers you enter. The quadratic mean is calculated by squaring every value, averaging those squares, and then taking the square root: sqrt((x1^2 + x2^2 + ... + xn^2) / n). For example, the quadratic mean of 3, 4 and 5 is sqrt(50 / 3) = 4.0825, which sits above the arithmetic mean of 4.0000. The quadratic mean of 1, 2, 3, 4, 5 is sqrt(55 / 5) = sqrt(11) = 3.3166. When all values are equal, however, every mean agrees: the quadratic mean of 10, 10, 10, 10 is exactly 10.0000.
The quadratic mean is never smaller than the arithmetic mean of the same data when working with non-negative values, and the gap between the two grows as the data spreads out, because squaring weights large values more heavily. This property makes RMS the standard average for alternating currents and voltages, sound levels, error magnitudes, and any quantity whose sign should not cancel out. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result.
Worked examples
The 3-4-5 triple
Primary result: 4.0825 — above the arithmetic mean of 4.0000, because squaring weights the 5 most. (3 values · 3 · 4 · 5 · 0 · 0 · 0 · 0 · 0)
| Quadratic mean (RMS) | 4.0825 |
| Mean of squares | 16.6667 |
| Arithmetic mean (for comparison) | 4.0000 |
All values equal
Primary result: 10.0000 — when every value is the same, the quadratic mean equals that value exactly. (4 values · 10 · 10 · 10 · 10 · 0 · 0 · 0 · 0)
| Quadratic mean (RMS) | 10.0000 |
| Mean of squares | 100.0000 |
| Arithmetic mean (for comparison) | 10.0000 |
One to five
Primary result: 3.3166 — sqrt(55 / 5) = sqrt(11). (5 values · 1 · 2 · 3 · 4 · 5 · 0 · 0 · 0)
| Quadratic mean (RMS) | 3.3166 |
| Mean of squares | 11.0000 |
| Arithmetic mean (for comparison) | 3.0000 |
What the quadratic mean measures
The quadratic mean, also called the root mean square or RMS, is a way of averaging numbers that respects magnitude rather than sign. The arithmetic mean treats every value the same, so averaging -5 and +5 gives 0. That result makes sense for some applications, but it is misleading for quantities where the sign simply indicates direction. A voltage of -5 volts carries the same energy as one of +5 volts, and an error of -5 units is just as large as an error of +5 units. The quadratic mean captures that reality by squaring every value before averaging, which removes the sign, and then taking the square root of the result to return to the original units.
The formula for the quadratic mean is sqrt((x1^2 + x2^2 + ... + xn^2) / n). In words: square every value, average the squares, and take the square root. This process ensures that large values carry more weight than they would in a simple arithmetic average, because squaring amplifies them. The quadratic mean of 3, 4 and 5 is sqrt(50 / 3) = 4.0825, which sits above the arithmetic mean of 4.0000. The quadratic mean of 1, 2, 3, 4, 5 is sqrt(55 / 5) = sqrt(11) = 3.3166, again higher than the arithmetic mean of 3. When all values are equal, this distinction vanishes: the quadratic mean of 10, 10, 10, 10 is exactly 10.0000, and every type of average agrees.
A key property of the quadratic mean is that it is never smaller than the arithmetic mean of the same data for non-negative values. The gap between the two grows as the spread of the numbers increases. The reason is mathematical: squaring weights large values more heavily than small ones, so a single large value can pull the quadratic mean well above the arithmetic mean. This makes the quadratic mean a conservative, magnitude-aware average that reflects the true size of the values in a dataset rather than letting positive and negative entries cancel each other out.
Because it ignores sign and emphasizes magnitude, RMS is the standard average for alternating currents and voltages, sound levels, error magnitudes, and any quantity whose sign should not cancel out. Engineers and scientists rely on a quadratic mean calculator when they need a single number that represents the effective size of a set of values, not just their signed sum divided by a count.
The quadratic mean formula
The quadratic mean formula follows three straightforward steps: square every value, average those squares, then take the square root. Written out, the quadratic mean (also called root mean square, or RMS) equals sqrt((x1^2 + x2^2 + ... + xn^2) / n). Each value is first multiplied by itself, the squared results are added together and divided by the count of values, and finally the square root brings the result back to the original units. A quadratic mean calculator runs this process automatically, but working through a small example makes the logic easy to follow.
Take the values 3, 4 and 5. Step one is to square each value: 3 squared is 9, 4 squared is 16, and 5 squared is 25. Step two is to average those squares. The sum of the squares is 50, and dividing by 3 gives a mean of 16.6667. Step three is to take the square root of that mean, which produces 4.0825. For comparison, the arithmetic mean of 3, 4 and 5 is 4.0000, so the quadratic mean sits above it. This is a general rule rather than a coincidence: for non-negative values, the quadratic mean is never smaller than the arithmetic mean of the same data, and the gap grows with spread because squaring weights large values more heavily.
The size of that gap depends on how much the values differ from one another. When all values are identical, there is no spread to amplify, and every type of average agrees. The quadratic mean of 10, 10, 10 and 10 is exactly 10.0000, matching the arithmetic mean precisely. Add some variation and the quadratic mean pulls ahead. For the values 1, 2, 3, 4 and 5, the squares sum to 55, dividing by 5 gives 11, and the square root is 3.3166, again above the arithmetic mean of 3.0000.
This behavior explains why RMS is the standard average for alternating currents and voltages, sound levels, error magnitudes and any quantity whose sign should not cancel out. Positive and negative values both produce positive squares, so neither side cancels the other. The result is a single positive number that reflects the effective magnitude of the full set, which is exactly what the formula captures.
Worked examples
The table below shows three verified cases side by side, tracing each calculation from the sum of squares through to the final quadratic mean. For every data set, the quadratic mean equals the square root of the mean of squares, and it is never smaller than the arithmetic mean of the same data when the values are non-negative.
Notice how the gap between the two means changes. When all values are equal, as in the second case, every mean agrees and both columns show 10.0000. When the values spread out, the quadratic mean rises above the arithmetic mean because squaring weights large values more. The first case, 3, 4 and 5, shows a modest gap of 0.0825, while the third case, 1 through 5, shows a larger gap of 0.3166. This pattern is consistent: the wider the spread, the further the quadratic mean moves past the arithmetic mean.
These examples also show why a quadratic mean calculator is useful for real measurements. RMS is the standard average for alternating currents and voltages, sound levels, error magnitudes and any quantity whose sign should not cancel out. In each of those settings, negative and positive values both carry energy, so squaring before averaging keeps the magnitude in the result.
| Data set | Sum of squares | Mean of squares | Quadratic mean (RMS) | Arithmetic mean |
|---|---|---|---|---|
| 3, 4, 5 | 50 | 50 / 3 = 16.6667 | 4.0825 | 4.0000 |
| 10, 10, 10, 10 | 400 | 100.0000 | 10.0000 | 10.0000 |
| 1, 2, 3, 4, 5 | 55 | 55 / 5 = 11.0000 | 3.3166 | 3.0000 |
Quadratic mean vs arithmetic mean
The quadratic mean and the arithmetic mean are both ways of finding a representative value for a set of numbers, but they respond very differently to spread. The arithmetic mean simply adds the values and divides by the count. The quadratic mean, by contrast, squares every value first, averages those squares, and then takes the square root. That extra squaring step is what sets the two apart — it makes the quadratic mean sensitive to larger values in a way the arithmetic mean is not.
A fundamental relationship holds for non-negative values: the quadratic mean is never smaller than the arithmetic mean of the same data. The two are equal only when every value in the set is identical. Consider the verified case of 10, 10, 10, 10. The arithmetic mean is 10.0000, and the quadratic mean is also exactly 10.0000. When all values match, there is no spread for the squaring step to amplify, so every type of average agrees.
As soon as the values start to differ, the quadratic mean pulls above the arithmetic mean. Take 3, 4, and 5. The arithmetic mean is 4.0000. The quadratic mean is sqrt(50 / 3) = 4.0825, which sits clearly above it. Widen the spread to 1, 2, 3, 4, and 5, and the effect grows. The arithmetic mean of that set is 3.0000, while the quadratic mean is sqrt(55 / 5) = sqrt(11) = 3.3166. The gap between the two averages widens as the numbers stretch farther apart.
The reason is the spread penalty. Squaring each value before averaging means that larger numbers carry more weight than smaller ones. A value of 5 contributes 25 to the sum of squares, while a value of 1 contributes only 1. The arithmetic mean treats both endpoints equally, but the quadratic mean gives the larger endpoint 25 times the influence of the smaller one. This is why any quadratic mean calculator will return a result at or above the arithmetic mean — never below it. The more spread the data contains, the more the large values dominate the squared average, pushing the final result upward.
This behavior is not a flaw — it is exactly why the quadratic mean is the standard average for alternating currents and voltages, sound levels, error magnitudes, and any quantity whose sign should not cancel out. In those settings, a few large peaks matter more than many small values, and the spread penalty captures that reality. The arithmetic mean is the right tool when you want a simple balance point. The quadratic mean is the right tool when size and magnitude matter more than frequency.
RMS in electricity, sound and errors
RMS is the standard average for alternating currents and voltages, sound levels, error magnitudes and any quantity whose sign should not cancel out. That last point is the key: an alternating current swings positive and negative, so a plain arithmetic mean would land near zero and tell you nothing useful. Squaring every value, averaging the squares, and taking the square root converts the waveform into a single positive number that represents its effective power. A quadratic mean calculator applies the same formula — sqrt((x1^2 + x2^2 + ... + xn^2) / n) — to any data set you provide.
Mains voltage is a familiar example. The 230 V RMS figure quoted for household electricity in many countries does not mean the voltage sits at a steady 230 V; the waveform actually peaks at 325 V. The RMS value is lower than the peak because the voltage spends part of each cycle rising toward and falling away from that maximum. Using RMS lets engineers treat the alternating supply as if it were a direct current delivering the same energy to a resistor, which makes circuit design and safety calculations straightforward.
In forecasting and statistics, the same idea is called root mean square error, or RMSE. You take the difference between each predicted value and the actual value — the error — square each difference, average the squares, and take the square root. The result is the quadratic mean of the errors. Because squaring weights large values more, a forecast with a few big misses scores worse than one with many small misses, even if the average error looks similar. RMSE is widely used to compare model accuracy because it penalizes large errors in a way that the arithmetic mean does not.
Sound pressure levels follow the same logic. A microphone picks up pressure variations above and below ambient, and those variations alternate like an electrical waveform. Averaging the raw values would cancel positive and negative excursions. RMS captures the effective pressure variation that the ear and audio equipment actually respond to, which is why decibel measurements rest on RMS values rather than peak or arithmetic readings.
The unifying thread is that RMS preserves magnitude while discarding sign. Whether the data is voltage, sound pressure, or forecast errors, the quadratic mean gives a single number that reflects the effective size of the values rather than their signed sum. That makes it the right tool whenever cancellation would hide what matters.
Quadratic mean vs standard deviation
The standard deviation and the quadratic mean use the same machinery, but they apply it at different points. The quadratic mean (root mean square, RMS) = sqrt((x1^2 + x2^2 + ... + xn^2) / n): square every value, average the squares, take the square root. Standard deviation does the same thing, except it squares deviations from the mean instead of the raw values. So RMS measures spread around zero, while standard deviation measures spread around the arithmetic mean.
Because of this difference, the two numbers answer different questions. A quadratic mean calculator tells you the typical size of the values themselves, ignoring whether they sit high or low on the number line. Standard deviation tells you how far the values wander from their own average. When all values are equal, there is no wandering, and the standard deviation is zero — but the quadratic mean of 10, 10, 10, 10 is exactly 10.0000, because when all values are equal, every mean agrees.
The relationship between the two becomes clearer when you look at how squaring behaves. The quadratic mean is never smaller than the arithmetic mean of the same data (for non-negative values), and the gap grows with spread: squaring weights large values more. The verified example confirms this — the quadratic mean of 3, 4 and 5 is sqrt(50 / 3) = 4.0825, above the arithmetic mean of 4.0000. Standard deviation captures a related effect: the more the values spread out from their mean, the larger the squared deviations become, and the larger the standard deviation grows.
RMS is the standard average for alternating currents and voltages, sound levels, error magnitudes and any quantity whose sign should not cancel out. Standard deviation, by contrast, is the tool for describing variability around a central value. Both are built on the same square-and-root logic, and understanding that shared structure helps explain why each one is used where it is. The quadratic mean of 1, 2, 3, 4, 5 is sqrt(55 / 5) = sqrt(11) = 3.3166, a single number that summarizes the size of those values regardless of their spread around the mean.
FAQs
How do you calculate the quadratic mean?
Square each value, average the squares, then take the square root. For the values 3, 4, 5, you get sqrt((9 + 16 + 25) / 3) = 4.0825. This method gives more weight to larger values, which is why the result differs from a simple arithmetic average.
Is the quadratic mean the same as RMS?
Yes — quadratic mean, root mean square and RMS are three names for the same calculation. No matter which term you use, the process is identical: square each value, find the average of those squares, and take the square root of that average.
Why is the quadratic mean higher than the average?
Squaring weights big values more than small ones. For 3, 4, 5 the RMS is 4.0825 against an arithmetic mean of 4.0000. Because larger numbers get squared, they pull the result upward, making the quadratic mean greater than the arithmetic mean whenever values differ.
When are the quadratic and arithmetic means equal?
Only when every value is identical. The verified 10, 10, 10, 10 case gives exactly 10.0000 for both means. When all values match, squaring and averaging changes nothing, so the quadratic mean and arithmetic mean produce the same result.
Why is RMS used for AC voltage?
AC averages to zero over a cycle, but its heating effect matches a DC voltage equal to the RMS value; 230 V RMS peaks at about 325 V. RMS captures the effective power of a waveform, letting you compare alternating and direct voltages on equal terms.
How does the quadratic mean handle negative numbers?
Squaring removes the sign, so -5 and +5 both contribute 25 — exactly why RMS suits alternating quantities. Negative values become positive when squared, so they affect the result based on size rather than direction, making the quadratic mean ideal for data with positive and negative values.