How to Calculate Standard Deviation
Calculate the standard deviation of a dataset.
The Formula
σ = √(Σ(x-μ)²/N)The standard deviation formula uses the mathematical relationship: σ = √(Σ(x-μ)²/N). Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the standard deviation formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Value 1 | Input (you provide) | 4 |
| Value 2 | Input (you provide) | 7 |
| Value 3 | Input (you provide) | 13 |
| Value 4 | Input (you provide) | 16 |
| Value 5 | Input (you provide) | 21 |
| Count (n) | Input (you provide) | 5 |
| Mean (x̄) | Result (calculated) | — |
| Population Variance (σ²) | Result (calculated) | — |
| Population SD (σ) | Result (calculated) | — |
| Sample SD (s) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Value 1, Value 2, Value 3, Value 4, Value 5, Count (n).
- 2Substitute your known values into the formula: σ = √(Σ(x-μ)²/N).
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Standard Deviation Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: value 1 = 2, with the other inputs at the typical values from the variables table above. Substituting into the formula gives mean (x̄) = 11.8000, population variance (σ²) = 44.5600, population sd (σ) = 6.6753, sample sd (s) = 7.4632. These numbers are solved by the same engine that powers the Standard Deviation calculator, so you can reproduce them exactly by entering the same inputs there.
| Value 1 | Mean (x̄) | Population Variance (σ²) | Population SD (σ) | Sample SD (s) |
|---|---|---|---|---|
| 1 | 11.6000 | 48.6400 | 6.9742 | 7.7974 |
| 2 | 11.8000 | 44.5600 | 6.6753 | 7.4632 |
| 3 | 12.0000 | 40.8000 | 6.3875 | 7.1414 |
| 4 | 12.2000 | 37.3600 | 6.1123 | 6.8337 |
| 5 | 12.4000 | 34.2400 | 5.8515 | 6.5422 |
| 6 | 12.6000 | 31.4400 | 5.6071 | 6.2690 |
| 8 | 13.0000 | 26.8000 | 5.1769 | 5.7879 |
| 10 | 13.4000 | 23.4400 | 4.8415 | 5.4129 |
| 20 | 15.4000 | 25.8400 | 5.0833 | 5.6833 |
How each result changes as value 1 changes, holding the other inputs constant.
Practice Problems
1. [4, 7, 13, 16, 21]: Value 1 4, Value 2 7, Value 3 13, Value 4 16, Value 5 21, and 1 more more inputs — work it out, then check the answer.
Answer: With Value 1 4, Value 2 7, Value 3 13, Value 4 16, Value 5 21, and 1 more more inputs, the results are Mean (x̄) 12.2000, Population Variance (σ²) 37.3600, Population SD (σ) 6.1123, Sample SD (s) 6.8337.
2. Plug in Value 1 2.5, Value 2 4, Value 3 4, Value 4 4, Value 5 5, and 1 more more inputs. What is the answer?
Answer: Entering Value 1 2.5, Value 2 4, Value 3 4, Value 4 4, Value 5 5, and 1 more more inputs gives Mean (x̄) 3.9000, Population Variance (σ²) 0.6400, Population SD (σ) 0.8000, Sample SD (s) 0.8944.
Frequently Asked Questions
What is the formula for standard deviation?
The formula is: σ = √(Σ(x-μ)²/N). Calculate the standard deviation of a dataset.
What values do I need to calculate standard deviation?
You need value 1, value 2, value 3, value 4, value 5, count (n). The calculator produces mean (x̄), population variance (σ²), population sd (σ), sample sd (s) from those inputs.
What is the standard deviation when value 1 is 2?
With value 1 = 2, the result is mean (x̄) = 11.8000, population variance (σ²) = 44.5600, population sd (σ) = 6.6753, sample sd (s) = 7.4632. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Standard Deviation calculator.
