Descriptive Statistics Calculator
A data set is hard to read as a raw list. Descriptive statistics compress it into the handful of numbers that describe it: where its centre sits (mean, median, mode), how wide it stretches (range, quartiles, interquartile range), and how much it scatters (variance, standard deviation). Paste your list and this tool prints the whole battery at once, every figure from the same exact sums.
One honesty note, printed because it matters: there is more than one accepted way to place quartiles in a sorted list. This tool uses linear interpolation at position p × (n − 1) — the type-7 method, the same rule as Excel's QUARTILE.INC — and says so on the page, so if another tool's quartiles differ slightly you know it is the method, not a mistake.
Up to 10,000 numbers. Quartiles use linear interpolation at p × (n − 1) — the type-7 method, the same rule as Excel's QUARTILE.INC — and that choice is printed here rather than hidden.
Mean
5
Median
4.5
Mode
4
Appears 3 times — every value tied at that frequency is listed.
| Count (n) | 8 |
|---|---|
| Sum | 40 |
| Mean (average) | 5 |
| Median | 4.5 |
| Mode | 4 (appears 3 times) |
| Minimum | 2 |
| Maximum | 9 |
| Range | 7 |
| Midrange | 5.5 |
| First quartile (Q1) | 4 |
| Third quartile (Q3) | 5.5 |
| Interquartile range (IQR) | 1.5 |
| Population variance (σ²) | 4 |
| Sample variance (s²) | 4.5714285714 |
| Population standard deviation (σ) | 2 |
| Sample standard deviation (s) | 4√14 / 7 ≈ 2.1380899353 |
Sorted values: 2, 4, 4, 4, 5, 5, 7, 9. The sums behind this table run as exact fractions, so the mean, quartiles, and variances are exact — only the final display rounds, to 10 decimal places.
Embed this calculator on your website →
The formula
mean = Σx ÷ n · IQR = Q3 − Q1 · range = max − min
- centre, three ways — the mean balances every value; the median is the middle of the sorted list; the mode is the most frequent value (every tie is listed, and a list of all-distinct values honestly reports no mode).
- quartiles — Q1 and Q3 are the values a quarter and three-quarters of the way through the sorted data, placed by linear interpolation at p × (n − 1); the median is the same rule at p = 0.5. The IQR, Q3 − Q1, is the width of the middle half of the data.
- midrange — halfway between the smallest and largest values; simple, and entirely at the mercy of those two extremes.
- scatter — variance and standard deviation are computed exactly as on the Standard Deviation Calculator, from the same exact-rational sums.
Worked example: for 2, 4, 4, 4, 5, 5, 7, 9 — count 8, sum 40, mean 5, median 4.5, mode 4, Q1 = 4, Q3 = 5.5, IQR = 1.5, range = 7 — the default data in the tool above.
How it works
Mean versus median. The mean uses every value, so one extreme score drags it; the median only cares about order, so it stays put. When the two sit far apart, the data is skewed — incomes are the classic case, which is why earnings are usually reported as a median.
Why the IQR is popular. The range is set by exactly two values, the wildest ones. The IQR measures the middle 50% instead, so a single outlier cannot inflate it — together, median + IQR are the standard robust summary, the pair a box plot draws.
Examples
- 2, 4, 4, 4, 5, 5, 7, 9 — mean 5, median 4.5, mode 4 (three times), IQR 1.5.
- 1, 2, 3, 4 — with an even count the median interpolates: 2.5, and Q1 = 1.75, Q3 = 3.25 under the printed type-7 rule.
- A tie for mode — 1, 1, 2, 2, 3 lists both 1 and 2 as modes; a list where nothing repeats reports no mode.
Frequently asked questions
Why might my quartiles differ from another calculator's?
Because statistics never settled on one quartile definition — there are at least nine in common use, and textbooks, spreadsheets, and software packages pick different ones. This tool uses linear interpolation at p × (n − 1) (type 7, Excel's QUARTILE.INC) and prints that choice on the page. On large data sets the methods nearly agree; on small ones they visibly differ, and neither is 'wrong'.
What if a value appears most often but so do others — two modes?
Then both are reported. A data set can be bimodal (two humps), and quietly picking one mode would hide that. If every value appears exactly once, the honest answer is 'no mode', and that is what the tool says.
Which centre should I quote, mean or median?
Quote the median when the data is skewed or has outliers (incomes, house prices, reaction times); quote the mean when the data is roughly symmetric or when every value genuinely counts toward a total. Quoting both, with the IQR, is the most honest one-line summary.
Are these figures exact?
Yes, until the final display. Values parse as exact decimals and every sum runs as an exact fraction, so the mean, quartiles, and variances are exact rationals printed to 10 decimal places; standard deviations print in radical form when they are irrational. Nothing is rounded along the way.
Related calculators
Standard Deviation Calculator
LivePopulation and sample standard deviation and variance from a pasted list — exact sums, with the radical form shown when the answer is not a whole number.
Average and Weighted Average Calculator
LiveCalculate simple and weighted averages and see each value's contribution.
Math Helpers
LiveThe everyday operations in one place: percentage of a number, powers, square and cube roots, factorials, and logarithms — each with its rule stated.

