Skip to content
CalculatPage

Standard Deviation Calculator

Measure how spread out your data is. Choose sample (n − 1) or population (n) standard deviation.

Updated November 2026 · How we build calculators

Separate numbers with commas, spaces or new lines.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Standard Deviation Calculator works

Subtract the mean from each value, square the differences and sum them. Divide by n − 1 (sample) or n (population) to get the variance, then take the square root.

Formula used

s = √[ Σ(xᵢ − x̄)² ÷ (n − 1) ] (sample)

σ = √[ Σ(xᵢ − μ)² ÷ n ] (population)

Step-by-step example

Using the default values in the calculator above:

  1. Numbers: 10, 12, 23, 23, 16, 23, 21, 16
  2. Data type: Sample (n − 1)

The calculator then applies the formula above and returns:

  • Sample standard deviation (s): 5.2372294
  • Variance: 27.428571
  • Mean: 18
  • Count: 8
  • Sum of squared deviations: 192

Notes on the inputs

Numbers
Separate numbers with commas, spaces or new lines.

Tips and background

In a normal distribution about 68% of values fall within one standard deviation of the mean and 95% within two.

Sample vs population standard deviation

Use the population formula (divide by n) when your data includes every member of the group, and the sample formula (divide by n − 1) when it is a subset used to estimate a larger group. The n − 1 correction avoids underestimating variation. For the data 2, 4, 4, 4, 5, 5, 7, 9 the population standard deviation is exactly 2.

What the number tells you

Standard deviation measures how spread out values are around the mean. In roughly bell-shaped data about 68% of values fall within one standard deviation and 95% within two, as the range graph above shows. Pair it with the mean and median and, for chance-based questions, the probability calculator.

Do two sets with the same average have the same spread?

No. The sets 48, 49, 50, 51, 52 and 10, 30, 50, 70, 90 both average 50. Their sample standard deviations are about 1.58 and 31.62. The average alone hides that the second set is far more spread out.

How much does sample versus population matter?

For 2, 4, 4, 4, 5, 5, 7 and 9, the population standard deviation is exactly 2, while the sample version is about 2.14. The gap is larger for small lists and shrinks as lists grow. Check which one your class, software or report expects. Spreadsheets usually offer both under different function names, and mixing them up is a common reason two answers do not match.

Common mistakes to avoid with the Standard Deviation Calculator

  • Using the population formula for a sample.
  • Forgetting to square the deviations before averaging.
  • Comparing standard deviations of data on very different scales without considering the mean.

Frequently asked questions

Sample or population?

Use population when you have every member of the group; use sample when your data is a subset.

Why divide by n − 1?

It corrects bias when estimating the population variance from a sample.

What does a high standard deviation mean?

The values are widely spread around the mean.

What is the difference between variance and standard deviation?

Variance is the average squared deviation; standard deviation is its square root, in the same units as the data.

Can standard deviation be negative?

No. It is always zero or positive.

What is a high standard deviation?

One that is large relative to the mean, meaning values are widely spread.