Variance Calculator

Calculate sample or population variance.

Separate with commas, spaces or new lines.
Population variance σ²4
Standard deviation2
Mean5
Σ(x − mean)² = 32 variance = 32 / 8 = 4

Runs entirely in your browser — nothing you enter is uploaded.

About this tool

Variance is the average squared distance from the mean — the square of the standard deviation.

How to use the Variance Calculator

  1. Enter the numbers and data is a.
  2. The result updates instantly, with the working shown underneath.
  3. Use Copy to grab a result, or Reset to start again.

How it works

Sum squared deviations from the mean and divide by n or n − 1.

Formula

σ² = Σ(x − μ)² / n

Frequently asked questions

Should I use sample or population?

Use population when your data includes every member of the group. Use sample when the data is a subset used to estimate a larger population — it divides by n − 1 (Bessel’s correction).

Why square the deviations?

So positive and negative deviations do not cancel and larger deviations weigh more.