Mean, Median, Mode Calculator

Paste a list of numbers to get every common average and measure of spread at once, plus a box plot that shows outliers.

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:

MethodHow it worksUsed by
Median of halvesQ1 = median of the lower half, Q3 = median of the upper half; the overall median is left out when n is oddTI-83/84 calculators, most school textbooks
Linear interpolationvalue at position (n − 1)·p + 1, interpolating between neighboursExcel 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.

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.

Last reviewed: