SciCalc.net
IndiaFree tools

Standard deviation calculator

Paste or type your numbers, separated by commas or spaces. Choose sample or population, and see the mean, variance and standard deviation with the steps.

Last updated

Sample standard deviation s

4√147 ≈ 2.138089935

Count n8
Sum Σx40
Mean5
Sample variance s²327 ≈ 4.571428571
Sample standard deviation s4√147 ≈ 2.138089935

Working

  1. 1Σx = 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40add all 8 values
  2. 2mean = Σx ÷ n = 40 ÷ 8 = 5
  3. 3Σ(x − mean)² = 32square each distance from the mean, then add
  4. 4variance = 32 ÷ (n − 1) = 7 = 327sample: divide by n − 1 (Bessel’s correction)
  5. 5SD = √variance = 4√147
Try:

How it works

Standard deviation measures how spread out the values are around the mean.

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

  1. Find the mean.
  2. Subtract the mean from each value and square the result.
  3. Add the squares.
  4. Divide by n − 1 for a sample, or N for a whole population.
  5. Take the square root.

Use the sample formula when your numbers are a sample from a bigger group and you want to estimate that group's spread. Dividing by n − 1 (often called Bessel's correction) makes the sample variance an unbiased estimate of the population variance. The standard deviation, its square root, still tends to come out a little low, noticeably so for very small samples.

Worked example

Data: 2, 4, 4, 4, 5, 5, 7, 9. Mean = 40 ÷ 8 = 5. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16, which add to 32. Population variance = 32 ÷ 8 = 4, so σ = 2. Sample variance = 32 ÷ 7 ≈ 4.571428571, so s = √(32/7) = 4√14/7 ≈ 2.138089935.

Second example: test scores (a sample)

Seven students’ scores, taken as a sample of a larger class: 72, 85, 90, 66, 78, 95, 88. The total is 574, so the mean is 574 ÷ 7 = 82.

xx − 82(x − 82)²
72−10100
8539
90864
66−16256
78−416
9513169
88636
Total0650

Sample variance = 650 ÷ (7 − 1) = 325/3 ≈ 108.3333333, so s = √(325/3) = 5√39/3 ≈ 10.40833. The deviations always add to 0, which is a quick check on the mean.

Reading the answer

For data that is roughly bell-shaped, about two thirds of the values lie within one standard deviation of the mean: here 82 ± 10.4, or about 71.6 to 92.4. Five of the seven scores fall in that range.

Common mistakes

  • Dividing by n when the data is a sample: it makes the spread look smaller than it is.
  • Forgetting the square root at the end: 108.3 is the variance, not the standard deviation.
  • Rounding the mean before subtracting: keep full precision until the last step.

Tips

  • If in doubt, most coursework and lab data are samples, so use s.
  • Standard deviation has the same units as the data; variance has squared units.
  • One very large or small value (an outlier) can increase the standard deviation a lot.

Questions

Should I use sample or population standard deviation?

Population (σ) when your data includes every member of the group you care about; sample (s) when it is a subset used to estimate a bigger group.

Why divide by n − 1?

A sample's own mean is closer to its values than the true population mean, which makes the spread look too small. Dividing by n − 1 corrects that bias in the variance.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero (all values equal) or positive.

What is the difference between standard deviation and variance?

The variance is the average squared distance from the mean; the standard deviation is its square root. The standard deviation is in the same units as the data, so it is easier to read.

What does a standard deviation of 0 mean?

Every value is the same. There is no spread at all.

Is a large standard deviation bad?

Not in itself. It only says the values are spread out. Whether that matters depends on what you measure: a wide spread of test scores and a wide spread of bolt diameters mean different things.

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale. Definitions of Variability: variance s² = Σ(Yᵢ − Ȳ)²/(N − 1); standard deviation is its square root and restores the data’s units; extreme values can distort it. Checked 22 November 2026.
  2. NIST/SEMATECH e-Handbook of Statistical Methods, §6.3.2 What are Variables Control Charts?. s² with divisor n − 1 is an unbiased estimator of σ²; s itself is not an unbiased estimator of σ (it estimates c₄σ). Checked 22 November 2026.
  3. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.7.1 Cumulative Distribution Function of the Standard Normal Distribution. Table row 1.0: area 0.34134 from 0 to 1, so about 68% (two thirds) of normal data lie within one standard deviation of the mean. Checked 22 November 2026.
  4. NIST IR 6969 (2019), Section 8: Statistical Techniques. Introduction: for a random sample, s is an estimate of the population standard deviation σ; the population is all possible measurements. Checked 22 November 2026.
  5. Casio fx-115ES PLUS / fx-991ES PLUS C (2nd edition) user’s guide, online manual. Var sub-menu: σx = population standard deviation, sx = sample standard deviation; Example 2 population SD of {1,2,2,3,3,3,4,4,5} = 1.154700538 (divisor n). Checked 22 November 2026.