πAI Math Solver

Calculators

Standard Deviation Calculator

A standard deviation calculator with steps: paste your data set and get the sample standard deviation, the variance, and the mean behind it.

Enter numbers separated by commas, then click Calculate.

Type or handwrite the full problem — the AI will solve it and explain every step

How to use this standard deviation calculator

Paste your data set, click Calculate. The standard deviation calculator form has one box, pre-filled with 2, 4, 4, 4, 5, 5, 7, 9 — and it returns four rows at once.

  • Data set (comma-separated numbers) — every value in your list, any order. The standard deviation calculator does the sorting and summing internally.
  • Four rows come back: Standard deviation (sample, n−1) ≈ 2.1381, Variance (sample, n−1) ≈ 4.5714, Mean = 5, Count = 8.

Type your own list over the default — temperatures, test scores, reaction times. Decimals and negatives are welcome; keep the values separated by commas. Both spread rows use the sample formulas with n−1n-1 in the denominator, the standard choice when your data is a sample rather than a complete population (why, below).

This page is more than a static standard deviation calculator — it is also an AI tutor you can ask questions:

  • Ask in plain words. “How spread out is 4, 8, 15, 16, 23, 42?” The AI computes the standard deviation step by step.
  • Take a photo of your homework. The AI reads the data set from the page and shows every step.
  • Ask about the ideas, not just the number. “What does a standard deviation of 2 actually mean?” The AI explains — and you can check every number against the standard deviation calculator above, so nothing is guessed.
  • Work backwards. Ask which of two data sets is more consistent, and the AI compares their spreads step by step.
  • Keep asking follow-ups. Ask “why?” as often as you need — the standard deviation calculator page keeps teaching.

What standard deviation is

The mean tells you where the center is; the standard deviation tells you how far the values typically wander from it. It is a typical distance from the mean, in the data's own units.

Two data sets, both with mean 5:

  • Set A: 4, 4, 5, 5, 7 — every value sits within 2 of the mean.
  • Set B: 1, 4, 5, 6, 9 — same mean, but the ends reach 4 away.

Same center, different consistency — and only the spread row would show it. Type both into the standard deviation calculator and watch the numbers separate. A small ss means values huddle (consistent manufacturing, reliable free throws); a large ss means values scatter.

One more reading, for bell-shaped data: the 68-95-99.7 rule. Roughly 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. A mean of 70 with s=3s = 3 predicts most scores between 64 and 76. The rule is exact only for normal distributions — the normal distribution page on this site draws the full curve — but it is a good rough guide whenever data piles up in one hump.

How it is computed

Every standard deviation calculator runs one formula:

s=∑(xi−xˉ)2n−1s=\sqrt{\dfrac{\sum(x_i-\bar{x})^2}{n-1}}

SymbolMeaning
xix_ieach value in the data set
xˉ\bar{x}the mean of those values
(xi−xˉ)2(x_i-\bar{x})^2a distance from the mean, squared
n−1n-1the count minus one (Bessel's correction)
ssthe sample standard deviation

The recipe behind it, in four moves:

  1. Find the mean xˉ\bar{x} of the data.
  2. Square each deviation (xi−xˉ)2(x_i - \bar{x})^2 and add them up.
  3. Divide by n−1n-1 — that quotient is the sample variance s2s^2.
  4. Take the square root — you are back in the original units; that is ss.

Why square at all? Raw deviations always sum to zero — the positives and the negatives cancel. Squaring makes every deviation positive, so spread cannot hide. The final square root undoes the squaring of the units.

Example - worked by hand

The default data set, every step visible. Data: 2, 4, 4, 4, 5, 5, 7, 9.

  1. Mean: the sum is 4040 over n=8n = 8 values, so xˉ=40÷8=5\bar{x} = 40 \div 8 = 5.
  2. Deviations from 5: −3,−1,−1,−1,0,0,2,4-3, -1, -1, -1, 0, 0, 2, 4.
  3. Square them: 9,1,1,1,0,0,4,169, 1, 1, 1, 0, 0, 4, 16. Sum: 9+1+1+1+0+0+4+16=329+1+1+1+0+0+4+16 = 32.
  4. Sample variance: s2=32÷(8−1)=32/7≈4.5714s^2 = 32 \div (8-1) = 32/7 \approx 4.5714.
  5. Sample standard deviation: s=4.5714≈2.1381s = \sqrt{4.5714} \approx 2.1381.

A three-column table — value, deviation, squared deviation — keeps the bookkeeping tidy, and that table is exactly what the AI box shows if you ask it to walk the same data.

In words: these eight values average 5, and they typically sit about 2.14 away from 5. The standard deviation calculator above confirms both decimals in its first two rows.

Why n − 1?

Divide by n−1n-1 instead of nn? The adjustment has a name — Bessel's correction — and a one-sentence reason: a sample understates the true spread, so the estimate gets nudged up.

Why does a sample understate? Deviations are measured from the sample's own mean xˉ\bar{x}, and no number sits closer to your sample than its own average — the sum of squared deviations around xˉ\bar{x} is the smallest it can be. The true center μ\mu usually lies a bit further from your sample's values, so deviations measured around μ\mu would be larger. Dividing by n−1n-1 instead of nn compensates.

When would you divide by nn? When your data is the whole population — every fifth grader in one school, not a sample of fifth graders. Then there is no larger group being estimated, and the population formula σ=∑(xi−μ)2/n\sigma=\sqrt{\sum(x_i-\mu)^2/n} is the right one.

The standard deviation calculator on this page reports the sample version, n−1n-1 — the safer default whenever data is drawn from something bigger. The gap shrinks as samples grow: with n=100n = 100, the correction barely matters.

Common standard deviation mistakes

  1. Stopping at the variance. After the division, the number is in squared units — s2≈4.5714s^2 \approx 4.5714 for the example data. If the answer must sit beside the data in its own units (points, dollars, degrees), take the square root: s≈2.1381s \approx 2.1381. The standard deviation calculator lists both rows precisely to keep them apart.
  2. Dividing by nn on a sample. For sample data the denominator is n−1n-1. Dividing by nn shrinks the result — for the example, 32÷8=432 \div 8 = 4 instead of 32÷7≈4.571432 \div 7 \approx 4.5714 — and understates the spread.
  3. Skipping the squaring. The raw deviations −3,−1,−1,−1,0,0,2,4-3, -1, -1, -1, 0, 0, 2, 4 sum to exactly 0 — always. Without squaring, every data set looks perfectly concentrated. The squares are what make spread measurable.
  4. Deviating from the wrong center. Deviations come from the mean of the same data set — not from 0, and not from a target value.

Run your hand computation past the standard deviation calculator — each of these errors appears as a mismatch in the first row.

Problem 1

Find the sample standard deviation of 4, 8, 15, 16, 23, 42. Round to two decimal places, and check your answer with the standard deviation calculator above.

⏱ 00:00
Page 1
Problem 2

Compute the sample variance and the sample standard deviation of 1, 3, 5, 7. Check both with the standard deviation calculator above.

⏱ 00:00
Page 1

Frequently asked questions

1

What does standard deviation tell you?

It is the typical distance between a value and the mean. A standard deviation of 0 means every value is identical; a large standard deviation means values scatter widely. The standard deviation calculator above reports it in the data's own units.

2

How do I calculate standard deviation by hand?

Four steps: find the mean; subtract the mean from each value and square the deviations; add the squares and divide by n − 1 to get the variance; take the square root. The standard deviation calculator above checks each intermediate number.

3

Should I use sample or population standard deviation?

Divide by n when your data is the entire population; divide by n − 1 when it is a sample from a larger group. The n − 1 form (Bessel's correction) corrects a sample's tendency to understate spread. This standard deviation calculator uses the sample version.

4

What is a good standard deviation?

There is no absolute good — it depends on the scale and the context. Test scores with s = 2 are extremely consistent; machine tolerances measured in millimeters with s = 2 are not. Compare the standard deviation calculator's output against the precision the situation demands.

5

Is standard deviation the same as variance?

No — variance is the standard deviation squared. Variance averages the squared deviations (units squared); the standard deviation takes its square root to return to the data's units. The standard deviation calculator shows both rows so you can see the relationship.

Related practice