Standard Deviation Calculator

Find how spread out a list of numbers is, for a sample or a population.

Last updated 2026-11-26 · How we calculate this

Enter Your Numbers

Type or paste 2 to 1,000 numbers separated by commas, spaces or new lines. Write large numbers without commas (1000, not 1,000).
Pick sample if your numbers are some of a bigger group, such as 20 people from a town. Pick population if they are every member of the group, such as a whole class.

Standard Deviation

Enter at least two numbers to see the standard deviation.

The calculator treats every number equally and needs at least two of them. It does not group data into ranges or weight values by frequency, so a value that occurred five times must be typed five times. Numbers must be plain digits: write 1000 rather than 1,000, and leave out units and currency symbols.

Quick Answer

Standard deviation measures how far numbers typically sit from their mean. Find the mean, square each number's distance from it, add the squares, divide by n − 1 for a sample (or by n for a whole population), then take the square root. For 2, 4, 4, 4, 5, 5, 7 and 9 the sample standard deviation is 2.1381.

How to Use This Calculator

Type or paste your numbers into the box, separated by commas, spaces or new lines, and say whether they are a sample or a whole population. The calculator works out the standard deviation and the variance, and shows the mean and the count it used so you can check nothing was missed. The other version of the standard deviation is shown underneath for comparison, which helps when a textbook, spreadsheet or teacher uses the opposite formula to the one you expected.

  1. Type or paste your numbers into the box.
  2. Choose whether they are a sample or a whole population.
  3. Read the standard deviation and the variance.
  4. Check the mean and the count to make sure every number was included.

The Formula

Sample: s = √(Σ(x − mean)² ÷ (n − 1)) · Population: σ = √(Σ(x − mean)² ÷ n)

Each number's distance from the mean is squared so that numbers below the mean do not cancel out numbers above it, and so that values far from the mean count for more. Adding the squares and dividing gives the variance, which is in squared units, such as square inches or points squared. Taking the square root brings the answer back to the units of your data, which is why the standard deviation is the figure most people report.

Worked Example

The opening list: 2, 4, 4, 4, 5, 5, 7 and 9 have a mean of 5, and the squared distances from 5 add up to 32. Divided by 7 (one less than the 8 numbers) that is a variance of 4.5714, and its square root is a sample standard deviation of 2.1381. Treated as a whole population, 32 ÷ 8 = 4, so the standard deviation is exactly 2.

Test scores: 85, 92, 78, 90 and 88 have a mean of 86.6. As a sample of a larger class the standard deviation is 5.4589; if these five students are the whole class, it is 4.8826.

Commute times: 22, 25, 31, 28 and 24 minutes have a mean of 26 minutes. The squared distances add up to 50, so the sample variance is 50 ÷ 4 = 12.5 and the standard deviation is 3.5355 minutes.

Frequently Asked Questions

Should I choose sample or population?

Choose sample when your numbers are a selection from a bigger group you want to describe, such as 30 customers surveyed out of thousands, or a few test batches from a production run. Choose population only when you have every member, such as all the students in one class. If you are not sure, sample is the usual choice, and it is what Excel's STDEV.S and Google Sheets' STDEV work out.

Why divide by n − 1 for a sample?

A sample's own mean sits closer to its numbers than the true mean of the whole group usually does, so the squared distances come out a little too small. Dividing by one less than the count corrects for that, a step known as Bessel's correction. With large samples the difference is tiny: for 1,000 numbers the two answers differ by about 0.05%.

What does a large or small standard deviation mean?

A small one means the numbers bunch closely around the mean, and a large one means they are spread out. Whether a value counts as large depends on the scale: 5 points is small for exam scores out of 100 but large for shoe sizes. Comparing it with the mean, or with another group measured the same way, gives it meaning.

How is variance different from standard deviation?

Variance is the standard deviation squared, so it is in squared units: for heights in inches, the variance is in square inches. That makes it awkward to read, which is why people usually quote the standard deviation. Variance is still useful in statistics because the variances of independent measurements can be added together.

What is the 68–95–99.7 rule?

For data that follow a bell-shaped normal curve, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. With a mean of 100 and a standard deviation of 15, roughly 95% of values lie between 70 and 130. The rule does not hold for lopsided data.

Can the standard deviation be zero or negative?

It is zero only when every number in the list is the same, because nothing differs from the mean. It can never be negative: it is the square root of an average of squares, and squares are never below zero. A negative figure from a hand calculation means a sign slipped somewhere.

Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Measures of Scale; Statistics Canada, Calculating the variance and standard deviation