Variance Calculator
Calculate the population variance, sample variance, standard deviation, mean, sum of squares and coefficient of variation for any data set, with a deviation table showing every step. Example: for 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the population variance is 4 and the standard deviation is 2.
Show steps
How to use the Variance Calculator
- Type or paste your numbers.
- Press Calculate to get population and sample variance, standard deviation and the deviation table.
Formula and method
Population variance = sum of (x – mean)^2 / n. Sample variance = sum of (x – mean)^2 / (n – 1). Standard deviation is the square root of the variance. Coefficient of variation = standard deviation / mean x 100%.
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
| Value | Deviation | Squared |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Total | 0 | 32 |
Population versus sample variance
| Population | Sample | |
|---|---|---|
| Divide by | n | n – 1 |
| This example | 32 / 8 = 4 | 32 / 7 = 4.571 |
| Use when | You have every member | You have a sample |
Why divide by n – 1
A sample’s mean is fitted to the sample itself, so deviations around it come out slightly too small. Dividing by n – 1 (Bessel’s correction) removes that bias in the variance estimate.
Variance versus standard deviation
Variance is in squared units, which makes it hard to read. Standard deviation is its square root and is in the same units as the data.
Frequently asked questions
How do you calculate variance?
Find the mean, square each deviation from it, add them up and divide by n (population) or n – 1 (sample).
What is the difference between variance and standard deviation?
Standard deviation is the square root of variance.
Why divide by n – 1?
It corrects the bias that comes from estimating the mean from the same sample.
Can variance be negative?
No. It is a sum of squares, so it is zero or positive.
What does a variance of 0 mean?
Every value is identical.
What is a high variance?
It depends on the units; compare using the coefficient of variation.
Sources
Related calculators
Related to This Article
More math articles
- 6th Grade CMAS Math Worksheets: FREE & Printable
- 5 Algebra 1 Books: Choose the Right Study Guide
- How to Be A Great SAT/ACT Math Tutor?
- West Virginia WVGSA Grade 3 Math at Home — 49 Free Single-Skill PDF Worksheets
- Using a Linear Model: Complete Guide with Video and Examples
- DeSSA Calculator Policy: Rules by Grade
- How to Support Grade 6 Reading at Home: 12 Smart Strategies That Build Independence
- Overview of Middle-Level SSAT Mathematics Test
- What if I Fail the CBEST Test?
- ALEKS Math Placement Test: What to Expect and Check












What people say about "Variance Calculator: Population & Sample Variance with Steps"?
No one replied yet.