Standard Deviation Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free standard deviation calculator. Get sample and population standard deviation, variance, mean and standard error, with a step-by-step table.

Sample SD (s)
0
Population SD (σ)
0
Sample variance (s²)
0
Population variance (σ²)
0
Mean
0
Count
0
Standard error
0
Coefficient of variation
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the standard deviation calculator

  1. Paste or type your numbers, separated by commas, spaces, tabs or new lines. A column copied from a spreadsheet works.
  2. Read the results. The standard deviation calculator shows the sample standard deviation (s), the population standard deviation (σ), both variances, the mean, the count, the standard error and the coefficient of variation.
  3. Check the working. A table lists each value, its distance from the mean and that distance squared, which is exactly the working a teacher or examiner wants to see.

Non-numbers are skipped and listed, so a heading or a stray word won't distort the results.

What standard deviation means

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means most values are close to the average; a large one means they're scattered.

Two classes can both average 70% on a test. In one, everyone scored between 65 and 75; in the other, scores ranged from 30 to 100. Same mean, very different stories. The standard deviation captures that difference in a single number, in the same units as the data.

How it's calculated

  1. Find the mean: add the numbers and divide by the count.
  2. For each value, subtract the mean to get its deviation.
  3. Square each deviation, so negatives don't cancel positives.
  4. Add up the squared deviations (the sum of squares).
  5. Divide by n for the population variance, or by n − 1 for the sample variance.
  6. Take the square root to get the standard deviation.

For 4, 8, 6, 5, 3, 7, 9, 6:

  • The mean is 48 ÷ 8 = 6.
  • The deviations are −2, 2, 0, −1, −3, 1, 3, 0.
  • Squared: 4, 4, 0, 1, 9, 1, 9, 0, which add up to 28.
  • Sample variance: 28 ÷ 7 = 4, so the sample standard deviation is 2.
  • Population variance: 28 ÷ 8 = 3.5, so σ = 1.871.

Sample or population?

This is the question that trips most people up.

Use the population standard deviation (σ, divide by n) when your numbers are the entire group you care about: every employee's salary in your company, every game a team played this season, the whole class's test scores when you only care about this class.

Use the sample standard deviation (s, divide by n − 1) when your numbers are a sample from a bigger group and you want to estimate the spread of that bigger group: 50 customers surveyed out of thousands, 30 bolts tested from a production run, a clinical trial's patients.

Dividing by n − 1 (Bessel's correction) makes the sample variance an unbiased estimate of the population variance. A sample tends to cluster a little closer to its own mean than to the true population mean, so dividing by n would underestimate the spread.

When in doubt, use the sample standard deviation: most real-world data is a sample. In Excel, STDEV.S is the sample version and STDEV.P the population version; the standard deviation calculator gives both, and its results match Excel's.

Variance

Variance is the standard deviation squared. It's used inside many statistical methods because variances of independent things add up neatly, but it's in squared units (pounds squared, seconds squared), which is hard to picture. That's why people usually report the standard deviation instead.

Standard error

The standard error of the mean (SE = s ÷ √n) measures how precisely your sample mean estimates the population mean. It shrinks as the sample gets bigger: quadruple the sample and the standard error halves.

Standard deviation describes the spread of individual values; standard error describes the uncertainty in the average. To turn the standard error into a range, such as "the true mean is between 45.9 and 54.1 with 95% confidence", use the confidence interval calculator.

Coefficient of variation

The coefficient of variation (CV) is the standard deviation divided by the mean, as a percentage. It lets you compare spread between things measured on different scales. A standard deviation of 5 means a lot for values around 10 (CV 50%), and very little for values around 1,000 (CV 0.5%). It only makes sense for data measured from a true zero, like weights or prices, not temperatures in Celsius.

The 68–95–99.7 rule

For data that follows a normal (bell-shaped) distribution:

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

So if adult heights in a group average 170 cm with a standard deviation of 7 cm, roughly 95% of people are between 156 and 184 cm. To find exactly where a single value sits, convert it to a z-score with the z-score calculator.

Where standard deviation is used

  • Quality control: a machine filling 500 g bags with a standard deviation of 2 g is far more consistent than one with 10 g.
  • Finance: the standard deviation of returns is the usual measure of an investment's volatility, or risk.
  • Education: comparing how consistent results are across classes or years.
  • Science: reporting measurement precision, and in nearly every statistical test.
  • Business: spotting unusual days in sales or traffic, and planning stock with safety stock based on how much demand varies.
  • A/B testing and surveys: the spread of results decides how big a sample you need. See the sample size calculator.

Tips

  • One value has no spread. The sample standard deviation needs at least two numbers.
  • Outliers matter a lot. Because deviations are squared, a single extreme value can inflate the standard deviation. Check the largest squared deviations in the table.
  • Report it with the mean, as "mean 22.0, SD 2.58", and say which kind you used.
  • Don't round early. The standard deviation calculator keeps full precision through every step.

Privacy and accuracy

Your numbers never leave your browser. The standard deviation calculator uses the two-pass method (the mean first, then the squared deviations), which avoids the rounding errors of the one-pass shortcut formula, and no AI is involved, so the same data always gives the same answer. Students, researchers, analysts and quality managers use it on any device, free.

Standard deviation in spreadsheets and calculators

To check results elsewhere:

  • Excel and Google Sheets: STDEV.S (sample) and STDEV.P (population); VAR.S and VAR.P for variance.
  • Scientific calculators: usually labelled sx (sample) and σx (population).
  • Python: statistics.stdev (sample) and statistics.pstdev (population).

The standard deviation calculator gives both, so you can match whichever your course or software uses.

Spotting outliers

A common rule flags values more than 3 standard deviations from the mean as possible outliers. With a mean of 22 and a standard deviation of 2.58, anything below about 14.3 or above 29.7 would stand out. Another rule uses quartiles instead (values more than 1.5 × the interquartile range beyond Q1 or Q3), which isn't thrown off by the outliers themselves. Check an outlier before removing it: it might be a typing mistake, or the most interesting value in the data.

A worked example

A coffee roaster weighs ten bags from a run labelled 22 g single servings: 18, 22, 25, 19, 21, 24, 20, 23, 26, 22. She pastes them into the standard deviation calculator.

The mean is exactly 22 g, which matches the label. The sum of squared deviations is 60, so the sample variance is 60 ÷ 9 = 6.67 and the sample standard deviation is 2.58 g. The coefficient of variation is about 11.7%.

Using the 68–95–99.7 rule, about 95% of bags fall within 2 × 2.58 = 5.16 g of 22, roughly 17 to 27 g. That's too wide for a product sold by weight: some customers get almost a fifth less than they paid for. She recalibrates the filler and runs the test again until the standard deviation is under 0.5 g.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Frequently asked questions

What's the difference between sample and population standard deviation?

Population standard deviation divides by n and describes a complete group. Sample standard deviation divides by n − 1 and estimates the spread of a larger group from a sample. The standard deviation calculator shows both.

How do I calculate standard deviation by hand?

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

What is a good standard deviation?

There's no universal "good" value. It depends on the scale and what you need. Compare it with the mean (the coefficient of variation) or with a tolerance you've set.

Does it match Excel?

Yes. Sample SD matches STDEV.S and population SD matches STDEV.P.

Can standard deviation be negative?

No. It's a square root of an average of squares, so it's zero or positive. Zero means every value is the same.

Is the standard deviation calculator free?

Yes, completely free, with no sign-up.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep