Standard Deviation Calculator

STATISTICS & PROBABILITY
Sample std deviation (s)
Population std deviation
Mean
Sample variance
Population variance
Count (n)
Sum of squared deviations

How spread out your data is

Standard deviation measures how far values typically sit from the mean. A small value means the data clusters tightly; a large one means it is widely scattered. This calculator returns both the sample and population standard deviations and variances, the mean, and the sum of squared deviations from one paste of numbers.

Sample versus population

Both start by squaring each values distance from the mean and adding them up. The population version divides that sum by n; the sample version divides by n minus 1. The n-minus-1 correction (Bessels correction) compensates for estimating the mean from the same sample, giving a less biased spread.

Which should I use?

Use the population formula only when your data is the entire group you care about. Use the sample formula — the more common case — when your numbers are a sample drawn from a larger population, which is why it leads here.

Related tools

For the averages themselves, use the mean median mode calculator; to see how unusual one value is, the z-score calculator.

Worked example

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared deviations sum to 32. The population variance is 32 over 8 = 4 (so population SD = 2), while the sample variance is 32 over 7, about 4.57 (sample SD about 2.14).

FAQ

Why square the deviations?

Squaring removes the sign so positive and negative gaps do not cancel, and it weights larger gaps more. Taking the square root at the end returns to the original units.

What does a standard deviation of zero mean?

Every value is identical — there is no spread at all.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.