Math Solver Free

Standard Deviation Calculator

Population & sample SD, variance, and mean — with every step shown.

8 values detected

Population SD (σ)
2
Sample SD (s)
2.1381
Mean (x̄)
5
Count (n)
8

Step 1: Mean = 40 ÷ 8 = 5

Step 2: Squared deviations from the mean sum to 32

Step 3: Population variance = 32 ÷ 8 = 4

Step 4: Population SD = √4 = 2

Step 5: Sample SD divides by n-1 = 7: √(32 ÷ 7) = 2.1381

What Standard Deviation Tells You

Standard deviation measures spread: how far numbers typically stray from their average, expressed in the same units as the data itself. Paste any list of numbers into this calculator and it returns the population standard deviation (σ), the sample standard deviation (s), both variances, the mean and the count, with the working laid out step by step. Two classes can both average 75%, but if one has an SD of 3 and the other 15, the first class is tightly bunched while the second ranges from failing to perfect scores — the mean alone would never tell you that.

Population vs. Sample: Which One?

  • Population (σ): you have every value — divide by N.
  • Sample (s): you have a subset and want to estimate the whole — divide by n−1.
  • When in doubt for homework, most statistics classes expect the sample version.

The Formula, Symbol by Symbol

The population formula is σ = √( Σ(xᵢ − x̄)² ÷ N ); the sample formula is s = √( Σ(xᵢ − x̄)² ÷ (n − 1) ). Read the pieces: xᵢ is each value in your list, and x̄ — read “x-bar” — is their mean. The term xᵢ − x̄ is one value’s deviation from the mean, and Σ means add up all of them after squaring. N counts a whole population; n counts a sample drawn from one. Use σ when your list is the entire group you care about, and s when it is only a subset standing in for a bigger group.

How to Use This Calculator

  1. Click into the numbers box and type or paste your data, separating values with commas, spaces or line breaks — the counter beneath the box tells you how many values it has detected.
  2. There is no calculate button: the results rebuild themselves instantly as you edit the list, so you can experiment freely.
  3. Read the four cards: Population SD (σ), Sample SD (s), Mean (x̄) and Count (n).
  4. Follow the numbered steps beneath the cards — mean first, then squared deviations, then the variance, then the root — to see exactly how your figures were produced.

Worked Example 1: The Eight Numbers 2, 4, 4, 4, 5, 5, 7, 9

This is the dataset the calculator loads by default, and it is a statistics-textbook favourite because every stage of the working comes out clean.

  1. Mean: the values sum to 40, and there are 8 of them, so x̄ = 40 ÷ 8 = 5.
  2. Deviations from 5: −3, −1, −1, −1, 0, 0, 2, 4. Notice they add to zero — they always do, which is exactly why the next step exists.
  3. Square each deviation: 9, 1, 1, 1, 0, 0, 4, 16. Their sum is 32.
  4. Population variance: 32 ÷ 8 = 4, so σ = √4 = 2 exactly.
  5. Sample variance: 32 ÷ 7 ≈ 4.571, so s = √4.571 ≈ 2.14. The sample figure is larger because dividing by 7 instead of 8 inflates the variance — the built-in penalty for estimating from fewer numbers.

Interpretation: a typical value in this list sits about 2 units away from the mean of 5.

Worked Example 2: Five Training Runs (Sample Data)

A runner logs five training times in minutes — 30, 32, 34, 36, 38 — as a sample of her whole season. How consistent is she?

  1. Mean: the times sum to 170, so x̄ = 170 ÷ 5 = 34 minutes.
  2. Deviations: −4, −2, 0, 2, 4 minutes — two slow days balancing two fast ones around a typical day.
  3. Squared deviations: 16, 4, 0, 4, 16, summing to 40. Squaring strips the signs away, so slow and fast days both add to the spread.
  4. Sample SD: these five runs sample a longer season, so divide by n − 1 = 4: sample variance = 40 ÷ 4 = 10, and s = √10 ≈ 3.16 minutes.
  5. For comparison: treating the five runs as the whole story gives variance 40 ÷ 5 = 8 and σ = √8 ≈ 2.83 minutes.

Her typical run lands within roughly 3 minutes of her 34-minute average — steady, but with room to tighten.

The 68-95-99.7 Rule

For bell-shaped data, about 68% of values fall within one SD of the mean, 95% within two, and 99.7% within three. That is why SD is the backbone of grading curves, quality control, and polling margins.

Where Standard Deviation Does Real Work

Anywhere consistency matters as much as average performance. A teacher compares two classes with the same mean score and uses SD to see which class is being left behind at the extremes. A factory measures bolt diameters every hour; a rising SD warns that the machine is drifting before any single bolt actually fails. Investors read SD as volatility — two funds with equal average returns are not equal risks. A coach tracks an athlete’s sprint times, because a low SD means race-day performance is predictable, not just fast on a good day.

New to the method and want it slower, with the ideas built up from scratch? Read our guide: How to Find Standard Deviation.

Three Standard Deviation Mistakes

  • Dividing by n for a sample. Sample data tends to underestimate spread, so the divisor must be n−1; using n anyway shrinks the SD and overstates how precise your estimate is.
  • Reporting the variance as the SD. Variance lives in squared units — squared marks, squared minutes — and is always the bigger number. If your “SD” looks implausibly large, you probably forgot the final square root.
  • Averaging the deviations directly. Signed deviations always sum to zero, so skipping the squaring step “proves” every dataset has zero spread. Squaring is not decoration; it is what makes the measure work.

Worked Example 3: Same Mean, Different Spread — Two Classes Compared

The mean alone can hide everything that matters. Two classes sit the same test and both average exactly 80 — yet they are not performing alike at all:

  1. Class A scores: 70, 75, 80, 85, 90. Mean = 400 ÷ 5 = 80. Deviations are −10, −5, 0, 5, 10; their squares sum to 100 + 25 + 0 + 25 + 100 = 250. Population variance = 250 ÷ 5 = 50, so SD = √50 ≈ 7.07 marks.
  2. Class B scores: 78, 79, 80, 81, 82. Mean = 400 ÷ 5 = 80 again. Deviations are −2, −1, 0, 1, 2; their squares sum to 4 + 1 + 0 + 1 + 4 = 10. Variance = 10 ÷ 5 = 2, so SD = √2 ≈ 1.41 marks.
  3. Reading the result: both classes average 80, but Class A's marks sprawl from 70 to 90 while Class B is tightly bunched around the mean. Class B is the consistent class; Class A has students being left behind at the bottom even though its top matches. That is the judgment SD exists to make — the average said “equal”, the spread said otherwise.

Whenever you compare two groups, two products, or two time periods, report the mean and the SD together; either one alone can mislead. The NIST/SEMATECH e-Handbook of Statistical Methods is the reference engineers use for exactly these measures of spread, and once you have an SD, the probability calculator turns it into likelihoods — for example, how unusual a score two SDs above the mean really is.

Need the average first? Try our average calculator.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Population SD (σ) divides the sum of squared deviations by N and describes a complete dataset. Sample SD (s) divides by n−1 to correct for bias when estimating from a sample.

How is standard deviation calculated step by step?

Find the mean of your data, subtract that mean from each value to get its deviation, and square every deviation. Average the squares — dividing by N for a population, or by n−1 for a sample — and that average is the variance. Finally, take the square root of the variance. That root is the standard deviation, and it is expressed in the same units as your original data.

Why do we divide by n−1 for sample standard deviation?

Dividing by n−1 (Bessel's correction) compensates for the fact that a sample tends to underestimate the true spread of the full population.

Is this standard deviation calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser.

What does a standard deviation of 0 mean?

It means there is no spread at all: every value in the dataset is identical, so each deviation from the mean is 0 and the root of their average is 0. A class where all thirty students score exactly 70 has a mean of 70 and a standard deviation of 0 — the average describes every single student perfectly.

Can standard deviation ever be negative?

No. Each deviation is squared before averaging, and squares are never negative, so the variance is always zero or positive — and the standard deviation is defined as its positive square root. The smallest possible value is 0, for identical data. If a calculation hands you a negative SD, an arithmetic slip has happened upstream, usually a sign error in a deviation.

What is the difference between variance and standard deviation?

Variance is the average of the squared deviations, so it is measured in squared units — squared marks, squared minutes. Standard deviation is its square root, which brings the measure back into the original units of the data. A variance of 50 marks² and a standard deviation of √50 ≈ 7.07 marks describe the same spread; the SD is the one you can compare directly with the data.

How do I know if a standard deviation is high or low?

Judge it against the mean and the scale of the data — there is no universal cutoff. An SD of 7 marks around a mean of 80 is moderate spread; the same SD of 7 around a mean of 10 would be enormous. As a rough guide, most values in bell-shaped data fall within two SDs of the mean, so if that band covers nearly the whole plausible range, the SD is large for that dataset.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team