๐Ÿ‡บ๐Ÿ‡ธ USC
Math & Conversion
๐Ÿ“ˆ

Standard Deviation Calculator

Sample & population standard deviation, variance and mean

๐Ÿ“ˆ Enter your data set

Try:

Use Sample when your numbers are a subset drawn from a larger group, and Population when they represent every member of the group.

๐Ÿ“Š Sample standard deviation

5.2372
s (sample SD)

Variance (sยฒ) = 27.4286

๐Ÿงฎ All statistics

Count (N)
8
Sum (ฮฃx)
144
Mean (xฬ„)
18
Median
18.5
Sample SD (s)
5.2372
Population SD (ฯƒ)
4.899
Sample variance (sยฒ)
27.4286
Population variance (ฯƒยฒ)
24
Minimum
10
Maximum
23
Range
13
Coeff. of variation
29.1%

๐Ÿ“‹ Step-by-step

  1. 1. Find the mean. Add all 8 values to get ฮฃx = 144, then divide by 8: xฬ„ = 144 รท 8 = 18.
  2. 2. Subtract the mean and square each result. For every value x, compute (x โˆ’ xฬ„)ยฒ. The table below lists each one.
  3. 3. Add the squared deviations. ฮฃ(x โˆ’ xฬ„)ยฒ = 192.
  4. 4. Divide to get the variance. Sample: divide by N โˆ’ 1 = 7: sยฒ = 192 รท 7 = 27.4286.
  5. 5. Take the square root. s = โˆš27.4286 = 5.2372.

๐Ÿ”ข Squared deviations

Value (x)x โˆ’ xฬ„(x โˆ’ xฬ„)ยฒ
10-864
12-636
23525
23525
16-24
23525
2139
16-24
ฮฃ0192

Results are computed in your browser. Sample standard deviation divides the sum of squared deviations by N โˆ’ 1 (Bessel's correction); population standard deviation divides by N.

โœ…

Last updated June 2026

Method: Standard textbook statistics. The mean is the sum divided by the count; variance is the average squared deviation from the mean; standard deviation is its square root. Sample figures use Bessel's correction (divide by N โˆ’ 1); population figures divide by N.

Included: Sample and population standard deviation, sample and population variance, mean, median, sum, count, minimum, maximum, range, coefficient of variation and a full squared-deviation table.

Not included: Frequency-weighted (grouped) data entry, confidence intervals, and inferential tests. Non-numeric entries are ignored automatically.

Standard deviation calculator: a complete guide

Standard deviation is the most widely used measure of how spread out a set of numbers is. Two classes can both average a 75% on a test, yet one class might have scores tightly bunched between 70 and 80 while the other ranges from 40 to 100. The averages hide that difference; the standard deviation reveals it. This calculator takes any list of numbers and instantly returns the sample and population standard deviation, both variances, the mean, and a step-by-step breakdown so you can see exactly where each figure comes from.

As a quick worked example, take the data set 10, 12, 23, 23, 16, 23, 21, 16. The mean is 18, the population standard deviation is about 4.90, and the sample standard deviation is about 5.24. The sample figure is slightly larger because it divides by N โˆ’ 1 instead of N - more on that below.

The standard deviation formula

Both formulas start the same way - by measuring how far each value sits from the mean, squaring those distances, and adding them up. The only difference is what you divide by:

Population: σ = √( Σ(x − μ)² ÷ N ) Sample: s = √( Σ(x − x̄)² ÷ (N − 1) )

Here x is each value, μ (or ) is the mean, N is the number of values, and Σ means "sum of." Variance is the same expression without the square root - so standard deviation is just the square root of the variance, and both are reported by the calculator.

Sample vs. population: which one do I use?

This is the question that trips people up most. The rule is simple:

  • Population (divide by N): use this when your data includes every member of the group you care about - for example, the test scores of all 8 students in a class when those 8 students are the entire population of interest.
  • Sample (divide by N โˆ’ 1): use this when your data is a subset drawn from a larger group, and you want to estimate the spread of that larger group - for example, 8 randomly chosen voters used to estimate a whole electorate.

When in doubt, most statistics courses and research default to the sample formula, because real data is almost always a sample of something bigger. That is why this calculator opens in sample mode.

Why divide by N โˆ’ 1? (Bessel's correction)

When you estimate a population's spread using only a sample, you have to use the sample mean rather than the true population mean. The sample mean always sits as close as possible to the sample's own values, which makes the deviations a touch too small and biases the variance downward. Dividing by N โˆ’ 1 instead of N nudges the result upward just enough to remove that bias. This adjustment is called Bessel's correction, and its effect shrinks as your sample grows: with 5 values the correction is large, but with 5,000 it is negligible.

How to use this calculator

  1. Enter your numbers in the box, separated by commas, spaces, or new lines. You can paste a column straight from a spreadsheet.
  2. Choose the data type - Sample (N โˆ’ 1) or Population (N) - using the toggle. The big headline result switches to match your choice.
  3. Read the headline figure at the top: that is the standard deviation for the mode you selected, with the variance just beneath it.
  4. Scan the statistics grid for the mean, median, sum, count, range, and both versions of the standard deviation and variance side by side.
  5. Follow the step-by-step and the squared-deviation table to see exactly how the answer was built - useful for homework you need to show work for.

The result updates instantly as you type, and any non-numeric text you accidentally include is ignored and flagged.

Who this calculator is for

  • Students checking statistics homework and needing to show each step of the working.
  • Teachers generating worked examples or verifying answer keys.
  • Researchers and analysts who want a fast spread figure without opening a spreadsheet.
  • Quality and process engineers tracking how consistent a measurement or output is.
  • Investors gauging the volatility (risk) of a series of returns.
  • Anyone who needs to know whether a set of numbers is consistent or all over the place.

Worked example 1: a small data set by hand

Take the classic set 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and there are 8 values, so the mean is 5. The deviations from the mean are โˆ’3, โˆ’1, โˆ’1, โˆ’1, 0, 0, 2, 4; squaring them gives 9, 1, 1, 1, 0, 0, 4, 16, which sum to 32. For the population, variance = 32 รท 8 = 4, so ฯƒ = โˆš4 = 2. For the sample, variance = 32 รท 7 โ‰ˆ 4.571, so s โ‰ˆ 2.138. Notice the sample figure is a little larger - exactly what Bessel's correction does.

Worked example 2: comparing two data sets

Imagine two employees' weekly sales. Alex sells 48, 52, 50, 49, 51 units; Sam sells 20, 80, 35, 70, 45. Both average 50 units a week. But Alex's sample standard deviation is about 1.58, while Sam's is about 24.7. Same average, wildly different consistency - the standard deviation is what tells you Alex is the steadier performer, a distinction the mean alone completely misses.

Worked example 3: spotting an outlier's effect

Start with 10, 11, 12, 13, 14 (mean 12, sample SD โ‰ˆ 1.58). Now swap the last value for an outlier: 10, 11, 12, 13, 114. The mean jumps to 32 and the sample standard deviation explodes to roughly 45.9. Because deviations are squared, a single far-off value has an outsized impact on the standard deviation - a key reason to inspect your data for typos and genuine outliers before trusting the figure.

The empirical rule (68-95-99.7)

For data shaped like a normal "bell curve," standard deviation has a handy interpretation. The reference table shows what share of values fall within a given number of standard deviations of the mean:

Range around the mean Approx. % of data Roughly 1 in โ€ฆ
x̄ ± 1 SD68.27%3 outside
x̄ ± 2 SD95.45%22 outside
x̄ ± 3 SD99.73%370 outside
x̄ ± 4 SD99.994%15,787 outside

So in normally distributed data, a value more than two standard deviations from the mean is uncommon (about 1 in 22), and one beyond three standard deviations is rare (about 1 in 370). To express exactly how many standard deviations any single value sits from the mean, convert it to a z-score with the Z-Score Calculator. The rule is an approximation and only holds for roughly bell-shaped data - skewed data needs other tools.

Key terms explained

  • Mean (x̄): the arithmetic average - the sum of all values divided by how many there are.
  • Deviation: how far a single value lies from the mean (x โˆ’ x̄). Deviations always sum to zero, which is why we square them.
  • Variance: the average of the squared deviations. It is in squared units.
  • Standard deviation: the square root of the variance, back in the original units.
  • Range: the gap between the largest and smallest value - a crude spread measure that ignores everything in between.
  • Coefficient of variation: the standard deviation as a percentage of the mean, useful for comparing data with different scales.

Standard deviation vs. other spread measures

Standard deviation is not the only way to describe spread, but it is usually the most useful. The range is simple but depends entirely on the two most extreme values. The interquartile range is robust to outliers but harder to compute by hand. Mean absolute deviation averages the unsigned distances from the mean and is more intuitive, but standard deviation's squaring step makes it mathematically convenient and the foundation of most statistical methods - which is why it dominates in practice.

Practical tips

  • Match the formula to the question. If you are describing the data you have in full, use population; if you are inferring something about a bigger group, use sample.
  • Keep the units in mind. Report standard deviation in the same units as your data and variance in squared units, and never mix them up.
  • Compare alongside the mean. A standard deviation of 5 is small for incomes but huge for shoe sizes - context is everything.
  • Use the coefficient of variation when comparing data sets measured on different scales.
  • Always eyeball the data first. A quick scan catches the outliers and typos that can wreck a standard deviation.

Related statistics calculators

This page answers "how spread out is my data?" For neighboring questions, a sister tool fits better:

Standard deviation in the real world

The reason standard deviation shows up everywhere is that "spread" is a universal question. A few of the fields that lean on it daily:

  • Finance and investing: standard deviation of returns is the standard measure of volatility, and therefore risk. A fund averaging 8% a year with an SD of 4% is far steadier than one averaging 8% with an SD of 20%, even though their returns match. Risk-adjusted measures such as the Sharpe ratio divide return by standard deviation to compare them fairly.
  • Manufacturing and quality control: "six sigma" literally refers to keeping defects more than six standard deviations from the mean. Control charts flag a process the moment a reading drifts beyond two or three SDs of the target, catching problems before they become scrap.
  • Education and testing: standardized exams report scores in standard deviations from the mean. An SAT or IQ result is often expressed as a z-score, which you can compute from the SD using the Z-Score Calculator.
  • Science and medicine: error bars on a chart are usually one standard deviation (or a standard error derived from it), and clinical reference ranges are commonly set at the mean plus or minus two standard deviations of a healthy population.
  • Weather and sports: "above-average rainfall" or a "career-best season" only carries meaning relative to the typical year-to-year spread, which is exactly what the standard deviation captures.

Standard deviation vs. standard error

These two terms are constantly confused, but they answer different questions. Standard deviation describes the spread of the individual data points you have - how scattered the actual numbers are. Standard error (more precisely, the standard error of the mean) describes how precise your estimate of the mean is, and it equals the standard deviation divided by the square root of the sample size. As you collect more data, the standard deviation stays roughly the same - it is a property of the data - but the standard error shrinks, because a larger sample pins down the average more tightly. When a report shows error bars, check the caption: bars of one standard deviation tell you about variability in the data, while bars of one standard error tell you about confidence in the average. This calculator reports the standard deviation; you can derive the standard error by dividing the sample SD by the square root of the count.

A quick note on rounding

Round only at the very end. If you round the mean before computing deviations, the small error is then squared and summed across every value, and it can noticeably shift the final standard deviation - especially with a small data set or a mean that is not a whole number. This calculator carries full precision internally and rounds only the displayed figures, so the step-by-step table may show neat rounded numbers while the headline result reflects the exact calculation. When you check work by hand, keep several decimal places on the mean and the squared deviations and round the standard deviation last.

Sources

โš ๏ธ Common mistakes & edge cases

Mixing up sample and population

Dividing by N when you should divide by N โˆ’ 1 (or vice versa) gives a different answer. For small data sets the gap is noticeable. Pick population only when your numbers truly cover the entire group; otherwise use sample.

Forgetting to square the deviations

If you simply average the raw deviations (x โˆ’ xฬ„) you always get zero, because positive and negative deviations cancel out. Squaring before summing is what makes the calculation work.

Reporting variance as standard deviation

Variance is in squared units and is usually much larger than the standard deviation. Remember the final step: take the square root of the variance to get the standard deviation in the original units.

Letting an outlier or typo distort the result

Because deviations are squared, one extreme value can dominate the standard deviation. A mistyped 1140 instead of 114 can multiply your result. Scan the data and confirm extreme values are real before trusting the figure.

Note: This calculator follows standard textbook definitions and is provided for general informational and educational purposes only - it is not professional statistical, financial, or other advice. Some software defaults to the population formula and others to the sample formula - check which one a tool uses before comparing results.

❓ Frequently asked questions

What is standard deviation?

Standard deviation measures how spread out a set of numbers is around their mean (average). A small standard deviation means the values cluster tightly around the mean; a large one means they are widely scattered. It is reported in the same units as the original data, which makes it easy to interpret.

What is the difference between sample and population standard deviation?

Population standard deviation (ฯƒ) divides the sum of squared deviations by N and is used when your data includes every member of the group. Sample standard deviation (s) divides by N โˆ’ 1 and is used when your data is only a subset drawn from a larger group. Dividing by N โˆ’ 1 (Bessel's correction) makes the sample value a better, slightly larger estimate of the true population spread.

Why does the sample formula divide by N minus 1?

When you estimate the spread of a population from just a sample, using the sample mean tends to make the deviations a little too small, which underestimates the true variance. Dividing by N โˆ’ 1 instead of N corrects this bias and gives an unbiased estimate of the population variance. This is known as Bessel's correction.

What is variance, and how is it related to standard deviation?

Variance is the average of the squared deviations from the mean. Standard deviation is simply the square root of the variance. Variance is in squared units (for example, dollars squared), while standard deviation is in the original units (dollars), which is why standard deviation is usually the easier figure to interpret.

How do I calculate standard deviation step by step?

First find the mean by adding all values and dividing by the count. Next subtract the mean from each value and square the result. Add up all of those squared deviations. Divide the total by N for a population or by N โˆ’ 1 for a sample to get the variance. Finally, take the square root of the variance to get the standard deviation.

Can standard deviation be negative?

No. Standard deviation is the square root of an average of squared numbers, so it is always zero or positive. It equals zero only when every value in the data set is identical, meaning there is no spread at all.

What does a standard deviation of zero mean?

A standard deviation of zero means there is no variation: every number in your data set is exactly the same. As soon as even one value differs from the others, the standard deviation becomes positive.

What units does standard deviation use?

Standard deviation is expressed in the same units as your original data. If you measure heights in centimeters, the standard deviation is also in centimeters. This is one reason it is preferred over variance, which is in squared units.

What is the empirical rule (68-95-99.7)?

For data that follows a roughly normal (bell-shaped) distribution, about 68% of values fall within one standard deviation of the mean, about 95% fall within two, and about 99.7% fall within three. This rule of thumb helps you judge how unusual a particular value is, but it only applies to approximately normal data.

What is the coefficient of variation?

The coefficient of variation (CV) is the standard deviation divided by the mean, expressed as a percentage. It lets you compare the relative spread of two data sets that have different units or very different averages, since it strips out the scale of the numbers.

๐Ÿ’ก Good to know

Standard deviation shares the units of your data

Unlike variance, which is in squared units, standard deviation is in the same units as the numbers you entered. That is why it is the figure most people quote when describing spread - it is directly comparable to the mean.

The N โˆ’ 1 difference fades with bigger samples

For tiny data sets, sample and population standard deviation differ noticeably. As the count grows into the hundreds or thousands, the two converge and the choice of formula barely matters.

Pair it with the mean for context

A standard deviation only means something next to the mean. Use the coefficient of variation - SD divided by the mean - when you need to compare the relative spread of data sets with different scales or units.

Related Calculators