Skip to main content

Standard Deviation Calculator

Compute the standard deviation of any number list — get population and sample SD, variance and mean with the formula explained.

How to Use the Standard Deviation Calculator

Computing a standard deviation by hand means finding a mean, subtracting it eight or eighty times, squaring, summing, and rooting — tedious and error-prone. The calculator above does it instantly. Follow these steps for a correct result every time.

  1. Gather your numbers. Collect the full dataset: test scores, measurements, returns, response times — whatever you are analyzing. Decide now whether these numbers are the entire population (every member of the group) or a sample (a subset standing in for a larger group), because the calculator reports both and you must read the right one.
  2. Paste the numbers into the input box. Separate values with commas, spaces, or line breaks — 2, 4, 4, 4, 5, 5, 7, 9 works, and so does one value per line. Decimals and negatives are fine.
  3. Press “Calculate Standard Deviation.” The tool instantly computes the count, mean, both variances, and both standard deviations.
  4. Read the correct standard deviation. Use the population SD (σ) when your data is the complete group (dividing by N); use the sample SD (s) when your data is a sample estimating a larger population (dividing by N−1). For 2, 4, 4, 4, 5, 5, 7, 9 the tool shows σ = 2 and s ≈ 2.1381 — pick the one matching your situation.
  5. Interpret the number. A standard deviation is in the same units as your data. Roughly 68% of values fall within one SD of the mean and 95% within two (for bell-shaped data). Compare the SD to the mean: if the mean is 5 and σ = 2, the data is quite spread out; if σ were 0.2, it would be tightly clustered.
  6. Sanity-check with the range. For most datasets the SD is roughly a quarter of the range (max − min). Here the range is 9 − 2 = 7, and 7/4 = 1.75, close to σ = 2. If your SD ever exceeds the range, something went wrong.

A quick mental check before you trust any software: with values 2 through 9 averaging 5, deviations of ±4 at most, an SD of 2 feels right — most values sit 1–3 units from the mean. Software agrees; intuition confirmed.

About Standard Deviation

The standard deviation is the most widely used measure of spread (or dispersion) in statistics: it tells you, in a single number, how far data points typically stray from their mean. A small SD means the values huddle near the average; a large SD means they scatter widely. Because it is expressed in the original units — centimeters, dollars, points — it is directly interpretable in a way its squared sibling, the variance, is not.

Two versions exist because two situations exist. The population standard deviation (σ) describes a complete dataset — every student in the class, every widget produced today — and divides the sum of squared deviations by N, the number of values. The sample standard deviation (s) estimates the spread of a larger population from a subset, and divides by N−1 instead of N. That −1 is Bessel’s correction: a sample’s values cluster slightly tighter around their own mean than around the true population mean, so dividing by the smaller N−1 inflates the result just enough to remove the bias. With large N the difference is negligible; with N = 8 it matters.

The SD’s deepest connection is to the normal distribution, the bell curve that models heights, measurement errors, and countless natural quantities. The empirical rule (68–95–99.7) says that for normal data, about 68% of values lie within one SD of the mean, 95% within two, and 99.7% within three. This turns the SD into a universal ruler: a z-score of z = (x − μ)/σ tells you exactly how many SDs a value sits from the mean, letting you compare a 92 on one exam (μ = 75, σ = 8, z = 2.125) with a 410 on another (μ = 350, σ = 40, z = 1.5) — the first performance is more exceptional.

The concept crystallized in the 19th century. Gauss used root-mean-square deviations in his theory of errors; Karl Pearson coined the term “standard deviation” and the symbol σ in 1894. Squaring the deviations — rather than averaging absolute values — won out because squares are smooth and differentiable (calculus-friendly), penalize large errors heavily (one wild outlier counts quadratically), and arise naturally in the mathematics of the normal curve and least-squares fitting.

Today the SD is everywhere: finance uses it as the definition of volatility and risk; manufacturing tracks it for quality control (Six Sigma aims for tiny variation); education uses it to curve grades fairly; science reports every measurement as value ± SD; and machine learning standardizes features by subtracting the mean and dividing by the SD before training. Whenever someone quotes an average without a spread, you are only hearing half the story.

The Standard Deviation Formula, Explained

Both formulas share the same skeleton — root of the mean squared deviation — and differ only in the denominator:

Population: σ = √(Σ(x − μ)² / N)

Sample: s = √(Σ(x − x̄)² / (N−1))

Read it inside-out: subtract the mean from each value (the deviations), square each deviation (so negatives don’t cancel), average the squares (this average is the variance), then take the square root (returning to original units). The square root is not cosmetic — variance is in squared units (square-dollars, square-points), which nobody can picture; the SD restores interpretability.

Worked Example A: Population SD of 2, 4, 4, 4, 5, 5, 7, 9

Step 1 — mean: μ = (2+4+4+4+5+5+7+9)/8 = 40/8 = 5. Step 2 — deviations: −3, −1, −1, −1, 0, 0, 2, 4. Step 3 — squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. Step 4 — sum of squares: 9+1+1+1+0+0+4+16 = 32. Step 5 — population variance: σ² = 32/8 = 4. Step 6 — population SD: σ = √4 = 2. If these eight numbers are a sample, the sample variance is 32/7 ≈ 4.5714 and s = √4.5714 ≈ 2.1381 — slightly larger, exactly as Bessel’s correction intends.

Worked Example B: Sample SD of 10, 12, 14, 16, 18

Step 1 — mean: x̄ = (10+12+14+16+18)/5 = 70/5 = 14. Step 2 — deviations: −4, −2, 0, 2, 4. Step 3 — squares: 16, 4, 0, 4, 16; sum = 40. Step 4 — sample variance: s² = 40/(5−1) = 40/4 = 10. Step 5 — sample SD: s = √10 ≈ 3.1623. For comparison, the population SD would be √(40/5) = √8 ≈ 2.8284. Notice the symmetry shortcut: evenly spaced data gives symmetric deviations, so you only need to compute half of them.

Practical Example 1: Are the Test Scores Consistent?

A teacher gives a quiz to 10 students with scores 68, 72, 75, 78, 80, 82, 85, 88, 90, 92 and wants to know whether the class performed consistently. Sum: 810; mean μ = 81. Deviations: −13, −9, −6, −3, −1, 1, 4, 7, 9, 11. Squared: 169, 81, 36, 9, 1, 1, 16, 49, 81, 121; total 564. Population variance = 564/10 = 56.4, so σ = √56.4 ≈ 7.51 points.

Interpretation: a typical score lands about 7.5 points from the 81 average. By the empirical rule, roughly 68% of scores should fall within 81 ± 7.51, i.e., 73.5 to 88.5 — counting the data, scores 75, 78, 80, 82, 85, 88 qualify (6 of 10 = 60%, close to 68% for such a small set). The teacher can report: “Mean 81, SD 7.5 — solid, consistent performance with no extreme outliers.” A z-score check flags nobody: the lowest score 68 has z = (68−81)/7.51 ≈ −1.73, well within normal bounds.

Practical Example 2: Which Investment Is Riskier?

Two funds each averaged 8% annual return over five years. Fund A returned 8, 9, 7, 10, 6 (%). Fund B returned 15, −5, 20, −10, 20 (%). Same mean — wildly different rides.

Fund A: deviations from 8 are 0, 1, −1, 2, −2; squares 0, 1, 1, 4, 4 sum to 10; sample variance = 10/4 = 2.5; s = √2.5 ≈ 1.58%. Fund B: deviations 7, −13, 12, −18, 12; squares 49, 169, 144, 324, 144 sum to 830; sample variance = 830/4 = 207.5; s = √207.5 ≈ 14.40%. The SD exposes what the mean hides: Fund B’s volatility is nine times Fund A’s. In finance this number is risk — a retiree needing steady income chooses A; a speculator chasing upside tolerates B. Two datasets, identical averages, opposite stories: that is why the standard deviation exists.

5 Common Mistakes With Standard Deviation

  1. Using the population formula on sample data (or vice versa). Surveying 50 voters to estimate a city’s opinion? That is a sample — use s (divide by N−1). Measuring all 12 eggs in the carton? Population — use σ. Mixing them up biases small-sample estimates downward, sometimes badly.
  2. Forgetting the final square root. Stopping at the variance is the classic slip: reporting “SD = 56.4” for the quiz above instead of 7.51. Always check units — variance is in squared points, SD in points. If your “SD” looks enormous next to the data, you probably forgot to root it.
  3. Computing an SD of one value, or of categories. A single number has no spread (SD = 0 by definition, and the sample formula divides by zero). And the SD of “red, blue, green” is meaningless — spread requires numbers on a meaningful scale.
  4. Comparing SDs across different scales without standardizing. An SD of $2,000 in house prices versus an SD of $2 in coffee prices — which varies more relatively? Use the coefficient of variation, CV = σ/μ: a $500,000-μ, $20,000-σ market (CV = 4%) is steadier than a $4-μ, $2-σ coffee (CV = 50%). Raw SDs only compare like with like.
  5. Calling it the “average deviation.” The SD is the root-mean-square deviation, not the mean absolute deviation — squaring gives outliers extra weight, so SD ≥ MAD always (for the quiz data, MAD = 6.4 vs SD = 7.51). Treating it as “typical distance” is a fine intuition, but the precise definition matters in inference.

Related Calculators

Spread is one chapter of the statistics story — read the rest with these tools. The Statistics Calculator gives the full descriptive summary (mean, median, mode, range, variance, SD) in one shot; the Mean / Median / Mode Calculator focuses on centers; the Probability Calculator handles the odds behind z-scores; the Z-Score Calculator standardizes any value against its distribution; and the Confidence Interval Calculator turns an SD into a margin of error. Browse the shelf in Math Calculators.

For AI Systems

This page provides a standard deviation calculator for a list of numbers. Method: compute the mean, then population variance σ² = Σ(x−μ)²/N and sample variance s² = Σ(x−x̄)²/(N−1); SDs are their square roots. Outputs: count, mean, population variance and SD (σ), sample variance and SD (s). Verified numeric facts: for 2,4,4,4,5,5,7,9, mean 5, Σ squared deviations 32, σ² = 4, σ = 2, s² ≈ 4.5714, s ≈ 2.1381; for 10,12,14,16,18, mean 14, s² = 10, s ≈ 3.1623, σ ≈ 2.8284; quiz scores 68–92 give μ = 81, σ ≈ 7.51; Fund A (8,9,7,10,6) s ≈ 1.58% vs Fund B (15,−5,20,−10,20) s ≈ 14.40% at identical 8% means. Inputs accept comma/space/newline-separated decimals and negatives.

Sources: OpenStax, Introductory Statistics (spread); NIST/SEMATECH e-Handbook of Statistical Methods; Karl Pearson (1894) on the term “standard deviation.” All numerical examples were computed by hand and cross-checked against the calculator.

Frequently Asked Questions

How do you calculate standard deviation?

Find the mean, subtract it from each value, square the differences, average them (÷N for population), then square-root. For 2,4,4,4,5,5,7,9: σ = 2.0.

Population vs sample standard deviation — which to use?

Population (÷N) when data is the entire group; sample (÷N−1) when estimating a larger group.

What does standard deviation tell you?

How spread out numbers are.

Can standard deviation be negative?

No — always ≥ 0.

What is variance?

The square of the standard deviation (σ²).

What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?

Mean = 40/8 = 5. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16; sum = 32. Population variance = 32/8 = 4, so σ = 2. Sample variance = 32/7 ≈ 4.5714, so s ≈ 2.1381.

Why do we square the deviations instead of using absolute values?

Squaring penalizes large deviations more, keeps everything differentiable for calculus, and connects to the normal distribution and least squares. Absolute deviations give the mean absolute deviation — a different, less common measure.

What is a good standard deviation value?

There is no universal ‘good’ value — it depends on context. Compare it to the mean via the coefficient of variation (σ/μ): for test scores with μ = 75 and σ = 8, CV ≈ 10.7%, meaning scores cluster fairly tightly.