Standard Deviation Calculator
Calculate the mean, population standard deviation and sample standard deviation of a list of numbers.
What the standard deviation calculator does
Enter numbers separated by commas or spaces. The tool returns the count, mean, population standard deviation and sample standard deviation. For 4, 8, 15, 16, 23 and 42 the mean is 18, the population SD is 12.32 and the sample SD is 13.49.
What standard deviation measures
It tells you how far values typically sit from the mean. A small value means the data are tightly clustered. A large value means they are spread out. Two datasets can share a mean yet have very different spreads.
The steps
Find the mean. Subtract the mean from each value and square the result. Add the squares: here the sum is 910. Divide by the count n for a population (151.67) or by n − 1 for a sample (182.00). Take the square root of the variance.
Population or sample?
Use the population SD when your numbers are every member of the group, such as all exam scores in one class. Use the sample SD when they are a part of a larger group and you want to estimate its spread. Dividing by n − 1 corrects for the bias that comes from using the sample mean.
Reading the result
In roughly bell-shaped data, about 68% of values lie within one SD of the mean and about 95% within two. Outliers raise the SD sharply.
Uses
Standard deviation is used in test scores, quality control, finance as a measure of volatility, and science for the error in repeated measurements.
Worked example: Population vs sample standard deviation for 5 lab measurements
Suppose you record five battery voltage readings (in volts): `12.1, 12.4, 12.0, 12.5, 12.0` (`n = 5`):
- Step 1 — Mean (average): `(12.1 + 12.4 + 12.0 + 12.5 + 12.0) ÷ 5 = 61.0 ÷ 5 = 12.20 V`.
- Step 2 — Deviations from the mean `(x − 12.20)`: `-0.10, +0.20, -0.20, +0.30, -0.20`.
- Step 3 — Squared deviations `(x − 12.20)²`: `0.01, 0.04, 0.04, 0.09, 0.04`. Their sum (Sum of Squares, `SS`) is `0.01 + 0.04 + 0.04 + 0.09 + 0.04 = 0.22 V²`.
- Step 4A — Population standard deviation (`σ`, divide by `N = 5`): Variance `σ² = 0.22 ÷ 5 = 0.044`, so `σ = √0.044 =` 0.2098 V.
- Step 4B — Sample standard deviation (`s`, divide by `n − 1 = 4`): Variance `s² = 0.22 ÷ 4 = 0.055`, so `s = √0.055 =` 0.2345 V.
Limits and what this tool cannot do
- Sample standard deviation requires at least 2 numbers (`n ≥ 2`): Because Bessel's correction divides by `n − 1`, entering only 1 number causes `n − 1 = 0`, leaving sample variance undefined.
- Sensitive to extreme outliers: Because every deviation from the mean is squared, a single mistyped value (e.g., typing `120.0` instead of `12.0`) inflates both the mean and the standard deviation dramatically. For skewed datasets with outliers, compare the median and interquartile range (IQR).
- Unweighted raw data only: This tool treats each entered number as having equal weight (`1/n`); it does not take a separate probability or frequency-weight column.
Frequently asked questions
What is the difference between variance and standard deviation?
Variance is the average squared deviation. Standard deviation is its square root, in the same units as the data.
Why divide by n − 1?
It gives an unbiased estimate of variance for a sample.
Can standard deviation be negative?
No, it is zero or positive.
What does an SD of zero mean?
All values are equal.
Why does sample standard deviation divide by (n − 1) instead of n?
When you estimate a population's spread using a small sample, you measure deviations around the *sample mean* rather than the true unknown *population mean*. Because the sample mean sits closer to the sample points than the true mean does, dividing by `n` systematically underestimates variance. Dividing by `n − 1` (Bessel's correction) removes that bias.
When can standard deviation equal zero?
Standard deviation is zero if and only if every number in your dataset is identical (for example `7, 7, 7, 7`), meaning there is zero spread around the mean.
Can standard deviation ever be a negative number?
No. Because every `(x − mean)` term is squared (`≥ 0`) before summing and taking the principal square root, variance and standard deviation are always zero or positive.