Boneyard Tools

Variance Calculator

Find the variance of any data set. Paste or type your numbers to see the mean and both the population and sample variance, each with its matching standard deviation.

How to calculate variance

  1. Enter your numbers separated by commas, spaces or new lines.
  2. Decide whether your data is a full population or a sample from one.
  3. Read the matching variance and standard deviation from the results.

Examples

Population variance

2, 4, 4, 4, 5, 5, 7, 9
Mean = 5, population variance = 4, population SD = 2

Sample variance

2, 4, 4, 4, 5, 5, 7, 9
Sample variance = 4.5714, sample SD = 2.1381

Frequently asked questions

What is variance?

Variance measures how far a set of numbers spreads out from their mean. It is the average of the squared differences from the mean, so a larger variance means the values are more scattered. Its square root is the standard deviation.

What is the difference between population and sample variance?

Population variance divides the sum of squared differences by N, the count of values, and is used when your data covers the entire group. Sample variance divides by N minus 1, which corrects for the bias you get when estimating a larger population from a smaller sample.

Should I use the sample or population formula?

Use the population formula only when your data includes every member of the group you care about. In most real analysis you have a sample drawn from a bigger population, so the sample variance, dividing by N minus 1, is the right choice.

How does variance relate to standard deviation?

Standard deviation is the square root of the variance. Variance is in squared units, while the standard deviation is back in the original units of your data, which makes it easier to interpret. This calculator shows both.

Why do I need at least two values for the sample result?

Sample variance divides by N minus 1. With a single value that divisor is zero, so the result is undefined. Enter two or more numbers to compute the sample variance and its standard deviation.

Related tools