Home · Statistics · Descriptive Statistics · Variance Calculator
Variance Calculator
The sample variance: the average squared deviation from the mean, using the n−1 (Bessel) correction.
What this calculator does
The sample variance: the average squared deviation from the mean, using the n−1 (Bessel) correction. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
This is the sample variance: squared deviations from the mean summed and divided by n−1.
Dividing by n−1 (Bessel's correction) makes s² an unbiased estimator of the population variance.
Results are in squared units of the original data.
Worked example
With the example inputs this page opens with, the result is 5.78. Change any figure and the result updates with the same formula.
Quick reference
| Figure | Value |
|---|---|
| Result | 5.78 |
| Count (n) | 10 |
| Mean | 6 |
| Median | 6.5 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why divide by n−1 instead of n?
A sample's deviations are measured from its own mean, which slightly understates the true spread; dividing by n−1 corrects that bias.
When should I use population variance instead?
When your data are the entire population of interest rather than a sample from it — that version divides by n.
How does the Variance Calculator work?
The sample variance: the average squared deviation from the mean, using the n−1 (Bessel) correction. Data values → Sample variance s². The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Variance Calculator need?
Data values → Sample variance s². Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.