How to use the variance calculator
- Copy your numbers from Excel or Google Sheets and paste them in, or type them separated by commas or spaces. If you have a frequency table, choose Values with frequencies and paste the two columns.
- Choose Sample (the usual choice) or Population if your data are the whole group.
- Click Calculate variance.
- Read the variance and standard deviation, and see both the sample and population versions side by side.
- The chart shows how much each value adds to the variance; the steps show the deviation table and the shortcut formula.
Variance formulas
Variance is the average squared distance from the mean. For a sample and for a whole population:
s2 = Σ(x − x)2n − 1 , σ2 = Σ(x − μ)2N
The top line, the sum of squared deviations (SS), can also be found with the shortcut formula, which avoids subtracting the mean from every value:
SS = Σx2 − (Σx)2n
- s2, σ2
- Sample variance and population variance
- x, μ
- The mean of the sample or of the population
- n, N
- The number of values in the sample or population
- SS
- The sum of squared deviations from the mean
- n − 1
- Degrees of freedom: dividing by it makes the sample variance an unbiased estimate (Bessel's correction)
Worked example
Find the variance of eight quiz scores: 4, 8, 6, 5, 3, 7, 9, 6.
-
Find the mean
x = 488 = 6
-
Subtract the mean from each score and square it
(−2)² + 2² + 0² + (−1)² + (−3)² + 1² + 3² + 0² = 4 + 4 + 0 + 1 + 9 + 1 + 9 + 0 = 28
-
Check with the shortcut: Σx² = 316 and Σx = 48
SS = 316 − 48²8 = 316 − 288 = 28
-
Divide by n − 1 = 7 for the sample variance (or by 8 for the population)
s2 = 287 = 4 , σ2 = 288 = 3.5
What it means: the sample variance is 4 points², so the standard deviation is √4 = 2 points: a typical score is about 2 points from the mean of 6. The standard deviation calculator focuses on that final step and how to read it.
How to interpret variance
- Bigger variance means more spread. A variance of 0 means every value is identical.
- It's in squared units. Scores in points give a variance in points², so compare variances with each other, and use the standard deviation to describe spread in plain terms.
- Outliers have a big effect, because deviations are squared: a value 10 away from the mean adds 100, while one 2 away adds only 4. The chart above the results shows which values dominate.
- Compare carefully. To compare spread between data sets on different scales, use the coefficient of variation (standard deviation ÷ mean).