Standard Deviation Calculator

–sample standard deviation
–population SD
–mean
–n · min-max
DatasetMeanSample SD (n−1)Population SD (n)
2, 4, 4, 4, 5, 5, 7, 952.1382.000
10, 12, 14, 16, 18143.1622.828
1, 2, 3, 4, 531.5811.414
100, 200, 300200100.00081.650
The grid is the calculator's own math on four worked examples - paste any of them above and the outputs land on these exact numbers. The sample-versus-population distinction it computes is defined the same way in NIST's engineering statistics handbook, the reference for when the n−1 divisor belongs in the denominator.

Standard deviation answers the question averages hide: how spread out is the data? Two classes can both average 75 while one has everyone at 74-76 and the other ranges from 40 to 100 - the mean is identical, the standard deviations are worlds apart. Paste numbers separated by spaces, commas or new lines and this calculator returns the sample SD (the n-1 figure for data drawn from a bigger population), the population SD (when your data is everyone), the variance both ways, the mean, and the range.

The n-1 versus n choice is where most homework loses marks, so the note line states which divisor produced each number and when to use it: sample data reports n-1, a complete population reports n. Results are rounded to six decimals, datasets are remembered between visits, and it pairs with the average calculator for the rest of the summary statistics.

How to use

  1. Paste or type your numbers - any mix of spaces, commas and line breaks.
  2. Read sample SD, population SD, mean, variance and range instantly.
  3. Check the note for which divisor applies to your data before reporting.

Frequently asked questions

What is standard deviation?

The typical distance of data points from the mean. It is calculated as the square root of variance - the average of squared deviations - which restores the original units. Low SD means values cluster tight; high SD means they spread wide. For the dataset 2, 4, 4, 4, 5, 5, 7, 9 the sample SD is about 2.138.

When do I use sample (n-1) versus population (n)?

Use n-1 when your numbers are a sample estimating a larger population - Bessel's correction compensates for the sample mean underestimating spread. Use n only when you truly have every member: all of a class, a complete production run. When unsure with sampled data, the n-1 sample SD is the defensible default.

What is variance and how does it relate?

Variance is standard deviation squared - the same spread measured in squared units. The calculator shows both: variance feeds other statistics (tests, ANOVA), while SD is the one you quote because its units match the data - centimeters, dollars, points.

Does this handle negative and decimal numbers?

Yes - any finite numbers parse, including negatives and decimals, in any order. Tokens that are not numbers are ignored rather than breaking the run, so a stray label in pasted spreadsheet data will not sabotage the calculation.

What does a standard deviation actually tell me?

It is the typical distance from the average. A class averaging 75 with an SD of 4 is fifteen near-identical scores; the same 75 with an SD of 18 is a bimodal mess where the average describes nobody. Same mean, completely different story - the SD is the story.

Can the standard deviation be negative or zero?

Zero is possible and means every value is identical - no spread at all. Negative is impossible, because squared deviations cannot be negative; if your result comes out negative you squared the wrong term or divided by the wrong count somewhere upstream.

How many numbers do I need for a meaningful SD?

Mathematically two; statistically, more. Below about ten values the sample SD is noisy - one outlier moves it wildly - which is why the calculator requires two but your conclusions should wait for a dozen or more, or for a reason the small sample is all you have.

Related tools