Variance Calculator
Reviewed by CalcMulti Editorial Team·Last updated: ·← Statistics Hub
Variance measures how spread out values are around the mean. A low variance means values cluster tightly; a high variance means they are widely dispersed. It is the foundation of standard deviation, ANOVA, and regression analysis.
This calculator computes both population variance (σ²) and sample variance (s²), shows the full deviation table, and explains which formula to use for your data.
Formula
Population: σ² = Σ(x − μ)² / n Sample: s² = Σ(x − x̄)² / (n − 1)
- x
- each individual value in the dataset
- μ or x̄
- mean of the dataset (population μ, sample x̄)
- n
- number of values
- n−1
- sample denominator — Bessel's correction for unbiased estimate
Divides by n−1 (Bessel's correction) — use when your data is a sample from a larger population.
Variance Formula — Step by Step
Using dataset: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)
- 1Mean = (2+4+4+4+5+5+7+9) / 8 = 5
- 2Deviations: (2−5)²=9, (4−5)²=1, (4−5)²=1, (4−5)²=1, (5−5)²=0, (5−5)²=0, (7−5)²=4, (9−5)²=16
- 3Sum of squared deviations = 9+1+1+1+0+0+4+16 = 32
- 4Population variance σ² = 32 / 8 = 4.0 · Sample variance s² = 32 / 7 ≈ 4.571
- 5Std Dev = √4.571 ≈ 2.138 (same units as original data)
Variance vs Standard Deviation — Which to Report?
| Metric | Units | Use when |
|---|---|---|
| Variance (s²) | Squared units (e.g. cm²) | Mathematical calculations, ANOVA, regression analysis |
| Std Dev (s) | Same as data (e.g. cm) | Reporting results to non-statisticians, normal distribution work |
Both carry the same information — standard deviation is just the square root of variance. Variance is preferred in mathematical contexts; std dev in reporting.
Common Mistakes
Using population formula on sample data
Dividing by n instead of n−1 underestimates the true population variance. Always use sample variance (n−1) unless you have measured every single member of the population.
Forgetting to square the deviations
Without squaring, positive and negative deviations cancel out and sum to zero — giving no useful information about spread.
Interpreting variance directly
Variance is in squared units. A variance of 25 cm² doesn't mean values spread 25 cm. Take the square root to get std dev (5 cm) for intuitive interpretation.
Related Statistics Tools
Population vs Sample — Which to Use?
Population Variance (σ²)
Divide by n
You have data for every member of the group you're studying
- •All 30 students in one class
- •Every employee in a small company
- •All measurements from a controlled experiment
Sample Variance (s²)
Divide by n − 1
Your data is a subset drawn from a larger population
- •1,000 surveyed voters from a nation
- •Sample of products from a production line
- •Clinical trial participants
Related Calculators
Square root of variance — same units as data
Mean CalculatorRequired to compute variance
Z-Score CalculatorStandardise values using mean and std dev
T-Test CalculatorTest if group means differ significantly
Normal Distribution CalculatorBell curve probabilities using σ
Statistics HubAll statistics calculators
Disclaimer
This calculator is for educational purposes only. Results are based on standard population and sample variance formulas. Always verify which formula (population vs sample) is appropriate for your specific analysis before drawing conclusions.