Standard Deviation Calculator

Standard Deviation Calculator

Paste your data to get the sample or population standard deviation, with the full working laid out and a check of how much of the data really falls within 1, 2 and 3 standard deviations of the mean.

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

Not sure which button? If your data is a sample from a larger group, as it usually is, keep Sample.

Enter at least two numbers to see their standard deviation

What is Standard Deviation?

Standard deviation measures how far values typically sit from their mean, in the same units as the data. A small standard deviation means the values cluster tightly; a large one means they're spread out.

Two classes can both average 70% on a test: one with everyone between 65 and 75, the other ranging from 30 to 100. The mean can't tell them apart, but their standard deviations (around 3 and around 20) can.

For data shaped like a bell curve, about 68% of values lie within one standard deviation of the mean and about 95% within two. That's why "two standard deviations away" is a common threshold for calling a value unusual.

Standard Deviation Formula

Method as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.

1. Find the mean

x̄ = Σx ÷ n

2. Square each distance from the mean and add them

SS = Σ(x − x̄)²

Squaring stops the positive and negative distances cancelling out, and gives far-off values more weight.

3. Divide and take the square root

Sample: s = √(SS ÷ (n − 1))
Population: σ = √(SS ÷ N)

Dividing by n − 1 for a sample (Bessel's correction) makes up for the fact that a sample's values sit closer to their own mean than to the true population mean.

Worked Example: Eight Test Scores

Given:
A sample of eight scores: 10, 12, 23, 23, 16, 23, 21, 16.
Step 1:
Mean:
144 ÷ 8 = 18
Step 2:
Distances from 18, squared:
−8, −6, 5, 5, −2, 5, 3, −2 → 64 + 36 + 25 + 25 + 4 + 25 + 9 + 4 = 192
Step 3:
Divide by n − 1 and take the root:
s² = 192 ÷ 7 = 27.43 · s = √27.43 = 5.24
Result:
The sample standard deviation is 5.24.

A typical score is about 5 points from the mean of 18. Treating the eight scores as the whole population would give σ = √(192 ÷ 8) = 4.90.

How Much Data Falls Within 1, 2 and 3 SD

For bell-shaped data, the empirical rule gives the share you can expect. Chebyshev's theorem gives a minimum that holds for any data at all. The calculator shows the actual shares for your data so you can compare.

Share of data within k standard deviations
WithinBell-shaped dataAny data, at least
±1 SD68.3%—
±2 SD95.4%75%
±3 SD99.7%88.9%

Common Standard Deviation Mistakes

  • Using the population formula for a sample. Dividing by n instead of n − 1 understates the spread. With 8 values the difference is about 7%; with 3 values, about 22%.
  • Forgetting the square root. Σ(x − x̄)² ÷ (n − 1) is the variance, in squared units. The standard deviation is its square root.
  • Averaging the distances without squaring. The distances from the mean always add up to exactly zero, which is why they're squared first.
  • Confusing it with the standard error. Standard error (s ÷ √n) measures how precisely the mean is known, not how spread out the data is.
  • Applying the 68–95–99.7 rule to skewed data. The rule only holds for bell-shaped data. Check the actual shares the calculator reports.

Standard Deviation FAQs

Sample or population: which should I use?

Use sample unless your data covers every member of the group and you only want to describe that group. A survey, an experiment or a batch of measurements is a sample.

Can standard deviation be negative?

No. It’s the square root of an average of squares, so it’s either zero (all values identical) or positive.

What is a “high” standard deviation?

It depends on the scale. An SD of 5 is large for shoe sizes and tiny for house prices. Comparing it with the mean (the coefficient of variation) gives a scale-free sense of size.

Which function matches this in Excel?

STDEV.S for the sample standard deviation and STDEV.P for the population one. Older spreadsheets use STDEV and STDEVP.

Which key do I use on my calculator?

On most scientific and graphing calculators, sx (or σn−1) is the sample standard deviation and σx (or σn) is the population one.

Why does one outlier change it so much?

Because distances are squared. A value 10 units from the mean contributes 100 to the sum of squares, while one 2 units away contributes only 4. For data with outliers, the IQR is a more robust measure of spread.

How is standard deviation related to variance?

The variance is the standard deviation squared. Variance is easier to work with mathematically; standard deviation is easier to interpret because it’s in the original units.

Does standard deviation change if I add the same number to every value?

No. Shifting all values moves the mean but not the distances from it. Multiplying every value by a number does multiply the standard deviation by that number.

Sources

Related Tools