Standard Deviation Calculator

Find the standard deviation of a data set, with every step shown.

Standard Deviation Calculator tool

Separate numbers with commas, spaces or new lines

Your data is a
—
Standard deviation
—
Variance
—
Mean
—
Count (n)
—
Population SD (n)
—
Sample SD (n − 1)

About the Standard Deviation Calculator

Two classes can have the same average mark but very different spreads, and the standard deviation measures that spread. This standard deviation calculator takes any list of numbers and returns both the sample and population standard deviation with the variance, mean and sum of squares. For the data 2, 4, 4, 4, 5, 5, 7, 9 the population SD is exactly 2 and the sample SD about 2.14.

The calculation has four steps: find the mean, subtract it from every value, square those deviations and add them up, then divide and take the square root. The population standard deviation divides by n, the number of values, and applies when your data is the entire group. The sample standard deviation divides by n − 1 instead, Bessel's correction, which makes it an unbiased estimate of the population's variance when your data is a sample drawn from a larger group.

Example: for 2, 4, 4, 4, 5, 5, 7 and 9, the mean is 5 and the squared deviations add up to 32. Dividing by n = 8 gives a population variance of 4 and a population standard deviation of exactly 2. Dividing by n − 1 = 7 gives a sample variance of about 4.571429 and a sample standard deviation of about 2.13809. In a normal distribution, about 68% of values lie within one standard deviation of the mean and 95% within two.

For the variance on its own see the variance calculator; to compare spread between data sets with different means, the coefficient of variation calculator; and to place one value in the distribution, the z-score calculator.

How to use the Standard Deviation Calculator

  1. Enter your dataType or paste numbers separated by commas, spaces or new lines.
  2. Choose sample or populationPick sample if your data is a sample from a larger group, population if it is the whole group.
  3. Read the standard deviationSee the chosen SD with the variance, mean, count and the other SD for comparison.
  4. Check the workingFollow the formula and the table of deviations and squared deviations.

Standard Deviation Calculator features

  • Sample (n − 1) and population (n) standard deviation
  • Variance, mean, count and sum
  • Sum of squared deviations
  • Step-by-step formula
  • Deviation table you can download as CSV
  • Paste data straight from a spreadsheet
  • Accurate two-pass calculation

Common uses

  • Statistics homework and exams
  • Lab measurements and repeat trials
  • Spread of test scores in a class
  • Volatility of returns in finance
  • Quality control and process variation

Standard deviation in practice: quality control, risk, weather and exam results

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Standard deviation measures how spread out values are around their mean. Two sets of numbers can share the same average and still behave very differently, and the standard deviation captures that difference in one figure. This guide shows how it is used in manufacturing, finance, weather and education, works through an example with filling machines, gives a quick way to estimate it and explains how to report it clearly.

Same average, different stories

Imagine two cities that both average 25 °C over a year. In one, temperatures stay between 20 and 30 degrees; in the other, they swing from 5 to 45. The averages match, but the second city has a much larger standard deviation, and that is what tells a visitor what clothes to pack. The same idea applies to delivery times, test scores and investment returns: the average alone hides how predictable things are.

A worked example: filling machines

A factory fills bags labelled 500 g. Machine A fills with an average of 505 g and a standard deviation of 2 g; Machine B has the same average but a standard deviation of 8 g. If fills follow a roughly normal distribution, the chance of a bag weighing under 495 g is about 0.6% for Machine A but about 27% for Machine B.

Both machines have the same average, yet Machine B would produce more than a quarter of its bags below 495 g, which could break labelling rules and annoy customers. Reducing the spread matters more here than changing the average.

Quality control

Manufacturers track the mean and standard deviation of measurements such as weights, lengths and strengths. Control charts mark limits at three standard deviations above and below the mean; a point outside those limits is unlikely by chance and signals a problem worth investigating. The "Six Sigma" approach to quality takes its name from standard deviation, sigma, and aims for processes so consistent that defects are extremely rare.

Risk in finance

In investing, the standard deviation of returns is a common measure of volatility. A fund whose yearly returns vary between 6% and 10% has a smaller standard deviation than one whose returns swing between −20% and +40%, even if both average the same. Higher volatility means a wider range of possible outcomes, which matters most for money you may need soon.

Comparing classes and tests

Teachers compare classes using both the mean and the standard deviation. A class with an average of 70 and a standard deviation of 5 has most students close together, while one with an average of 70 and a standard deviation of 15 has a wide mix of strong and struggling students. The second class may need more varied teaching, which the average alone would not reveal.

A quick estimate

For roughly bell-shaped data, the range divided by 4 gives a rough estimate of the standard deviation, because most values lie within about two standard deviations of the mean. If test scores run from about 40 to 100, the standard deviation is probably around 15. This is useful for spotting obvious errors in a calculated value.

Outliers and skewed data

Because deviations are squared, a few extreme values can inflate the standard deviation considerably. Salaries, house prices and website visit times often have long tails, so the standard deviation can make the data look more spread out than it is for most people. For such data, the interquartile range or the median absolute deviation may describe spread better.

Reporting it clearly

Report the standard deviation alongside the mean, such as "mean 505 g, SD 2 g", and say whether it is a sample or population figure when that matters. Use the same units as the data and a sensible number of decimal places. For readers unfamiliar with the term, adding a sentence such as "most bags weigh between 501 and 509 g" makes the figure meaningful.

Common mistakes

  • Reporting the mean without any measure of spread.
  • Mixing up sample and population standard deviations.
  • Treating standard deviation as the typical distance for heavily skewed data.
  • Forgetting that it shares the units of the data, unlike variance.

Related tools

For the squared measure of spread, use Variance Calculator. For relative spread, try Coefficient of Variation Calculator, and for outliers, Outlier Calculator.

Standard deviation in spreadsheets

Spreadsheets provide both versions of the standard deviation. In Excel and Google Sheets, =STDEV.S(range) gives the sample standard deviation, dividing by n − 1, and =STDEV.P(range) gives the population version, dividing by n. Older files may use STDEV and STDEVP, which mean the same things. Choosing the wrong function is a common reason why two people get slightly different answers from the same data.

When data is not bell-shaped

The familiar rule that about 95% of values lie within two standard deviations of the mean applies to roughly normal data. For any distribution at all, a weaker guarantee called Chebyshev's inequality still holds: at least 75% of values lie within two standard deviations, and at least 89% within three. That makes the standard deviation useful even for oddly shaped data, as long as you do not over-read it.

Limits

Calculations are exact for the data entered; interpreting the result with the normal distribution assumes roughly bell-shaped data.

Frequently asked questions

What is standard deviation?

A measure of how far values typically are from the mean. It is the square root of the variance, the average squared deviation. A standard deviation of 0 means every value is identical.

What is the difference between sample and population standard deviation?

Population standard deviation divides the sum of squared deviations by n and describes a complete group. Sample standard deviation divides by n − 1 to correct for estimating from a sample, so it is slightly larger.

How do I calculate standard deviation by hand?

Find the mean, subtract it from each value, square the results, add them, divide by n (population) or n − 1 (sample), and take the square root. The working table here shows each step.

Why divide by n − 1 for a sample?

A sample's own mean is closer to its values than the true population mean is, so squared deviations from it are too small on average. Dividing by n − 1 instead of n, Bessel's correction, removes that bias in the variance.

What does a large standard deviation mean?

That the values are widely spread around the mean. Whether it counts as large depends on the scale: a standard deviation of 5 is big for test scores out of 20 but small for house prices.

What is the 68-95-99.7 rule?

For data that follow a normal distribution, about 68% of values lie within one standard deviation of the mean, 95% within two and 99.7% within three. It is a quick way to judge what counts as unusual.

Can standard deviation be negative?

No. It is the square root of an average of squared numbers, so it is always zero or positive. It is zero only when all the values are equal.