Skip to content
LoveToCalc

Definition — what does that mean?

Variance

The mean of the squared distances from the mean.

In Swedish: Varians

Variance

The relation

σ²=Σ(xi−x)²n

The mean of the squared distances from the mean. The standard deviation squared, and the step before it.

Separate the numbers with spaces, commas or semicolons, for example 2.5, 4, 7

σ²=4

σ² equals ((2 minus 5) squared plus (4 minus 5) squared plus (4 minus 5) squared plus (4 minus 5) squared plus (5 minus 5) squared plus (5 minus 5) squared plus (7 minus 5) squared plus (9 minus 5) squared) divided by 8, equals ((−3) squared plus (−1) squared plus (−1) squared plus (−1) squared plus 0 squared plus 0 squared plus 2 squared plus 4 squared) divided by 8, equals (9 plus 1 plus 1 plus 1 plus 0 plus 0 plus 4 plus 16) divided by 8, equals 32 divided by 8, equals 4

Working5 steps

Practice questions

You are given

  • x=6, 11, 6, 9

What the formula says

σ² = Σ(xᵢ − x̄)² / n

Take each value’s distance from the mean, square it, add up the squares and divide by the count. The variance is the mean of the squared distances. n is the number of values and σ² is read “sigma squared”. The formula is a definition.

The variance has the wrong unit to be read directly. If the values are in centimetres, the variance is in square centimetres. That is why it is mostly a step on the way. Its square root is the standard deviation, which has the same unit as the values.

Worked examples

Eight values. The list 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 5. The distances from 5 are −3, −1, −1, −1, 0, 0, 2 and 4. Their squares are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. The variance is 32 / 8 = 4.

Why the square is needed. Add the distances without squaring: −3 − 1 − 1 − 1 + 0 + 0 + 2 + 4 = 0. It always comes to 0, because the mean sits exactly where the deviations on either side cancel. The square makes every deviation positive.

Common mistakes

Common questions

Why are the deviations squared? Because otherwise they cancel: the deviations from the mean always add up to 0. Squaring makes them positive and also lets large deviations count for more than small ones.

Can the variance be negative? No. It is a sum of squares divided by a positive number. It is 0 only when all the values are equal.

n or n − 1? n when the values are the whole group you want to describe, such as every pupil in the class. n − 1 when the values are a sample and you want to estimate the variance of a larger group. If the question does not say, books and courses differ: school textbooks often use n and statistics courses n − 1, so check which one your course means.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
σ²Σ(xi−x)²n(2−5)²+(4−5)²+(4−5)²+(4−5)²+(5−5)²+(5−5)²+(7−5)²+(9−5)²84

Last reviewed October 6, 2026 ·How pages are reviewed

Ready-made worksheets with this formula

Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.

High school

  • Range and standard deviation

    Sixteen lists of numbers: four ranges, six variances and six standard deviations. Calculator allowed. The first one is worked.

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.