1. Home
  2. Calculators
  3. Standard Deviation Calculator

Standard Deviation Calculator

For students and analysts who need the spread of a data set and want to know whether to divide by n or by n − 1.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Standard Deviation Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table.

Features

  • Population and sample versions side by side
  • Mean, variance, standard deviation and range
  • Coefficient of variation, median and range
  • Squared deviations listed one by one
  • Accepts commas, spaces and new lines

Supported formats

Input

  • Typed or pasted numbers

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Standard Deviation Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It handles up to 5,000 numbers; text that is not a number stops the calculation with a message naming it.
  • Standard deviation says nothing about the shape of the data; check for outliers.
  • Everything runs in your browser; nothing you type is sent anywhere.

Guide

Finding the standard deviation of a list of numbers, for a population or a sample

The standard deviation tells you how far a typical value sits from the average. A class whose scores are 78, 80 and 82 and a class whose scores are 50, 80 and 110 have the same mean, but the second is far more spread out, and the standard deviation is the number that says so. This calculator takes a list of numbers and gives the mean, the variance and the standard deviation, together with the working, so you can check it against a textbook.

How it works

First the mean is found by adding the values and dividing by how many there are. Each value then has the mean subtracted from it, giving its deviation. The deviations are squared, which removes the signs and weights large gaps more heavily, and the squares are added up. Dividing that sum by n gives the population variance, and dividing it by n minus 1 gives the sample variance. The standard deviation is the square root of the variance, which brings the answer back to the same unit as the data.

Population or sample

Choose population when your list is every value that exists, such as all eight scores in a tiny class you are describing. Choose sample when the list is only a part of a larger group, such as eight customers out of thousands. The page shows the standard deviation of both kinds, with the one you chose listed first, and gives the variance for the chosen kind. When in doubt, a sample is the safer assumption, because real data are almost always a subset.

Reading the other results

The table shows the count, sum, mean, smallest and largest values, range and median. The coefficient of variation divides the standard deviation by the mean and shows it as a percent, which lets you compare the spread of things measured in different units, such as steps a day and kilometres. The deviations table lists every value with its deviation and squared deviation, which is the quickest way to find a typing mistake: a value that dominates the sum of squares is the one to look at.

Edge cases

Numbers can be separated by commas, spaces, semicolons or new lines, and an underscore inside a number is ignored. Text that is not a number stops the calculation with a message that names it. A sample standard deviation needs at least two numbers, and for a single number the page asks you to choose population instead. The deviations table lists the first 20 numbers when the list is longer. The coefficient of variation is not meaningful when the mean is zero or negative, so treat that line with care for data such as temperatures in Celsius.

A worked example

Take 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and the mean is 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. As a population the variance is 32 divided by 8, which is 4, so the standard deviation is exactly 2. As a sample the variance is 32 divided by 7, and the standard deviation is 2.1380899353. The range is 7, the median is 4.5 and the coefficient of variation is 40%. A second list, the exam scores 72, 85, 91, 64, 78, 88, 69 and 95, has a mean of 80.25 and a sample standard deviation of 11.2090524641.

Limits

A standard deviation summarises spread with one number and says nothing about the shape of the data. Two very different sets can share the same value, and a single extreme value can inflate it. It does not flag outliers, and it does not test whether the data follow a normal curve. For that, look at the quartiles and fences on the five-number summary page and plot the values.

Checked against the current version of the Standard Deviation Calculator on .

Frequently asked questions

Why is the sample standard deviation always a little bigger than the population one?

Dividing by n minus 1 instead of n makes the result larger for the same numbers. The correction compensates for the sample mean being closer to the sample than the true mean is, which would otherwise make the spread look too small.

Can a standard deviation be negative or zero?

It is never negative, because it is a square root. It is zero only when every value is identical, so there is no spread at all.

When do I divide by n − 1?

Divide by n − 1 when your numbers are a sample drawn from a larger group, because the sample mean sits closer to the sample than the true mean does. Use n only when the list is the whole population.

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

Treated as a whole population it is exactly 2, and treated as a sample it is 2.1380899353. The mean is 5 in both cases.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.