Variance Calculator

Population or sample variance, with the standard deviation alongside.

What does this calculator do?

Variance is the average of the squared deviations from the mean — the mathematical core behind standard deviation, used directly in statistics, finance and quality control. This calculator returns both the population (÷N) and sample (÷n−1) conventions depending on your selection.

Formula

Average the squared deviations from the mean:

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

How to use it

Paste your values and pick Population or Sample. The variance is shown with its square root (the standard deviation), the mean and the count.

Worked example

For 2, 4, 4, 4, 5, 5, 7, 9: squared deviations sum to 32. Population variance = 32 ÷ 8 = 4; sample variance = 32 ÷ 7 ≈ 4.5714.

Formula version1.0.0
Formulaσ² = Σ(xᵢ − μ)² ÷ N s² = Σ(xᵢ − x̄)² ÷ (n − 1)
Precision4 decimals

Frequently asked questions

Why is variance in squared units?

Because deviations are squared before averaging — variance of heights in cm is in cm². Take the square root (standard deviation) to get back to the original units.

Why divide by n − 1 for samples?

The sample mean sits closer to the sample values than the true mean does, which makes raw variance too small. Dividing by n − 1 (Bessel’s correction) removes that bias.

Can variance be negative?

Never — it is an average of squares. A variance of 0 means every value is identical.

Sources

Related calculators

Last updated: 2026-07-30 · v1.0.0 · Report an error