CalcUnit Logo

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:

VariableTypeExample value
Value 1Input (you provide)4
Value 2Input (you provide)7
Value 3Input (you provide)13
Value 4Input (you provide)16
Value 5Input (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

  1. 1Write down the values you know: Value 1, Value 2, Value 3, Value 4, Value 5, Count (n).
  2. 2Substitute your known values into the formula: σ = √(Σ(x-μ)²/N).
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 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 1Mean (x̄)Population Variance (σ²)Population SD (σ)Sample SD (s)
111.600048.64006.97427.7974
211.800044.56006.67537.4632
312.000040.80006.38757.1414
412.200037.36006.11236.8337
512.400034.24005.85156.5422
612.600031.44005.60716.2690
813.000026.80005.17695.7879
1013.400023.44004.84155.4129
2015.400025.84005.08335.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

standard deviationstatisticsvariance

Use the Interactive Calculator

Skip the manual math — get instant results with our free Standard Deviation calculator.

Open Calculator

Related Calculators