Standard Deviation Calculator

Standard deviation measures how spread out numbers are around their mean. Find the mean, square each difference from it, average those squares (divide by n for a population, n − 1 for a sample) and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2.

Inputs

Separate values with commas, spaces or new lines. Up to 1,000 numbers.
Result
–

Results are calculated in your browser for convenience. Double-check important figures before relying on them.

How do you calculate standard deviation?

1. Mean: x̄ = Σx ÷ n 2. Deviations: (x − x̄) for each value, then square each one 3. Variance: σ² = Σ(x − x̄)² ÷ n (sample: s² = Σ(x − x̄)² ÷ (n − 1)) 4. Standard deviation = √variance

Example, 2, 4, 4, 4, 5, 5, 7, 9: the mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add to 32. Population variance = 32 ÷ 8 = 4, so σ = 2. Using n − 1 = 7 gives sample variance 4.5714 and s = 2.1381.

Sample or population standard deviation?

Use the population formula when your numbers are every member of the group you care about, such as the test scores of one whole class. Use the sample formula when the numbers are a sample from a larger group, such as a survey of 100 people from a city. A sample tends to under-estimate the spread, and dividing by n − 1 (Bessel's correction) fixes that.

For small data sets the two can differ a lot. With 8 values (10, 12, 23, 23, 16, 23, 21, 16), the population result is 4.899 and the sample result is 5.237.

What does a standard deviation tell you?

A small standard deviation means the values cluster close to the mean. A large one means they are spread out. For data that follows a bell curve (a normal distribution), about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three.

  • Two classes can have the same average mark but very different spreads.
  • Investors use it as a measure of volatility.
  • The standard error (s ÷ √n) shows how precisely a sample mean estimates the true mean.

For the average, median and mode of the same data, use the mean, median and mode calculator.

Complete guide to the Standard Deviation Calculator

How to use the Standard Deviation Calculator, step by step

  1. Paste your numbers, separated by commas, spaces or new lines.
  2. Choose population or sample.
  3. Read the standard deviation, variance, mean and standard error.
  4. Check the working table to see each deviation.

Common mistakes to avoid

  • Using the population formula for sample data.
  • Typing a stray character that breaks the list.
  • Comparing standard deviations of data with very different means without the coefficient of variation.

Key terms explained

Mean
The arithmetic average.
Variance
The average squared distance from the mean.
Standard error
The standard deviation of the sample mean.
Bessel’s correction
Dividing by n − 1 for a sample.

Frequently asked questions

How do I calculate standard deviation?

Find the mean, subtract it from each value and square the results, average the squares (divide by n, or n − 1 for a sample) and take the square root.

What is the difference between sample and population standard deviation?

Population divides by n and is used when you have all the data. Sample divides by n − 1 and is used when your data is a sample from a bigger group.

What is variance?

Variance is the average of the squared differences from the mean. Standard deviation is its square root, so it is in the same units as the data.

Can standard deviation be negative?

No. It is a square root of an average of squares, so it is always zero or positive. Zero means all values are identical.

What is a good standard deviation?

There is no universal good value. It depends on the data. Compare it with the mean, for example with the coefficient of variation (standard deviation ÷ mean).

Related calculators

Guides worth reading