Skip to content · 跳到主要内容

Standard Deviation Calculator

Calculate sample and population spread from a list of numbers

--
Standard deviation
--Mean
--Variance
--Count
--Range

Enter at least two values for sample standard deviation.

How standard deviation is calculated

Standard deviation measures how far values typically sit from their mean. Paste values separated by spaces, commas, semicolons or new lines, then choose whether the list is a sample or the complete population.

Formulas

sample variance = sum((x - mean)^2) / (n - 1)
population variance = sum((x - mean)^2) / n
standard deviation = square root of variance

Interpretation

A smaller result means the values cluster more tightly around the mean. The result uses full precision internally and rounds only for display.

Sample or population?

Use the population formula only when your list contains every member of the group you want to describe, such as the scores of a whole class or every measurement of a single batch. Use the sample formula whenever the list is a subset used to infer something about a larger group. The sample denominator n − 1 corrects for the fact that a sample mean sits closer to its own data than the true mean does, which would otherwise understate the spread. The difference matters most for small samples and becomes negligible above about thirty values.

Reading the result alongside the mean

A standard deviation has the same units as the data, so a mean of 50 with a standard deviation of 5 describes a tight cluster, while the same mean with a standard deviation of 20 describes widely scattered values. Roughly two thirds of values in a bell-shaped distribution fall within one standard deviation of the mean and about 95% within two, which is the basis of the empirical rule. A single extreme value inflates the result noticeably, so check for data-entry mistakes and consider the range and interquartile range when the distribution is skewed.

Frequently Asked Questions

When should I use sample standard deviation?

Use the sample formula when your list represents part of a larger population. It divides by n - 1.

When should I use population standard deviation?

Use the population formula when the list contains every member of the group you want to describe. It divides by n.

How should I enter values?

Separate numbers with commas, spaces, semicolons or new lines.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean, so it is expressed in squared units. Standard deviation is its square root and returns to the original units, which makes it easier to interpret.

Does one outlier change the result much?

Yes. Because each value is squared, a single extreme value raises the standard deviation noticeably more than a cluster of moderate ones. Check for entry errors and look at the range as well.