Variance Calculator

Variance is the average squared distance from the mean. It is the square of the standard deviation and the building block of tests such as ANOVA.

Separate numbers with commas or spaces.
The data is a
Results update as you type.

Sample variance (s²)

16.5

of 5 values

Standard deviation
4.062019202√variance
If this were the whole population
13.2divide by N
Mean
14
Sum of squared deviations
66
Coefficient of variation
29.014%standard deviation ÷ mean
Standard error of the mean
1.816590212s ÷ √n
Deviations from the mean
Deviations from the mean
xx − mean(x − mean)²
12−24
1511
9−525
20636
1400

About this calculator

Choose sample to divide by n − 1 or population to divide by N.

How to use it

  1. Enter the numbers.
  2. Choose sample or population.
  3. Read the variance.

The formula

s² = Σ(x − x̄)² ÷ (n − 1); σ² = Σ(x − μ)² ÷ N
Σ(x − x̄)²
sum of squared deviations

Worked example

12, 15, 9, 20, 14

  1. Mean 14; squared deviations 4, 1, 25, 36, 0 add to 66.
  2. Sample variance = 66 ÷ 4 = 16.5; population variance = 66 ÷ 5 = 13.2.

What the result means

Variance is in squared units (marks², ₹²), so the standard deviation is easier to interpret. Variances are useful because they add up for independent quantities.

Assumptions

  • Real numbers, at least two of them.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

Should I use sample or population?

Use sample (n − 1) when your data are a sample from a bigger group, which is most of the time. Use population (N) only when you have every member of the group.

Why divide by n − 1?

A sample’s values sit closer to the sample mean than to the true mean, so dividing by n slightly underestimates the spread. Dividing by n − 1 (Bessel’s correction) fixes that on average.

How are variance and standard deviation related?

Standard deviation is the square root of variance.

Last reviewed on 6 October 2026. Found a mistake? Tell us.