EasyCalEasyCal
πŸ“ˆ
Math

Standard deviation

Paste comma-separated numbersβ€”mean, sample standard deviation, and a line plot of your series.

Data

Comma-separated values

Live

Summary

Run calculate to see statistics.

Deep guide Β· Statistics

Standard deviation calculator β€” measuring data spread

For 4, 8, 6, 5, 3, 7, 9, 2, the mean is 5.50. Treated as a full population, the standard deviation is 2.29; treated as a sample of something larger, it's 2.45. Both numbers describe the same thing β€” how far, typically, a value sits from the average β€” they just correct for sample bias differently.

Below is the calculation worked by hand with these numbers, the population-vs-sample distinction explained with the actual arithmetic, and what a number like 2.29 actually tells you once you have it.

Working through the calculation

  1. Find the mean: (4 + 8 + 6 + 5 + 3 + 7 + 9 + 2) Γ· 8 = 5.50.
  2. Subtract the mean from each value, then square that difference β€” this turns every deviation positive so they don't cancel out when you average them.
  3. Add up the squared differences: 42.00 in total.
  4. Divide by 8 for population variance (5.25), or by 7 for sample variance (6.00).
  5. Take the square root to get back to the original units β€” 2.29 for population, 2.45 for sample.
ValueDifference from meanSquared difference
4-1.502.25
82.506.25
60.500.25
5-0.500.25
3-2.506.25
71.502.25
93.5012.25
2-3.5012.25
Sum0.0042.00

The middle column always sums to zero β€” that's baked into what a mean is, and it's a quick way to check your own arithmetic. If your differences don't sum to roughly zero, go back and recheck the mean.

Population vs sample: which divisor to use

MeasureDivisorVarianceStandard deviation
Populationn = 85.252.29
Samplenβˆ’1 = 76.002.45

Dividing by nβˆ’1 instead of n always produces a slightly bigger number β€” here it's the difference between 2.29 and 2.45. The reason: a sample's mean is calculated from the same data it's measuring spread against, so the data sits a touch closer to its own mean than it would to the true population mean. Dividing by the smaller nβˆ’1 (Bessel's correction) compensates for that. The gap matters most with small samples β€” with 8 points it's a real difference; with a few hundred it would barely register.

Use the population version only when your numbers really are the whole group β€” every student in the class, every unit made this shift. The moment the data is a subset standing in for something bigger, which covers most surveys, experiments, and quality checks, use the sample version instead.

What the number actually means

A standard deviation of 2.29 against a mean of 5.50 says values here typically land about 2.29 away from average β€” a fair amount of spread relative to a mean under 10. The same 2.29 sitting under a mean of 5,000 would barely register. That's what the coefficient of variation is for: standard deviation as a percentage of the mean, so spread can be compared fairly across different scales. Here it's (2.29 Γ· 5.50) Γ— 100 β‰ˆ 41.7%.

The clearest way to see why this matters: two datasets can share an identical mean and still tell completely different stories. Take two classes of five students, both averaging exactly 70 on a test.

ClassScoresMeanStandard deviation
A68, 69, 70, 71, 7270~1.41
B40, 55, 70, 85, 10070~21.2

Class A's average of 70 tells you roughly what every student scored. Class B's average of 70 hides a room split between students who struggled and students who aced it β€” a very different teaching problem. The average alone can't distinguish the two; the standard deviation does, immediately.

The empirical rule and z-scores

When data is shaped roughly like a bell curve, standard deviation predicts how it clusters with unusual consistency: about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. Applied here, roughly 68% of values would typically fall between 3.21 and 7.79 if the underlying process were normal β€” worth treating as illustrative rather than solid with only 8 points. It doesn't apply at all to skewed or multi-peaked data.

A z-score turns this into a per-value measurement: (value βˆ’ mean) Γ· standard deviation, telling you how many standard deviations a specific point sits from the average. The largest value here, 9, has a z-score of 1.53 β€” about 1.53 standard deviations above the mean. Under the empirical rule, anything beyond roughly Β±2 starts looking unusual for normally distributed data, which is the logic most outlier-detection and fraud-screening rules are quietly built on.

Where people go wrong

  • Using the population formula on data that's actually a sample β€” inflates confidence in a number that should carry more uncertainty.
  • Comparing standard deviations across datasets with very different means without converting to coefficient of variation first.
  • Applying the 68-95-99.7 rule to data that's visibly skewed or has more than one peak.
  • Treating variance and standard deviation as interchangeable β€” variance is in squared units and doesn't mean much on its own.
  • Reporting a mean with no measure of spread at all, which hides whether the underlying data was consistent or all over the place.
  • Trusting a small sample's standard deviation as a precise, final number rather than an estimate that would shift with more data.

Strengths and limitations

Strengths

  • Uses every data point, not just the extremes.
  • Same units as the original data, unlike variance.
  • Underpins confidence intervals and most significance tests.

Limitations

  • Sensitive to outliers β€” squaring amplifies extreme values.
  • Misleading for skewed or multi-modal distributions.
  • Easy to misreport by mixing up population and sample.

Where this shows up outside a classroom

A fund's historical standard deviation of returns is one of the standard shorthand measures of how volatile it's been β€” two funds can post the same average annual return while one swings far harder above and below it along the way, and standard deviation is what separates them on paper. A factory tracks the standard deviation of a measurement over time on a control chart, because a rising figure often signals a developing problem before the average itself drifts off target β€” two production lines can both hit their target on average while one quietly produces far more units outside tolerance.

Standardized test scores get reported with a cohort standard deviation so a single score can be judged against how spread out everyone else's results were, not just against the average. Scientific papers report it alongside every mean, because a result is far less convincing without some sense of how consistent the underlying measurements actually were. And most machine learning pipelines standardize input features using exactly this calculation before training a model, so that a feature measured in thousands doesn't quietly dominate one measured in single digits.

How much data do you actually need

With only 8 points, both 2.29 and 2.45 are honest calculations on the data given, but they're noisy estimates of whatever the "true" spread would look like with more data. Add or remove a single unusual value from a small dataset and the standard deviation can shift noticeably; the same swap barely moves the number once you're working with hundreds of points. There's no fixed threshold where a dataset suddenly becomes "big enough" β€” it depends on how much the answer needs to be relied on β€” but treat anything under about 10-15 points as a useful first read rather than a settled figure, and get more data before leaning on it for a real decision.

Key takeaways

  • Mean: 5.50; median: 5.50.
  • Population standard deviation: 2.29; sample standard deviation: 2.45.
  • Use the sample version whenever your data is drawn from a larger population β€” nearly always.
  • Coefficient of variation here: 41.7% β€” use it to compare spread across different scales.
  • For roughly normal data, about 68% of values fall within one standard deviation of the mean.

Frequently asked questions

What is the standard deviation of 4, 8, 6, 5, 3, 7, 9, 2?
The mean is 5.50. Treat the numbers as the full population and you get 2.29; treat them as a sample and you get 2.45. Same data, two slightly different answers depending on which one applies to your situation.
Population or sample β€” which one do I actually want?
Sample, almost always. Population standard deviation only applies when your numbers are the entire group you care about, with nothing left out β€” a full class roster, every unit a factory made this week. The moment your data is a slice of something bigger (a survey, a test batch, a handful of readings), use sample standard deviation: 2.45 here, not 2.29.
Why divide by nβˆ’1 for a sample instead of n?
A sample's own mean is pulled from that same sample, so the data sits slightly closer to it than it would to the true population mean. Dividing by the smaller number (nβˆ’1) inflates the result just enough to correct for that β€” known as Bessel's correction. It matters most for small samples; with 8 points here it pushes the figure from 2.29 up to 2.45.
What is variance, and why do I need standard deviation too?
Variance is the average squared distance from the mean β€” 5.25 here. It's mathematically convenient but the units are squared, so it doesn't map back onto anything real. Take the square root and you get standard deviation, 2.29, back in the same units as your original numbers.
Why square the differences instead of just averaging them?
Because raw differences from the mean always sum to zero β€” that's a property of what a mean is, not a coincidence. Squaring makes every deviation positive before you average, which is exactly why the square root has to come back at the end to undo it.
What counts as a "high" or "low" standard deviation?
There's no universal cutoff β€” it depends entirely on the mean and the units. A standard deviation of 2.29 against a mean of 5.50 is fairly wide relative to the average; the same 2.29 against a mean of 5,000 would be negligible. That's what the coefficient of variation is for.
What is the coefficient of variation?
Standard deviation divided by the mean, times 100 β€” it turns spread into a percentage so you can compare variability across datasets with different units or scales. Here that's (2.29 Γ· 5.50) Γ— 100 β‰ˆ 41.7%.
What is the empirical rule (68-95-99.7)?
For data shaped like a bell curve, about 68% of values sit within one standard deviation of the mean, 95% within two, 99.7% within three. It only holds for roughly normal distributions β€” skewed or lumpy data will disobey it.
How is standard deviation different from just taking the range?
Range is only the gap between the biggest and smallest value β€” 7.00 here β€” so one outlier can swing it entirely. Standard deviation weighs every point's distance from the mean, which is why it's the more trustworthy number for describing overall spread.
Does a dataset this small (n=8) give a reliable standard deviation?
It computes fine, but treat it as a rough estimate rather than a settled figure. Below roughly 10-15 points, one unusual value can move the result a lot β€” more data narrows that noise.
What is a z-score and how does it use standard deviation?
A z-score is (value βˆ’ mean) Γ· standard deviation β€” it tells you how many standard deviations a specific point sits from the average, which lets you compare how unusual two values are even when they come from datasets with completely different means and units.

Putting it together

Standard deviation condenses a whole dataset's spread into one number, in the same units as the data itself. The mean tells you where the centre is; the standard deviation tells you how much individual values actually vary around it β€” report one without the other and you're only giving half the picture. Whether you're sizing up investment risk, watching a production line, or grading a test, it's the same four steps every time: mean, squared differences, average, square root.

Methodology

Figures are computed live from the numbers you entered, or the illustrative dataset shown above. Both population and sample standard deviation are calculated since the right one depends on whether your data is the entire group of interest or a sample drawn from a larger one. The empirical rule percentages are approximations that hold exactly only for a truly normal distribution β€” treat them as a rule of thumb, especially with a small dataset.

More tools on EasyCal for loans, savings, and planning.

Educational content for general learning purposes β€” not a substitute for statistical software or professional analysis for research, quality control, or business decisions with real financial or safety consequences.