Standard Deviation Calculator
Calculate sample or population standard deviation instantly — just paste your numbers. This free calculator shows every step, from the mean to the final result, plus variance, standard error, and a live distribution chart.
Textbook-accurate formulas · Reviewed July 2026 · Method aligned with Bessel’s correction for sample data
Enter Your Data
Works with commas, spaces, tabs, or line breaks. Decimals and negatives are fine.
Use Sample when your data is a subset of a larger group (most common). Use Population only when you have every member of the group.
Your Result
Distribution & Spread
Your values, with the mean and ±1 SD band
- Value frequency
- Mean
- ±1 SD range
| Statistic | Value |
|---|
What Is Standard Deviation?
Standard deviation is a number that tells you how spread out your data is around its average. A small standard deviation means your values huddle close to the mean; a large one means they’re scattered widely. It’s one of the most useful ideas in all of statistics because it turns a vague sense of “consistent” or “all over the place” into a single, comparable figure — expressed in the same units as your original data.
Say two coffee shops both average a 5-minute wait. One has a standard deviation of 1 minute, the other 6 minutes. Same average, very different experience: the first is reliably quick, while the second swings from instant to painfully slow. That difference in consistency is exactly what standard deviation captures — and why analysts, scientists, teachers, and investors reach for it constantly.
How to Calculate Standard Deviation (Step by Step)
Whether you do it by hand or let the calculator above handle it, the method is the same five steps. Here’s the logic in plain English:
- Find the mean. Add up all your values and divide by how many there are.
- Find each deviation. Subtract the mean from every value to see how far each one sits from the center.
- Square each deviation. Squaring removes negative signs and gives extra weight to values far from the mean.
- Add them up and divide. Sum the squared deviations, then divide by n − 1 for a sample or N for a population. This gives you the variance.
- Take the square root. The square root of the variance is your standard deviation, back in the original units.
The standard deviation formula
For a sample, the formula is s = √[ Σ(xᵢ − x̄)² / (n − 1) ], where x̄ is the sample mean and n is the number of values. For a population, it’s σ = √[ Σ(xᵢ − μ)² / N ], where μ is the population mean and N is the total count. The only practical difference is the denominator — and the calculator above lets you switch between them with one tap.
Sample vs. Population Standard Deviation: Which Should You Use?
This is the question that trips up most students, so here’s the simple rule. If your data represents every single member of the group you care about — every student in one specific classroom, every product in a finished batch — use the population formula and divide by N. If your data is a sample meant to represent a larger group you can’t fully measure — 500 voters standing in for millions, 30 patients in a trial — use the sample formula and divide by n − 1.
In practice, sample standard deviation is what you’ll use the vast majority of the time, because we’re almost always working with a subset of a bigger picture.
| Sample Standard Deviation (s) | Population Standard Deviation (σ) | |
|---|---|---|
| When to use | Data is a subset of a larger group | Data includes the entire group |
| Denominator | n − 1 (Bessel’s correction) | N (total count) |
| Symbol | s | σ (sigma) |
| Mean symbol | x̄ (x-bar) | μ (mu) |
| Most common? | Yes — used most of the time | Less common in practice |
Why sample standard deviation divides by n − 1
Dividing by n − 1 instead of n is called Bessel’s correction. Here’s the intuition: your sample values naturally cluster a little closer to the sample mean than they would to the true population mean, because the sample mean is calculated from those same values. That makes the raw spread come out slightly too small. Dividing by the smaller number, n − 1, nudges the result upward just enough to correct that bias — giving an unbiased estimate of the population variance. The effect is dramatic for tiny samples (with 5 values, dividing by n underestimates variance by about 20%) and negligible once you’re into the hundreds.
How to Interpret Your Standard Deviation
A standard deviation is only meaningful next to the mean and the units. Here’s how to read yours:
- Compare it to the mean. An SD of 5 is tiny if the mean is 1,000, but huge if the mean is 8. To compare across different scales, look at the coefficient of variation (SD ÷ mean).
- Use the 68–95–99.7 rule. If your data is roughly bell-shaped, about 68% of values fall within 1 SD of the mean, 95% within 2 SD, and 99.7% within 3 SD. This is called the empirical rule.
- Spot outliers. Values more than 2–3 standard deviations from the mean are unusual and worth a closer look.
Where standard deviation is used in the real world
- Finance: measuring the volatility and risk of an investment’s returns.
- Manufacturing & quality control: checking whether a process stays within tolerance.
- Education: understanding how spread out test scores are around the average.
- Healthcare & research: reporting the variability of measurements in a study.
- Weather & science: describing how much daily values swing around a seasonal norm.
Frequently Asked Questions
There’s no universally “good” value — it depends entirely on your data and context. A standard deviation is considered low or high relative to the mean. A quick way to judge it is the coefficient of variation (standard deviation divided by the mean): a result under about 15% is generally considered low variability, while over 30% is high. In fields like manufacturing you want a small SD (consistency), whereas in investing a larger SD simply signals more volatility, not necessarily something bad.
Use sample standard deviation (divide by n − 1) when your data is a subset representing a larger group you can’t fully measure — this covers most real-world situations. Use population standard deviation (divide by N) only when your data includes every member of the group you care about. When in doubt, choose sample; it’s the safer and more common default, and this calculator uses it by default.
Variance is the average of the squared deviations from the mean, and standard deviation is simply its square root. They measure the same thing — spread — but standard deviation is expressed in the original units of your data (dollars, minutes, kilograms), which makes it far easier to interpret. Variance, being in squared units, is mainly used inside other formulas. This calculator reports both.
Standard deviation can be zero — that happens when every value in your dataset is identical, meaning there’s no spread at all. It can never be negative, because it’s the square root of squared deviations, and both squaring and square-rooting produce non-negative results. If you ever see a negative standard deviation, there’s a calculation error somewhere.
The mean tells you the center of your data; the standard deviation tells you how tightly the data clusters around that center. They work as a pair. Two datasets can share the same mean but have completely different standard deviations, which is why reporting the mean alone can be misleading. Together they give a much fuller picture of what your numbers look like.
Also called the empirical rule, it applies to data that follows a normal (bell-shaped) distribution. It states that roughly 68% of values fall within one standard deviation of the mean, about 95% fall within two standard deviations, and about 99.7% fall within three. It’s a fast way to judge whether a particular value is typical or unusual for your dataset.
Methodology & formulas used
This calculator computes results using standard textbook formulas, reviewed in July 2026:
- Mean: x̄ = Σxᵢ / n
- Sample variance: s² = Σ(xᵢ − x̄)² / (n − 1)
- Sample standard deviation: s = √(s²)
- Population variance: σ² = Σ(xᵢ − μ)² / N
- Population standard deviation: σ = √(σ²)
- Standard error of the mean: SE = s / √n
Sample mode applies Bessel’s correction (n − 1) to give an unbiased estimate of population variance. All calculations run locally in your browser; your data is never sent anywhere. Results are rounded for display but computed at full precision.
References
- National Institute of Standards and Technology (NIST). Standard Deviation and Variance — Engineering Statistics Handbook. itl.nist.gov
- Bessel’s Correction — the use of n − 1 for unbiased sample variance. en.wikipedia.org
- NIST/SEMATECH. The Empirical Rule (68–95–99.7). e-Handbook of Statistical Methods. itl.nist.gov/div898/handbook
