Mean, median, and mode are three ways to describe the center of a data set, and each is a short calculation. The mean is the average, the median is the middle value after sorting, and the mode is the value that appears most often. They can disagree because they define "center" differently, and that is exactly what makes all three worth computing.

The Three Formulas and Their Symbols

The mean uses every value:

mean=sum of all valuesnumber of values\text{mean} = \frac{\text{sum of all values}}{\text{number of values}}

The numerator is the total of every entry, and the denominator is the count. Because every value contributes, one unusually large or small number can pull the mean away from what feels typical.

The median is the middle value once the data is listed in order. If the count is odd, there is one middle value; if it is even, the median is the average of the two middle values.

The mode is the value that occurs most often. A set can have one mode, more than one mode, or no mode if no value repeats more than the others.

Why the Three Can Disagree

Each measure answers a slightly different question. The mean spreads the total evenly across all entries, so it moves whenever any value changes. The median only cares about position in the sorted list, so it ignores how extreme the outer values are. The mode reports frequency, not magnitude. Because an outlier inflates a total but does not change the middle position, the mean and median separate exactly when the data is skewed, which is the structural reason all three exist.

Worked Example with an Outlier

Use the data set 2,3,3,4,202, 3, 3, 4, 20.

The mean is

2+3+3+4+205=325=6.4\frac{2 + 3 + 3 + 4 + 20}{5} = \frac{32}{5} = 6.4

The median is 33, the middle value in the sorted list.

The mode is also 33, since it appears more often than any other value.

The outlier 2020 pulls the mean up to 6.46.4 while the median stays at 33. To describe a typical value here, the median is the better summary.

Try a Similar Calculation

Take the list 5,6,6,7,305, 6, 6, 7, 30 and find all three measures. Then replace 3030 with 88 and recompute. Watch the mean drop sharply while the median and mode barely move; that single adjustment makes the role of outliers easy to see, and it is a good check that you applied each formula correctly.

Calculation Traps

  • Not sorting before finding the median. The median depends on order; an unsorted middle number is not reliable.
  • Treating "average" as always meaning the mean. In statistics, the median or mode is sometimes the more useful summary.
  • Assuming every data set has a mode. The set 1,2,3,41, 2, 3, 4 has no mode because nothing repeats; a set can also have two or more modes when values tie for the highest frequency.
  • Ignoring outliers. One extreme value can shift the mean a lot. That does not make the mean wrong, but it changes what story the number tells.

When to Use Each Measure

Use the mean when the data is fairly balanced and every value should affect the result, like scores from a consistent quiz. Use the median when extreme values could distort the center, as with income, rent, or home prices, where a few very large values pull the mean upward. Use the mode when the most common value matters more than the arithmetic center, such as shirt sizes sold in a store or the most common survey response.

Measures of central tendency are often the first step in making sense of data, summarizing a list before you compare groups, look for spread, or check for skew.

Frequently Asked Questions

What is the difference between mean, median, and mode?
The mean is the average of all values, the median is the middle value after sorting, and the mode is the value that appears most often. They can give different answers because they define center in different ways, which is exactly why having all three is useful when summarizing a data set.
When should you use the median instead of the mean?
Use the median when outliers could distort the result. In the set 2, 3, 3, 4, 20, the single value 20 pulls the mean up to 6.4, while the median stays at 3. If your goal is to describe a typical value for a set like this, the median is usually the better summary.
Can a data set have no mode or more than one mode?
Yes. A data set can have one mode, several modes, or no mode at all. The set 1, 2, 3, 4 has no mode because no value occurs more often than the others. The mode only exists when at least one value repeats more frequently than the rest.
Why do you need to sort data before finding the median?
The median depends entirely on order. It is defined as the middle value of the sorted list, with the average of the two middle values used when the count is even. If you skip sorting, the number sitting in the middle position is arbitrary, so the value you pick is not a reliable median.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →