Statistics Calculator
This statistics calculator works out the full set of descriptive statistics for a list of numbers in one pass, including the mean, median, mode, quartiles, IQR, variance, standard deviation, and the geometric and harmonic mean where they apply.
Enter your data
How to use this statistics calculator
- Enter your numbers, separated by commas, spaces, semicolons or new lines. Use a point for decimals (6.5); a column pasted from a spreadsheet works too.
- Pick a quartile method if you need to match a textbook, a TI calculator or Excel, then press Calculate. The statistics calculator also updates while you type.
- Read the results by section (basic statistics, quartiles, spread, and other means) to find the figure you need.
What statistics does this tool calculate?
This statistics calculator works out the most important descriptive statistics of a dataset all at once: the number of observations, the sum, the mean, the median, the mode, the range, the quartiles (Q1, Q2, Q3), the interquartile range (IQR), the variance and standard deviation, and — where applicable — the geometric mean and harmonic mean.
Quartiles and the interquartile range (IQR)
When you need to calculate quartiles, the tool divides a sorted dataset into four equal parts. Q1 is the median of the lower half, Q2 is the ordinary median, and Q3 is the median of the upper half. To calculate iqr, you find the difference between Q3 and Q1 to represent the spread of the middle 50% of your data.
The IQR is also used to flag potential outliers. A common rule, described in the NIST/SEMATECH e-Handbook of Statistical Methods’ box plot entry, treats any value more than 1.5× the IQR beyond Q1 or Q3 as a mild outlier, and more than 3× the IQR as an extreme one.
Which quartile method does the statistics calculator use?
There is no single agreed formula for quartiles, and different textbooks, calculators and spreadsheets give slightly different Q1 and Q3 for the same data. The statistics calculator lets you choose between the three methods you are most likely to meet:
- Exclusive (default): Q1 and Q3 are the medians of the lower and upper half, and with an odd count the middle value is left out of both halves. This is Method 1 in the Wikipedia article on quartiles and the method used by TI-83/84 calculators.
- Tukey hinges: the same idea, but with an odd count the middle value is included in both halves (Method 2).
- Linear interpolation: the quartile sits at position 1 + (n − 1) × p in the sorted list, the rule behind Excel’s QUARTILE.INC function.
For the default list of ten numbers the exclusive and Tukey methods both give Q1 = 12 and Q3 = 20, while linear interpolation gives 12.5 and 19.5. With an odd count the difference is larger. For 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49 the statistics calculator returns:
| Method | Q1 | Q3 | IQR |
|---|---|---|---|
| Exclusive | 15 | 43 | 28 |
| Tukey hinges | 25.5 | 42.5 | 17 |
| Linear (Excel QUARTILE.INC) | 25.5 | 42.5 | 17 |
Report which method you used when you publish quartiles or an IQR, because the outlier fences at 1.5 × IQR move with it.
Geometric and harmonic mean
Besides the arithmetic mean, the geometric mean is suited to values that are multiplied together (such as growth rates), while the harmonic mean is suited to ratios (such as speeds). Both are only defined for positive numbers. Khan Academy’s introduction to the geometric mean walks through the same nth-root calculation with a couple of smaller worked examples.
Statistics calculator accuracy and limits
This statistics calculator rounds every value to three decimal places, which keeps the results readable without implying more precision than the input data actually supports.
- The geometric mean and harmonic mean are only shown when every number in your list is greater than zero, because neither is defined for zero or negative values.
- Variance and standard deviation are shown for both population and sample denominators at the same time, so you don’t have to decide up front which one you need.
- The mode shows every value that occurs most often, with its count, so a list can have two or more modes. It is listed as “none” when every value appears only once, or when all values appear equally often.
- Values you type that are not numbers are skipped and listed under the results, so a stray letter does not silently change the mean.
Frequently Asked Questions
Why use a statistics calculator for descriptive statistics?
A statistics calculator saves time when you process a longer list: it returns every measure of central tendency and spread at once, instead of computing each statistic by hand with the risk of a slip in one step.
How does a boxplot relate to IQR?
A boxplot is drawn directly from the quartiles this calculator produces: the box spans from Q1 to Q3, a line marks the median, and the IQR determines the box’s width.
What’s the difference between mean absolute deviation and standard deviation?
Mean absolute deviation averages the absolute value of each difference from the mean, while standard deviation squares those differences before averaging and taking a square root. Standard deviation is more common in formal statistics, but mean absolute deviation is easier to interpret and less sensitive to a single extreme outlier.
Why are geometric and harmonic mean sometimes missing from the results?
Both require every value to be strictly positive. If your list contains a zero or a negative number, the statistics calculator skips these two figures rather than returning a misleading result.
Why are my quartiles different from Excel or my textbook?
Because they probably use a different quartile method. Switch the statistics calculator to linear interpolation to match Excel’s QUARTILE.INC, or to the exclusive method to match a TI-84 and most school textbooks.