Find the sample or population standard deviation and variance of any list of numbers, plus the mean, median, standard error and a full table of working.
Working
| x | x − mean | (x − mean)² |
|---|
Sample standard deviation divides by n − 1 (Bessel's correction); population standard deviation divides by n. Results are rounded to 6 decimal places. The working table shows up to 50 values.
A standard deviation calculator measures how spread out a set of numbers is around its average, and shows the variance, mean, median, range, standard error and coefficient of variation, with a full table of working. Paste or type your data, choose whether it’s a sample or a whole population, and the calculator does the rest.
For example, the numbers 2, 4, 4, 4, 5, 5, 7 and 9 have a mean of 5. Treated as a whole population, their standard deviation is exactly 2. Treated as a sample, it’s 2.13809, slightly larger because a sample usually underestimates the true spread. Test scores of 85, 90, 78, 92 and 88 have a sample standard deviation of about 5.4589 around their mean of 86.6.
Standard deviation is the typical distance between the values and their mean. A small standard deviation means the values sit close to the average; a large one means they’re spread out. Two classes can have the same average test score of 70, but if one has a standard deviation of 3 and the other 15, the first class scored much more consistently.
Because it’s in the same units as the data, standard deviation is easy to interpret: a standard deviation of 5.46 points on a test means scores typically sit about five or six points away from the average.
Population: σ = √( Σ(x − μ)² ÷ N )
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
Here μ or x̄ is the mean, N or n is the number of values, and Σ means “add up”.
Use the population formula when your data includes every member of the group, such as the heights of all 25 pupils in one class when that class is all you’re interested in. Use the sample formula when your data is a subset used to estimate a larger group, such as 25 pupils chosen to represent a whole country. Dividing by n − 1 instead of n, known as Bessel’s correction, makes the sample estimate unbiased; without it, samples would tend to understate the true variability. In practice, most real-world data is a sample, and most statistical software uses the sample formula by default.
Variance is the square of the standard deviation: the average squared distance from the mean. It’s used in many statistical formulas because variances add neatly, but it’s in squared units, so standard deviation is easier to interpret. For the example data, the population variance is 4 and the standard deviation is 2.
For data that follows a normal (bell-shaped) distribution, about 68% of values lie within one standard deviation of the mean, about 95% within two, and about 99.7% within three. If adult heights in a population have a mean of 170 cm and a standard deviation of 7 cm, about 68% of people are between 163 and 177 cm, and about 95% are between 156 and 184 cm. The calculator shows what share of your own values falls within one standard deviation, which helps you see how closely your data matches this pattern.
Standard deviation is most useful when you compare groups. Suppose two small groups of students both average 70 on a test. Group A scored 68, 70 and 72, a sample standard deviation of 2. Group B scored 55, 70 and 85, a sample standard deviation of 15. The averages are identical, but group B’s results are far less consistent: some students struggled while others excelled. A teacher would respond very differently to each group, even though the mean alone hides the difference.
Because each deviation is squared, a single extreme value can change the result dramatically. Adding one value of 50 to the example data 2, 4, 4, 4, 5, 5, 7, 9 moves the mean from 5 to 10 and raises the population standard deviation from 2 to about 14.27. Before drawing conclusions, check whether an outlier is a genuine observation or a typing or measurement error. When data contains genuine extreme values, measures such as the median and interquartile range can describe it more robustly.
Investors use standard deviation to measure volatility. A fund whose yearly returns have a standard deviation of 4% is much steadier than one with a standard deviation of 18%, even if both average 7% a year. Higher volatility means a wider range of likely outcomes, both good and bad, so it’s often used as a simple measure of risk.
In Excel and Google Sheets, STDEV.S gives the sample standard deviation and STDEV.P gives the population standard deviation. VAR.S and VAR.P give the matching variances. The calculator’s results match these functions, so you can use it to check a spreadsheet.
You may also find the sample size calculator useful to find how many survey responses you need, while the statistics calculator lets you get a full statistical summary of any data set.
Find the mean, subtract it from each value, square the results, add them up, divide by n (population) or n − 1 (sample), and take the square root.
Population standard deviation divides by n; sample standard deviation divides by n − 1 to correct for estimating from a sample. For 2, 4, 4, 4, 5, 5, 7, 9 they are 2 and about 2.138.
The values are widely spread around the mean. A low standard deviation means they're clustered close to it.
Standard deviation is the square root of variance. A variance of 4 means a standard deviation of 2.
Use population if your data covers every member of the group you're studying; use sample if it's a subset used to estimate a larger group. Most real data is a sample.
In a normal distribution, about 68% of values lie within one standard deviation of the mean, 95% within two and 99.7% within three.
The standard deviation divided by the square root of the number of values. It measures how precisely the sample mean estimates the true mean.
No. It's a square root of a sum of squares, so it's always zero or positive. It's zero only when all values are the same.
Strongly, because deviations are squared. Adding a value of 50 to 2, 4, 4, 4, 5, 5, 7, 9 raises the population standard deviation from 2 to about 14.27.
Yes. Scores of 68, 70, 72 and 55, 70, 85 both average 70, but their sample standard deviations are 2 and 15.
Up to 10,000 values. The working table shows the first 50, but every value is included in the calculation.