Variance Calculator
Calculate population or sample variance, mean, and observation count.
Variance is expressed in squared units of the observations.
How it works
Population: σ² = Σ(x − μ)² ÷ N. Sample: s² = Σ(x − x̄)² ÷ (n − 1).
varianceExplanation
Variance measures squared spread around the mean. Select Population when your data represent the entire population of interest, or Sample when estimating population variability from a sample. The sample denominator corrects bias in the variance estimate.
Variables and units
x is an observation; μ or x̄ is the mean; N or n is the number of observations. Sample mode requires at least two observations.
How to calculate
- Enter the dataset and choose Population or Sample.
- Find the mean and sum squared deviations from it.
- Divide by N for population variance or n − 1 for sample variance.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5. Population variance is 4; sample variance is 32/7 ≈ 4.57143.
A few things you might wonder.
Why is variance in squared units?
The formula squares each deviation. Standard deviation takes its square root to return to the original measurement units.
Are my inputs saved?
No. Calculations run on your device. Your input values and datasets are not sent to the server.