Skip to content

Standard Deviation Calculator

Paste a list of numbers to get the sample and population standard deviation, variance, standard error and a worked deviation table.

MathUpdated Free · No sign-up

How to use the Standard Deviation Calculator

  1. Type or paste Data set (Separate numbers with commas, spaces or new lines).
  2. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  3. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

What standard deviation measures

Standard deviation tells you how far values typically sit from their mean. A small value means the data are bunched together; a large value means they are spread out. It is expressed in the same units as the data, which makes it easier to interpret than variance (its square).

Sample or population?

Use the population formula when your list contains every member of the group you care about, such as the scores of all 25 students in one class. Use the sample formula when your list is a subset used to estimate a larger group, such as 25 students surveyed out of a whole school. In practice the sample version is the one you want most of the time.

σ = √( Σ(x − μ)² ÷ N ) s = √( Σ(x − x̄)² ÷ (n − 1) )

Dividing by n − 1 instead of n is called Bessel’s correction. A sample’s own mean is always a little closer to its values than the true population mean is, so the plain average of squared deviations runs low. Dividing by one less than the count corrects that bias in the variance.

Worked example

Take the eight values 2, 4, 4, 4, 5, 5, 7, 9.

  1. The sum is 40 and the mean is 40 ÷ 8 = 5.
  2. The deviations from 5 are −3, −1, −1, −1, 0, 0, 2, 4.
  3. Their squares are 9, 1, 1, 1, 0, 0, 4, 16, which add to 32.
  4. Population variance = 32 ÷ 8 = 4, so σ = 2.
  5. Sample variance = 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381.

Standard error and margin of error

The standard error of the mean, s ÷ √n, describes how much the sample mean would wobble from one sample to the next. Multiplying it by 1.96 gives the margin of error for a 95% confidence interval based on the normal approximation. For small samples (under about 30) a t-based interval is slightly wider; the confidence interval calculator handles that case.

Tips

  • One extreme value can inflate the standard deviation a lot. Check the deviation table for a single row with a huge squared deviation.
  • Roughly 68% of normally distributed data falls within one SD of the mean and about 95% within two.
  • Standard deviation can never be negative, and it is zero only when every value is identical.

Frequently asked questions

Should I use sample or population standard deviation?

Use the sample standard deviation when your data are a sample drawn from a bigger group and you want to describe that bigger group. Use the population version only when your data include every member of the group.

Why is the sample standard deviation larger?

It divides the sum of squared deviations by n − 1 instead of n. That small adjustment corrects the tendency of a sample to understate the spread of the whole population.

What is the difference between standard deviation and standard error?

Standard deviation describes the spread of individual values. Standard error, the SD divided by the square root of n, describes how precisely the sample mean estimates the population mean.

Can standard deviation be negative?

No. It is the square root of an average of squared numbers, so it is always zero or positive.