Statistics Calculator: Mean, Median, Mode, Standard Deviation, Quartiles & Box Plot
Paste or type a list of numbers. The results update as you type: mean, median, mode, range, standard deviation and variance for a sample and a population, quartiles, IQR and outliers under four named methods side by side, the five-number summary with a box plot, and the standard deviation worked out step by step.
- Mean, median and mode
- Sample and population standard deviation
- Variance, range, minimum and maximum
- Quartiles and IQR: Excel QUARTILE.INC
- Excel QUARTILE.EXC
- Tukey's hinges
- Median of each half, middle value excluded
- Outliers (1.5 × IQR fences)
- Five-number summary and box plot
- Standard deviation step by step
- Standard error of the mean and coefficient of variation
- Sort numbers
Separate with commas, spaces or new lines. Use a point for decimals. Up to 100,000 numbers.
| Count | |
|---|---|
| Sum | |
| Mean (average) | |
| Median | |
| Mode | |
| Minimum | |
| Maximum | |
| Range | |
| Sample standard deviation (s) | |
| Sample variance (s²) | |
| Population standard deviation (σ) | |
| Population variance (σ²) | |
| Standard error of the mean | |
| Coefficient of variation |
Quartiles, IQR and outliers by method
| Method | Q1 | Q3 | IQR | Lower fence | Upper fence | Outliers |
|---|---|---|---|---|---|---|
| Excel QUARTILE.INC (R and NumPy default) | ||||||
| Excel QUARTILE.EXC | ||||||
| Tukey's hinges (median of each half, middle value included) | ||||||
| Median of each half, middle value excluded |
Fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. The median is the same under every method.
Standard deviation step by step
| x | x − mean | (x − mean)² |
|---|
Sorted numbers
How to use the statistics calculator
- Paste or type the numbers. A column copied from Excel or Google Sheets works as it is.
- Every result updates as you type. The table at the top has the mean, median, mode, range, standard deviation and variance.
- The quartile table shows Q1, Q3, the IQR, the outlier fences and the outliers under four methods. Pick the one your course, textbook or software uses.
- Choose a method for the five-number summary and the box plot. The steps show how the standard deviation is worked out; with up to 30 numbers each value gets its own row.
Formulas
- Mean: x̄ = Σx ÷ n
- Sample variance: s² = Σ(x − x̄)² ÷ (n − 1); sample standard deviation s = √s²
- Population variance: σ² = Σ(x − x̄)² ÷ n; population standard deviation σ = √σ²
- Standard error of the mean: s ÷ √n. Coefficient of variation: s ÷ |x̄|
- IQR = Q3 − Q1. Outlier fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR
The four quartile methods compared
| Method | 4, 8, 15, 16, 23, 42 | 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49 |
|---|---|---|
| QUARTILE.INC: position (n − 1) × p from the first value, interpolated | Q1 9.75 · Q3 21.25 | Q1 25.5 · Q3 42.5 |
| QUARTILE.EXC: position (n + 1) × p, interpolated; needs at least 3 numbers | Q1 7 · Q3 27.75 | Q1 15 · Q3 43 |
| Tukey's hinges: medians of the halves, middle value in both | Q1 8 · Q3 23 | Q1 25.5 · Q3 42.5 |
| Medians of the halves, middle value in neither | Q1 8 · Q3 23 | Q1 15 · Q3 43 |
With an even count the two halves methods agree; with an odd count they differ. The 11-number example and its QUARTILE.EXC result of 15 and 43 come from Microsoft's documentation of the function.
Sources
Excel's definitions: QUARTILE.INC and QUARTILE.EXC. Every result of this calculator is tested against NumPy and against these examples.
Frequently Asked Questions
Should I use the sample or the population standard deviation?
Use the sample standard deviation when the numbers are a sample from a larger group, which is the usual case in homework, surveys and experiments. It divides by n − 1. Use the population standard deviation only when the list contains every member of the group. It divides by n. Both are shown. For 2, 4, 4, 4, 5, 5, 7, 9 the population value is 2 and the sample value is 2.1381.
Why do calculators give different quartiles?
There is no single agreed rule. Excel's QUARTILE.INC (the default in R and NumPy) and QUARTILE.EXC interpolate between values at different positions, while the textbook rules take the median of each half and differ in whether the middle value belongs to the halves. For 4, 8, 15, 16, 23, 42 the first quartile is 9.75, 7 or 8 depending on the rule. This calculator shows all four side by side, so the one a course or program uses can be matched.
How are outliers found?
With Tukey's fences: a value is an outlier if it lies more than 1.5 × IQR below the first quartile or above the third quartile. The fences depend on the quartiles, so a value can be an outlier under one method and not another. In the example data, 42 is an outlier under QUARTILE.INC (upper fence 38.5) but not under the other three methods.
What if no value repeats?
Then the data has no mode, and the result says so. When several values share the highest count, all of them are listed as modes, with the number of times each appears.
How should the numbers be entered?
Separate them with commas, spaces, semicolons or new lines; a column copied from a spreadsheet works. Use a point for decimals (2.5) and no thousands separators, because a comma separates two numbers. Negative numbers and scientific notation such as 1e6 are accepted. Up to 100,000 numbers, all processed in the browser.