Everyday tool

Standard Deviation Calculator

Paste a list of values, choose whether they are a sample or the full population, and calculate the statistics locally.

Runs in your browser. No upload.

Enter valid numbers and choose population or sample.

Count
—
Average
—
Variance
—
Standard deviation
—

About this tool

Standard Deviation Calculator made simple.

The population formula divides squared deviations by N; the sample formula uses N − 1 (Bessel’s correction). Values are parsed using your locale, and your data stays in this browser.

Guide

Using Standard Deviation Calculator

The Standard Deviation Calculator measures how spread out a list of numbers is. Paste your values, choose Population or Sample, and press Calculate. It shows the count, the average, the variance and the standard deviation. Population divides by the number of values. Sample divides by one less, which is the usual choice when your numbers are only a part of a larger group. It handles up to 10,000 values. It does not draw charts, find outliers or test anything.

How to use it

  1. Paste or type your numbers into the box. Separate them with spaces, commas, semicolons or new lines. A column copied from a spreadsheet works well.
  2. Choose the Type. Pick Population if your list is every member of the group you care about. Pick Sample if it is only a part of a bigger group.
  3. Press the Calculate button to run the statistics.
  4. Read four results: Count, Average, Variance and Standard deviation. All are rounded to at most six decimal places.
  5. If you see an error, check for stray letters in the list. For Sample you also need at least two numbers.
  6. Press Clear to empty the box and the results.

Worked examples

Population of eight numbers

You enter
Values
2 4 4 4 5 5 7 9
Type
population
You get
Count
8
Average
5
Variance
4
Standard deviation
2

The mean is 5. The squared distances from 5 add up to 32. Dividing 32 by 8 gives a variance of 4, and its square root is 2.

Run through the tool’s own code.

Same eight numbers as a sample

You enter
Values
2 4 4 4 5 5 7 9
Type
sample
You get
Count
8
Average
5
Variance
4.571429
Standard deviation
2.13809

The sum of squares is still 32, but now it is divided by 7 instead of 8. That gives 4.571429, and the square root is 2.13809.

Run through the tool’s own code.

A sample of test marks

You enter
Values
10, 12, 23, 23, 16, 23, 21, 16
Type
sample
You get
Count
8
Average
18
Variance
27.428571
Standard deviation
5.237229

The marks have a mean of 18 and a sum of squares of 192. Dividing 192 by 7 gives 27.428571, whose square root is 5.237229.

Run through the tool’s own code.

Same marks as a population

You enter
Values
10, 12, 23, 23, 16, 23, 21, 16
Type
population
You get
Count
8
Average
18
Variance
24
Standard deviation
4.898979

Dividing 192 by 8 gives a variance of 24. The square root is 4.898979, a little smaller than the sample figure.

Run through the tool’s own code.

Decimals separated by semicolons

You enter
Values
3.5; 4.5; 6
Type
sample
You get
Count
3
Average
4.666667
Variance
1.583333
Standard deviation
1.258306

The mean is 4.666667. The three squared distances sum to 3.166667, and dividing by 2 gives a variance of 1.583333.

Run through the tool’s own code.

One value only

You enter
Values
5
Type
population
You get
Count
1
Average
5
Variance
0
Standard deviation
0

With a single number nothing is spread out, so the variance and standard deviation are 0. Switching to Sample would give an error.

Run through the tool’s own code.

When it helps

  • Check homework on mean, variance and standard deviation for a statistics class.
  • See how consistent a set of test scores, delivery times or daily sales figures is.
  • Compare the spread of two data sets that have the same average.
  • Get the sample standard deviation for lab measurements you repeated several times.
  • Check a spreadsheet formula by pasting its input column here.
  • Describe how much a small survey's answers vary before you write them up.

Limits to keep in mind

  • You can enter between 1 and 10,000 numbers, and the box holds at most 200,000 characters. Anything over the number limit gives an error.
  • Sample needs at least two values. With one number the message says that Sample standard deviation needs at least two values.
  • Any item that is not a number gives the message to enter a list of valid numbers. The tool does not skip bad entries.
  • A thousands comma counts only in a number set apart by spaces, new lines or semicolons, such as 1,000 or 12,345.6. In 1,000,2,500 the commas still split it into 1, 0, 2 and 500. This holds for pages that write decimals with a point.
  • Results show at most six decimal places. It reports only count, average, variance and standard deviation, not the median, range or errors.
  • It does not tell you whether a data set is normal, whether a value is an outlier, or whether your sample is fair.

Tips

  • If you are unsure, ask whether your numbers could ever be extended with more data from the same source. If so, treat them as a sample.
  • A small list is not automatically a sample. Follow the choice your course, teacher or standard asks for.
  • The standard deviation is in the same units as your data, while the variance is in squared units.
  • Paste a long column straight from a spreadsheet. Line breaks are accepted.
  • Compare the Count line with the number of values you meant to paste, to catch a lost row or a split number.
  • A larger standard deviation means more spread, but only compare data sets that use the same units.

Sources

Common questions

About Standard Deviation Calculator.

What is the difference between population and sample standard deviation?

Population divides the squared distances from the mean by N, the number of values. Sample divides by N minus 1. Use population when the list holds the whole group, and sample when it is just a part of it.

Which one should I choose?

Choose population if you have every member, such as all students in one class. Choose sample if you picked a few from a bigger group and want to estimate that group. If your teacher or software names one, use that one.

Why divide by n minus 1 for a sample?

A sample's mean sits closer to its own values than the true mean does, which makes the spread look a bit too small. Dividing by n minus 1 corrects that. It is called Bessel's correction.

How do I calculate standard deviation by hand?

Find the mean. Subtract it from each value and square the result. Add the squares, divide by N or N minus 1, and take the square root. The tool shows the variance too, which is the step before the root.

Why do I get an error for a sample?

Sample mode needs at least two numbers, because dividing by n minus 1 with one number would mean dividing by zero. The error can also come from a stray letter or symbol in the list.

What does the variance mean?

The variance is the average squared distance from the mean, using N or N minus 1. It is in squared units, like square dollars. The standard deviation is its square root, so it is back in your original units.

What separators can I use?

Spaces, commas, semicolons and new lines all work in English. A number such as 1,000 or 12,345.6 is read as one number when it stands alone between spaces, new lines or semicolons. Short items like 1,2,3 are still three numbers. A comma right after a thousands number, as in "1,000, 2,500", splits it again, so separate such numbers with a space, a new line or a semicolon. A decimal point is fine, as in 3.5.

Is this the same as the average calculator?

No. The average tool gives the mean, sum and range of a list and can weight values. This tool shows the spread around the mean. Both give the mean, but only this one gives variance and standard deviation.

Is my data uploaded or saved?

No. The numbers are processed inside your browser on your device, and the page does not send them to a server. You also do not need to sign in to use it.

When should I not trust the result?

Be careful with very small samples, data that has errors, or a list copied with hidden symbols. A standard deviation alone does not show the shape of the data, so look at the values too.

How do I calculate standard deviation?

Paste your data values, choose sample or population, then calculate. The result includes variance, mean and the number of values.

Should I use sample or population standard deviation?

Use population when your data includes the entire group you are studying. Use sample when it is only a subset; the sample formula divides by n − 1.