Variance Calculator
Enter your values below to calculate variance, mean, and standard deviation instantly.
What is variance?
Variance is a way to measure how spread out your numbers are. If all values are close to the average, variance is low. If values are far from the average, variance is high.
In plain language: variance tells you how much your data “moves around” instead of staying clustered in one place.
How to calculate variance step by step
You can calculate variance manually with a simple process:
- Find the mean (average) of the data.
- Subtract the mean from each value.
- Square each difference.
- Add all squared differences.
- Divide by n (population) or n - 1 (sample).
Population variance formula
Use this when you have every value in the full group you care about.
Sample variance formula
Use this when your data is a sample taken from a larger population.
Worked example
Suppose your data is: 4, 8, 6, 5, 3, 7.
- Mean = (4 + 8 + 6 + 5 + 3 + 7) / 6 = 5.5
- Differences from mean: -1.5, 2.5, 0.5, -0.5, -2.5, 1.5
- Squared differences: 2.25, 6.25, 0.25, 0.25, 6.25, 2.25
- Sum of squares = 17.5
- Population variance = 17.5 / 6 = 2.9167
- Sample variance = 17.5 / 5 = 3.5
Sample vs population: which one should you use?
This is the most common point of confusion.
- Population variance: use it when you have all values (for example, every score from one class of 20 students).
- Sample variance: use it when you only have part of the full group (for example, 20 customers surveyed out of thousands).
The sample formula divides by n - 1 to correct bias and better estimate the true population spread.
How variance relates to standard deviation
Standard deviation is just the square root of variance. Variance is in squared units; standard deviation goes back to the original units, which makes it easier to interpret.
- Variance = spread in squared units
- Standard deviation = spread in original units
Common mistakes to avoid
- Using population formula when you actually have a sample.
- Forgetting to square each difference.
- Calculating differences from the wrong mean.
- Rounding too early and introducing small errors.
Quick checklist
Before you finalize your answer, confirm:
- You computed the mean correctly.
- You squared every difference.
- You chose the correct denominator: n or n - 1.
- Your variance is non-negative (it should never be negative).
Use the calculator above whenever you want a fast, accurate answer for homework, data analysis, finance, or performance tracking.