Standard Deviation Calculator

Sample standard deviation (s)15.8114
Population standard deviation (σ)14.1421
Mean30.0000
Sample variance250.0000
Population variance200.0000
Sum150.0000
How this was calculated
  1. Mean = (10.00 + 20.00 + 30.00 + 40.00 + 50.00) ÷ 5 = 30.0000.
  2. Sum of squared differences from the mean = 1,000.0000.
  3. Population variance = 1,000.0000 ÷ 5 = 200.0000, so population standard deviation = √200.0000 = 14.1421.
  4. Sample variance divides by n − 1 instead: 1,000.0000 ÷ 4 = 250.0000, so sample standard deviation = 15.8114. Use the sample version when your numbers are a sample of a larger group — the usual case for experiments and class grades.

This standard deviation calculator takes a set of numbers and returns the mean, the population standard deviation, the sample standard deviation, and the variance. Standard deviation measures spread around the mean. Population SD divides the sum of squared differences by n; sample SD divides by n - 1 (Bessel's correction), which corrects the bias when estimating a population from a sample. For example, for 10, 20, 30, 40, 50 the mean is 30, the population SD is 14.1421 and the sample SD is 15.8114. The population variance is exactly 200 and the sample variance is 250. With small samples the n-1 correction matters most: for the four numbers 4, 8, 15, 16 the sample SD is 5.7373 and the population SD is 4.9687.

These formulas are the accepted standard because Bessel's correction removes the systematic underestimate that occurs when a sample is used to infer the spread of a larger population. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three, making the measure useful across fields from test scores to scientific research. Test scores 72, 85, 90, 85, 68 have mean 80, population SD 8.4617 and sample SD 9.4604. This page shows the formula, step-by-step workings, worked examples and sources so you can verify every result.

Worked examples

The textbook set 10–50

Mean 30; population SD 14.1421, sample SD 15.8114 — the two answers differ because of the n−1 correction. (5 numbers · 10 · 20 · 30 · 40 · 50 · 0 · 0 · 0)

Sample standard deviation (s)15.8114
Population standard deviation (σ)14.1421
Mean30.0000
Sample variance250.0000
Population variance200.0000
Sum150.0000

Five test scores

Scores averaging 80 have a sample SD of 9.4604 — a tight, consistent set. (5 numbers · 72 · 85 · 90 · 85 · 68 · 0 · 0 · 0)

Sample standard deviation (s)9.4604
Population standard deviation (σ)8.4617
Mean80.0000
Sample variance89.5000
Population variance71.6000
Sum400.0000

A short set of four

With n = 4 the sample/population gap widens: 5.7373 against 4.9687. (4 numbers · 4 · 8 · 15 · 16 · 0 · 0 · 0 · 0)

Sample standard deviation (s)5.7373
Population standard deviation (σ)4.9687
Mean10.7500
Sample variance32.9167
Population variance24.6875
Sum43.0000

Sample or population: which one do you need?

Standard deviation measures spread around the mean, but the formula changes depending on whether your numbers represent an entire group or just a portion of one. If your numbers ARE the whole group you care about, use the population option. If your numbers represent a bigger group and you want to estimate the spread of that larger group, use the sample option. A standard deviation calculator typically offers both, so understanding this distinction ensures you get the right result.

The difference comes down to one step in the formula. Population SD divides the sum of squared differences by n, while sample SD divides by n minus 1. This adjustment, called Bessel's correction, corrects the bias that occurs when estimating a population from a sample. The sample formula produces a slightly larger value to account for the fact that a sample tends to underestimate the true spread of the full population.

To see the numerical difference, consider the numbers 10, 20, 30, 40, 50. The mean is 30, the population SD is 14.1421, and the sample SD is 15.8114. The same gap appears with test scores of 72, 85, 90, 85, and 68. These scores have a mean of 80, a population SD of 8.4617, and a sample SD of 9.4604. In both cases the sample SD is larger because of the n minus 1 correction.

With small data sets the choice matters most. For the four numbers 4, 8, 15, and 16, the sample SD is 5.7373 and the population SD is 4.9687. That gap is proportionally bigger than in the larger examples above. Variance, which is the standard deviation squared, shows the same pattern. In the first example the population variance is exactly 200 and the sample variance is 250. When in doubt, ask yourself one question: are these numbers the entire group, or do they stand in for a larger one?

  • If your numbers ARE the whole group, choose population SD.
  • If your numbers represent a bigger group, choose sample SD.
  • With small samples the n minus 1 correction matters most.
  • Variance is the standard deviation squared.
Rule of thumb for roughly bell-shaped data: about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three.

The calculation, step by step

Standard deviation measures spread around the mean, and seeing the steps worked out helps you understand what any standard deviation calculator is doing behind the scenes. Take the numbers 10, 20, 30, 40, and 50. First find the mean by adding them and dividing by the count: (10 + 20 + 30 + 40 + 50) / 5 = 150 / 5 = 30. Next, subtract the mean from each value to get the differences: -20, -10, 0, 10, and 20. Then square each difference: 400, 100, 0, 100, and 400. Add those squared differences to get 1,000.

Now the two versions diverge. Population SD divides the sum of squared differences by n, the number of values. Here, 1,000 / 5 = 200, and the square root of 200 is 14.1421. Sample SD divides by n - 1 (Bessel's correction), which corrects the bias when estimating a population from a sample. Here, 1,000 / 4 = 250, and the square root of 250 is 15.8114. So for this data the population SD is 14.1421 and the sample SD is 15.8114. Note that variance is the standard deviation squared: the population variance is exactly 200 and the sample variance is 250.

The difference between the two versions is most visible with small samples. For the four numbers 4, 8, 15, and 16, the sample SD is 5.7373 and the population SD is 4.9687. With small samples the n - 1 correction matters most because dividing by a smaller number inflates the result, offsetting the underestimate that typically occurs when you draw a sample from a larger population.

Once you have the standard deviation, you can put it to practical use. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. In the first example, that means roughly 68% of values would fall between 15.858 and 44.142 using the population SD.

Why n - 1? Bessel's correction in plain words

A standard deviation calculator needs to know whether you are working with an entire population or just a sample, because the two use slightly different formulas. Population standard deviation divides the sum of squared differences by n. Sample standard deviation divides by n - 1 instead. That small change is called Bessel's correction, and it corrects the bias that shows up when you estimate a population from a sample.

Here is why the bias exists. A sample's values cluster closer to the sample mean than to the true population mean, so dividing by n understates the spread. The sample mean is calculated from the same data, so it sits right in the middle of those values. The true population mean, which comes from all the data, sits a bit further away. Squared differences measured from the sample mean are therefore smaller on average than they would be if measured from the population mean. Dividing by n - 1 instead of n scales the result up just enough to compensate.

The correction matters most with small samples. Take the four numbers 4, 8, 15, 16. The sample standard deviation is 5.7373 and the population standard deviation is 4.9687. That gap is large because each value carries a lot of weight. With more data, the two results move closer together. For 10, 20, 30, 40, 50 the mean is 30, the population standard deviation is 14.1421 and the sample standard deviation is 15.8114. Test scores 72, 85, 90, 85, 68 show the same pattern: mean 80, population standard deviation 8.4617, sample standard deviation 9.4604.

Variance is the standard deviation squared, so the same correction applies there. In the first example the population variance is exactly 200 and the sample variance is 250. Both numbers describe the same spread, just on a different scale. A standard deviation calculator reports the square root of variance so the units match the original data.

Rule of thumb for roughly bell-shaped data: about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three.

Variance vs standard deviation

Variance and standard deviation both measure spread around the mean, but they report it in different units. Variance is the standard deviation squared, which means it is expressed in squared units rather than the original units of your data. In the first example using the numbers 10, 20, 30, 40, 50, the mean is 30, the population variance is exactly 200, and the population standard deviation is 14.14. The variance of 200 is in squared units, while the standard deviation of 14.14 is in the same units as the original data. This is why standard deviation is the value people quote in practice — it is far easier to interpret a spread of 14.14 points than a spread of 200 squared points.

The calculation difference between the two measures comes down to one step. Population standard deviation divides the sum of squared differences by n, while sample standard deviation divides by n minus 1. This adjustment is called Bessel's correction, and it corrects the bias that occurs when you estimate a population from a sample. A standard deviation calculator will typically offer both options, so you need to know whether your data represents an entire population or a sample drawn from a larger group.

The size of your sample determines how much Bessel's correction matters. For the four numbers 4, 8, 15, and 16, the sample standard deviation is 5.7373 and the population standard deviation is 4.9687. With small samples like this, the n minus 1 correction has its largest effect because dividing by 3 instead of 4 changes the result significantly. As your dataset grows, the difference between the two formulas shrinks.

Standard deviation is most useful when you know how to read it. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. In the test score example using 72, 85, 90, 85, and 68, the mean is 80 and the population standard deviation is 8.4617. That tells you most students scored within roughly 8.5 points of the average. The sample standard deviation for the same scores is 9.4604, which is the value you would use if those five scores were drawn from a larger population of test takers.

How to use this standard deviation calculator

Using this standard deviation calculator takes three steps. First, choose the count — the number of values you plan to enter. You can enter up to eight numbers, so set the count anywhere from one to eight depending on your dataset. Second, type each number into its field. Third, read the results: the sample standard deviation appears as the headline number, with the population standard deviation shown beneath it. This layout reflects how most people use the tool, since a sample standard deviation is the more common result when working with a subset of data rather than an entire population.

Understanding the difference between the two outputs matters. Standard deviation measures spread around the mean, telling you how far your values typically fall from the average. Population standard deviation divides the sum of squared differences by n, which is the total number of values. Sample standard deviation divides by n minus 1 instead, a method called Bessel's correction. This correction corrects the bias that occurs when you estimate a population from a sample rather than measuring the full population. With small samples the n minus 1 correction matters most, because each value has a larger effect on the result.

To see how the inputs work, try the verified example using the numbers 10, 20, 30, 40, and 50. Set the count to 5 and enter each value. The calculator returns a mean of 30, a population standard deviation of 14.1421, and a sample standard deviation of 15.8114. The population variance is exactly 200 and the sample variance is 250, since variance is simply the standard deviation squared. Another verified example uses test scores of 72, 85, 90, 85, and 68, which produce a mean of 80, a population standard deviation of 8.4617, and a sample standard deviation of 9.4604.

A smaller dataset shows why the two results can differ more noticeably. For the four numbers 4, 8, 15, and 16, the sample standard deviation is 5.7373 and the population standard deviation is 4.9687. The gap between these two values is larger relative to the numbers themselves than in the five-value examples above, which illustrates why Bessel's correction has a bigger impact with fewer data points.

Once you have your result, a useful rule of thumb for roughly bell-shaped data is that about 68 percent of values fall within one standard deviation of the mean, 95 percent within two, and 99.7 percent within three. This gives you a quick way to judge whether your calculated standard deviation represents a tight or wide spread for your dataset.

Interpreting the result

When you use a standard deviation calculator, the number you get back measures how spread out your data is around the mean. A small standard deviation means the values cluster tightly around the average, while a large one means they are scattered more widely. Remember that population standard deviation divides the sum of squared differences by n, while sample standard deviation divides by n - 1 (Bessel's correction), which corrects the bias when you are estimating a population from a sample. This distinction matters most with small samples — for example, the four numbers 4, 8, 15, 16 have a sample SD of 5.7373 and a population SD of 4.9687, a noticeable gap.

For data that is roughly bell-shaped, the 68-95-99.7 rule gives you a quick way to interpret the result. About 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. Take the test scores 72, 85, 90, 85, 68: the mean is 80 and the population SD is 8.4617 (sample SD is 9.4604). Using the population figure, roughly 68% of scores should fall between about 71.5 and 88.5. The first data set — 10, 20, 30, 40, 50 — has a mean of 30 and a population SD of 14.1421 (sample SD is 15.8114), so about 68% of values should fall between roughly 15.9 and 44.1.

Comparing spread across groups with different means can be misleading if you look at standard deviation alone. A standard deviation of 10 means something very different for a mean of 200 than for a mean of 5. The coefficient of variation — the standard deviation divided by the mean — puts spread on a relative scale so you can compare variability across data sets measured in different units or operating at very different magnitudes.

One limitation to keep in mind: standard deviation tells you how much data spreads around the mean, but it says nothing about whether that data is skewed. Two data sets can have the same standard deviation yet very different shapes — one symmetric and bell-like, another with a long tail on one side. The standard deviation treats every deviation from the mean the same way, so it cannot reveal asymmetry on its own. Always check a histogram or plot alongside the number your calculator returns.

FAQs

What is the standard deviation of 10, 20, 30, 40, 50?

The mean is 30. The population standard deviation is 14.1421, and the sample standard deviation is 15.8114. Use the population value when those five numbers are your entire dataset; use the sample value when they represent a subset of a larger group you want to estimate.

When should I use sample vs population standard deviation?

Use population standard deviation when your data is the entire group of interest. Use sample standard deviation when your data is a subset used to estimate a larger group. The sample version is the common case for experiments and surveys because you are usually generalizing from collected data to a broader population.

Why does the sample formula divide by n - 1?

This is called Bessel's correction. A sample tends to sit closer to its own mean than to the population mean, so dividing by n would understate the spread. Dividing by n - 1 instead corrects this bias and gives a more accurate estimate of the true population standard deviation.

What is the difference between variance and standard deviation?

Variance is the standard deviation squared and is measured in squared units, which can be hard to interpret. Standard deviation is expressed in the original units of your data, making it easier to understand and compare directly with the mean.

Can standard deviation be zero?

Yes. When every value in your dataset is identical, there is no spread at all, so the standard deviation is zero. Any nonzero value means the data points differ from each other by some amount.

What does a standard deviation of 9.46 mean for test scores averaging 80?

Typical scores sit about 9.46 points from the mean of 80. Roughly two-thirds of scores would fall between about 71 and 89 if the distribution is bell-shaped. This gives you a quick sense of how tightly clustered the scores are around the average.

Sources

Related calculators

Average Calculator
Mean, median, mode, range, sum and count for 2 to 8 numbers — the full descriptive-statistics starter set in one pass.
Percentage Calculator
Four percentage jobs in one tool: X% of Y, X as a % of Y, percentage change, and increasing or decreasing a number by a percent.
Probability Calculator
Two independent events, every combination: both happen, at least one, exactly one, or neither — from the two individual probabilities.