Part of the Maths & Statistics suite · 235 calculators

Variance Calculator

The variance of a data set — sample and population — with the sum of squares it is built from.

Variance is the average squared distance from the mean.

Results update as you type
Results
Sample variance (n−1)
9.904762
Population variance (n)
Sample standard deviation
Mean
Sum of squared deviations
Count
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About variance

How the variance calculator works

Variance is the average squared distance from the mean. Squaring stops positive and negative deviations cancelling, and it is what makes variance add cleanly for independent quantities — the property that gives it its place in statistics despite being in squared units.

The sample formula divides by n−1 rather than n. That is Bessel's correction: a sample mean sits closer to its own data than the true mean does, so dividing by n underestimates. Use n−1 when the data are a sample of something larger, and n only when they are the entire population.

Formula: population σ² = Σ(x − μ)² / n; sample s² = Σ(x − x̄)² / (n − 1)

Worked examples

InputsSample variance (n−1)Note
Seven values9.904762sample variance 9.90
A simple set4.571429sample 4.571, population 4
No spread at all0zero

Frequently asked questions

What is variance?

The average squared distance of the values from their mean — a measure of spread.

Should I divide by n or n−1?

By n−1 for a sample, by n only when the data are the whole population. Most real data are samples.

Why square the deviations?

Because plain deviations sum to zero. Squaring keeps them positive and makes variances of independent quantities add.

What units is variance in?

The square of the original units — which is why standard deviation, its square root, is usually quoted instead.

Can variance be negative?

No. It is an average of squares, so it is zero or positive; zero means every value is identical.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.