Skip to content
Free math tool

Standard deviation calculator

Measure how spread out a list of numbers is around its mean. A small standard deviation means values sit close to the average, and a large one means they are spread out. Students, scientists and analysts use it to describe data.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

22 characters

Number separator
Choose Commas for a compact list such as 100,200,300. Write 1000 for one thousand.
Data type
Sample divides by n minus 1, population by n

Result

Standard deviation2.1380899353
Variance
4.57142857143
Mean
5
Count
8
Type
Sample, divided by n minus 1

The short answer

Standard deviation is the square root of the average squared distance from the mean. For a sample, divide the sum of squared distances by n minus 1, and for a whole population divide by n. A larger value means the data are more spread out.

FormulaSample s = sqrt(sum((x - mean)^2) / (n - 1)); population sigma = sqrt(sum((x - mean)^2) / n)

Worked exampleFor 2, 4, 4, 4, 5, 5, 7 and 9 the mean is 5, the sample variance is 4.57142857143 and the sample standard deviation is 2.1380899353.

Example

Input
2, 4, 4, 4, 5, 5, 7, 9
Result
Standard deviation2.1380899353
Variance
4.57142857143
Mean
5
Count
8
Type
Sample, divided by n minus 1

How to use the standard deviation calculator

  1. Paste your numbers in the box, separated by commas, spaces, semicolons or new lines.
  2. Choose Commas for compact lists such as 100,200,300. Automatic also accepts spaces, semicolons, new lines and comma-space lists.
  3. Under Data type, pick Sample or Population.
  4. The result updates as you type, or press Run. Use Copy result or Download to keep it.

How it works

Variance = the sum of (each value - mean) squared, divided by count minus one for a sample or by count for a population. Standard deviation is the square root of the variance.

Sample mode needs at least two numbers. Population mode works with a single number, which gives 0.

Values are shifted by the first number before squaring, which keeps results accurate when numbers are large and close together.

Uses floating point math and shows results to 12 significant digits. Up to 5,000 numbers are accepted.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

What is the difference between sample and population standard deviation?

Use population when your list includes every member of the group. Use sample when your list is only part of a larger group, since dividing by count minus one corrects for a sample's tendency to understate spread.

How do you calculate standard deviation?

Find the mean, subtract it from each value and square the results, then add those squares. Divide by count for a population or count minus one for a sample, then take the square root.

What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?

The mean is 5. The population standard deviation is exactly 2, and the sample standard deviation is about 2.138.

What is variance?

Variance is the average squared distance from the mean. Standard deviation is its square root, which puts it back in the same units as your data.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools