Standard Deviation Calculator

Enter up to 10,000 numbers separated by spaces or commas. Use a dot for decimals, or a decimal comma when values are separated by spaces or semicolons. Population variance divides by n; sample variance divides by n−1 and needs at least two values.

Results

Enter your values and select Calculate.

σ=∑i(xi−xˉ)2n,s=∑i(xi−xˉ)2n−1\sigma=\sqrt{\frac{\sum_i(x_i-\bar{x})^2}{n}},\quad s=\sqrt{\frac{\sum_i(x_i-\bar{x})^2}{n-1}}

About this tool

The standard deviation calculator finds the mean, variance, and standard deviation of a list of numbers, for both a whole population and a sample. Students, analysts, and researchers use it to describe how spread out data is. Standard deviation is the square root of the variance, which is the average of the squared distances from the mean; a larger value means the data is more spread out.

How it works

Paste your data as numbers separated by spaces, commas, semicolons or line breaks; a column copied from a spreadsheet works directly. Commas normally separate values, so 2,4,4 is three numbers and a lone 2,5 is read as 2 and 5. When values are separated by spaces, semicolons or line breaks, a comma inside a number counts as a decimal comma, so 2,5 3,5 is read as 2.5 and 3.5.

The calculator reports the count, the mean, and both versions of variance and standard deviation. It uses a single-pass method known as Welford's algorithm, which avoids the rounding problems of the textbook shortcut formula when values are large or close together. Use the population results when your list contains every member of the group, and the sample results when it is a subset.

σ=∑i(xi−xˉ)2n,s=∑i(xi−xˉ)2n−1\sigma=\sqrt{\frac{\sum_i(x_i-\bar{x})^2}{n}},\quad s=\sqrt{\frac{\sum_i(x_i-\bar{x})^2}{n-1}}

Example

The default data set is 2, 4, 4, 4, 5, 5, 7, 9. There are 8 values that add up to 40, so the mean is 5. The squared distances from the mean are 9, 1, 1, 1, 0, 0, 4, and 16, which add up to 32. Population variance is 32÷8=432\div8=4, so the population standard deviation is 2. Sample variance is 32÷7≈4.5714285714332\div7\approx4.57142857143, and the sample standard deviation is about 2.1380899353.

To interpret the result, look at how many values sit within one standard deviation of the mean. With a mean of 5 and a population standard deviation of 2, the range from 3 to 7 contains six of the eight values: 4, 4, 4, 5, 5 and 7. Only 2 and 9 lie farther out.

Assumptions and limits

Enter up to 10,000 numbers separated by spaces, commas, or semicolons. Decimals use a dot, or a comma when values are separated by spaces, semicolons or line breaks. Sample results need at least two values. The tool does not handle grouped or weighted data, frequency tables, or confidence intervals.

Frequently asked questions

What is the difference between population and sample standard deviation?

Population standard deviation divides the sum of squared deviations by nn and is used when you have every member of the group. Sample standard deviation divides by n−1n-1 and is used when the data is a sample meant to estimate a larger population. Exam scores for one whole class form a population, while 50 customers surveyed out of thousands form a sample. When you use the data to draw conclusions about a bigger group, choose the sample value.

Why does sample standard deviation divide by n − 1?

A sample's own mean sits closer to its data than the true population mean does, which makes the spread look smaller. Dividing by n − 1, known as Bessel's correction, makes the variance estimate unbiased. The correction matters most for small samples. With 8 values the sample result is about 7% larger than the population result, while with thousands of values the difference is tiny.

What is the relationship between variance and standard deviation?

Standard deviation is the square root of variance. Variance is in squared units, while standard deviation is in the same units as the data. For the default data, the population variance is 4 and the standard deviation is 2. Standard deviation is usually easier to interpret because it can be compared directly with the mean.

What does the 68-95-99.7 rule mean?

For data that follows a normal distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. The rule does not hold for skewed data, so check the shape of your data before relying on it.

Can standard deviation be zero or negative?

It is zero when every value is identical, because there is no spread at all. It can never be negative, since it is the square root of an average of squared distances. A surprisingly large result often points to an outlier or a typing mistake in the data.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
valuesValues separated by spaces or commasvalues separated by commas: 2,4,4,6required

Examples

  • ?values=10,12,23,23,16,23,21,16
  • ?values=1.5,2.5,2.5,2.75,3.25,4.75

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="stddev_calculator"]