Root mean square calculator
Calculate the quadratic magnitude of positive and negative values.
A clear answer. Here’s how.
RMS = sqrt(mean(x²)). Scales values by their largest absolute magnitude before squaring to avoid avoidable overflow. Reports RMS, arithmetic mean and population standard deviation, which satisfy RMS²=mean²+population variance apart from floating-point rounding.
How this is checked
3 reference checks passed These 3 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.
See the checks and where each expected answer comes from
Case 1
- Inputs
- Values, separated by commas or new lines -3, 3, -4, 4
- Expected, and what Toolmoz gave
- Root mean square expected 3.5355339059327378, Toolmoz 3.5355339059327378Arithmetic mean expected 0, Toolmoz 0Population standard deviation expected 3.5355339059327378, Toolmoz 3.5355339059327378Count expected 4, Toolmoz 4
- Where the expected answer comes from
- Squares 9, 9, 16, 16 have mean 50 ÷ 4 = 12.5, so RMS = √12.5 = 3.535534. The values sum to 0, so the mean is 0 and the population standard deviation equals the RMS
- Allowed difference
- ±1e-12 relative
Case 2
- Inputs
- Values, separated by commas or new lines 6, 8
- Expected, and what Toolmoz gave
- Root mean square expected 7.0710678118654755, Toolmoz 7.0710678118654755Arithmetic mean expected 7, Toolmoz 7Population standard deviation expected 1, Toolmoz 1
- Where the expected answer comes from
- Mean of squares = (36 + 64) ÷ 2 = 50, so RMS = √50 = 7.071068. Mean 7, deviations ±1, population standard deviation 1; check 7² + 1² = 50
- Allowed difference
- ±1e-12 relative
Case 3
- Inputs
- Values, separated by commas or new lines 0, 1, 0, -1
- Expected, and what Toolmoz gave
- Root mean square expected 0.7071067811865476, Toolmoz 0.7071067811865476Arithmetic mean expected 0, Toolmoz 0
- Where the expected answer comes from
- Four samples of a unit sine wave: mean of squares = (0 + 1 + 0 + 1) ÷ 4 = 0.5, so RMS = √0.5 = 0.707107
- Allowed difference
- ±1e-12 relative
What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Values, separated by commas or new lines
- -3, 3, -4, 4
Example result
- Root mean square
- 3.53553390593
- Arithmetic mean
- 0
- Population standard deviation
- 3.53553390593
- Count
- 4