esc
Calculators

Variance calculator:
with every squared deviation

Type or paste a data set and see its variance, the sum of squares and a row for every value showing x − x̄ and (x − x̄)², the way a teacher would lay it out.

Separate numbers with spaces, commas or new lines (so write 1250, not 1,250).
Sample variance (s²)4.571429Σ(x − x̄)² = 32, divided by n − 1 = 7
Sample variance (s²)
4.571429
Population variance (σ²)
4
Standard deviation (√ variance)
2.13809
Mean (x̄)
5
Count (n)
8
Sum of squares Σ(x − x̄)²
32
Each value’s squared deviation
xx − x̄(x − x̄)²
2-39
4-11
4-11
4-11
500
500
724
9416
  • Steps: find the mean, subtract it from every value, square each difference, add the squares, then divide by n − 1 for a sample or n for a population.

How to use Variance calculator

  1. 01Enter the dataOne list of numbers.
  2. 02Choose sample or populationChanges the divisor.
  3. 03Check the tableEach deviation and its square.
File character arranging marked pages

The average squared distance.

Variance measures spread in squared units. Take the mean, subtract it from each value, square the results and add them up: that total is the sum of squares. Divide it by n − 1 for a sample or by n for a population. The square root of the variance is the standard deviation.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is the variance of 2, 4, 4, 4, 5, 5, 7, 9?

The mean is 5 and the squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. The population variance is 32 ÷ 8 = 4; the sample variance is 32 ÷ 7 ≈ 4.571.

Why square the deviations instead of just adding them?

Deviations from the mean always add up to zero, because the values above and below cancel out. Squaring makes every distance positive and weights large distances more.

Variance or standard deviation: which should I report?

The standard deviation, usually, because it is in the same units as the data. Variance is what you need inside formulas such as ANOVA, the pooled t-test or adding the spread of independent quantities.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.