Standard Deviation Calculator

In short: the sample set (4, 8, 15, 16, 23, 42) has mean 18, population standard deviation 12.315 and sample standard deviation 13.491. The two SDs differ only in the divisor, N versus N−1, and choosing between them is the one decision this statistic asks of you. Both are shown, with variance, median and range, for any list you paste, in any separator style.

The one choice: N or N−1

Standard deviation measures spread: how far values typically sit from their mean. The recipe is fixed (subtract the mean from each value, square, average, take the root) except for one step, the averaging divisor, and that step encodes a real question about your data. If the numbers in the box are the entire population you are describing, divide by N: that is the population SD, a pure description. If they are a sample you are using to estimate a larger population's spread, divide by N−1: the sample SD, which corrects the underestimation that comes from measuring deviations around a mean fitted to the sample itself. This page computes both, labels them plainly, and lets the purpose decide; most spreadsheet and statistics defaults (and most research) use the sample version. Everything else reported (mean, median, variance in both flavours, range, sum) is there because SD alone never tells the whole story of a dataset: the median exposes skew the mean hides, and the range shows the extremes the SD averages away. Paste values separated any way you like; stray text is ignored rather than failing the whole calculation.

Worked example

Data: 4, 8, 15, 16, 23, 42. Mean: 108 / 6 = 18. Deviations: −14, −10, −3, −2, +5, +24; squared: 196, 100, 9, 4, 25, 576; sum of squares = 910.

Population: variance = 910 / 6 = 151.67, SD = 12.315. Sample: variance = 910 / 5 = 182.00, SD = 13.491. The sample figure is about 10 percent larger, the Bessel correction at work on a small set; with 600 values instead of 6, the two would agree to three decimals.

Where SD does daily work

Exam boards use it to see whether a paper separated candidates or bunched them; a test where everyone scores within a few marks of the mean cannot rank anyone. Manufacturers live inside it: a process whose SD is small relative to its tolerance band is capable, and one whose SD grows is drifting before it fails. Investors quote it as volatility, the standard deviation of returns, which is why two funds with the same average return are not the same risk. Weather presenters hide it in plain sight: a city with a mean of 25 degrees and an SD of 3 is a different packing problem from one with the same mean and an SD of 11. In each case the mean alone would have told a calmer story than the data deserved, and the spread is where the actual information lives.

Frequently asked questions

Should I use the population or the sample standard deviation?

Use the population SD (divide by N) when your numbers are the whole group you care about: all 30 students in this class, every day of last month. Use the sample SD (divide by N-1) when your numbers are a sample drawn to estimate a bigger population: 30 voters polled to estimate a city, 20 parts measured to estimate a production run. The sample version is slightly larger, correcting the fact that a sample's spread usually understates the population's. When in doubt in research and quality work, it is the sample SD; in descriptive summaries of complete data, the population SD.

What does the standard deviation actually tell me?

It is the typical distance of the values from their mean, in the same units as the data. An SD of 12.3 around a mean of 18 (the worked example) says the values are widely scattered; an SD of 1.8 would say they huddle close. For roughly bell-shaped data, about 68 percent of values lie within one SD of the mean and 95 percent within two, which is what makes SD the yardstick for outliers, exam curves, manufacturing tolerance and investment volatility.

What is the difference between variance and standard deviation?

Variance is the average squared deviation; standard deviation is its square root. Squaring is what makes the maths work (deviations would otherwise cancel to zero), but it distorts the units: variance of heights in centimetres is in square centimetres, which nobody can picture. SD takes the root and returns to the original units, so report SD for humans and variance for formulas; they carry identical information.

Why does the sample formula divide by N-1 instead of N?

Because the deviations are measured from the sample's own mean, which sits closer to the sample values than the true population mean does, the raw average of squared deviations systematically underestimates the population variance. Dividing by N-1 (Bessel's correction) inflates it just enough to be unbiased on average. The effect is large for tiny samples (with 5 values it raises the variance 25 percent) and negligible for large ones.

Can standard deviation be misleading?

Yes, in three common situations. With skewed data (incomes, house prices) a few large values inflate SD and the mean itself drifts from the typical case; median and interquartile range describe such data better. With outliers, one bad entry can double the SD, which is sometimes the point (finding the outlier) and sometimes a data error. And SD says nothing about shape: two datasets can share a mean and SD while one is bell-shaped and the other is two separate clusters. Always look at the data, or at least its min, max and median, alongside.

Note: this page computes descriptive statistics for the values entered. For publication or regulated work, follow your field's reporting conventions (which SD, how many decimals, and whether to report the standard error instead).

Related calculators

Formulas and worked example last verified: 23 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.