Mean vs median: which to use, and what skew does

By Jude Wallis · Published

The median is resistant to outliers and skew; the mean is not. Use the median for skewed data or data with outliers (income, home prices) and the mean for roughly symmetric data. In right-skewed data the mean usually sits above the median.

AP Statistics: Unit 1 (topics 1.6 Descriptions for One Quantitative Variable Distributions, 1.7 Summary Statistics for One Quantitative Variable). Mean, median, and the effect of skew on center sit in Unit 1 (topics 1.6-1.7) of the Fall 2026 AP Statistics course, on describing and summarizing one quantitative variable.

Mean vs median: the short answer

The mean is the arithmetic average: add up every value and divide by how many values there are. The median is the middle value after you sort the data from low to high. For a sample of size nn, the mean is written xˉ\bar{x} and read "x-bar". The median has no standard single symbol, so it is usually written as the word itself or as MM.

Here is the difference that decides almost everything about mean vs median. The median is resistant, which means outliers and skew barely move it. The mean is not resistant, so a single extreme value can pull it a long way from the center of the data. Every other rule in this guide follows from that one fact.

How to find the mean and the median

The sample mean adds the values and divides by the count:

xˉ=xin\bar{x} = \frac{\sum x_i}{n}

The symbol xi\sum x_i means "add up all the data values," and nn is the number of values.

To find the median, sort the data from smallest to largest first. If nn is odd, the median is the single middle value. If nn is even, the median is the average of the two middle values. For example, with the six sorted values 3, 5, 8, 9, 10, 14 the two middle values are 8 and 9, so the median is 8+92=8.5\frac{8+9}{2} = 8.5.

Notice what the median does not use: the actual size of the largest or smallest values. It only counts positions in the sorted list. The mean, by contrast, uses every value's exact size, which is why a far-out value has so much more effect on the mean than on the median.

How the mean and median behave in a skewed distribution

Skew describes a distribution with a longer tail on one side. In a right-skewed distribution the tail stretches toward the high values, and the mean is usually above the median. In a left-skewed distribution the tail stretches toward the low values, and the mean is usually below the median. When a distribution is roughly symmetric the mean and median land close together, and for a perfectly symmetric shape such as the normal curve they are equal.

The tail is the reason. A few unusually large values in a long right tail pull the mean toward them, while the median stays down near the bulk of the data. The stronger the skew, the wider the gap between the two, so the size of that gap is itself a rough signal of how lopsided the distribution is. This is why you see median income and median home price in news reports rather than the mean: those distributions are right-skewed, and the median describes a typical case better than the mean does.

One honest caution. "Right skew means the mean is greater than the median" is a strong tendency, not a law. It holds for almost every distribution you will meet in this course, but statisticians have built right-skewed distributions where the mean actually falls below the median. Treat it as a reliable guide for reasoning, not as a theorem you can lean on in every single case.

Why the mean moves but the median holds

Each value contributes an equal share, 1/n1/n, to the mean. So if you change one value by an amount dd and leave the rest alone, the mean shifts by exactly d/nd/n. Push one value far out to the right and the mean follows it, scaled down by the sample size but never ignoring it.

The median behaves differently. It is fixed by whichever value sits in the middle position, so it responds to how many values fall above and below it, not to how large those values are. You can replace the largest value with something ten times bigger and the median will not move, because the middle position has not changed. That is what resistance means in practice, and it is the mechanical reason the two measures can disagree.

When to report the mean and when to report the median

Use the median when the data are skewed or contain outliers. Good examples include incomes and home prices, where a handful of very large values would drag the mean away from a typical case.

Use the mean when the distribution is roughly symmetric with no extreme values. The mean also feeds directly into the standard deviation and into most of the inference you do later in the course, so it is the natural default whenever the shape allows it. On the AP exam, questions often ask you to justify a choice, so name the reason: point to skew or an outlier when you pick the median, and to a symmetric shape when you pick the mean.

When you are unsure, report both. A mean well above the median points to right skew or a high outlier. A mean well below the median points to left skew or a low outlier.

Comparing the two is a fast shape check, and a boxplot or the 1.5 times IQR rule for outliers can confirm what the gap is telling you. You can build intuition in the descriptive statistics sandbox by dragging points around, or run the numbers on a data set in the five-number summary calculator.

Mistakes to avoid

A few errors show up often.

  • Do not assume the median is always the better choice: for symmetric data the mean uses more information and is what the rest of the AP course is built on.
  • Do not report the mean alone for money data without checking the shape, since one large value can make it misleading.
  • Do not forget to sort before finding the median, because reading the middle of an unsorted list gives the wrong answer.
  • Remember that the mean and median are both measures of center; they say nothing about spread, so pair them with a standard deviation or an interquartile range when you summarize a distribution.

One large value drags the mean, not the median

Five starting salaries at a small firm, in thousands of dollars, are 20, 22, 24, 26, 28. Find the mean and median. Then a data-entry fix changes the top salary from 28 to 108. Recompute both and compare what happened.

  1. Sort the data (already sorted): 20, 22, 24, 26, 28. Here n=5n = 5.

  2. Median = the middle (3rd) value = 24.

  3. Sum = 20 + 22 + 24 + 26 + 28 = 120.

  4. Mean xˉ=1205=24\bar{x} = \frac{120}{5} = 24. The mean and median are equal here, which is consistent with symmetry but does not prove it. Looking at the values, the deviations from 24 are -4, -2, 0, +2, +4, so the data are evenly spaced about 24 and this data set is symmetric.

  5. Now replace 28 with 108: the data become 20, 22, 24, 26, 108.

  6. Median = the middle (3rd) value = 24. The change happened above the middle position, so the median did not move.

  7. New sum = 20 + 22 + 24 + 26 + 108 = 200.

  8. New mean xˉ=2005=40\bar{x} = \frac{200}{5} = 40.

  9. Check the mechanics: the one value rose by 10828=80108 - 28 = 80, and 80/5=1680 / 5 = 16, which is exactly how much the mean rose (from 24 to 40).

Before: mean 24, median 24 (thousands). After the top value changes to 108: mean 40, median 24. The mean jumped 16 while the median did not move at all, because the mean spreads the +80 change across all 5 values (80/5=1680/5 = 16).

Reading skew from the gap between mean and median

A website records the number of pages viewed by 7 visitors: 1, 1, 2, 2, 3, 4, 15. Find the mean and the median, and say what the gap between them suggests about the shape.

  1. Sort the data (already sorted): 1, 1, 2, 2, 3, 4, 15. Here n=7n = 7.

  2. Median = the middle (4th) value = 2.

  3. Sum = 1 + 1 + 2 + 2 + 3 + 4 + 15 = 28.

  4. Mean xˉ=287=4\bar{x} = \frac{28}{7} = 4.

  5. Compare: the mean (4) is above the median (2), a gap of 2 pages.

  6. The single large value, 15, pulls the mean up, while the median ignores it and stays near the bulk of the data.

Mean = 4 pages, median = 2 pages. The mean sits above the median, the usual pattern for a right-skewed distribution with a long right tail. Here the value 15 pulls the mean up while the median holds at 2.

Frequently asked questions

Is the median always better than the mean?

No. The median is better for skewed data or data with outliers because it is resistant. For roughly symmetric data the mean uses more of the information, and it is what the standard deviation and most later AP inference are built on.

In a skewed distribution, is the mean or the median larger?

Usually the mean is larger in a right-skewed distribution and smaller in a left-skewed one, because the long tail pulls the mean toward it. This is a strong tendency rather than a guarantee, so confirm it with a graph when you can.

Are the mean and median equal in a normal distribution?

Yes. Any perfectly symmetric distribution, including the normal curve, has its mean equal to its median at the center. Real data are rarely perfectly symmetric, so expect the two to be close but not identical.