Home / Math Calculators / Standard Deviation Calculator

Math & Statistics

Standard Deviation Calculator

Paste a list of numbers to get the mean, both population and sample standard deviation, variance, count, and sum, with the calculation explained.

Sample standard deviation (s)

5.24

Population SD (σ)—
Mean—
Variance (sample)—
Count / Sum—

Values vs. the mean

Each data point; the spread around the mean is what standard deviation measures.

How it works

Standard deviation measures how spread out a set of numbers is. A low value means the data clusters near the mean; a high value means it is more dispersed. It is the square root of the variance, the average squared distance from the mean.

Mean: x̄ = Σxᵢ / n
Population variance: σ² = Σ(xᵢ − x̄)² / n
Sample variance: s² = Σ(xᵢ − x̄)² / (n − 1)
Standard deviation = √variance

Which one should I use?

Use population SD when your numbers are the whole group you care about. Use sample SD when they are a sample meant to represent a larger group, dividing by n − 1 corrects for the bias in small samples.

Step-by-step example

For the data 2, 4, 4, 4, 5, 5, 7, 9: the mean is 40 ÷ 8 = 5. The squared differences from the mean are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. The population variance is 32 ÷ 8 = 4, so the population standard deviation is 2.000. Treated as a sample, divide by n − 1 instead: 32 ÷ 7 = 4.571, giving a sample standard deviation of 2.138.

Use the sample version when your data is a sample from a larger group, which is most real-world cases. For data that is roughly bell-shaped, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three.

Frequently asked questions

Population vs sample standard deviation?

Population divides by N; sample divides by N − 1 (Bessel's correction) for a less biased estimate from a sample.

How do I enter numbers?

Separate them with commas, spaces, or new lines, anything that isn't a number is ignored.

What is variance?

The average squared distance from the mean; standard deviation is its square root, back in the original units.

Why divide by n − 1 for a sample?

A sample's mean is closer to its own values than the true population mean is, so dividing by n − 1 (Bessel's correction) corrects the tendency to underestimate spread.

What does a standard deviation of 0 mean?

Every value is identical, so there is no spread around the mean.

Related calculators