# Mean, Median, Mode Calculator

> Find the mean, median, mode, range, quartiles, IQR and outliers of any data set, with sorted data, a box plot and step-by-step working.

Interactive calculator: https://calculatorsplatform.com/c/mean-median-mode/
Category: Math & Statistics Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## Mean, median and mode explained

These three numbers are all called "averages", but they answer different questions.

- The **mean** (arithmetic average) is the sum of the values divided by how many there are. It uses every value, which makes it sensitive to extreme numbers.
- The **median** is the middle value once the data are sorted. With an even number of values it is the average of the two middle ones. Half the data lie below it and half above, and a single extreme value barely moves it.
- The **mode** is the value that occurs most often. A data set can have one mode, several (bimodal or multimodal) or none at all, when every value appears equally often.

> mean = Σx ÷ n

Income, house prices and response times are classic examples where the mean and median differ a lot: a few very large values pull the mean up while the median stays with the typical case.

## Quartiles, IQR and outliers

Quartiles split sorted data into four parts. Q1 is the 25th percentile, the median is Q2, and Q3 is the 75th percentile. The **interquartile range** IQR = Q3 − Q1 covers the middle half of the data.

There is more than one accepted way to compute quartiles, so you can choose:

| Method | How it works | Used by |
|---|---|---|
| Median of halves | Q1 = median of the lower half, Q3 = median of the upper half; the overall median is left out when n is odd | TI-83/84 calculators, most school textbooks |
| Linear interpolation | value at position (n − 1)·p + 1, interpolating between neighbours | Excel QUARTILE.INC, R's default |

For large data sets the two methods agree closely; for small ones they can differ, which is why textbooks and software sometimes disagree.

Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as **outliers** (Tukey's fences). This is a screening rule, not proof that a value is wrong.

## Worked example

The default data are 12, 15, 11, 15, 18, 14, 15, 13, 40, 16, 12 (n = 11). Sorted: 11, 12, 12, 13, 14, 15, 15, 15, 16, 18, 40.

- Mean = 181 ÷ 11 = **16.45**
- Median = 6th value = **15**
- Mode = **15** (three times)
- Range = 40 − 11 = 29
- Q1 = median of 11, 12, 12, 13, 14 = 12; Q3 = median of 15, 15, 16, 18, 40 = 16; IQR = 4
- Fences: 12 − 6 = 6 and 16 + 6 = 22, so **40 is an outlier**.

Notice how the single value 40 pulls the mean above the median. Without it the mean would be 14.1, almost the same as the median.

## Geometric and harmonic means

For positive data the calculator also reports two other averages. The **geometric mean** (the n-th root of the product) is the right average for growth rates and ratios: if an investment grows 10% one year and 30% the next, the average growth factor is √(1.1 × 1.3) = 1.196, not 1.2. The **harmonic mean** (n divided by the sum of reciprocals) is the right average for rates such as speed over equal distances. For any positive data, harmonic ≤ geometric ≤ arithmetic mean. To measure spread around the mean, use the [standard deviation calculator](https://calculatorsplatform.com/c/standard-deviation/).

## Frequently asked questions

### Which average should I report?

Use the mean for roughly symmetric data without outliers, the median for skewed data such as incomes or prices, and the mode for categories or the most common value (for example the most common shoe size).

### What if there is no mode?

When every value appears the same number of times, no value is more typical than another, so the data set has no mode. The calculator says so instead of listing every value.

### Why do my quartiles differ from Excel or my textbook?

Different tools use different quartile definitions. Choose "Median of halves" to match most textbooks and TI calculators, or "Linear interpolation" to match Excel's QUARTILE.INC.

### Should I delete outliers?

Only if you can show they are errors, such as a typo or a broken sensor. Genuine extreme values are part of the data; report the median and IQR, which are robust to them.

## Related calculators

- [Standard Deviation Calculator](https://calculatorsplatform.com/c/standard-deviation/index.md)
- [Percentage Calculator](https://calculatorsplatform.com/c/percentage/index.md)
- [GPA Calculator](https://calculatorsplatform.com/c/gpa/index.md)
- [Final Grade Calculator](https://calculatorsplatform.com/c/final-grade/index.md)
- [Probability Calculator](https://calculatorsplatform.com/c/probability/index.md)
- [Ratio Calculator](https://calculatorsplatform.com/c/ratio/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/mean-median-mode/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
