📊 Standard Deviation Calculator
Calculate population and sample standard deviation, variance, mean, and median for any numeric data set. Includes step-by-step working and the empirical 68-95-99.7 rule.
Measuring Spread — Sample vs Population Matters
BrainyCalculators editorial insight — unique to this tool
Standard deviation quantifies how far values scatter from the mean — a class with test scores σ = 4 points is homogeneous; σ = 18 signals wide ability gaps. Use sample SD (n−1 denominator) when inferring from a subset; population SD (n denominator) when you have the full census. Manufacturing QC tracks σ on bolt diameters; finance uses it for portfolio volatility (annualized σ of daily returns).
When to use this calculator
Use when you need dispersion for quality control, risk, or as input to z-scores and confidence intervals. For relationship strength between two variables, use Correlation instead.
| Reference | Value | Context |
|---|---|---|
| 68% rule (normal) | Within ±1σ | Empirical guideline |
| 95% rule (normal) | Within ±2σ | Quality bands |
| Sample vs population | n−1 vs n | Bessel correction |
| S&P 500 historical σ | ~15–20%/yr | Equity volatility |
Not what you need? For association between two datasets, use Correlation. For ranking a single score, use Z-score or Percentile.
Focused only on variance (σ² or s²)?
This page leads with standard deviation and the empirical rule. For a variance-first calculator with population vs sample emphasis, use the Variance Calculator →
Data (sorted)
What is Standard Deviation?
Standard deviation (σ or s) measures how spread out values are around the mean, in the same units as the original data. Low SD means values cluster near the average; high SD means wide dispersion. This page computes population SD (divide by N) and sample SD (divide by N−1) with full step-by-step working.
Variance is the square of standard deviation — useful in formulas and ANOVA, but harder to interpret because units are squared. This calculator reports both, but SD is usually the headline dispersion metric for reporting and comparison.
For a dedicated variance workflow with population vs sample variance focus and the variance–SD relationship explained in depth, use the Variance Calculator. This page treats SD as primary and includes mean, median, and empirical rule context.
Standard Deviation Formulas
Use population SD (σ) when you have data for the entire population. Use sample SD (s) when your data is a sample from a larger population — the (N−1) denominator corrects for bias.
How to Calculate Standard Deviation
-
1Choose Population or SampleSelect population SD (σ) if you have all the data, or sample SD (s) if your data is a subset.
-
2Enter Your NumbersType or paste your numbers separated by commas, spaces, or new lines. Decimals are supported.
-
3Read Your ResultsThe calculator instantly shows count, mean, median, min, max, range, variance, and standard deviation.
-
4Review Sorted DataThe sorted data list helps you spot outliers and understand the distribution visually.
Real-World Example
Data set: 4, 8, 15, 16, 23, 42
How the Standard Deviation Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Formula Used
Sample SD = sqrt(sum((x - mean)^2) / (n - 1))
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
Standard deviation measures how spread out data values are from the mean. A low SD means data points are clustered close to the average; a high SD means they are widely spread. It is fundamental in statistics, finance, and science.
Use population SD (σ) when you have data for every member of the group (e.g. all test scores in one class). Use sample SD (s) when your data represents a subset of a larger group (e.g. a survey sample). Sample SD uses N−1 to reduce bias.
Variance is the square of the standard deviation. It represents the average squared distance from the mean. While variance is useful in calculations, standard deviation is easier to interpret because it is in the same units as the original data.
For a normal (bell-curve) distribution: about 68% of data falls within 1 SD of the mean, 95% within 2 SD, and 99.7% within 3 SD. This rule helps identify outliers — values beyond 3 SD are statistically unusual.
Outliers have a large effect on SD because each deviation is squared before averaging, amplifying the impact of extreme values. If you have suspected outliers, consider reporting both the full SD and the SD with outliers removed.
Real-World Applications
Common Mistakes
Empirical Rule (68–95–99.7) Quick Reference
| Range | % of Data (Normal Dist.) | Usage Context |
|---|---|---|
| Mean ± 1σ | 68.27% | Normal performance range |
| Mean ± 2σ | 95.45% | Medical reference ranges; QC warning limits |
| Mean ± 3σ | 99.73% | SPC control limits; rare event threshold |
| Mean ± 6σ | 99.9999998% | Six Sigma quality target (3.4 DPMO) |
References
- Montgomery, D.C. and Runger, G.C. Applied Statistics and Probability for Engineers. Wiley, 2018.
- Gosset, W.S. ("Student"). "The Probable Error of a Mean." Biometrika, 1908.
- Navidi, W. Statistics for Engineers and Scientists. McGraw-Hill, 2015.
- NIST/SEMATECH. e-Handbook of Statistical Methods. itl.nist.gov, 2012.
- Moore, D.S. The Basic Practice of Statistics. W.H. Freeman, 2020.
Related Calculators
Browse all Statistics calculators →Mean Calculator
Calculate arithmetic mean, geometric mean, and harmonic mean for any data set.
Variance Calculator
Calculate population and sample variance for any data set.
Z-score Calculator
Calculate z-score (standard score) and find corresponding probabilities.