Free graph maker & data converters

Standard Deviation Calculator

Paste a list of numbers and get the mean, sample and population standard deviation, variance, standard error and 95% confidence interval, with quartiles and a histogram.

Numbers

Paste one column of numbers. Sample: ten repeat weighings of the same 25 g mass.

Updates as you type. Your data stays in this browser.
Results
Count (n)10
Mean25.04
Sample standard deviation (s)0.20111divides by n − 1; use this for a sample of a larger group
Population standard deviation (σ)0.19079divides by n; use only if the data are the whole population
Variance (sample)0.040444
Standard error of the mean0.0636SD / √n
95% confidence interval for the mean24.896 to 25.184mean ± 2.262 × SE (t, 9 df)
Median25.05
Minimum / maximum24.7 / 25.3range 0.6
Q1 / Q3 (IQR)24.92 / 25.18IQR 0.25
Sum250.4
Chart
24.624.825.025.225.40.00.51.01.52.0Mass (g)Frequency

How to use the Standard Deviation Calculator

  1. Paste your numbers, one per line or in one column. A header in the first row is fine.
  2. Read the sample standard deviation (s) for data that are a sample of a larger group.
  3. Use the standard error and 95% confidence interval to describe how well the mean is known.
  4. Check the histogram for skew or outliers before relying on the mean and SD.

Sample or population standard deviation

There are two standard deviations, and choosing the wrong one is the most common mistake. The sample standard deviation (s) divides the sum of squared deviations by n − 1 and is the right choice when your numbers are a sample drawn from a larger group, which is almost always the case in experiments. The population standard deviation (σ) divides by n and applies only when you have every member of the group, such as all the students in one class when the question is about that class only.

Dividing by n − 1 corrects for the fact that a sample’s own mean sits closer to its values than the true mean would, which would otherwise make the spread look too small. For large n the two are nearly equal; for small n the difference matters.

Worked example: ten weighings of a 25 g mass

The sample data are ten repeat readings of the same mass: 25.1, 24.8, 25.3, 25.0, 24.9, 25.2, 25.1, 24.7, 25.0 and 25.3 g. The mean is 25.04 g. The sample standard deviation is 0.201 g, the population value is 0.191 g, and the variance is 0.0404 g².

The standard error of the mean is 0.201 / √10 = 0.0636 g. With 9 degrees of freedom the t value is 2.262, so the 95% confidence interval for the mean is 25.04 ± 0.144 g, from 24.90 to 25.18 g. The balance repeats to about ±0.2 g per reading, and the average of ten readings is known to about ±0.14 g.

StatisticValue
Mean25.04 g
Sample SD (s)0.2011 g
Population SD (σ)0.1908 g
Standard error0.0636 g
95% CI for the mean24.896 to 25.184 g

SD, standard error and confidence interval

Use the SD to describe the spread of the individual measurements and the standard error or the confidence interval to describe how precisely the mean is known. The SE shrinks as you collect more data (it is SD divided by √n); the SD does not. When you put error bars on a graph, say which of these they show. The guide to error bars compares them on one data set.

The mean and SD describe a roughly bell-shaped set of data well. If the histogram is skewed or has outliers, report the median and the interquartile range, both shown in the results, instead of or as well as the mean and SD.

Using the results in a report

A common way to write the result is mean ± SD (n = 10), for example 25.04 ± 0.20 g (n = 10). Always state n and which kind of deviation you used. To show the replicates graphically, a box plot or a histogram shows the distribution that these numbers summarise.

Frequently asked questions

How do I calculate standard deviation?
Find the mean, subtract it from each value and square the differences, add them up, divide by n − 1 (sample) or n (population), then take the square root.
Should I use n or n − 1?
Use n − 1 (sample standard deviation) when your data are a sample from a larger group, which is the usual case. Use n only when you have the entire population.
What is a good standard deviation?
It depends on the units and the question. Compare it with the mean (the coefficient of variation, SD / mean) or with the precision your method needs.
What is the difference between SD and standard error?
The SD measures spread of the data. The SE (SD / √n) measures how precisely the mean is estimated and gets smaller as n increases.
Is my data private?
No. The calculation runs in your browser, so the numbers you enter are never sent to a server.

Last updated: · by Dev Patel ·Read our guides