Standard Deviation

Standard deviation measures how spread out data points are from the average—use it to understand variability in a dataset.

s=1n1(xixˉ)2s = \sqrt{\frac{1}{n-1}\sum (x_i - \bar{x})^2}

Solve a problem with Standard Deviation

Type the problem. The solver will use Standard Deviation where Standard Deviation is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Standard Deviation takes
ss
xˉ\bar{x}
xix_i
nn
Standard Deviation
SymbolMeaning
ssThe sample standard deviation, a measure of spread in the same units as the original data; if you interpret it as variance instead, you get squared units and lose interpretability.
xˉ\bar{x}The mean (arithmetic average) of the dataset; if you read it as the median, mode, or another center measure, you'll calculate deviations from the wrong point.
xix_iThe ii-th individual data point in the dataset; misidentifying which values to include changes the calculation fundamentally.
nnThe number of data points in the sample; dividing by nn instead of n1n-1 produces a biased estimate that underestimates population spread.

When to use it

Use standard deviation when you need to understand how much individual values in a dataset deviate from the average.

Level

Usually taught in: Statistics · Appears on: AP Statistics

Worked examples

1. Find standard deviation of a simple dataset

Problem

Find the standard deviation of the dataset {2,4,6,8,10}\{2, 4, 6, 8, 10\}.
  1. xˉ=2+4+6+8+105=305=6\bar{x} = \frac{2 + 4 + 6 + 8 + 10}{5} = \frac{30}{5} = 6

    Calculate the mean by summing all values and dividing by the count n=5n = 5.

  2. (26)2+(46)2+(66)2+(86)2+(106)2=16+4+0+4+16=40(2-6)^2 + (4-6)^2 + (6-6)^2 + (8-6)^2 + (10-6)^2 = 16 + 4 + 0 + 4 + 16 = 40

    Subtract the mean from each value, square the result, and sum—this captures total squared deviation from the center.

  3. 4051=404=10\frac{40}{5-1} = \frac{40}{4} = 10

    Divide by n1=4n-1 = 4 (not nn) to get the sample variance, which corrects for using the sample mean.

  4. s=103.162s = \sqrt{10} \approx 3.162

    Take the square root of the variance to obtain standard deviation in the original units.

Answer: s=103.162s = \sqrt{10} \approx 3.162

This straightforward example uses the formula directly: find the mean, calculate squared deviations from it, sum them, divide by n1n-1, and take the square root.

2. Standard deviation with negative values and fractions

Problem

Find the standard deviation of {2,0,1,3}\{-2, 0, 1, 3\}.
  1. xˉ=2+0+1+34=24=0.5\bar{x} = \frac{-2 + 0 + 1 + 3}{4} = \frac{2}{4} = 0.5

    Sum all values including negatives carefully, then divide by the count n=4n = 4 to find the mean.

  2. (20.5)2+(00.5)2+(10.5)2+(30.5)2=6.25+0.25+0.25+6.25=13(-2 - 0.5)^2 + (0 - 0.5)^2 + (1 - 0.5)^2 + (3 - 0.5)^2 = 6.25 + 0.25 + 0.25 + 6.25 = 13

    Each deviation is squared, which converts negatives to positives—this is crucial so that negative and positive deviations do not cancel out.

  3. s=1341=1332.08s = \sqrt{\frac{13}{4-1}} = \sqrt{\frac{13}{3}} \approx 2.08

    Divide by n1=3n-1 = 3 because this is sample standard deviation, then take the square root.

Answer: s=1332.08s = \sqrt{\frac{13}{3}} \approx 2.08

With negative values and a non-integer mean, care is needed when computing deviations—always divide by n1n-1 for sample data, and square each deviation before summing.

3. Standard deviation of temperature measurements in a lab experiment

Problem

A chemistry student measures the temperature (in °C) of a reaction at five times: 20, 22, 21, 23, 19. Calculate the sample standard deviation.
  1. xˉ=20+22+21+23+195=1055=21\bar{x} = \frac{20 + 22 + 21 + 23 + 19}{5} = \frac{105}{5} = 21

    The average temperature across all five measurements is 21°C.

  2. 2021=1,2221=1,2121=0,2321=2,1921=220 - 21 = -1, \quad 22 - 21 = 1, \quad 21 - 21 = 0, \quad 23 - 21 = 2, \quad 19 - 21 = -2

    Each measurement's deviation from the mean shows how far it is from the center; some are above (positive) and some below (negative).

  3. (1)2+12+02+22+(2)2=1+1+0+4+4=10(-1)^2 + 1^2 + 0^2 + 2^2 + (-2)^2 = 1 + 1 + 0 + 4 + 4 = 10

    Squaring converts all deviations to positive values and emphasizes larger differences from the mean.

  4. s=1051=104=2.51.58 °Cs = \sqrt{\frac{10}{5-1}} = \sqrt{\frac{10}{4}} = \sqrt{2.5} \approx 1.58 \text{ °C}

    Divide by n1=4n-1 = 4 for sample data, then take the square root to return to the original units (°C).

Answer: s=2.51.58 °Cs = \sqrt{2.5} \approx 1.58 \text{ °C}

Standard deviation quantifies how much the reaction temperature varied—a value of about 1.58°C tells us that individual measurements typically deviated from 21°C by roughly ±1.6°C.

Common mistakes

Where Standard Deviation usually goes wrong
Answer came out wrong
Using nn instead of n1n-1 in the denominator.
Always use n1n-1 for sample data: s=1n1(xixˉ)2s = \sqrt{\frac{1}{n-1}\sum (x_i - \bar{x})^2}.
Reporting the variance as the standard deviation without taking the square root.
Always complete the formula with a square root: after dividing by n1n-1, compute s=that results = \sqrt{\text{that result}}.
Adding the deviations (xixˉ)(x_i - \bar{x}) without squaring them first.
Square each deviation before summing: calculate (xixˉ)2\sum(x_i - \bar{x})^2, not (xixˉ)\sum(x_i - \bar{x}).
The mistakeWhy it is wrongThe fix
Using nn instead of n1n-1 in the denominator.Dividing by nn instead of n1n-1 produces a biased estimator—sample standard deviations will systematically underestimate the true population spread.Always use n1n-1 for sample data: s=1n1(xixˉ)2s = \sqrt{\frac{1}{n-1}\sum (x_i - \bar{x})^2}.
Reporting the variance as the standard deviation without taking the square root.Variance and standard deviation have different units: variance is in squared units, while standard deviation is in the original units, making them incomparable.Always complete the formula with a square root: after dividing by n1n-1, compute s=that results = \sqrt{\text{that result}}.
Adding the deviations (xixˉ)(x_i - \bar{x}) without squaring them first.Positive and negative deviations cancel each other out, producing a sum near zero regardless of actual spread—this masks variability.Square each deviation before summing: calculate (xixˉ)2\sum(x_i - \bar{x})^2, not (xixˉ)\sum(x_i - \bar{x}).

Tips and when to use something else

  • If you have data for an entire population (not a sample), use Population Variance with nn in the denominator instead of n1n-1.
  • Standard deviation is sensitive to outliers—one extreme value can inflate it significantly; use the Interquartile Range for highly skewed data.
  • The Empirical Rule states roughly 68% of data lies within one standard deviation of the mean for normally distributed data; use this as a reasonableness check.
  • For skewed or non-normal distributions, pair the Interquartile Range with the median instead of standard deviation with the mean.

Frequently asked questions

Why do we divide by n-1 instead of n for sample standard deviation?
Using n1n-1 corrects for the fact that the sample mean is already calculated from your data, which uses up one degree of freedom. This makes the sample standard deviation an unbiased estimator of the true population standard deviation—without it, sample values would systematically underestimate population spread.
What is the difference between standard deviation and variance?
Variance is the average of squared deviations, while standard deviation is the square root of variance. Standard deviation is usually preferred because it is in the same units as the original data, making it directly comparable to values in your dataset.
Can standard deviation be negative?
No, standard deviation is always non-negative. Since it is a square root of a sum of squared values, the result is zero only when all data points are identical, and positive whenever there is any spread.
When should I use standard deviation versus range?
Use standard deviation when you want to account for all data points and their distances from the mean; it is stable and informative. Use range (max - min) for a quick rough estimate when you only care about the span between extremes.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18