X-Calculator
Math Updated November 23, 2026

Standard Deviation Calculator

Get the sample or population standard deviation, variance and mean of a list, with every step shown.

Numbers (separate with commas, spaces or new lines)
Data set is a
Advertisement
Advertisement

This standard deviation calculator finds the sample or population standard deviation of any list of numbers, together with the variance, mean, count and sum. Paste your data, choose sample or population, and the step table shows every deviation from the mean, so you can check homework or a spreadsheet line by line.

How to calculate standard deviation

Standard deviation measures how far values typically sit from the mean. The calculation takes five steps:

  1. Add the values and divide by the count to get the mean (x̄).
  2. Subtract the mean from each value to get its deviation.
  3. Square each deviation so negatives and positives do not cancel.
  4. Add the squares (the sum of squares, SS) and divide by N for a population or by n − 1 for a sample. That is the variance.
  5. Take the square root of the variance.
mean            x̄ = Σx ÷ n
population      σ² = Σ(x − x̄)² ÷ N        σ = √σ²
sample          s² = Σ(x − x̄)² ÷ (n − 1)  s = √s²

Sample or population: which one should you use?

Use the population formula when your list contains every member of the group you care about: all 25 students in one class, all 12 monthly bills in a year. Use the sample formula when the numbers are a subset drawn to estimate a larger group: 50 surveyed customers out of 10,000, or 8 test parts out of a production run.

Dividing by n − 1 instead of n is called Bessel’s correction. A sample mean sits closer to its own data than the true population mean does, so the raw sum of squares runs slightly low; dividing by one less corrects that bias in the variance. The difference shrinks as n grows: with 8 values the sample SD is 6.9% larger than the population SD, with 100 values only 0.5% larger.

Spreadsheets use the same split: STDEV.S and VAR.S in Excel and Google Sheets are the sample versions, STDEV.P and VAR.P the population versions. Most calculators label them s (or σn−1) and σ (or σn).

Advertisement
Advertisement

Worked examples

  • 2, 4, 4, 4, 5, 5, 7, 9 (population): the sum is 40, so the mean is 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4, 16, which add to 32. Variance = 32 ÷ 8 = 4, standard deviation σ = √4 = 2.
  • Same data as a sample: variance = 32 ÷ 7 = 4.571429, so s = 2.13809.
  • 10, 12, 23, 23, 16, 23, 21, 16 (sample): mean 18, sum of squares 192. Sample variance = 192 ÷ 7 = 27.428571 and s = 5.237229; the population SD would be √24 = 4.898979.
  • 1.5, 2.5, 3.5 (population): mean 2.5, sum of squares 2, variance 0.666667, σ = 0.816497.

What the number tells you

For data that is roughly bell-shaped (normal), the empirical rule gives a quick reading of the standard deviation:

Range around the mean Share of values inside Example: mean 100, SD 15
± 1 SD about 68% 85 to 115
± 2 SD about 95% 70 to 130
± 3 SD about 99.7% 55 to 145

IQ scores are scaled to exactly this example, mean 100 and SD 15, so about 95% of people score between 70 and 130. A value more than 2 or 3 SDs from the mean is often flagged as unusual or as a possible outlier.

Standard deviation vs. variance and other measures

  • Variance is the SD squared. It is handy in formulas (variances of independent variables add) but it is in squared units, such as dollars² or cm², which is why the SD is easier to interpret.
  • Standard error of the mean is s ÷ √n. It describes how precisely the mean is estimated, not how spread out the data is.
  • Coefficient of variation is SD ÷ mean × 100%. It lets you compare spread between data sets with different units or scales.
  • Range (max − min) is quicker to find but depends on only two values, so a single outlier changes it completely.
Advertisement
Advertisement

Tips for entering data

  • Separate numbers with commas, spaces, semicolons or line breaks. You can paste a column straight from Excel or Google Sheets.
  • Do not use thousands separators: 1,250 would be read as two values, 1 and 250. Type 1250 instead.
  • Negative numbers and decimals are fine (−3.75, 0.004). Scientific notation such as 2.5e3 also works.
  • If you have a frequency table, repeat each value as many times as it occurs, or use the mean from an average calculator as a cross-check.

Common mistakes

  • Mixing up n and n − 1. Textbook answers differ by exactly this choice; check which formula your course or software uses.
  • Forgetting the square root. If your answer is in squared units, you have the variance, not the SD.
  • Rounding the mean too early. Rounding x̄ before computing deviations can shift the result in the third or fourth digit. This calculator keeps full precision until the end.
  • Averaging deviations without squaring. Plain deviations always add up to zero, which is why they are squared first.

Frequently Asked Questions

What is the difference between sample and population standard deviation?

Population SD divides the sum of squared deviations by N, sample SD divides by n − 1. Use population when you have every value in the group and sample when your data is a subset used to estimate a larger group.

Can standard deviation be negative?

No. It is the square root of an average of squared numbers, so it is always zero or positive. It equals zero only when every value is identical.

What is a good standard deviation?

There is no universal good value; it depends on the scale of the data. Compare the SD with the mean (the coefficient of variation) or with the SD of similar data sets to judge whether the spread is large or small.

How do I calculate standard deviation in Excel?

Use =STDEV.S(A1:A20) for a sample and =STDEV.P(A1:A20) for a population. The variance functions are VAR.S and VAR.P.

Why do we square the deviations?

Deviations from the mean always sum to zero, so averaging them gives no information. Squaring makes every deviation positive and gives extra weight to values far from the mean.

Advertisement
Advertisement
Related

You may also need

All Math Calculators
Advertisement