Variance Calculator
Enter a set of numbers to get population variance, sample variance, standard deviation, mean, and coefficient of variation instantly — with full step-by-step calculation showing every squared deviation.
Enter your values above to see the results.
Tips & Notes
- ✓Variance is always in squared units. If your data is in meters, variance is in m². Standard deviation converts back to the original units — use SD for reporting and variance for calculations.
- ✓Adding the same constant to every value does not change variance. Multiplying every value by k multiplies variance by k². Data [2,4,6] and [12,14,16] have identical variance.
- ✓A single extreme outlier can dramatically inflate variance. Data [1,2,3,4,100] has variance of 1560 — massively distorted by the one outlier at 100.
- ✓For two datasets with different means, the coefficient of variation (CV = s/x̄ × 100%) compares relative spread more fairly than raw variance or standard deviation.
- ✓Always specify whether you are reporting population or sample variance. In scientific papers and reports, this distinction is required — sample variance is far more common in practice.
Common Mistakes
- ✗Dividing by n instead of n−1 for sample data. This underestimates the true population variance and is systematically biased. Always use n−1 when working with a sample. Excel's VAR() function uses n−1; VARP() uses N.
- ✗Forgetting to square the deviations. The formula requires (xᵢ−x̄)², not |xᵢ−x̄|. Squaring ensures all deviations are positive and gives more weight to values far from the mean.
- ✗Confusing variance with standard deviation. Variance = SD². They measure the same thing but variance is in squared units. Data with SD = 5 has variance = 25, not 5.
- ✗Averaging the deviations without squaring first. Σ(xᵢ−x̄) always equals exactly zero — the positive and negative deviations cancel. This is why squaring is essential before summing.
- ✗Comparing variances across datasets with different units or scales. Comparing the variance of salaries (in thousands) with heights (in inches) is meaningless. Use coefficient of variation for cross-scale comparisons.
Variance Calculator Overview
Variance measures how spread out a dataset is — the average of the squared distances from the mean. A variance of 0 means every value is identical. A large variance means values are widely scattered. Understanding variance is essential for comparing data sets, building confidence intervals, running hypothesis tests, and measuring risk in finance and engineering. This calculator computes both population and sample variance, along with standard deviation and related spread statistics.
Population variance — when you have all data points:
σ² = Σ(xᵢ − μ)² / N
EX: Data [2, 4, 4, 4, 5, 5, 7, 9] → N=8, μ=5.0 → Σ(xᵢ−5)² = 9+1+1+1+0+0+4+16 = 32 → σ² = 32/8 = 4.00Sample variance — when your data is a sample from a larger population:
s² = Σ(xᵢ − x̄)² / (n − 1)
EX: Same data as sample → s² = 32 / (8−1) = 32/7 ≈ 4.571 | Note: dividing by n−1 gives a larger, unbiased estimateStandard deviation — square root of variance, in original units:
σ = √σ² (population) | s = √s² (sample)
EX: Population SD = √4.00 = 2.00 | Sample SD = √4.571 ≈ 2.138Coefficient of variation — relative spread as a percentage:
CV = (s / x̄) × 100%
EX: x̄ = 5.0, s = 2.138 → CV = (2.138/5.0) × 100 = 42.76% — useful for comparing spread across different scalesWhen to use population vs. sample variance:
| Situation | Use | Denominator | Symbol |
|---|---|---|---|
| You have ALL data points | Population variance | N | σ² |
| You have a subset of data | Sample variance | n − 1 | s² |
| Estimating population from sample | Sample variance | n − 1 | s² |
| Entire census or complete records | Population variance | N | σ² |