Category

Standard Deviation Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

What Is Standard Deviation?

Standard deviation measures how spread out the values in a data set are around the mean. A low standard deviation means the values cluster tightly around the average. A high standard deviation means they are widely spread out.

Intuitive example: Two classes both average 75 on an exam. Class A has scores of 73, 74, 75, 76, 77 — tightly grouped. Class B has scores of 50, 60, 75, 90, 95 — much more spread. Class B has a higher standard deviation even though the means are equal.

Population vs. Sample Standard Deviation — Which One Should I Use?

This is the most common source of confusion. Here is the plain-language decision rule:

Standard Deviation Formula

The two formulas differ by one detail — whether you divide by N or N−1:

Population: σ = √[ Σ(xᵢ − μ)² / N ]
Sample: s = √[ Σ(xᵢ − x̄)² / (N − 1) ]
SymbolWhat It Means
σ or sStandard deviation (population or sample)
xᵢEach individual value in the data set
μ or x̄The mean (average) of all values
NTotal number of values
N − 1Bessel's correction — used for samples to reduce bias
ΣSum of all values
On Bessel's correction (N−1): Dividing by N−1 instead of N corrects for the fact that a sample tends to underestimate the true spread of the population. When N is large (30+), the difference between dividing by N and N−1 is negligible.

Standard Deviation vs. Variance

VarianceStandard Deviation
FormulaΣ(x − μ)² / N√Variance
UnitsSquared units (e.g. cm²)Same units as the data (e.g. cm)
Easier to interpret?No — squared units are hard to visualiseYes — same scale as your data
Typical useIntermediate step in the calculationFinal reported statistic

Step-by-Step Example — How to Calculate Standard Deviation by Hand

Use the exam scores: 72, 85, 90, 68, 94, 78, 83 (7 scores). We'll calculate the sample standard deviation.

  1. Find the mean (x̄). Add all values: 72 + 85 + 90 + 68 + 94 + 78 + 83 = 570. Divide by 7: x̄ = 570 / 7 ≈ 81.43.
  2. Find each deviation (xᵢ − x̄). 72 − 81.43 = −9.43 | 85 − 81.43 = 3.57 | 90 − 81.43 = 8.57 | 68 − 81.43 = −13.43 | 94 − 81.43 = 12.57 | 78 − 81.43 = −3.43 | 83 − 81.43 = 1.57.
  3. Square each deviation. 88.92 | 12.74 | 73.44 | 180.36 | 158.00 | 11.76 | 2.46.
  4. Sum the squared deviations. 88.92 + 12.74 + 73.44 + 180.36 + 158.00 + 11.76 + 2.46 = 527.68.
  5. Divide by N − 1. 527.68 / (7 − 1) = 527.68 / 6 = 87.95. This is the variance.
  6. Take the square root. √87.95 ≈ 9.38. The sample standard deviation is approximately 9.38.
Why this works: Squaring the deviations removes negative signs so they don't cancel each other out. Taking the square root at the end brings the units back to the original scale.

How to Interpret Your Standard Deviation Result

Getting the number is only half the job — knowing what it means in context is the other half.

ContextLow SD MeansHigh SD Means
Exam scores (out of 100)Most students scored near the class averageScores varied widely — some very high, some very low
Lab measurementsConsistent, precise measurementsHigh variability — possible measurement error
Stock returnsStable, low-risk investmentVolatile, high-risk investment

The empirical rule (68-95-99.7 rule): For data that follows a normal distribution, approximately:

So for our exam example (mean ≈ 81.43, SD ≈ 9.38), about 68% of scores should fall between 72.05 and 90.81.

Common Mistakes to Avoid

Mistake 1 — Using N instead of N−1 for a sampleAlways check whether your data is the full population or a sample before choosing the formula. Use N only for the full population.
Mistake 2 — Forgetting to square the deviationsSquaring removes the negative signs — without it, positive and negative deviations cancel out to near zero, making the result meaningless.
Mistake 3 — Taking the square root too earlyCalculate variance (the sum of squared deviations ÷ N or N−1) first. Only take the square root in the final step.
Mistake 4 — Mixing population and sample formulas mid-calculationPick one formula (population or sample) and use it consistently. Mixing N and N−1 in the same calculation produces an incorrect result.
Mistake 5 — Rounding intermediate stepsKeep full decimal precision through all intermediate steps. Round only the final answer. Early rounding accumulates error and changes your result.

Studying for AP Statistics? Standard deviation underlies every inference procedure — see Unit 1 for descriptive statistics, or the confidence interval & hypothesis test calculator for Units 3–4.

Frequently Asked Questions