← All Calculators

Standard Deviation Calculator

Calculate mean, median, mode, range, variance, and standard deviation for a data set.

Standard deviation formulas

Meanx̄ = Σxn
Population SDσ = √Σ(x − μ)2N
Sample SDs = √Σ(x − x̄)2n − 1
Varianceσ2 or s2 (the SD squared)

Worked examples

  1. Find the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.

    1. Mean = 408 = 5
    2. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → sum = 32
    3. Population: σ = √32 / 8 = √4 = 2
    4. Sample: s = √32 / 7 ≈ √4.571

    Answer: σ = 2 (population), s ≈ 2.138 (sample)

Tips & common mistakes

  • Use the sample formula (n − 1) when your data is a sample of a bigger group — the usual case.
  • About 68% of normally distributed data is within 1 SD of the mean, 95% within 2, 99.7% within 3.