Calculator and Converter

Variance calculator

Variance measures how spread out a list of numbers is by averaging the squared distances from the mean.

Results

Enter your values to see the result.

About this tool

Enter your numbers, pick whether they form a Whole population or a Sample, and the calculator returns the variance, the standard deviation and the mean. It is used in coursework and when comparing the steadiness of two sets of readings.

How it is calculated
variance = Σ(x − mean)² ÷ N for a population, or ÷ (N − 1) for a sample
Worked example
With Numbers (separated by commas or spaces): 2,4,4,4,5,5,7,9; Data set is a: Whole population, the result is: Variance: 4; Standard deviation: 2; Mean: 5.
Good to know
At least two numbers are required. For a population the squared differences are divided by N; for a sample they are divided by N − 1. Variance is in squared units of the original data.

Frequently asked questions

Why is variance in squared units?

Each difference from the mean is squared before averaging, so if your data is in metres the variance is in square metres. The Standard deviation shown alongside takes the square root to return to the original units.

What is the difference between the population and sample options?

Population divides by the number of values and treats your list as the complete group. Sample divides by one fewer, which adjusts for using partial data to estimate the spread of a bigger group.

Can the variance ever be negative?

No. Squared differences are never negative, so the variance is zero or more. It equals zero only when every number in the list is identical, meaning there is no spread.

Related calculators