How to Calculate Standard Deviation (Sample vs Population)

RunFreeTools TeamJun 15, 20263 min read

Standard deviation tells you how spread out your numbers are: a small value means they cluster near the average, a large one means they vary widely. The tricky part is choosing between the sample and population formulas, which divide by different amounts. This guide explains both clearly and walks you through the Standard Deviation Calculator, which gives you sample and population standard deviation, variance, mean and count at once. It is free, accurate and private, running in your browser.

What standard deviation measures

Standard deviation is the average distance of your values from their mean. You calculate it in steps:

  1. Find the mean (average) of all values.
  2. Subtract the mean from each value and square the result.
  3. Add up those squared differences.
  4. Divide by N for a population, or by N minus 1 for a sample (this is the key difference).
  5. Take the square root.

The division step is what separates the two formulas. Population standard deviation divides by N, while sample standard deviation divides by N minus 1, which slightly increases the result to correct for the bias of estimating from a sample.

Sample vs population: which to use

Choosing the right formula matters:

  • Use population standard deviation when your data is the entire group you care about, for example every student in one class. Divide by N.
  • Use sample standard deviation when your data is a sample drawn from a larger population you want to infer about, for example 50 customers out of thousands. Divide by N minus 1.

Most real-world statistics use the sample formula, because you rarely have the whole population. Dividing by N minus 1 (Bessel's correction) gives an unbiased estimate of the true population spread. The calculator shows both, so you can pick the correct one.

How to use the Standard Deviation Calculator

Get your results in seconds:

  1. Open the Standard Deviation Calculator.
  2. Paste or type your numbers, separated by commas, spaces or new lines.
  3. Read the sample standard deviation, population standard deviation, variance, mean and count.

There is no need to choose a formula in advance; both are shown. Just use whichever fits your situation, and the variance and mean are there for context.

A worked example

Take the data set 2, 4, 4, 4, 5, 5, 7, 9.

  • Mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 5.
  • Squared differences: 9, 1, 1, 1, 0, 0, 4, 16, which sum to 32.
  • Population variance: 32 / 8 = 4, so population SD = 2.
  • Sample variance: 32 / 7 = 4.571, so sample SD = about 2.14.

The sample value is slightly larger because it divides by 7 instead of 8. The calculator reports SD = 2 (population) and about 2.14 (sample).

Use cases

Standard deviation is used across many fields:

  • Science: reporting measurement variability and error bars
  • Finance: measuring the volatility and risk of returns
  • Quality control: monitoring how consistent a process is
  • Education: understanding the spread of test scores
  • Sports and research: comparing consistency across data sets

For a quick average without the spread, the Average Calculator is faster, and the Scientific Calculator helps with the square-root step by hand. Browse more in calculators.

Tips and privacy

Avoid common errors:

  • Pick the right formula. Using population SD on a sample understates the true spread.
  • Do not confuse variance and standard deviation; SD is the square root of variance, in the same units as your data.
  • Clean your data first; stray text or blank entries can skew results.

The Standard Deviation Calculator runs entirely in your browser, so your data is never uploaded or stored, keeping sensitive numbers private. It is free with no sign-up. Bookmark the Standard Deviation Calculator. See all tools for more.

Try the tool from this guide

Standard Deviation Calculator

Sample & population standard deviation.

Open Standard Deviation Calculator

Frequently asked questions

Is the standard deviation calculator free?

Yes. It is completely free with no sign-up. Paste your numbers and instantly get sample and population standard deviation, variance, mean and count.

Is it private?

Yes. The calculator runs entirely in your browser, so your data is never uploaded or stored. Sensitive numbers stay on your device.

What is the difference between sample and population standard deviation?

Population standard deviation divides by N and is used when your data is the whole group. Sample standard deviation divides by N minus 1 and is used when your data is a sample from a larger population.

Should I use sample or population?

Use the sample formula in most cases, since you usually have a sample rather than the entire population. The calculator shows both so you can choose correctly.

Is variance the same as standard deviation?

No. Variance is the average squared difference from the mean. Standard deviation is the square root of variance, expressed in the same units as your original data.

Share this article

Send it to a teammate or save the link for later.

Related tools

A mailbox receiving new tools, guides and feature updates

New tools, straight to your inbox

A short note whenever we ship a new free tool or guide. No spam, unsubscribe in one click.

  • No spam
  • Unsubscribe anytime
  • Your email is safe
3min left