Use this free standard deviation calculator to measure how spread out your data is. Paste or type your numbers, separated by commas, spaces, or new lines. The calculator shows the mean, variance, and standard deviation, for both sample and population data, along with the count, sum, range, and median, and the step-by-step working. No signup needed, and nothing you enter is stored.
Use sample if your data is a subset of a larger group, and population if it includes every member of the group. When in doubt, use sample.
Standard deviation measures how far data values typically sit from the mean (the average).
It’s in the same units as your data, which makes it easier to interpret than variance.
| Population (σ) | Sample (s) | |
|---|---|---|
| Use when | You have every value in the group | Your data is a sample from a larger group |
| Divide by | n | n − 1 |
| Symbol | σ (sigma) | s |
Dividing by n − 1 (called Bessel’s correction) corrects for the fact that a sample tends to underestimate the spread of the full population. The correction matters most for small samples:
| Sample size (n) | Sample SD is larger than population SD by a factor of |
|---|---|
| 3 | 1.2247 |
| 5 | 1.1180 |
| 10 | 1.0541 |
| 30 | 1.0171 |
| 100 | 1.0050 |
For large samples, the two results are almost the same. When in doubt, use sample standard deviation. Most real data sets are samples.
Mean: x̄ = Σx ÷ n
Population variance: σ² = Σ(x − x̄)² ÷ n
Population standard deviation: σ = √[ Σ(x − x̄)² ÷ n ]
Sample variance: s² = Σ(x − x̄)² ÷ (n − 1)
Sample standard deviation: s = √[ Σ(x − x̄)² ÷ (n − 1) ]
Data: 4, 8, 6, 5, 3, 7
| Value | Deviation (x − 5.5) | Squared |
|---|---|---|
| 4 | −1.5 | 2.25 |
| 8 | 2.5 | 6.25 |
| 6 | 0.5 | 0.25 |
| 5 | −0.5 | 0.25 |
| 3 | −2.5 | 6.25 |
| 7 | 1.5 | 2.25 |
| Total | 17.5 |
| Measure | Population | Sample |
|---|---|---|
| Variance | 17.5 ÷ 6 = 2.9167 | 17.5 ÷ 5 = 3.5 |
| Standard deviation | 1.7078 | 1.8708 |
Ten test scores: 72, 85, 90, 68, 95, 80, 88, 76, 82, 79
| Measure | Result |
|---|---|
| Count | 10 |
| Sum | 815 |
| Mean | 81.5 |
| Median | 81 |
| Range | 27 (68 to 95) |
| Sum of squared deviations | 620.5 |
| Population variance | 62.05 |
| Population standard deviation | 7.88 |
| Sample variance | 68.94 |
| Sample standard deviation | 8.30 |
A typical score is about 8 points away from the class average of 81.5.
Two data sets, each with a mean of 50:
| Data set | Values | Sample standard deviation |
|---|---|---|
| A | 48, 49, 50, 51, 52 | 1.58 |
| B | 30, 40, 50, 60, 70 | 15.81 |
The averages are identical, but set B is about 10 times more spread out. The mean alone can’t tell you this, which is why standard deviation matters.
| Data | Mean | Sample standard deviation |
|---|---|---|
| 10, 12, 11, 13, 12, 11 | 11.5 | 1.05 |
| 10, 12, 11, 13, 12, 11, 100 | 24.14 | 33.46 |
One extreme value raised the standard deviation from about 1 to more than 33. Standard deviation is sensitive to outliers, so check your data for errors or unusual values.
For data that follows a normal (bell-shaped) distribution:
| Range | Share of data |
|---|---|
| Mean ± 1 standard deviation | about 68.3% |
| Mean ± 2 standard deviations | about 95.4% |
| Mean ± 3 standard deviations | about 99.7% |
Example: a test has a mean of 100 and a standard deviation of 15.
| Range | Values |
|---|---|
| Within 1 SD (about 68%) | 85 to 115 |
| Within 2 SD (about 95%) | 70 to 130 |
| Within 3 SD (about 99.7%) | 55 to 145 |
This rule applies only when the data is roughly normal, not to every data set.
z = (value − mean) ÷ standard deviation
Example: the mean is 70, the standard deviation is 10, and your score is 85.
Your score is 1.5 standard deviations above the mean, which in a normal distribution is about the 93rd percentile. Use our Z-Score Calculator for more.
| Variance | Standard deviation | |
|---|---|---|
| Definition | The average squared deviation | The square root of the variance |
| Units | Squared units (for example, points²) | Same units as the data (points) |
| Easier to interpret | No | Yes |
| Used in | Statistical formulas and models | Reporting and everyday interpretation |
For the test scores in Example 2, s = 8.30 and n = 10, so the standard error is about 2.63.
The coefficient of variation (CV) expresses the standard deviation as a percentage of the mean, which lets you compare variability across data sets with different units or scales.
CV = (Standard deviation ÷ Mean) × 100
For the test scores: 8.30 ÷ 81.5 × 100 = about 10.2%.
Find the mean, subtract it from each value, square the results, add them up, divide by n (population) or n − 1 (sample), and take the square root.
Population standard deviation divides by n and is used when you have all the data. Sample standard deviation divides by n − 1 and is used when your data is a sample from a larger group.
Use sample unless you have every member of the group you’re studying. Most real data sets are samples.
That the data values are spread out widely from the mean. A low standard deviation means they’re clustered near the mean.
There’s no universal good or bad value. It depends on the context and the scale of the data. Compare it with the mean, using the coefficient of variation, or with other similar data sets.
No. It’s a square root, so it’s always zero or positive. It’s zero only if all values are identical.
The average of the squared deviations from the mean. The standard deviation is its square root.
For normally distributed data, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3.
They increase it a lot, because deviations are squared. A single extreme value can change the result dramatically.
The number of standard deviations a value is from the mean. A z-score of 1.5 means 1.5 standard deviations above the mean.
Yes. It’s free, with no registration and no limits.
It uses the standard formulas and the numbers you enter. Results are rounded for display, so use more decimal places when you need more precision.
A few of the most-used tools in each hub.
This calculator is for general informational and educational purposes. Results depend on the data you enter and the choice of sample or population formula. Check important calculations independently, especially for research, financial, or safety-related decisions.