All calculators

Education

Standard Deviation Calculator

Paste or type a list of numbers — comma, space, or line separated. We compute the mean, the population and sample standard deviations, and both variances.

Comma-, space-, or line-separated. Decimals and negatives are fine. Anything that isn't a number is silently ignored.

Standard deviation

Sample std dev (s)

13.4907

n = 6 · √(Σ(x − μ)² / (n − 1))

Mean (μ)18
Count (n)6
Sum (Σx)108
Sample std dev (s)13.4907
Population std dev (σ)12.3153
Sample variance (s²)182
Population variance (σ²)151.6667
Range4 → 42

Examples

4, 8, 15, 16, 23, 42 (sample)

s ≈ 13.49 · μ = 18

10, 12, 14, 16, 18 (sample)

s ≈ 3.16 · μ = 14

5, 5, 5, 5, 5 (sample)

s = 0 · μ = 5

−3, 0, 3, 6 (sample)

s ≈ 3.87 · μ = 1.5

How it works

Standard deviation measures how spread out the values in a dataset are around the mean. A small standard deviation means most values are close to the mean; a large one means they're scattered.

Population σ · √(Σ(x − μ)² / n)

Sample s · √(Σ(x − μ)² / (n − 1))

We report both because the right one depends on whether your data is the entire population or just a sample of it. For most real-world analysis, you want the sample standard deviation.

Frequently asked questions

Population standard deviation (σ) divides by n — use it when your numbers are the entire population you care about. Sample standard deviation (s) divides by n − 1 (Bessel's correction) — use it when your numbers are a sample drawn from a larger population. For most everyday data analysis, sample std dev is what you want; statistical software defaults to it.

When in doubt, report the sample standard deviation. It's the unbiased estimator of the underlying population's spread when you only have a sample. We show both so you can pick the one that matches your context.

Variance is the average squared distance from the mean. Standard deviation is the square root of variance — it brings the figure back into the same units as your data. So std dev = √variance.

Population standard deviation will be 0 (a single value has no spread). Sample standard deviation is undefined when n = 1, because dividing by n − 1 means dividing by zero — we report it as undefined rather than 0.