# Standard Deviation Calculator

> Free standard deviation calculator: paste your data to get sample or population SD, variance, mean, standard error and a step-by-step table.

Interactive calculator: https://calculatorsplatform.com/c/standard-deviation/
Category: Math & Statistics Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## What standard deviation measures

Standard deviation tells you how far, on average, the values in a data set sit from their mean. A small standard deviation means the numbers are clustered tightly around the average; a large one means they are widely scattered. Two classes can have the same average test score of 75, but if one class has a standard deviation of 3 and the other of 15, the second class contains both much stronger and much weaker students.

The square of the standard deviation is the **variance**. Variance is convenient in formulas, but because it is measured in squared units (squared centimetres, squared dollars) the standard deviation is easier to interpret: it is in the same units as your data.

## Sample vs population formula

If your numbers are the **entire population** you care about (every employee in a small company, every game a team played this season), divide by N:

> σ = √( Σ(x − μ)^2 ÷ N )

If your numbers are a **sample** drawn from a larger population (50 customers out of thousands, ten measurements of a process), divide by n − 1 instead:

> s = √( Σ(x − x̄)^2 ÷ (n − 1) )

Dividing by n − 1 is called Bessel's correction. A sample's own mean is always closer to its values than the true population mean is, so the plain average of squared deviations would systematically underestimate the population variance; n − 1 removes that bias from the variance. When in doubt, use the sample version — it is what spreadsheet functions such as STDEV.S and most statistics textbooks use by default.

## Worked example

Take the calculator's default data: 10, 12, 23, 23, 16, 23, 21, 16.

1. Add them: Σx = 144. With n = 8, the mean is 144 ÷ 8 = **18**.
2. Subtract 18 from each value and square: 64, 36, 25, 25, 4, 25, 9, 4.
3. Sum of squares: SS = **192**.
4. Sample variance: 192 ÷ 7 = 27.43; population variance: 192 ÷ 8 = 24.
5. Square roots: sample SD s = **5.237**, population SD σ = **4.899**.

The standard error of the mean is s ÷ √n = 5.237 ÷ 2.828 = 1.852, and the coefficient of variation is 5.237 ÷ 18 = 29.1%.

## Reading the results

- **Standard error (SE)** measures how precisely the sample mean estimates the population mean. It shrinks as the sample grows, even if the spread of the data does not.
- **Coefficient of variation (CV)** is the SD as a percentage of the mean, which lets you compare variability between data sets with different units or scales. It is only meaningful for data measured on a ratio scale with a positive mean.
- **The 68–95–99.7 rule**: for roughly normal (bell-shaped) data, about 68% of values lie within one SD of the mean, 95% within two and 99.7% within three. The calculator compares these benchmarks with your actual data, so you can see whether the rule fits.

Standard deviation is sensitive to outliers because deviations are squared. If one value is far from the rest, check it, and consider reporting the median and interquartile range from the [mean, median and mode calculator](https://calculatorsplatform.com/c/mean-median-mode/) as well.

## Frequently asked questions

### Should I use the sample or the population standard deviation?

Use the population formula only when your data include every member of the group you want to describe. If the data are a subset used to draw conclusions about a larger group, use the sample formula (n − 1).

### Can the standard deviation be negative?

No. It is a square root of a sum of squares, so it is always zero or positive. It is zero only when every value is identical.

### Why does the calculator need at least two values for a sample?

The sample formula divides by n − 1, which is zero when you have a single value. One observation tells you nothing about spread.

### What separators can I use in the data box?

Commas, spaces, tabs, semicolons and new lines all work, so you can paste a column straight from a spreadsheet. Do not use thousands separators: 1,200 would be read as two numbers, 1 and 200.

## Sources

- [NIST/SEMATECH e-Handbook of Statistical Methods — Measures of scale](https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm)

## Related calculators

- [Mean, Median, Mode Calculator](https://calculatorsplatform.com/c/mean-median-mode/index.md)
- [Probability Calculator](https://calculatorsplatform.com/c/probability/index.md)
- [Percentage Calculator](https://calculatorsplatform.com/c/percentage/index.md)
- [Significant Figures Calculator](https://calculatorsplatform.com/c/sig-figs/index.md)
- [Random Number Generator](https://calculatorsplatform.com/c/random-number/index.md)
- [GPA Calculator](https://calculatorsplatform.com/c/gpa/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/standard-deviation/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
