Standard Deviation Calculator

Separate numbers with commas, spaces or new lines. Up to 1000 values.
Choose sample when the values are a subset of a larger group you want to describe.
Math Updated 29 Oct 2026

Calculates the standard deviation of a list of numbers, the most common measure of how spread out data are around their mean. Paste or type your values separated by commas, spaces or new lines, and choose whether they are a sample from a larger group (dividing by n − 1) or the whole population (dividing by n). You also get the variance, mean, count, sum, sum of squared deviations, standard error of the mean, minimum, maximum and range.

  • All values are treated as equally weighted individual observations, not grouped frequencies.
  • The standard error uses the standard deviation of the selected type.

Formula

Population: σ = √( Σ(xᵢ − μ)² ÷ N ). Sample: s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
  • The mean is the sum of the values divided by how many there are.
  • Variance is the average squared distance from the mean; the standard deviation is its square root, in the same units as the data.
  • The sample formula divides by n − 1 (Bessel's correction), which removes the bias of estimating the population variance from a sample.
  • Results are shown to up to 6 decimal places.

Eight values: 2, 4, 4, 4, 5, 5, 7, 9

Inputs
  • Data values: 2, 4, 4, 4, 5, 5, 7, 9
  • Data set type: population

The mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. As a population, the variance is 32 ÷ 8 = 4 and the standard deviation is √4 = 2. As a sample it would be √(32 ÷ 7) = 2.13809.

Sources & references

Frequently asked questions

Should I use the sample or the population standard deviation?
Use the population formula when your data include every member of the group you care about, such as the marks of every student in one class. Use the sample formula when the data are a subset used to describe a larger group, which is the usual case in research and surveys.
What does the standard deviation tell me?
How far values typically are from the mean. A small standard deviation means the values cluster tightly; a large one means they are spread out. For roughly normal data, about 68% of values fall within one standard deviation of the mean and 95% within two.
What is the difference between variance and standard deviation?
The variance is the average squared deviation from the mean, so its units are squared. The standard deviation is the square root of the variance and is in the same units as the data, which makes it easier to interpret.
What is the standard error of the mean?
The standard deviation divided by the square root of the number of values. It estimates how much the sample mean would vary between repeated samples, and it shrinks as the sample grows.

Related calculators