Mean Square Calculator

This mean square calculator finds the average of the squared values, the root mean square, and the mean sum of squares about the mean for your data.

Checks on your data

  • The identity mean square = variance + mean² holds for the population version, which confirms the sums.
  • The two meanings differ. Mean square averages the raw squares. Mean sum of squares (MS) divides the squared deviations from the mean by the degrees of freedom, as in ANOVA.
  • Data: no outliers beyond 1.5 × IQR and no strong skew detected.

Results

Mean square (Σx² ÷ n)
31.8333
Root mean square (RMS)
5.6421
Sum of squares Σx²
191
Mean
5.16667
Sum of squares about the mean (SS)
30.8333
Mean sum of squares, SS ÷ (n − 1)
6.16667
the sample variance
Mean sum of squares, SS ÷ n
5.13889
the population variance
Check: mean square = variance + mean²
31.8333
Data and mean
2468mean 5.167
Squares
xx²(x − x̄)²
2410.0278
4161.36111
4161.36111
5250.0277778
7493.36111
98114.6944
Show step-by-step solution
  1. n = 6. Square each value and add: Σx² = 191.
  2. Mean square = Σx² ÷ n = 191 ÷ 6 = 31.8333. Its square root is the RMS, 5.6421.
  3. Mean = 5.16667. Sum of squared deviations SS = Σ(x − x̄)² = 30.8333.
  4. Mean sum of squares about the mean: SS ÷ (n − 1) = 6.16667 (sample), or SS ÷ n = 5.13889 (population).
Mean squareΣx² / n
RMS√(Σx² / n)
MS (ANOVA)SS / df

What Is Mean Square?

The mean square is the average of the squared values, the sum of x² divided by n. Its square root is the root mean square, or RMS, a common measure of the typical size of values regardless of sign.

In ANOVA and regression, mean square has a related meaning: a sum of squares divided by its degrees of freedom. About the mean, with n − 1 degrees of freedom, that is the sample variance.

Paste your numbers and you get both versions, with a table of the squares.

How to Use the Mean Square Calculator

  1. Paste your numbers.
  2. Read the mean square and the RMS.
  3. Use the SS and the two mean sums of squares if you need a variance.

Mean Square Formula

Mean square

MS=∑x2nMS=\frac{\sum x^2}{n}

Mean sum of squares (about the mean)

MS=SSdf=∑(x−xˉ)2n−1MS=\frac{SS}{df}=\frac{\sum(x-\bar x)^2}{n-1}

Mean Square Variables Explained

SymbolMeaningNotes
xEach value in the data
nNumber of values
Σx²Sum of the squared values
SSSum of squared deviations from the meanΣ(x − x̄)²

Mean Square Worked Example

With the example values loaded in the calculator above, the steps are:

  1. n = 6. Square each value and add: Σx² = 191.
  2. Mean square = Σx² ÷ n = 191 ÷ 6 = 31.8333. Its square root is the RMS, 5.6421.
  3. Mean = 5.16667. Sum of squared deviations SS = Σ(x − x̄)² = 30.8333.
  4. Mean sum of squares about the mean: SS ÷ (n − 1) = 6.16667 (sample), or SS ÷ n = 5.13889 (population).

Result: Mean square (Σx² ÷ n) = 31.8333; Root mean square (RMS) = 5.6421.

Worked example: 2, 4, 4, 5, 7, 9

Squares: 4, 16, 16, 25, 49, 81. Their sum is 191, so the mean square is 191 ÷ 6 = 31.8333 and the RMS is 5.6421.

The mean is 5.1667. The sum of squared deviations is 191 − 6 × 5.1667² = 30.8333, so SS ÷ (n − 1) = 6.1667.

Mean square versus variance

Variance measures spread around the mean. Mean square measures the average squared size around zero. They agree only when the mean is 0.

Where Mean Square Is Used

Signal and error size

Find the RMS of a set of measurements or errors.

ANOVA coursework

See how a sum of squares becomes a mean square.

Variance check

Confirm that mean square equals variance plus mean squared.

Common Mean Square Mistakes to Avoid

  • Use RMS when the sign does not matter, for example for signal strength.
  • Divide by n − 1, not n, for a sample variance.

Mean Square Terms and Definitions

RMS
The square root of the mean square.
Mean sum of squares
A sum of squares divided by its degrees of freedom.

Mean Square FAQs

What is the mean square?

The average of the squared values, Σx² ÷ n.

What is the mean sum of squares?

A sum of squares divided by its degrees of freedom. About the mean, with n − 1, it is the sample variance.

How is mean square related to variance?

Mean square equals the population variance plus the mean squared.

What is RMS used for?

It measures the typical size of values regardless of sign, such as an AC voltage or an error.

Related calculators

Last updated 2026-11-09. See our disclaimer.