Standard Deviation Calculator
Paste or type a list of numbers to get the full set of descriptive statistics — mean, median, mode, variance and standard deviation, quartiles, IQR and outliers — with a histogram.
- Mean
- 5
- Std deviation
- 2.1381
Calculator
- Count (n)
- 8
- Sum
- 40
- Mean
- 5
- Median
- 4.5
- Mode
- 4
- Range
- 7
- Minimum
- 2
- Maximum
- 9
- Q1 (25%)
- 4
- Q3 (75%)
- 6
- IQR
- 2
- Outliers
- none
Step-by-step solution
- n = 8
- x̄ = Σx / n = 40 / 8 = 5
- xᵢ − x̄ = -3, -1, -1, -1, 0, 0, 2, 4
- (xᵢ − x̄)² = 9, 1, 1, 1, 0, 0, 4, 16
- Σ(xᵢ − x̄)² = 32
- s² = Σ(xᵢ − x̄)² / (n − 1) = 32 / (8 − 1) = 4.5714
- s = √4.5714 = 2.1381
Histogram of the data with the mean and ±1σ and ±2σ bands marked.
Show data table
| Distribution | Count (n) |
|---|---|
| 2–3.75 | 1 |
| 3.75–5.5 | 5 |
| 5.5–7.25 | 1 |
| 7.25–9 | 1 |
About this calculator
This calculator analyses any list of numbers and returns a full summary: mean, median, mode, range, population and sample standard deviation, variance, quartiles, IQR, and outliers. Use it whenever you need to understand how spread out a data set is, whether for a school assignment, a scientific study, or a quality-control check.
How to read your results
The headline figure is the standard deviation — either population (σ, divides by n) or sample (s, divides by n−1), switchable with the toggle. Below it you see variance, median, and range at a glance. The full statistics table lists every measure including Q1, Q3, IQR, and any flagged outliers. The histogram plots the frequency of each bin and shades the ±1σ band around the mean, with a dashed line marking the mean itself.
How it's calculated
The mean is the arithmetic average (sum ÷ count). Variance is the average of squared deviations from the mean: divide by n for population, by n−1 for sample. Standard deviation is the square root of variance. Median is the middle value of the sorted list; for even counts it is the average of the two central values. Quartiles use the median-of-halves method, excluding the median itself for odd-length lists. Outliers are flagged using the 1.5 · IQR rule applied to the resulting fences. Sources: Wolfram MathWorld and Khan Academy (see references).
Worked example
Enter the classic dataset 2, 4, 4, 4, 5, 5, 7, 9 (eight values used in most statistics textbooks) and select the population mode.
The mean is 5, the population standard deviation is exactly 2, and the variance is 4. Switching to sample mode gives s ≈ 2.1381 and variance ≈ 4.5714, because the denominator becomes n−1 = 7.
Frequently asked questions
What is the difference between population and sample standard deviation?
Population standard deviation (σ) divides the sum of squared deviations by n, the total count. Sample standard deviation (s) divides by n−1 — a correction called Bessel's correction — which removes a small downward bias when you are estimating from a subset of a larger group. Use population mode when your list is the entire group; use sample mode when it is a subset drawn from a larger population.
How are outliers detected?
The calculator uses the interquartile range (IQR) fence rule: any value below Q1 − 1.5 · IQR or above Q3 + 1.5 · IQR is flagged as a potential outlier. This method works well for roughly symmetric distributions; very skewed data may need a different approach.
What does a higher standard deviation tell me?
A high standard deviation means the values are spread widely around the mean; a low one means they cluster closely. Two datasets with the same mean can behave very differently in practice — the one with the larger standard deviation carries more variability and, in many fields, more risk.
Sources
- mathworld.wolfram.com/StandardDeviation.html
- www.khanacademy.org/math/statistics-probability/summarizing-quantitative-data/variance-standard-deviation-population/a/calculating-standard-deviation-step-by-step
Reviewed by the YouCalc Team · Last reviewed
Spot a translation issue, a calculation issue, or have a suggestion? Let us know.