How to find variance
- Compute the mean.
- Subtract it from each value and square the result.
- Add those squares to get the sum of squares (SS).
- Divide by n − 1 (sample) or N (population).
Shortcut formula, handy with a calculator: SS = Σx² − (Σx)² ÷ n. It gives the same answer but can lose precision with large numbers, which is why this calculator uses the deviation method.
Why square the deviations?
Raw deviations always add to zero, because values above the mean cancel values below it. Squaring makes every term positive and gives extra weight to values far from the mean. Variances also add neatly: for independent variables, Var(X + Y) = Var(X) + Var(Y), which is why variance, not standard deviation, appears inside ANOVA, regression and the standard error formula.
Frequently asked questions
What units is variance in?
Squared units of the original data. If heights are in cm, variance is in cm². Take the square root to get back to cm (the standard deviation).
Is a higher variance bad?
Not inherently. It simply means more spread. In manufacturing, lower variance means more consistent parts; in a test designed to separate students, some variance is the point.
What is the variance of a single number?
The population variance of one value is 0. The sample variance is undefined because you would divide by n − 1 = 0.