CalcThis CalcThis
Spread, made visible

Standard Deviation Calculator

Paste your numbers and get the sample and population standard deviation side by side — plus mean, variance and step-by-step working — with a live number line showing exactly how your data spreads around the mean. Outliers, z-scores and a confidence interval are under Go advanced.

Your data

My numbers are a

Sample = part of a bigger group. Population = every value there is. Both results are always shown.

Separate with commas, spaces or new lines.

Sample SD (s)
—
Paste your numbers to start.
Population SD (σ)
—
Standard deviation
—

How to use the standard deviation calculator

Paste your numbers into the box — separated by commas, spaces or new lines, or straight from an Excel column — and the results appear instantly. Anything that isn't a number is ignored, and the calculator tells you how many entries it skipped. Both the sample standard deviation (s) and the population standard deviation (σ) are always shown; the Sample / Population switch simply picks which one drives the number line, the plain-English summary and the z-scores.

The number line plots every value as a dot, marks the mean, and shades the band within 1 and 2 standard deviations of it, so you can see the spread instead of just reading a number. Tap Go advanced for outlier flags with one-click exclusion, a z-score for every value, quartiles, a confidence interval for the mean, and a value + count mode for survey or grade data.

Sample vs. population standard deviation

σ = √( Σ(x − μ)² ÷ n )   |   s = √( Σ(x − x̄)² ÷ (n − 1) ) POPULATION DIVIDES BY n · SAMPLE DIVIDES BY n − 1

Use the population formula when your numbers are every value in the group you care about — all the test scores in one class, say. Use the sample formula when your numbers are only a slice of a larger group: a survey of 200 people standing in for a whole city. Dividing by n − 1 instead of n (Bessel's correction) makes up for a sample's tendency to understate the true spread. When in doubt, a sample is the safer assumption.

How to calculate standard deviation step by step

Take the data set 2, 4, 4, 4, 5, 5, 7, 9:

  • Mean. (2+4+4+4+5+5+7+9) ÷ 8 = 40 ÷ 8 = 5.
  • Deviations squared. (2−5)² = 9, then 1, 1, 1, 0, 0, 4 and 16.
  • Sum of squares. 9+1+1+1+0+0+4+16 = 32.
  • Variance. Population: 32 ÷ 8 = 4. Sample: 32 ÷ 7 = 4.5714.
  • Square root. Population σ = √4 = 2. Sample s = √4.5714 = 2.1381.

Mean and standard deviation together

The mean says where the middle of your data is; the standard deviation says how far values typically stray from it. Two classes can both average 75 on a test, but one with a standard deviation of 3 is tightly clustered while one with a standard deviation of 15 is all over the place. Always read them as a pair.

Relative standard deviation

The relative standard deviation (also called the coefficient of variation) is the standard deviation divided by the mean, as a percentage. It lets you compare the spread of data on different scales — heights in centimetres against weights in kilograms — and it appears under Go advanced.

What counts as a high or low standard deviation?

There is no universal cut-off, because it depends on the scale of the data. A standard deviation of 5 is huge for heart-rate readings that average 70 — and tiny for house prices averaging $400,000. Compare it to the mean (the relative standard deviation) or to another dataset measured the same way.

The 68-95-99.7 rule, outliers and z-scores

For bell-shaped data, about 68% of values fall within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3. A z-score is simply how many standard deviations a value sits from the mean, so a value with a z-score beyond 2 or 3 is unusual and worth checking. Go advanced lists the z-score of every value, flags the unusual ones, and can exclude them and recalculate in one click.

Related tools

Curving a class's scores with a bell curve uses exactly these numbers — try the Grade Curve Calculator. For an average where some values count more than others, use the Weighted Average Calculator.

Common questions

What is the difference between sample and population standard deviation?

Population standard deviation (σ) divides the sum of squared deviations by n and is used when your numbers are the whole group. Sample standard deviation (s) divides by n − 1 (Bessel's correction) and is used when your numbers are only a sample of a larger group, because a sample tends to understate the true spread.

How do you calculate standard deviation by hand?

Find the mean, subtract it from every value, square each difference, add the squares to get the sum of squares, divide by n (population) or n − 1 (sample) to get the variance, then take the square root.

What does a high or low standard deviation mean?

A low standard deviation means the values sit close to the mean; a high one means they are spread out. Whether a value is high or low depends on the scale of your data, which is why the coefficient of variation (standard deviation divided by the mean) is useful for comparing different datasets.

What is the 68-95-99.7 rule?

For bell-shaped (normal) data, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. The number line on this calculator shows how many of your own values actually fall in each band.

Can standard deviation be negative or zero?

It can never be negative, because it is a square root. It is exactly zero only when every value is identical, since there is then no spread at all.