Standard Deviation Calculator Sample and population — with variance, mean and the Excel formulas

Paste or type your numbers and choose sample or population. You'll get the standard deviation, variance 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.

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

Do this in Excel or Google Sheets

With your numbers in A1:A20:

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

Standard deviation is the backbone of data analysis in both Excel and Power BI. My courses take you from these formulas to full reports and dashboards.

Learn Excel & Power BI with my courses →

Sample vs population standard deviation

Standard deviation measures how spread out your numbers are around the mean. A small value means the data clusters tightly; a large value means it's widely scattered. The only difference between the two versions is the divisor: population divides by n, while sample divides by n−1 (Bessel's correction) to better estimate a whole population from a sample.

Which should I choose?

Frequently asked questions

Why does sample standard deviation need at least two values?

Because it divides by n−1. With a single value that divisor is zero, so the sample standard deviation is undefined. Population standard deviation of one value is simply 0.

Is variance just standard deviation squared?

Yes. Variance is the average squared distance from the mean, and standard deviation is its square root — which is why standard deviation is in the same units as your data.

Does it handle decimals and negatives?

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