Math Solver Free

Statistics

How to Find Standard Deviation: Step-by-Step With a Full Example

Math Solver Free Team

Seen from above, a hand working through calculations with a large calculator and notes

The mean tells you where a data set is centred; the standard deviation tells you how spread out it is around that centre. A standard deviation of 2 and a standard deviation of 20 describe completely different data, even if both means are 50. This guide gives the step-by-step method, works one data set completely — every deviation, every square, every total shown — explains the population-versus-sample decision that changes the answer, and clarifies how variance differs. The standard deviation calculator can then verify any set in seconds.

Population vs sample: decide this first

There are two versions of the calculation, and choosing the wrong one is the most common standard deviation error.

  • Population standard deviation (σ) — use it when your data is the entire group you care about: the test scores of all 28 students in this class, the heights of every player on this team. You divide by N, the number of values.
  • Sample standard deviation (s) — use it when your data is a sample drawn from a larger group you want to make a claim about: 28 students measured to estimate a whole school. You divide by n − 1 instead of n. Dividing by the smaller number makes the result slightly larger, which corrects the fact that a sample usually understates the true spread.

Everything else in the method is identical; only that one divisor changes.

The method, step by step

  1. Find the mean (add all values, divide by how many there are).
  2. Find each deviation: subtract the mean from every value.
  3. Square each deviation. (Squaring makes all values positive and penalises far-away values more.)
  4. Add the squared deviations.
  5. Divide by N (population) or n − 1 (sample). This result is the variance.
  6. Take the square root. That is the standard deviation.

Full worked example

Data set: 2, 4, 4, 4, 5, 5, 7, 9 — eight values. Treat them first as a complete population.

  1. Mean: 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40, and 40 ÷ 8 = 5.
  2. Deviations (value − 5): 2 − 5 = −3; 4 − 5 = −1; 4 − 5 = −1; 4 − 5 = −1; 5 − 5 = 0; 5 − 5 = 0; 7 − 5 = 2; 9 − 5 = 4. (Sanity check: the deviations sum to −3 − 1 − 1 − 1 + 0 + 0 + 2 + 4 = 0 — they always do.)
  3. Squared deviations: (−3)² = 9; (−1)² = 1; 1; 1; 0² = 0; 0; 2² = 4; 4² = 16.
  4. Sum of squared deviations: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
  5. Variance (population): 32 ÷ 8 = 4.
  6. Standard deviation (population): √4 = 2.

So this data set has mean 5 and σ = 2: a typical value sits about 2 units from the mean. Now treat the same eight numbers as a sample: only step 5 changes. Variance = 32 ÷ (8 − 1) = 32 ÷ 7 ≈ 4.571, and s = √4.571 ≈ 2.14. Same data, two correct answers — the question being asked decides which one is yours.

A second example: test scores

Three quiz scores: 70, 80, 90. The mean is (70 + 80 + 90) ÷ 3 = 80. Deviations: −10, 0, 10. Squares: 100, 0, 100 — sum 200. As a population: variance = 200 ÷ 3 ≈ 66.67, standard deviation = √66.67 ≈ 8.16 points. As a sample: variance = 200 ÷ 2 = 100, standard deviation = √100 = 10 points. With tiny data sets the n − 1 correction is large, which is exactly when examiners test whether you know it.

Variance vs standard deviation

The two are the same information at different stages of the calculation: variance is the average squared deviation; standard deviation is its square root. The practical difference is units. In the worked example the variance is 4 squared units — a unit nobody can picture — while the standard deviation is 2 units, directly comparable with the data and the mean. That is why reports almost always quote the standard deviation, while the variance survives inside formulas (for example, the variance of a sum combines neatly, and standard deviations do not). If a question asks for variance, stop after step 5; if it asks for standard deviation, always take the root in step 6.

Reading the result: what a big or small SD means

Standard deviation is only meaningful next to its mean. Two classes can both average 75 on a test: if Class A has SD 3, nearly everyone scored in the low-to-high 70s — consistent, tightly grouped results. If Class B has SD 12, the same average hides scores from the 50s to the 90s — a class of strugglers and stars. A standard deviation of 0 is possible only when every value is identical. As a rough guide for bell-shaped data, about 68% of values fall within one standard deviation of the mean — for the worked example, between 3 and 7, which indeed holds 6 of the 8 values.

Common mistakes

  • Dividing by n for a sample. Samples divide by n − 1. Read the question: "the scores of all students in the class" is a population; "a sample of students" is not.
  • Reporting the variance as the standard deviation. If your answer is 4 for the worked example, you stopped one step early — the root gives 2.
  • Averaging the deviations without squaring. The raw deviations always sum to zero, so this "method" gives 0 for every data set ever. Square them (or take absolute values for a different measure, the mean absolute deviation).
  • Rounding too early. Keep the sum of squares exact (32, not "about 32") until the final root, or rounding errors compound.
  • Forgetting that SD is never negative. It is a square root of an average of squares, so a negative answer signals an arithmetic slip, not a result.

How the standard deviation calculator helps

Paste your data into the standard deviation calculator and it returns the mean, variance, and both the population and sample standard deviations at once — ideal for checking homework, because you can match the version your question asked for and compare each intermediate figure (sum of squared deviations included) against your own working. If your final answer differs, the first intermediate that disagrees is where the slip lives.

Standard deviation worked example: data 2, 4, 4, 4, 5, 5, 7, 9 has mean 5; squared deviations sum to 32, variance is 32 divided by 8 equals 4, so the standard deviation is 2

Frequently asked questions

What is the formula for standard deviation?

Find the mean, subtract it from every value, square the differences, average them (dividing by N for a population or n − 1 for a sample) to get the variance, then take the square root.

When do I divide by n − 1 instead of n?

When your data is a sample from a larger population you want to describe. For the complete group itself, divide by N. The sample version (Bessel's correction) is slightly larger to offset the sample's tendency to understate spread.

What is the difference between variance and standard deviation?

Variance is the average of the squared deviations, measured in squared units. Standard deviation is the square root of the variance, measured in the original units, which makes it the one you can interpret directly.

Can standard deviation be zero or negative?

Zero, yes — when every value is identical. Negative, never: it is the square root of an average of squares, so a negative result means an arithmetic error.

What is a "good" standard deviation?

There is no universal good value — it depends on the mean and the context. An SD of 2 is large for data centred at 5 and tiny for data centred at 5,000. Compare the SD with the mean and with the range the data could take.

Why do we square the deviations?

For two reasons: squaring removes the signs (the raw deviations always sum to zero), and it weights large deviations more heavily, so outliers visibly increase the spread — usually exactly what you want a spread measure to do.

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