Variance Calculator
Variance measures how spread out data is: it is the average of the squared distances from the mean. A sample variance divides by n − 1 and a population variance divides by N. This calculator works exactly with fractions, shows each squared deviation, gives the standard deviation too, and checks the result with the shortcut formula.
How to use the variance calculator
- Type or paste your data values.
- Choose sample or population.
- Press Calculate to see the variance and the steps.
Formula
Worked example: 6, 8, 10, 12, 14 (sample)
- Data values: 6, 8, 10, 12, 14
- Data type: Sample (n − 1)
✓ Answer checked
- Standard deviation
- Mean
- Sum of squared deviations
Step-by-step working (3 steps)
Mean
Add the 5 values and divide by 5.
Squared deviations
Square each value’s distance from the mean and add them.
Divide by n − 1 Variance
For a sample, divide by one less than the count.
Formulas used
How this was checked
- ✓ The shortcut formula Σx² − n·x̄² gives exactly the same sum of squares.
Frequently asked questions
What is the variance of 6, 8, 10, 12, 14 as a sample?
The mean is 10, the squared deviations add to 40, and 40 ÷ 4 = 10.
How is variance related to standard deviation?
The standard deviation is the square root of the variance.
Why divide by n − 1 for a sample?
It corrects for a sample tending to be less spread out than the whole population (Bessel's correction).
Related calculators
Standard Deviation Calculator
Calculate the standard deviation and variance of a data set, for a sample or a population, with the deviations table and every step shown.
Mean, Median & Mode Calculator
Find the mean, median, mode and range of a data set.
Expected Value Calculator
Find the expected value, variance and standard deviation of a discrete probability distribution, exactly, with a bar chart.
