Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Standard deviation calculator

Paste a list of numbers to get the sample and population standard deviation, the variance, and every step of the working in a table.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Turn a value into a percentile with the z-score calculator, or get quartiles, outliers and a box plot from the statistics calculator.

How standard deviation is calculated

  1. Find the mean: add the numbers and divide by how many there are (n).
  2. Subtract the mean from each number, and square each result.
  3. Add the squares. This total is the sum of squares, SS.
  4. Divide SS by n − 1 for a sample, or by n for a whole population. That's the variance.
  5. Take the square root of the variance.
s = √( Σ(x − x)² ÷ (n − 1) ) σ = √( Σ(x − μ)² ÷ n )

Worked example

Take 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and n is 8, so the mean is 5. The squared distances from 5 are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to SS = 32.

  • Population: 32 ÷ 8 = 4, and √4 = σ = 2.
  • Sample: 32 ÷ 7 = 4.5714, and √4.5714 = s ≈ 2.1381.
  • Standard error of the mean: 2.1381 ÷ √8 ≈ 0.7559.

Sample or population?

Use the sample standard deviation when your numbers are a sample from a bigger group, such as 30 customers out of thousands. That covers most real data. Dividing by n − 1 instead of n (Bessel's correction) makes the variance unbiased, so the estimate isn't too small on average. Use the population version only when you have every member of the group, like the scores of every student in one class.

Standard deviation vs. standard error

The standard deviation describes how spread out the individual values are. The standard error, s ÷ √n, describes how precisely you know the mean. It shrinks as you collect more data, while the standard deviation doesn't. The 95% margin shown uses the t distribution with n − 1 degrees of freedom, the same as the confidence interval calculator.

When it doesn't tell the whole story

  • Standard deviation is sensitive to outliers: one extreme value can inflate it a lot. The interquartile range in the statistics calculator is more robust.
  • The "68% within one standard deviation" rule holds only for roughly bell-shaped data.
  • Numbers with a comma as the decimal mark (3,5) are read as two numbers. Use a point (3.5).

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 2, 4, 4, 4, 5, 5, 7, 9: sample s = 2.138089935 ✓
  • Same list, population σ = 2 ✓
  • Standard error of the mean = 0.75592895 ✓
  • Numbers on new lines: 10, 20, 30 gives s = 10 ✓
  • A single number has no sample SD ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

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

The sample version divides the sum of squares by n − 1, the population version by n. The sample one is slightly larger, and it's the right choice when your data is a sample from a bigger group.

Why divide by n − 1?

The sample mean sits closer to your data than the true mean does, so squared distances from it come out too small. Dividing by n − 1 instead of n corrects for that on average.

Is variance the same as standard deviation?

No. Variance is the standard deviation squared. Its units are squared too (dollars², cm²), which is why the standard deviation is easier to interpret.

What is a good standard deviation?

There's no universal good value. Compare it to the mean: the coefficient of variation (SD ÷ mean) shows the spread as a percent, so you can compare data on different scales.

How do I find standard deviation in Excel?

Use =STDEV.S(range) for a sample and =STDEV.P(range) for a population. They match the s and σ shown here.

Related calculators