Variance Calculator
Enter your data and choose sample or population to find its variance.
A sample divides by n − 1; a whole population divides by n.
Numbers separated by commas, spaces or new lines
Result
You entered
Standard deviation
Fraction
Population variance
Show the work
Mean (arithmetic average)
The mean shares the total out equally: add every value, then divide by how many there are. Here the values add up to and .
Deviations from the mean
Subtract the mean from every value to see how far each one sits from it. A value below the mean gives a negative deviation.
Sum of squared deviations
Squaring each deviation makes every term positive, so values above and below the mean cannot cancel. Adding the squares gives .
Sample variance (divide by n - 1)
A sample is divided by rather than , because the mean was estimated from the same data and that makes the spread look slightly smaller. Here .
Result
So the sample variance is .