How to use the calculator
Type or paste your numbers into the box, separated by commas, spaces or new lines. A column copied from a spreadsheet works. The results update as you type:
- Mean: the arithmetic average.
- Median: the middle value of the sorted list.
- Mode: the most frequent value or values.
- Range: maximum minus minimum.
- Minimum, maximum, count and sum.
- Quartiles Q1 and Q3, and the interquartile range (IQR).
- Geometric mean, when every value is greater than zero.
Formulas and definitions
| Measure | How it is found |
|---|---|
| Mean | sum of values ÷ number of values |
| Median | middle value when sorted. With an even count, the average of the two middle values |
| Mode | value(s) that occur most often |
| Range | maximum − minimum |
| Q1, Q3 | medians of the lower and upper halves of the sorted data |
| IQR | Q3 − Q1 |
| Geometric mean | nth root of the product of the n values |
Quartile method. The calculator uses the median-of-halves method. When the count is odd, the overall median is left out of both halves. This is the method in most school textbooks and on TI graphing calculators.
Geometric mean. The calculator computes it as e raised to the average of the natural logs. This gives the same result as multiplying the values and taking the nth root, but the product never overflows, even with very large numbers.
Worked example
The default list is 3, 7, 7, 2, 9, 4, 7, 5, 12.
- Sort it: 2, 3, 4, 5, 7, 7, 7, 9, 12. There are 9 values.
- Mean: the sum is 56, and 56 ÷ 9 ≈ 6.222.
- Median: with 9 values, the middle one is the 5th, so the median is 7.
- Mode: 7 appears three times, more than any other value, so the mode is 7.
- Range: 12 − 2 = 10.
- Quartiles: the lower half is 2, 3, 4, 5, so Q1 = (3 + 4) ÷ 2 = 3.5. The upper half is 7, 7, 9, 12, so Q3 = (7 + 9) ÷ 2 = 8. The IQR is 4.5.
- Geometric mean: the product is 4,445,280, and its 9th root is ≈ 5.478.
Interpreting the results
When the mean and median are close, the data is roughly symmetric. Here the mean (6.22) is below the median (7), because the small values 2, 3 and 4 pull the average down. The IQR gives the spread of the middle half of the data and ignores extremes. A common rule of thumb flags a value as an outlier if it is more than 1.5 × IQR below Q1 or above Q3. In the example those fences are −3.25 and 14.75, so 12 is not an outlier.
The geometric mean is the right average for growth rates and ratios. For example, it gives the average yearly growth factor of an investment. It is always less than or equal to the arithmetic mean. To express any of these numbers as a share of a total, try the percentage calculator.
Limitations
- The calculator accepts up to 10,000 values.
- Numbers with thousands separators (1,250) are read as two values, so remove the commas first.
- The geometric mean is only defined when every value is positive. If the list contains zero or a negative number, it is not shown.
- The mode is most useful for discrete data. With continuous measurements, exact repeats are rare, so “no mode” is common and expected.
Frequently asked questions
What if no number repeats?
Then the data has no mode, and the calculator says so. The same applies when every value appears the same number of times, as in 1, 1, 2, 2, because no single value is more typical than the others.
Can a data set have more than one mode?
Yes. If two or more values tie for the highest count, they are all modes, and the data is called bimodal or multimodal. For example, 1, 1, 2, 2, 3 has modes 1 and 2.
Why are my quartiles different from Excel's?
There are several accepted ways to compute quartiles. This calculator uses the median-of-halves method taught in most textbooks. Excel's QUARTILE.INC and QUARTILE.EXC interpolate between values instead, so the results can differ slightly, especially for small lists.
When should I use the median instead of the mean?
Use the median when the data is skewed or has outliers, such as house prices or incomes. A few very large values pull the mean up, while the median stays at the middle of the data.
Last reviewed: