Variance Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Paste or type a list of numbers to measure how spread out they are around their mean.
Result
Sample variance (s²)
Sample standard deviation (s)
- Population standard deviation (σ)
- Mean
- Count
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Numbers (separated by commas, spaces or new lines): type or paste your values.
- Read the result: Sample variance (s²); the panel also shows Sample standard deviation (s), Population standard deviation (σ), Mean and Count.
Data plot
Table of values
| Value | Count |
|---|
How this calculator works
Sample variance s² = Σ(x − x̄)² ÷ (n − 1), where x̄ is the mean and n the count. Dividing by n − 1 (Bessel's correction) makes s² an unbiased estimate of the population variance.
Standard deviation is the square root of the variance. The population standard deviation divides by n instead of n − 1.
Worked example
| Numbers (separated by commas, spaces or new lines) | 2, 4, 4, 4, 5, 5, 7, 9 |
|---|
| Sample variance (s²) | 4.5714 |
|---|---|
| Sample standard deviation (s) | 2.1381 |
| Population standard deviation (σ) | 2 |
| Mean | 5 |
| Count | 8 |
Frequently asked questions
What is the variance of 2, 4, 4, 4, 5, 5, 7, 9?
The mean is 5 and the squared deviations add up to 32, so the sample variance is 32 ÷ 7 ≈ 4.5714 and the population standard deviation is 2.
Why is variance in squared units?
Because it averages squared deviations. Take the square root, the standard deviation, to get back to the units of the data.