What Is Standard Deviation?

Executive Summary

Standard deviation is a measure of how spread out the values in a dataset are relative to their mean (average). A small standard deviation means the values cluster closely around the mean; a large standard deviation means they are spread far apart. It is the most widely used measure of statistical dispersion — the single number that answers the question: "How consistent is this data?" Without standard deviation, averages can be deeply misleading.

Key Takeaways
  • The Spread Metric: Standard deviation measures how much individual data points scatter around the average — the higher it is, the more spread out the data.
  • One Standard Deviation Contains ~68%: In a normal distribution, 68% of all values fall within ±1 SD of the mean. 95% fall within ±2 SD. 99.7% within ±3 SD.
  • Used Everywhere: Finance (portfolio risk), manufacturing (quality control), medicine (clinical trials), and science (measurement precision) all rely on standard deviation.
Visual Explanation

The Spread-From-Mean Picture

Imagine you have two classes of 30 students. Both classes score an average of 70 out of 100 on a test. In Class A, scores range from 65 to 75 — tightly clustered. In Class B, scores range from 20 to 100 — wildly spread. The mean is identical, but standard deviation reveals the crucial difference: Class A has a small SD (≈3), Class B has a large SD (≈25). Standard deviation is the ruler that measures how far data points scatter from their centre.

Low vs. High Standard Deviation — Same Mean, Different Spread

Low SD (≈1.5) — tightly clustered
High SD (≈25) — widely spread
$0%$30%$60%$90%$120%Score 1Score 2Score 3Score 4Score 5Score 6
Formula
Sample: s = √[ Σ(xᵢ − x̄)² / (n − 1) ]
Population: σ = √[ Σ(xᵢ − μ)² / N ]

Standard Deviation Formula

Variable Glossary
SymbolMeaning & Description
sSample Standard Deviation (using n − 1 denominator)
σPopulation Standard Deviation (using N denominator)
xᵢIndividual data values
x̄ / μMean (Average) of the dataset
n / NTotal number of data points
Step-by-Step Worked Example
1. Mapped Variables
Data Set Input
4, 7, 13, 2, 8, 11, 5
Calculation Type
SAMPLE
2. Equation Substitution
Equation with standard inputs
s = √[ 90.86 / 6 ]
3. Calculation Steps
Step 1: Calculate Mean (Average)

Mean = (4 + 7 + 13 + 2 + 8 + 11 + 5) / 7 = 7.1429

Step 2: Calculate Squared Deviations Sum

Σ(xᵢ - Mean)² = (4 - 7.14)² + (7 - 7.14)² + (13 - 7.14)² + (2 - 7.14)² + (8 - 7.14)² + (11 - 7.14)² + (5 - 7.14)² = 90.8571

Step 3: Compute Variance

Variance = Squared Deviations Sum / n - 1 = 90.8571 / 6 = 15.1429

Step 4: Take Square Root of Variance

Standard Deviation = √(15.1429) = 3.8914

Final Resolved Sample Standard Deviation3.8914

The Standard Deviation Formula

The formula has two variants depending on whether you have an entire population or a sample drawn from it.

Population Standard Deviation (σ):

σ=i=1N(xiμ)2N\sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}}

Sample Standard Deviation (s):

s=i=1n(xixˉ)2n1s = \sqrt{\frac{\sum_{i=1}^{n}(x_i - \bar{x})^2}{n-1}}

The only difference is the denominator: N for a population, n−1 for a sample. The n−1 correction (called Bessel's correction) prevents underestimation of variability when you only have a subset of data.

Step-by-Step Manual Calculation

Dataset: {4, 7, 13, 2, 8} (treat as a sample)

Step 1 — Calculate the mean (x̄):

xˉ=4+7+13+2+85=345=6.8\bar{x} = \frac{4+7+13+2+8}{5} = \frac{34}{5} = 6.8

Step 2 — Find each deviation from the mean:

  • (4 − 6.8)² = (−2.8)² = 7.84
  • (7 − 6.8)² = (0.2)² = 0.04
  • (13 − 6.8)² = (6.2)² = 38.44
  • (2 − 6.8)² = (−4.8)² = 23.04
  • (8 − 6.8)² = (1.2)² = 1.44

Step 3 — Sum the squared deviations:

=7.84+0.04+38.44+23.04+1.44=70.8\sum = 7.84 + 0.04 + 38.44 + 23.04 + 1.44 = 70.8

Step 4 — Divide by n−1 (sample variance):

s2=70.851=70.84=17.7s^2 = \frac{70.8}{5-1} = \frac{70.8}{4} = 17.7

Step 5 — Take the square root:

s=17.74.21s = \sqrt{17.7} \approx \mathbf{4.21}
Mental Model & Analogy

The Average Distance Analogy

Think of standard deviation as the average distance every data point lives from home (the mean). If the mean is $70 and individual scores are all between $68 and $72, everyone lives close to home — small SD. If scores range from $0 to $140, people live far from home — large SD. Technically, SD is the root mean square of deviations (slightly different from arithmetic average distance), but the intuition of "typical distance from the mean" is accurate enough for practical decision-making.

Real-World Applications
  • Investment Risk (Volatility): A stock with a daily return SD of 2% is much riskier than a bond with an SD of 0.1%, even if they have the same average return. Portfolio managers use SD as the primary definition of risk.
  • Manufacturing Quality Control: A factory producing bolts with a diameter SD of 0.001 mm is more consistent than one with SD of 0.1 mm. Six Sigma methodology defines quality as achieving fewer than 3.4 defects per million — achievable only with extremely low SD.
  • Medical Research: Clinical trials report treatment effect alongside standard deviation. A drug that reduces blood pressure by 10 mmHg (SD = 2) is far more consistent and trustworthy than one that reduces it by 10 mmHg (SD = 20).
  • Academic Testing: Standardised tests like the SAT are designed with a specific mean and SD (typically mean = 500, SD = 100) so that scores can be compared across different test years and populations.
Common Mistakes to Avoid
  • Using SD When the Data Is Not Approximately Normal: SD is most meaningful for roughly bell-curve-shaped distributions. For heavily skewed data (like income or house prices), the interquartile range (IQR) is a more robust spread measure.
  • Confusing SD with Variance: Variance is SD squared (σ²). Variance is useful for mathematical derivations but is expressed in squared units (e.g., "squared dollars" for financial data), making it less intuitive. SD is the practical, interpretable version.
  • Forgetting Sample vs. Population: Using population SD when you have a sample will systematically underestimate variability. Always use n−1 (sample SD) when your dataset is a subset of a larger population.
  • Assuming Low SD = Better: In many contexts, high SD is desirable — creative brainstorming, biological diversity, financial return distributions in growth investing. SD is not inherently good or bad; it is descriptive.
Concept Comparison

AStandard Deviation

Standard deviation describes the spread of individual data points around the sample mean. It tells you how variable individual observations are. SD does not shrink as you collect more data — adding more observations from the same population simply gives a better estimate of the true population SD.

BStandard Error of the Mean (SEM)

Standard Error of the Mean (SEM = SD ÷ √n) describes the uncertainty in your estimate of the population mean based on a sample. It measures how much the sample mean would vary across repeated experiments. SEM shrinks as n increases — with more observations, your estimate of the true mean becomes more precise. SEM is what appears in error bars on most scientific charts.

Decision Framework

Interpreting Standard Deviation in Context

SituationLow SD MeansHigh SD Means
Investment returnsStable, low-risk assetVolatile, high-risk asset
Manufacturing toleranceHigh-quality, consistent productPoor quality control
Student test scoresStudents perform similarlyStudents have very different skill levels
Restaurant wait timesPredictable serviceUnpredictable experience
Weather temperatureStable climateVolatile, unpredictable climate

The 68-95-99.7 Rule (for normally distributed data):

  • ±1 SD: contains approximately 68% of values
  • ±2 SD: contains approximately 95% of values
  • ±3 SD: contains approximately 99.7% of values
Frequently Asked Questions
Live Simulation

Standard Deviation Calculator Sandbox

Tweak variables below to see the formula calculate instantly.

Calculating...
Interactive Tool

Standard Deviation Calculator

Calculate the mean, variance, and standard deviation of a data set for both population and sample datasets.

Launch Interactive Calculator