Variance Calculator Sample and population — with standard deviation, mean and the Excel formulas

Paste or type your numbers and choose sample or population. You'll get the variance, standard deviation and mean instantly. Separate values with commas, spaces or new lines.

Use Sample when your data is a subset; Population when it's the whole group.

Variance
sample (n−1)
Std deviation
Mean
Count
Minimum
Maximum

Do this in Excel or Google Sheets

With your numbers in A1:A20:

StatisticFormula
Sample variance=VAR.S(A1:A20)
Population variance=VAR.P(A1:A20)
Sample standard deviation=STDEV.S(A1:A20)
Population standard deviation=STDEV.P(A1:A20)
Mean=AVERAGE(A1:A20)

Variance and standard deviation drive almost every analysis in Excel and Power BI. My courses take you from these formulas to full dashboards.

Learn Excel & Power BI with my courses →

What variance tells you

Variance is the average of the squared distances of each value from the mean. Because the distances are squared, larger deviations count much more, so variance is very sensitive to outliers. Its square root — the standard deviation — brings the spread back into the same units as your original data, which is usually easier to interpret.

Sample vs population

Frequently asked questions

Why is variance in squared units?

Because each deviation from the mean is squared before averaging. That's why analysts often report the standard deviation instead — it's the square root, back in the original units.

Why does sample variance need at least two values?

It divides by n−1, which is zero for a single value, making sample variance undefined. Population variance of one value is 0.

Does it handle decimals and negatives?

Yes. Mix whole numbers, decimals and negatives freely; non-numeric entries are ignored.