Skip to content
Calc.

Variance Calculator

Find the sample or population variance of a list of numbers, with the standard deviation, mean and sum of squared deviations shown alongside.

Last updated: October 2026

Variance

62.5

Formula below · 1 source (itl.nist.gov) · Updated Oct 2026

Compare with similar

About this calculator

Variance measures how far the values in a data set spread out from their mean: it is the average squared deviation.

sample variance s² = Σ(x − x̄)² ÷ (n − 1) population variance σ² = Σ(x − μ)² ÷ n

The calculator finds the mean, subtracts it from each value, squares the differences, adds them up (the sum of squared deviations) and divides.

Why n − 1 for a sample

Deviations measured from the sample's own mean are on average a little smaller than deviations from the true population mean, so dividing by n would underestimate the spread. Dividing by n − 1 (Bessel's correction) removes that bias. Use the population formula only when your list is the entire group of interest.

Variance and standard deviation

Variance is in squared units (points², kg², $²), which is hard to read, so it is usually reported as its square root, the standard deviation, which is in the original units. Variance is still the quantity that adds up: the variance of a sum of independent variables is the sum of their variances, which is why it underlies ANOVA and regression. Because deviations are squared, one outlier can dominate the result.

Spreadsheet equivalents: VAR.S (sample) and VAR.P (population).

How to use

Enter your numbers separated by commas or spaces and choose sample or population. Example 1 (defaults): exam scores 70, 80, 90, 85, 75. Mean = 400 ÷ 5 = 80. Squared deviations: 100, 0, 100, 25, 25, sum 250. Sample variance = 250 ÷ 4 = 62.5; standard deviation √62.5 ≈ 7.91. Example 2: the same five scores as a whole population: σ² = 250 ÷ 5 = 50, σ ≈ 7.07. Example 3: 2, 4, 4, 4, 5, 5, 7, 9 as a population: mean 5, sum of squares 32, σ² = 4, σ = 2.

Frequently asked questions

What is the difference between sample variance and population variance?

Population variance σ² describes the spread of an entire population — if you have measurements for every member, divide by N. Sample variance s² describes the spread of a subset drawn from a larger population — divide by (n − 1) to correct for the fact that the sample mean is used in place of the unknown population mean. The n − 1 denominator (Bessel’s correction) makes the sample variance an unbiased estimator of the population variance; using n instead would systematically underestimate true spread. For small samples (n < 30) the difference matters; for large samples it is negligible. In practice, almost all real-world data is a sample from a larger population (you measure 100 customers, not the entire customer base), so the sample formula is the right default unless you genuinely have the whole population.

Why is variance always non-negative?

Because deviations are squared before summing, every term in the numerator is ≥ 0, so the sum (and hence the variance) cannot be negative. Variance equals exactly zero only in the degenerate case where every observation is identical — no spread, no variability. This non-negativity property is mathematically convenient and is what allows variance to be aggregated and decomposed cleanly in ANOVA and regression: total variance = explained variance + residual variance, with all three quantities non-negative. The squaring also has a downside: variance has units of the data squared (kg² for weights, $² for dollars), which is hard to interpret directly. That is why standard deviation — the square root of variance — is more often reported, since it has the same units as the original data.

Why does variance use squared deviations instead of absolute deviations?

Squaring has several mathematical advantages over taking absolute values. First, squared deviations are differentiable everywhere, which makes optimisation easy (the mean minimises the sum of squared deviations exactly, while the median minimises the sum of absolute deviations). Second, the sum of squares decomposes naturally into orthogonal components in ANOVA and regression, leading to elegant analyses. Third, sums of squared deviations follow chi-squared distributions under normality, enabling F-tests and confidence intervals. Mean absolute deviation (MAD) is an alternative that is more robust to outliers and easier to interpret, but lacks the clean mathematical properties that make variance so central to inferential statistics. In modern robust statistics, MAD is preferred when outliers are a concern; in classical parametric statistics, variance dominates because the math works out.

What are the most common mistakes people make computing variance?

The first is using n instead of n − 1 for a sample, which underestimates the spread, especially for small samples. The second is confusing variance with standard deviation: variance is in squared units, standard deviation in the original units. The third is the shortcut Σx² − (Σx)² ÷ n done by hand with rounded numbers, which can lose precision when the values are large and close together. The fourth is reading much into the variance of two or three values; such estimates are very unstable.

When should I not use this calculator?

Variance is a poor summary for strongly skewed or heavy-tailed data, where one or two extreme values dominate; the interquartile range or median absolute deviation is more robust there. It does not apply to categorical data. For time series, consecutive values are often correlated, so the simple formula does not describe the uncertainty of an average. And with only a handful of values the estimate is very noisy.

Related calculators

Sources & references

How we check our calculators

Think a result is wrong? Report a problem with this calculator.