Descriptive Statistics Calculator
Paste any list of numbers and instantly get the mean, median, mode, range, variance, standard deviation, quartiles and IQR. Switch between sample and population, see the squared-deviation working, all in your browser — no signup, sources cited below.
How it works
This calculator follows the formulas in the NIST/SEMATECH e-Handbook of Statistical Methods — the same definitions used in A/L Combined Maths and university business-statistics courses. Let your values be x₁ … xₙ, sorted ascending for the order statistics.
- Sum and mean. Add every value to get the sum S = Σxᵢ, then divide by the count: x̄ = S ÷ n.
- Median (Q2). The middle value once sorted. With an even count it is the average of the two central values.
- Mode. The value (or values) that occur most often. When every value is unique the set has no mode; ties report all of them.
- Range. Maximum minus minimum — the simplest measure of spread.
- Variance and standard deviation. Take each deviation (xᵢ − x̄), square it, and add them up to get Σ(xᵢ − x̄)². For a population divide by n; for a sample divide by n − 1, the Bessel correction that makes s² an unbiased estimator. The standard deviation is the square root of the variance.
- Coefficient of variation. CV = SD ÷ |x̄| × 100, a unit-free percentage that compares spread across data sets on different scales. It is shown only when the mean is non-zero.
- Quartiles and IQR. Split the ordered data at the median (excluding it from both halves when the count is odd). Q1 is the median of the lower half, Q3 the median of the upper half, and IQR = Q3 − Q1.
A note on quartiles: there are nine recognised methods (Hyndman & Fan, 1996). This tool uses the median-of-halves convention, also called Tukey's hinges, which is the one most school textbooks teach. Spreadsheet functions such as Excel's QUARTILE.INC use linear interpolation and can return slightly different Q1/Q3 values — neither is wrong, they simply use different definitions. Every result is also cross-checked: the standard deviation's sum of squares is computed a second way with the raw-score identity Σxᵢ² − (Σxᵢ)²/n, and the two must agree.
Worked examples
All three are reconciled by hand above and against OpenIntro Statistics §1.6.
Frequently asked questions
Sources & references
- NIST/SEMATECH e-Handbook §1.3.5 — Measures of location and variability (mean, median, variance, SD)
- NIST/SEMATECH e-Handbook §7.1.6 — Percentiles and quartiles
- Hyndman, R.J. & Fan, Y. (1996), Sample Quantiles in Statistical Packages, The American Statistician 50(4):361–365
- OpenIntro Statistics, 4th ed. §1.6 (CC-BY) — worked five-number-summary and SD examples
The formulas on this page are stable mathematical definitions, not rates that change. They were last cross-checked against the NIST e-Handbook on 2026-06-11.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.