Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

Standard Deviation Calculator

Paste a list of numbers to get the sample or population standard deviation and variance, with the mean, median, mode, range, quartiles, standard error, and a step-by-step deviations table.

Processed locally in your browser — nothing is uploaded.

Standard Deviation Calculator

0 characters

Your data is a

Use sample when the numbers are part of a larger group you want to describe.

Enter at least two numbers to see the standard deviation.

About Standard Deviation Calculator

Paste or type a list of numbers — separated by commas, spaces, or new lines, so a column copied from a spreadsheet works as-is — and choose whether they are a sample or the whole population. The calculator shows the standard deviation and variance, the mean and count, and a full set of summary statistics: sum, median, mode, minimum, maximum, range, quartiles, interquartile range, standard error of the mean, and coefficient of variation.

Below the results, the working shows how the standard deviation was reached, with a table of every value's deviation from the mean and its square.

How standard deviation is calculated

  1. Find the mean: add up the values and divide by how many there are, n.
  2. Subtract the mean from each value to get its deviation, and square each deviation.
  3. Add the squares to get the sum of squares.
  4. Divide the sum of squares by n − 1 for a sample, or by n for a population. That's the variance.
  5. Take the square root of the variance. That's the standard deviation.

Sample or population?

Use population when your numbers are every member of the group you care about — the scores of every student in one class, when the class is all you're describing. Use sample when your numbers are a subset you're using to estimate a larger group — 50 customers surveyed out of thousands. Dividing by n − 1 instead of n (Bessel's correction) makes up for a sample tending to sit closer to its own mean than to the mean of the whole population, so the sample standard deviation is slightly larger. The result shows the other figure too, so you can compare.

Example

Input

2, 4, 4, 4, 5, 5, 7, 9

Output

Mean 5 · Sum of squares 32
Population SD √(32 ÷ 8) = 2
Sample SD √(32 ÷ 7) ≈ 2.13809

The deviations from the mean of 5 are −3, −1, −1, −1, 0, 0, 2 and 4. Their squares add up to 32. Divided by 8 values that's a variance of 4 and a population standard deviation of exactly 2.

Common uses

  • Check statistics homework and see each step of the working
  • Measure how consistent test scores, lap times, or measurements are
  • Get the mean, median, and mode of a data set in one go
  • Find the standard error before working out a confidence interval
  • Compare the spread of data sets with different averages using the coefficient of variation

Limitations

  • Quartiles use linear interpolation between ranks, the method used by Excel's QUARTILE.INC, Google Sheets' QUARTILE, and NumPy's default. Textbooks that take the median of each half can give slightly different Q1 and Q3.
  • Commas always separate values, so type 1000, not 1,000, and use a dot for decimals.
  • It takes one list of up to 100,000 numbers. It doesn't handle grouped frequency tables or weighted data — list each value as many times as it occurs instead.

Frequently asked questions

How do you calculate standard deviation?

Find the mean, subtract it from each value, and square each result. Add the squares, divide by n − 1 for a sample or n for a population, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squared deviations add up to 32, and the population standard deviation is √(32 ÷ 8) = 2.

What is the difference between sample and population standard deviation?

Population standard deviation divides the sum of squares by n and describes data that is the entire group. Sample standard deviation divides by n − 1 and estimates the spread of a larger population from part of it. The n − 1, called Bessel's correction, makes the sample figure slightly larger to make up for a sample's tendency to underestimate the spread.

What's the difference between variance and standard deviation?

Variance is the average squared distance from the mean, and standard deviation is its square root. Standard deviation is in the same units as the data — test points, seconds, centimetres — which makes it easier to interpret. Variance is in squared units but adds up neatly, which is why statistical formulas often work with it.

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're spread out. For data that roughly follows a normal (bell-shaped) distribution, about 68% of values fall within one standard deviation of the mean and about 95% within two. To compare the spread of data sets with very different averages, use the coefficient of variation, the standard deviation as a percentage of the mean.

How do I find the mean, median, and mode?

The mean is the sum of the values divided by how many there are. The median is the middle value once they're sorted, or the average of the two middle values when there's an even number of them. The mode is the value that appears most often; a data set can have several modes, or none if no value repeats. The calculator shows all three.

What is the standard error of the mean?

It's the sample standard deviation divided by the square root of the number of values, and it estimates how far the sample mean is likely to be from the true population mean. It shrinks as the sample grows: quadrupling the number of values halves the standard error. Roughly, the mean ± 2 standard errors gives a 95% confidence interval for large samples.