Standard Deviation Calculator

Find the sample or population standard deviation, variance, mean and standard error of any data set, with every step of the working shown.

Updated November 2026 · Free, no signup · Educational estimate, not professional advice

Standard deviation calculator

This free standard deviation calculator finds the sample or population standard deviation of any list of numbers, together with the variance, mean, count, sum, standard error, range and coefficient of variation. Paste or type your data separated by commas, spaces or line breaks, choose whether it is a sample or a whole population, and press calculate. For data sets of up to 40 values the calculator also shows a step-by-step table with every deviation from the mean and every squared deviation, so you can follow the working or check your homework by hand.

How to use the standard deviation calculator

  1. Enter your numbers. Type them or paste a column from Excel or Google Sheets. Commas, spaces, tabs, semicolons and new lines all work as separators, and negative numbers and decimals are fine.
  2. Choose sample or population. Pick Sample if your numbers are a subset drawn from a larger group (the usual case in surveys, experiments and homework). Pick Population if your numbers include every member of the group you care about.
  3. Pick the decimal places you want in the answer.
  4. Press calculate. The result shows the standard deviation in large type, then the variance, mean and other statistics. The other version of the standard deviation is shown underneath, so you can see both at once.

Standard deviation formulas

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values cluster tightly around the average; a large one means they are scattered widely. There are two formulas, and the only difference is the number you divide by.

You may also find our Ratio Calculator useful.

Population standard deviation: σ = √[ Σ(x - μ)² / N ]
Sample standard deviation: s = √[ Σ(x - x̄)² / (n - 1) ]

Here x is each value, μ (mu) is the population mean, x̄ (x-bar) is the sample mean, N is the population size, n is the sample size, and Σ means "add up". Variance is the same calculation without the square root: it is the standard deviation squared.

Worked example

Take the default data in the calculator: 10, 12, 23, 23, 16, 23, 21, 16.

  1. Find the mean. The sum is 144 and there are 8 values, so the mean is 144 / 8 = 18.
  2. Subtract the mean from each value: -8, -6, 5, 5, -2, 5, 3, -2.
  3. Square each deviation: 64, 36, 25, 25, 4, 25, 9, 4.
  4. Add the squares: the sum of squares is 192.
  5. Divide. For a population, 192 / 8 = 24. For a sample, 192 / 7 = 27.4286. This is the variance.
  6. Take the square root. Population standard deviation = √24 = 4.899. Sample standard deviation = √27.4286 = 5.2372.

The calculator reproduces these steps in its table, which is the fastest way to find where a hand calculation went wrong.

Sample vs population standard deviation: which one should I use?

This is the question that trips up most students. Use the population formula only when your data contains every member of the group you want to describe: every employee in a 12-person company, every test score in your own class when you only care about that class, or every day's sales in a month you are reporting on. Use the sample formula when your data is a selection from something bigger and you want to estimate the spread of that bigger group: 50 customers surveyed out of thousands, 20 parts pulled from a production line, or 30 plants measured in a field trial.

Dividing by n - 1 instead of n is called Bessel's correction. A sample tends to sit closer to its own mean than to the true population mean, so dividing by n would underestimate the spread. Dividing by the slightly smaller n - 1 corrects for that bias. With large samples the difference becomes tiny; with 5 values it is about 12%.

SamplePopulation
Symbolsσ (sigma)
Divide byn - 1N
Excel functionSTDEV.SSTDEV.P
Google SheetsSTDEVSTDEVP
TI-84 outputSxσx
When to useData is a subset; you are estimatingData is the entire group

If you are not sure, the sample formula is the safer default. Most statistics courses, research papers and software use it unless told otherwise.

What does standard deviation tell you?

On its own, a standard deviation is just a number in the same units as your data. It becomes meaningful when you compare it with the mean or with another data set. Two classes can both average 75% on a test, but if one has a standard deviation of 4 points and the other 15 points, the first class performed very consistently while the second has students who aced it and students who struggled.

The 68-95-99.7 rule

When data follows a roughly bell-shaped normal distribution, standard deviation tells you where most values fall:

  • About 68% of values lie within 1 standard deviation of the mean.
  • About 95% lie within 2 standard deviations.
  • About 99.7% lie within 3 standard deviations.

Adult male height in the US, for example, has a mean of about 69 inches and a standard deviation of about 3 inches, so roughly 68% of men are between 66 and 72 inches tall and 95% are between 63 and 75 inches. The calculator shows these 1 and 2 standard deviation ranges for your own data.

Z-scores

A z-score tells you how many standard deviations a value sits from the mean: z = (x - mean) / standard deviation. A test score of 88 in a class with a mean of 76 and a standard deviation of 6 has a z-score of 2, which puts it in roughly the top 2.5% of a normal distribution. Z-scores let you compare results on different scales, such as an SAT score and an ACT score.

Variance, standard error and coefficient of variation

  • Variance is the average squared deviation, the step just before the square root. It is used in many statistical formulas because variances add up neatly, but its units are squared (dollars squared, inches squared), which is why the standard deviation is easier to interpret.
  • Standard error of the mean (SEM) = standard deviation / √n. It measures how precisely your sample mean estimates the true mean. Standard deviation describes the spread of individual values; standard error describes the uncertainty of the average. Bigger samples shrink the standard error but not the standard deviation.
  • Coefficient of variation (CV), also called the relative standard deviation (RSD) = standard deviation / mean × 100%. It expresses spread relative to the average, so you can compare variability between data sets with different units or very different means. A CV of 5% is very consistent; 50% is highly variable.
  • Range = maximum - minimum. It is quick but sensitive to a single extreme value, which is why statisticians prefer the standard deviation.

Standard deviation in Excel, Google Sheets and on a calculator

  • Excel: =STDEV.S(A1:A20) for a sample, =STDEV.P(A1:A20) for a population. The older STDEV and STDEVP functions still work. Variance is =VAR.S or =VAR.P.
  • Google Sheets: =STDEV(A1:A20) for a sample and =STDEVP(A1:A20) for a population.
  • TI-83/84: enter the data in L1 with STAT > Edit, then STAT > CALC > 1-Var Stats. Sx is the sample standard deviation and σx the population one.
  • Casio scientific calculators: switch to STAT mode, enter the values, and read s (or xσn-1) for a sample and σ (or xσn) for a population.

If your calculator and this page disagree, the most common reason is that one is using the sample formula and the other the population formula. Compare both numbers shown in the result.

Mean and standard deviation calculator for any data set

Because the mean is the first step of every standard deviation, this tool doubles as a mean and standard deviation calculator: one click gives the average and the spread together, which is exactly how results are reported in lab reports and research papers ("mean 18.0, SD 5.24"). If you only need the average, median and mode, the average calculator is simpler. If you are working from a frequency table rather than a raw list, type each value as many times as it appears, or follow the grouped data method in our step-by-step guide.

Students using a TI-84 or a Casio can use this page to check their calculator's 1-Var Stats output: Sx on the TI-84 matches the sample result here, and σx matches the population result.

Real-world uses of standard deviation

  • Investing: the standard deviation of annual returns is the standard measure of volatility. A fund with a 20% standard deviation swings much more than one with 8%.
  • Manufacturing and quality control: Six Sigma programs aim to keep defects more than six standard deviations from the mean, which works out to a few defects per million.
  • Education: standardized tests are scaled with known means and standard deviations. IQ tests, for example, use a mean of 100 and a standard deviation of 15.
  • Science and medicine: results are reported as mean ± standard deviation so readers can see how much individual measurements varied.
  • Weather: forecasters compare a month's temperature with the long-term average and its standard deviation to decide whether it was unusual.
  • Sports: a player whose scoring has a low standard deviation is more consistent than one with the same average but a high standard deviation.

Common mistakes

  • Using the wrong formula. Check whether your teacher or textbook wants the sample (n - 1) or population (N) version.
  • Forgetting to square the deviations. The deviations from the mean always add up to zero, which is why they are squared first.
  • Forgetting the square root. Stopping one step early gives the variance, not the standard deviation.
  • Rounding the mean too early. Keep full precision through every step and round only the final answer.
  • Mixing up standard deviation and standard error. They answer different questions, as explained above.

Need the mean, median and mode as well? The average calculator finds all of them, plus weighted averages. To turn scores into percentages, use the percentage calculator, and for class marks the grade calculator. For the full method with more practice problems, read how to calculate standard deviation.

About this calculator and your privacy

This calculator runs entirely in your web browser. The numbers you type are never sent to a server, stored or shared, and you do not need an account. Results update when you press the calculate button, and the reset button clears them. We review the formulas whenever published guidelines or tax figures change, and the page was last reviewed in November 2026. If you spot a number that looks wrong, or would like another feature added, please contact us and include your inputs so we can reproduce the issue. Remember that every calculator is a simplification of real life: treat the output as a starting point for planning and check important decisions with a qualified professional.

Frequently asked questions

How do you calculate standard deviation?

Find the mean, subtract it from each value, square each result, add the squares, divide by n - 1 for a sample (or N for a population), then take the square root.

What is the difference between sample and population standard deviation?

The population formula divides the sum of squared deviations by N, the number of values. The sample formula divides by n - 1, which corrects for the fact that a sample underestimates the spread of the larger group.

Should I use STDEV.S or STDEV.P in Excel?

Use STDEV.S when your data is a sample from a larger group and STDEV.P when it includes the entire population. If unsure, STDEV.S is the usual choice.

What is a good standard deviation?

There is no universal good value. It depends on the mean and context. The coefficient of variation (standard deviation divided by the mean) helps: under about 10% is usually considered low variability.

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 every value is identical.

What is the relationship between variance and standard deviation?

Standard deviation is the square root of the variance. Variance is in squared units, while standard deviation is in the same units as the data.

What does a high standard deviation mean?

It means the values are spread far from the mean, so individual results vary a lot. A low standard deviation means values are close to the average.

This standard deviation calculator is an educational tool. Results are computed in your browser with standard formulas; check important statistical work, such as research, quality control or exam answers, against your course method or statistical software.