Standard Deviation Calculator
Paste in a list of numbers to get the standard deviation, variance and mean — sample or population — and see each step of the working.
Your data
Results
Sample standard deviation (s)
—
Mean
—
Variance
—
Data set summary
- Count
- —
- Sum
- —
- Min
- —
- Max
- —
- Range
- —
Relative standard deviation
—
Standard deviation as a % of the mean — lets you compare spread across data sets with different scales.
Show the mathHow it was calculated
s = √( Σ(x − x̄)² ÷ (n − 1) ) · σ = √( Σ(x − μ)² ÷ n )
How standard deviation is calculated
First find the mean (average) of your data. Then, for each value, subtract the mean and square the result — this makes every difference positive and weights larger deviations more heavily. Average those squared differences to get the variance, and take its square root to get the standard deviation, back in the same units as your original data.
In symbols, the sample standard deviation is s = √(Σ(x − x̄)² ÷ (n − 1)) and the population standard deviation is σ = √(Σ(x − μ)² ÷ N). The only difference is the divisor. If you only need the average, median or mode of a list, the average calculator covers those; this page is about how spread out the values are.
Worked example, step by step
Take the calculator's default data: 10, 12, 23, 23, 16, 23, 21, 16. There are 8 values and they add up to 144, so the mean is 144 ÷ 8 = 18. Next, subtract the mean from each value and square the difference:
| Value (x) | x − mean | (x − mean)² |
|---|---|---|
| 10 | -8 | 64 |
| 12 | -6 | 36 |
| 23 | +5 | 25 |
| 23 | +5 | 25 |
| 16 | -2 | 4 |
| 23 | +5 | 25 |
| 21 | +3 | 9 |
| 16 | -2 | 4 |
| Sum | 0 | 192 |
The deviations always add up to 0, which is a handy check on your arithmetic. The squared deviations add up to 192. Treated as a sample, divide by n − 1 = 7: the variance is 27.4286 and the standard deviation is √27.4286 = 5.2372. Treated as a whole population, divide by n = 8: the variance is 24 and the standard deviation is √24 = 4.899. The "Show the math" panel under the results repeats these steps with whatever numbers you enter.
Sample vs. population standard deviation
Population standard deviation divides the summed squared differences by n (the full count). Sample standard deviation divides by n−1 instead — known as Bessel's correction — which slightly increases the result to correct for the fact that a sample tends to underestimate the true variability of the whole population it was drawn from. Use "Population" only when your data genuinely represents every member of the group you care about; "Sample" is the more common, more conservative choice.
A sample of one value has no sample standard deviation: n − 1 is 0, and one measurement tells you nothing about spread. The calculator shows "Undefined" in that case rather than a misleading 0. The population figure for a single value is 0, because a group of one has no spread at all.
The 68-95-99.7 rule
When data follows a roughly bell-shaped (normal) distribution, the standard deviation tells you where most values fall. About 68% of values lie within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. If exam scores have a mean of 70 and a standard deviation of 10, roughly two-thirds of students scored between 60 and 80, and only about 1 in 20 scored below 50 or above 90.
The rule is a guide for symmetric, single-peaked data. It does not hold for skewed data such as incomes or wait times. To turn a single value into a percentile, compute its z-score, (value − mean) ÷ standard deviation, and look it up in the z-score mode of the probability calculator.
STDEV.S vs. STDEV.P in Excel and Sheets
Excel and Google Sheets both have a function for each version. =STDEV.S(A1:A8) returns the sample standard deviation (divides by n − 1) and matches this calculator's Sample mode. =STDEV.P(A1:A8) returns the population standard deviation (divides by n) and matches Population mode. The older names still work: STDEV is the same as STDEV.S, and STDEVP is the same as STDEV.P. For variance, use VAR.S and VAR.P in the same way.
A common spreadsheet mistake is reaching for STDEV.P because the data feels complete, when it is really a sample of something larger, such as last month's orders standing in for all future orders. If you are unsure, STDEV.S is the safer default. Text and blank cells in the range are ignored, so check the count matches the number of values you expect.
Mean and standard deviation together
The mean tells you the typical value; the standard deviation tells you how far values typically stray from it. Two data sets can have the same mean but very different spreads — this calculator always reports both side by side, along with the min, max, and range, so you get the full shape of your data at a glance, not just one number.
Relative standard deviation
Relative standard deviation (RSD) expresses standard deviation as a percentage of the mean: RSD = (standard deviation ÷ mean) × 100. Because it's unitless, RSD lets you compare the variability of data sets measured on completely different scales — for example, comparing the consistency of lab measurements in milligrams against measurements in liters, where the raw standard deviations alone wouldn't be comparable.
Frequently asked questions
How do I find standard deviation on a calculator, like a TI-84?
On a TI-84 or similar graphing calculator, enter your data into a list (STAT → Edit), then run 1-Var Stats (STAT → CALC → 1-Var Stats) on that list — it reports both Sx (sample standard deviation) and σx (population standard deviation) along with the mean. This calculator does the same thing without the menus: paste your numbers below and both values appear instantly.
How do I calculate standard deviation by hand?
Find the mean, then for each value subtract the mean and square the result, then average those squared differences (dividing by n for population, or n−1 for sample) to get the variance — the square root of variance is the standard deviation. Open "Show the math" under the results to see the same steps filled in with your own numbers.
What's the symbol for standard deviation on a calculator?
Population standard deviation is written σ (sigma) or σx, and sample standard deviation is written s or Sx — most calculators label them exactly this way in their statistics menu. This calculator labels both plainly as "Population" and "Sample" instead, to avoid the ambiguity of the Greek letters.
Can standard deviation be negative or bigger than the mean?
It can never be negative: it is the square root of an average of squared distances, so the smallest possible value is 0, which happens only when every value is identical. It can be larger than the mean, though. Data such as 1, 2 and 30 has a mean of 11 and a sample standard deviation of about 16.5, which usually signals a skewed set or an outlier.
What is a good standard deviation?
There is no universal good value, because standard deviation carries the units and scale of your data. A spread of 5 points is large for shoe sizes and tiny for house prices. Judge it against the mean (the relative standard deviation shown above), against a tolerance you care about, or against another data set measured the same way.
Related calculators
- Probability Calculator
Calculate the probability of single, combined, and conditional events.
- Average Calculator
Find the mean, median, mode, and range of a list of numbers.
- Scientific Calculator
A full scientific calculator with trig, logs, exponents, and memory.
- Grade Calculator
Find out what score you need on your final, or calculate a weighted average.
