Skip to main content
Mathlark

Standard Deviation Calculator

Paste or type a list of numbers to see how spread out they are, with the variance and mean.

Your numbers

A sample is part of a bigger group. A population is every member of it.

8 numbers. Separate numbers with commas, spaces, or new lines.

Results

Sample standard deviation

2.1381

Sample variance
4.5714
Mean (average)
5
Count
8
Sum
40
Population standard deviation
2

Runs in your browser. Your numbers are never stored or sent.

Show the work

How it works

The standard deviation measures how spread out a set of numbers is. When the numbers sit close to their average, it’s small; when they’re scattered far from it, it’s large. It’s in the same units as the numbers themselves, so the standard deviation of test scores is in points and of heights is in centimeters or inches.

Type or paste your numbers, separated by spaces or new lines. Commas or semicolons work too, depending on your language settings, and the line under the box shows which. Then choose whether they’re a sample, part of a bigger group you want to learn about, or the whole population, every member of the group. The calculator shows the standard deviation, the variance, and the mean, and the steps work through your own numbers.

The formula

  1. Find the mean: mean = (sum of the numbers) ÷ n, where n is how many numbers there are.
  2. For each number, find how far it is from the mean and square it: (x − mean)².
  3. Add up those squares to get the sum of squares, SS.
  4. Divide to get the variance:
    • For a sample: s² = SS ÷ (n − 1)
    • For a whole population: σ² = SS ÷ n
  5. Take the square root to get the standard deviation: s = √s² or σ = √σ².

Squaring makes every distance zero or more, so numbers below the mean don’t cancel out numbers above it. The square root at the end turns the answer back into the original units.

Worked example

Want this with your own numbers? See Show the work above.

Take the eight numbers 2, 4, 4, 4, 5, 5, 7, and 9, as a sample.

  1. Find the mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5
  2. Square how far each number is from the mean: (2 − 5)² = 9; (4 − 5)² = 1; (4 − 5)² = 1; (4 − 5)² = 1; (5 − 5)² = 0; (5 − 5)² = 0; (7 − 5)² = 4; (9 − 5)² = 16
  3. Add up the squares: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32
  4. Divide by one less than the count: 32 ÷ (8 − 1) = 32 ÷ 7 = 4.5714
  5. Take the square root: √4.5714 = 2.1381

So the sample standard deviation is 2.1381. If these eight numbers were the whole population, you’d divide by 8 instead: √(32 ÷ 8) = 2, the answer Wikipedia’s article on standard deviation gives for the same numbers.

FAQ

Should I use the sample or the population standard deviation?

Use the population version only when your numbers include every member of the group you care about, such as the scores of everyone in one class when you only care about that class. If your numbers are a sample, such as a survey of some customers or a few measurements from a production line, and you want to describe the bigger group, use the sample version. If you’re not sure, the sample version is the usual choice.

Why does the sample version divide by n − 1?

The numbers in a sample tend to sit a little closer to their own mean than to the mean of the whole group, so dividing the sum of squares by n would make the variance come out too small on average. Dividing by n − 1 corrects for that. It’s called Bessel’s correction. With lots of numbers the two versions are almost the same; with only a few, the difference is noticeable.

What’s the difference between variance and standard deviation?

The variance is roughly the average squared distance from the mean (exactly the average for a population), and the standard deviation is its square root. They carry the same information, but the variance is in squared units (points squared, centimeters squared), which is hard to picture. The standard deviation is back in the original units, so it’s the one people usually quote.

What does the standard deviation tell me?

It’s a typical distance from the mean. For data with a bell-shaped (normal) distribution, about 68% of the values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. The z-score calculator uses this to show how unusual a single value is.

How do I enter my numbers?

Separate them with spaces or new lines, or paste a column straight from a spreadsheet. Whether commas or semicolons also work depends on your browser’s language settings: where decimals are written with a point (12.5), commas separate numbers; where they’re written with a comma (12,5), use semicolons instead. The line under the box says which applies to you. Don’t use thousands separators: with a point for decimals, “1,000” reads as two numbers, 1 and 0, and the count under the box shows how many numbers it read. You can enter from 2 to 500 numbers.

Can the standard deviation be 0 or negative?

It’s 0 when every number is the same, since nothing is spread out. It’s never negative, because it’s the square root of an average of squares.

Sources

Cite this page

APA (7th edition)

Mathlark. (2026, October 2). Standard deviation calculator. https://mathlark.com/statistics/standard-deviation-calculator/

MLA (9th edition)

"Standard Deviation Calculator." Mathlark, 2 Oct. 2026, mathlark.com/statistics/standard-deviation-calculator/.

Spot a mistake?