Variance Calculator

Measure how spread out a set of numbers is around its mean.

Math and PercentUpdated 2026-11-172 min read
Variance Calculator
Comma separated decimal numbers, for example 2, 4, 4, 5.
Population variance
...
Sample variance...
Mean...
Number of values...

What it does

Variance is a measure of spread. It is found by taking each value, subtracting the mean, squaring the difference and averaging the results. Squaring makes all contributions positive and gives more weight to values far from the middle.

This calculator accepts a comma separated list and returns both the population variance and the sample variance. The population form divides by the number of values, while the sample form divides by one fewer to correct for estimating the mean from the same data.

The default list of eight numbers has a mean of 5. The squared differences add to 32, giving a population variance of 4.0000 and a sample variance of 4.5714.

Variance is in squared units, which can be awkward to interpret. The square root of the variance is the standard deviation, expressed in the original units and often easier to describe.

The measure is sensitive to outliers because squaring amplifies large deviations. Always look at the data alongside the variance, especially for small samples where one unusual value can dominate.

How to use

  1. Enter your numbers separated by commas, with no currency symbols.
  2. Include every observation in the list.
  3. Press calculate and read the mean and count first.
  4. Use population variance for a complete set or sample variance for a subset.
  5. Take the square root if you need the standard deviation.
  6. Check the list for outliers before interpreting the result.

Formula

Population variance = Σ(x − mean)² / n, sample variance = Σ(x − mean)² / (n − 1).
x
Each value in the list.
mean
The arithmetic average of the values.
n
The number of values.
variance
The average squared deviation, in squared units.

The tool accepts plain decimal numbers separated by commas, including negative values. At least two values are required. The population and sample answers differ only by the divisor, so the ratio between them is n over n minus one.

Worked example

Example: eight values around a mean of five

The form opens with this list so the result is already shown.

  1. The list is 2, 4, 4, 4, 5, 5, 7, 9 with eight values.
  2. The mean is 40 divided by 8, which is 5.
  3. Squared differences from 5 add to 32.
  4. Population variance is 32 divided by 8, giving 4.0000.
  5. Sample variance is 32 divided by 7, giving 4.5714. The tool shows both plus mean 5.0000 and count 8.

Reference table

Variance for several small lists
ValuesPopulation varianceSample variance
1, 2, 3, 4, 52.00002.5000
2, 4, 4, 4, 5, 5, 7, 94.00004.5714
10, 10, 10, 100.00000.0000
-2, 0, 22.66674.0000

Limits

  • Sensitive to outliers because deviations are squared.
  • Reported in squared units, not the original units.
  • Assumes the values are numeric and comparable.
  • Sample variance assumes observations are independent.

Common mistakes

  • Using n instead of n minus one for a sample.
  • Including thousands separators inside numbers.
  • Forgetting that variance is in squared units.
  • Ignoring a single extreme value that dominates the result.
  • Mixing the population and sample answers in a report.

Try it yourself

Quick checks. Answers sit tucked under each question.

Values 1, 2, 3, 4, 5?

Population variance 2.0000, sample variance 2.5000, mean 3.0000, count 5.

Values 10, 10, 10, 10?

Population variance 0.0000, sample variance 0.0000, mean 10.0000, count 4.

Questions

What is variance?

The average squared distance of values from their mean.

What is the difference between population and sample variance?

Population divides by n, sample divides by n minus one to correct for estimating the mean.

Why square the deviations?

To make them positive and to give more weight to values far from the mean.

What is the square root of variance?

The standard deviation, which is in the original units.

What input format is accepted?

Plain decimal numbers separated by commas.

Can variance be negative?

No. Squared deviations are never negative, so variance is zero or positive.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.