"Average" usually means the mean: add everything up and divide by the count. But the mean is only one way to describe the centre of a dataset, and for many real-world measurements it is a misleading one. This guide explains when the mean, the median, and a few less familiar alternatives are the right choice, how the choice connects to which statistical test you run, and how to summarise data honestly in a paper or report.
Two definitions
- Mean: the sum of all values divided by the number of values. Every value contributes in proportion to its size.
- Median: the middle value when the data are sorted (or the average of the two middle values when there is an even number). Half the values are below it, half above.
For symmetric data the two are nearly identical. They part ways when the data are skewed or contain extreme values.
An example: salaries
Eight people in a small company earn (in thousands per year):
30, 32, 35, 38, 40, 42, 45, 250
- Mean = 512 / 8 = 64
- Median = (38 + 40) / 2 = 39
Seven of the eight people earn less than the mean. The single high salary (the founder) drags the mean far above anything typical. If a job advert said "average salary 64k", it would be technically correct and practically misleading. The median, 39k, describes what a typical employee earns. Remove the founder and the mean drops to 37.4k while the median barely changes (to 38k). That stability is called robustness.
When to use which
| Situation | Better summary | Why |
|---|---|---|
| Roughly symmetric data, no extreme values | Mean (± SD) | Uses all the information; matches t-tests and ANOVA. |
| Skewed data (incomes, reaction times, hospital stays, concentrations) | Median (IQR) | Represents the typical value; not dragged by the tail. |
| Genuine outliers present | Median (IQR) | One value cannot move it much. See handling outliers. |
| Ordinal scales (ratings, pain scores, grades) | Median | The distance between "2" and "3" may not equal the distance between "4" and "5", so adding them up is questionable. |
| You care about totals (total cost, total rainfall, total yield) | Mean | Mean × n = total. The median cannot tell you the budget. |
| Multiplicative processes (growth rates, fold changes, ratios) | Geometric mean | Averages on the log scale, so a doubling and a halving cancel out. |
The last two rows are a reminder that the median is not always "better". If a hospital wants to budget for patient stays, the mean length of stay is exactly what it needs, long tail included.
Two useful alternatives
Trimmed mean
Discard a fixed percentage of the smallest and largest values (often 10% or 20% from each end) and take the mean of the rest. It is a compromise: more robust than the mean, but uses more of the data than the median. Olympic judging uses the same idea by dropping the highest and lowest scores.
Geometric mean
Multiply the n values together and take the n-th root, or equivalently, average the logarithms and transform back. It is the natural centre for right-skewed, positive data that vary by multiplication, such as bacterial counts, antibody titres or investment returns. Running a t-test on log-transformed data compares geometric means. See how to check normality for when a log transformation helps.
A quick skewness check
Comparing the mean with the median is a simple diagnostic:
- Mean ≈ median: roughly symmetric.
- Mean > median: right-skewed (long tail of high values).
- Mean < median: left-skewed (long tail of low values).
Then confirm with a graph, because the summary numbers cannot show two peaks or a single wild value. A histogram or a box plot with individual points shows the whole picture.
Match the summary to the test
The summary statistic you report should match the analysis you ran, otherwise readers get a confusing message:
- t-tests and ANOVA compare means. Report means with SD (or SEM / 95% CI; see SD vs SEM vs CI).
- Mann-Whitney U and Kruskal-Wallis are rank-based. Report medians with IQR, and remember these tests compare whole distributions, not strictly medians (see the Mann-Whitney U guide).
StatFlo follows this convention automatically: the results table shows means with your chosen error measure after a t-test or ANOVA, and medians with IQR after a Mann-Whitney U or Kruskal-Wallis test.
Graphs: bars or boxes?
A bar graph shows a mean. For skewed data, a bar's height can sit above most of the actual values, just like the 64k salary. A box plot shows the median and quartiles directly, and with individual points overlaid, nothing is hidden. As a rule of thumb: bar graphs for roughly symmetric data with means; box or violin plots for skewed data, small samples, or whenever you report medians.
Summary
Use the mean for symmetric data and when totals matter; the median for skewed data, outliers and ordinal scales; the geometric mean for multiplicative data. Report the summary that matches your test, and always show the distribution in a graph.