Math & Algebra Calculators

Standard Deviation Calculator

Calculate mean, variance, and standard deviation from a numeric data set using population or sample assumptions.

Standard Deviation Calculator — Online Calculator

Standard Deviation Calculator

Sample Standard Deviation (σ / s)
5.2372
Calculated across 8 data points
Variance (s²)
27.4286
Mean (μ / x̄)
18
Sum of Numbers (Σx)
144
Count (n)
8
Min — Max
10 — 23
Range
13

The Standard Deviation Calculator measures how spread out a set of numbers is around its mean, reporting the mean, variance, standard deviation, sum, count, minimum, maximum, and range. You choose whether your data is a complete population or a sample drawn from one, because that choice changes the divisor and therefore the answer.

How it works

  1. Validation: The data set must contain at least one finite number. Sample standard deviation requires at least two numbers, because a single observation carries no information about spread.
  2. Processing: The calculator finds the mean, subtracts it from every value to get the deviations, and squares each deviation so negative and positive differences do not cancel out.
  3. Breakdown: The squared deviations are summed and divided by the count for a population, or by the count minus one for a sample. The square root of that variance is the standard deviation, expressed in the same units as your data.
  4. Privacy: Your data set is processed in your browser and is never uploaded or stored.

Formula

xˉ=∑xiN\bar{x}=\frac{\sum x_i}{N}

Sum of squared deviations=∑(xi−xˉ)2\text{Sum of squared deviations}=\sum\left(x_i-\bar{x}\right)^2

σ2=∑(xi−xˉ)2Ns2=∑(xi−xˉ)2N−1\sigma^2=\frac{\sum\left(x_i-\bar{x}\right)^2}{N}\qquad s^2=\frac{\sum\left(x_i-\bar{x}\right)^2}{N-1}

σ=σ2s=s2\sigma=\sqrt{\sigma^2}\qquad s=\sqrt{s^2}

The population form (Greek letters) divides by N and describes the spread of a complete set. The sample form (Latin letters) divides by N - 1, an adjustment known as Bessel's correction, which compensates for the fact that a sample tends to sit slightly closer to its own mean than to the true population mean.

Input parameters

| Parameter | Unit | Realistic range | What it means | | --- | --- | --- | --- | | Data values | same unit as your measurements | at least 1 value for a population, at least 2 for a sample; class and lab data sets commonly hold 5 to 100 values | The numbers you want to summarise, entered as a list | | Population or sample | setting | choose one | Population means your list is everything you care about; sample means it is a subset used to estimate a larger group |

Worked example

Take the data set 10, 12, 23, 23, 16, 23, 21, 16 (for example, daily sales in hundreds of dollars across eight days):

  1. Sum: 10 + 12 + 23 + 23 + 16 + 23 + 21 + 16 = 144. Count is 8, so the mean is 144 / 8 = 18.
  2. Deviations from 18 are: -8, -6, 5, 5, -2, 5, 3, -2.
  3. Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4. Their sum is 192.
  4. Population variance: 192 / 8 = 24, so the population standard deviation is the square root of 24, about 4.90.
  5. Sample variance: 192 / 7 = 27.43, so the sample standard deviation is the square root of 27.43, about 5.24.
  6. Minimum is 10, maximum is 23, and the range is 13.

The same data gives two different answers, and both are correct: 4.90 if these eight days are the whole story, 5.24 if they are a sample standing in for a longer period.

Interpreting the result

Standard deviation is expressed in the original units, so a standard deviation of 4.90 against a mean of 18 tells you a typical value lands roughly 5 units from the average. As a rough guide for data that is approximately bell-shaped, most values fall within one standard deviation of the mean and the large majority within two. Variance carries the same information but in squared units, which is why standard deviation is usually the figure you report.

Comparing the standard deviation to the mean matters more than the raw number. A standard deviation of 5 is tight for measurements averaging 500 and wild for measurements averaging 9. Also watch the gap between the sample and population results: with only a handful of values it is large (here, 5.24 versus 4.90), and it shrinks as the data set grows, because the minus-one correction matters less.

Choosing the right tool

  • Average Calculator: Use it when you only need the mean, median, or mode of a data set and do not need a measure of spread.
  • Percentage Calculator: Use it for proportional questions, such as what share one value is of a total, rather than variability questions.
  • Scientific Calculator: Use it for general arithmetic, powers, roots, and trigonometry when you are working through a formula by hand.

Limitations

Standard deviation summarises spread around the mean, which makes it sensitive to outliers: one extreme value can inflate it sharply, as the squared deviations give large differences extra weight. It does not show the shape of the distribution, prove that data is normally distributed, or tell you whether your sample is representative of the group you care about. For heavily skewed data, the median and interquartile range often describe the centre and spread more honestly. The calculator also treats every value as equally weighted and exact, so measurement error in the inputs flows straight into the result.

Questions

Should I choose population or sample?

Choose population when your list contains every value in the group you are describing, such as the test scores of one class you teach. Choose sample when your list is a subset used to estimate a bigger group, such as 200 surveyed customers standing in for all customers. When in doubt, sample is the safer default because its correction assumes incomplete data.

Why does the sample version divide by N minus 1?

A sample almost always hugs its own mean a little tighter than it hugs the true population mean, so dividing by N would systematically understate the population spread. Dividing by N minus 1 (Bessel's correction) inflates the estimate just enough to make it unbiased on average.

Can standard deviation be negative or zero?

It cannot be negative, because it is the square root of an average of squares. It is zero in exactly one situation: every value in the set is identical, so there is no spread at all.

Sources and methodology

Definitions, notation, and the population-versus-sample distinction follow the NIST/SEMATECH e-Handbook of Statistical Methods, the standard US reference for applied statistics. The sample variance correction is Bessel's correction, named for Friedrich Bessel. All figures in the worked example are computed directly from the formulas above and can be reproduced by hand from the eight values given.

Related Tools