Variance measures spread — the average squared distance from the mean — and is the square of the standard deviation. Use the sample version for a sample, the population version for the whole set.
The example
Spread expressed as variance.
| A | B | |
|---|---|---|
| 1 | Measure | Value |
| 2 | Variance (sample) | 104.2 |
| 3 | Std dev (√var) | 10.2 |
The formula
The formula:
How it works
How it works:
VAR.S(or legacyVAR) divides by n−1 — the sample estimate.VAR.P(orVARP) divides by n — the true population variance.- Variance is in squared units; take its square root for the standard deviation in the original units.
- Use sample for data that’s a subset; population when you have every value.
Variance vs std dev: they carry the same information, but std dev is in the data’s units (dollars, points) and is easier to interpret. Variance is what the math runs on; report the std dev.
Try it: interactive demo
Values; sample variance.
Variations
Population variance
Divide by n:
Std dev from variance
Square root:
Legacy names
Any version:
Pitfalls & errors
Sample vs population. Using VAR.P on a sample understates the spread; pick the right one.
Squared units. Variance isn’t in the data’s units — root it for std dev.
Dotted names need 2010+. Use VAR/VARP in older Excel.
Practice workbook
Frequently asked questions
How do I calculate variance in Excel?
What's the difference between variance and standard deviation?
Which variance should I use?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class