Standard Deviation Calculator

Find the standard deviation, variance, mean, median and mode of a list of numbers, with both sample and population results and the working shown.

Math & Science Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Type or paste your numbers, separated by commas, spaces or new lines.
  2. Read the sample and population standard deviation, the mean and the count.
  3. Check the median, mode, range, quartiles and coefficient of variation below them.
  4. Open the working table to see each value, its distance from the mean and the squared distance.

Example

Input: 2, 4, 4, 4, 5, 5, 7, 9

Output: Mean 5, population standard deviation 2, sample standard deviation 2.1380899

How it works

The mean is found first. Then each value's distance from the mean is squared and the squares are added up. Dividing by n gives the population variance and dividing by n − 1 gives the sample variance. The standard deviation is the square root of the variance. Using two passes keeps the answer accurate even for large numbers.

Mean = sum ÷ n. Variance = sum of (value − mean)² ÷ n for a population, or ÷ (n − 1) for a sample. Standard deviation = √variance.

Another example

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared distances add up to 32. Population variance = 32 ÷ 8 = 4, so the standard deviation is 2. Sample variance = 32 ÷ 7 = 4.5714, so the sample standard deviation is 2.1381.

Limits and edge cases

  • Up to 100,000 numbers. The working table shows the first 200.
  • Commas, spaces, semicolons and new lines separate numbers, so a decimal comma such as 1,5 is read as two numbers. Write 1.5.
  • Quartiles are the medians of the lower and upper halves. Other software can use other methods and give slightly different values.
  • The mode lists values that repeat. If every value appears once there is no mode.
  • With one number the sample standard deviation is undefined because it divides by n − 1 = 0. The population value is 0.
  • The coefficient of variation is not shown when the mean is 0.
  • Negative numbers and decimals are fine. Scientific notation such as 1e3 is accepted.
  • The standard error of the mean is the sample standard deviation divided by the square root of n.

Privacy

Everything is calculated in this browser tab. The numbers and dates you enter are never sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Standard Deviation Calculator

All guides →

Related tools

FAQ

Questions about Standard Deviation Calculator

What is the difference between sample and population standard deviation?

Use the population standard deviation when your numbers are every value in the group you care about. Use the sample standard deviation when they are a sample from a larger group, which is the usual case. The sample version divides by n − 1, so it is slightly larger.

How do I calculate standard deviation by hand?

Find the mean, subtract it from each value, square each result, add the squares, divide by n or n − 1 to get the variance, then take the square root. The working table on this page shows each of those steps for your numbers.

What does a high or low standard deviation mean?

It measures how spread out the numbers are around the mean. A low value means they are close together and a high value means they are widely spread. It is in the same units as your data, so it only makes sense relative to the mean or the scale.

Why divide by n − 1 for a sample?

A sample tends to underestimate the spread of the whole group, because its values sit closer to their own mean than to the true mean. Dividing by n − 1 corrects that. It is called Bessel's correction.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean, so it is in squared units. The standard deviation is its square root, which brings the result back to the same units as your data and makes it easier to read.