Variance calculator

Variance is the average squared distance from the mean. Each squared deviation is drawn as an actual square, so you can see which values dominate.

Separate with spaces, commas or new lines. 20 numbers read.
Sample variance s²103.3553
Count n20
Mean x̄74.75
Std deviation10.1664
Population variance98.1875
mean 74.75

Each square has sides equal to one value's distance from the mean. Variance is their average area.

Step by step

  1. Mean: x̄ = 1495 / 20 = 74.75
  2. Squared deviations (x − x̄)², added up: Σ = 1963.75
  3. Divide by n − 1 = 19: variance = 1963.75 / 19 = 103.3553
  4. Square root: standard deviation = √103.3553 = 10.1664
xx − x̄(x − x̄)²
62−12.75162.5625
71−3.7514.0625
74−0.750.5625
58−16.75280.5625
8813.25175.5625
9116.25264.0625
67−7.7560.0625
73−1.753.0625
794.2518.0625
849.2585.5625
70−4.7522.5625
65−9.7595.0625
772.255.0625
816.2539.0625
69−5.7533.0625
9520.25410.0625
72−2.757.5625
761.251.5625
60−14.75217.5625
838.2568.0625
Σ01963.75

Variance, drawn as squares

Variance is the mean of the squared deviations. In the chart above, every value's distance from the mean is the side of a square, so the variance is literally the average area of those squares. Notice how one far-away value produces a square much bigger than all the others: variance is very sensitive to outliers.

s² = Σ(x − x̄)² / (n − 1)    σ² = Σ(x − μ)² / N

A shortcut formula

For hand calculation, Σ(x − x̄)² = Σx² − (Σx)²/n. It gives the same answer with fewer subtractions, though computers avoid it because it can lose precision when the numbers are large.

Why statisticians like variance

For independent random variables, variances add: Var(X + Y) = Var(X) + Var(Y). Standard deviations do not. That property is behind the √n in the standard error σ/√n that appears in confidence intervals and the central limit theorem.

To get back to the original units, take the square root: that is the standard deviation.

Still not clicking? Ask the tutor

An AI tutor that sees the numbers you entered above and explains them. It can make mistakes, so check anything important against the worked steps.

Questions students ask

How do you find variance?

Subtract the mean from each value, square the results, add them up, and divide by n − 1 for a sample or N for a population.

Why do we square the deviations?

Deviations from the mean always add up to zero, so they have to be made positive. Squaring does that and also gives extra weight to values far from the mean, which gives variance useful mathematical properties (variances of independent variables add).

What is the relationship between variance and standard deviation?

Standard deviation is the square root of variance. Variance is in squared units (cm²), SD is back in the original units (cm).

Can variance be negative?

No. It is a sum of squares divided by a positive count, so the smallest possible value is 0, which happens only when every value is identical.

Keep exploring