Median vs mode: the difference, with examples
By Jude Wallis · Published
The median is the middle value once the data are sorted. The mode is the value that occurs most often. The median always exists for quantitative data. The mode can sit anywhere, can be shared, or can be missing. In 6, 7, 7, 8, 8, 8, 9, 10, 10, 10, 10 the median is 8 and the mode is 10.
AP Statistics: Unit 1 (topics 1.7 Summary Statistics for One Quantitative Variable, 1.3 Tabular Representation and Summary Statistics for One Categorical Variable). The median is one of the summary statistics in topic 1.7, Summary Statistics for One Quantitative Variable, in Unit 1 of the Fall 2026 AP Statistics course, where the measures of center for a quantitative variable are the mean and the median. The mode is general statistics vocabulary; its nearest home in the course is topic 1.3, where one categorical variable is summarized with counts and relative frequencies.
Median vs mode: the short answer
Neither one uses the sum of all the values, which is why they get confused. The median is about position: sort the data and take the value in the middle, so that half of the observations lie on each side. The mode is about frequency: count how many times each value occurs and take the value with the largest count.
Position and frequency are separate ideas, so the two numbers can land in different places. The median is in the middle of the sorted list by construction. The mode has no such restriction. It can be the smallest value in the data, the largest, or anything between.
What the median measures
To find the median, sort the values from smallest to largest. If is odd, the median is the single middle value, in position . If is even, it is the average of the two middle values, in positions and .
The median splits the data in half: at least half of the values are at or below it, and at least half are at or above it. It is the 50th percentile and the second quartile. For quantitative data it always exists and is always a single number, although with an even it may fall between two data values and so not be one of them.
The median is resistant. Making the largest value ten times larger does not move the middle of the sorted list, so the median stays where it was. The reason is worked through in why the median is not affected by outliers.
What the mode measures
The mode is the value with the highest frequency. It needs no sorting and no arithmetic, only a tally. That makes it usable for categorical data, where values such as eye colors can be counted but cannot be put in order or averaged.
A data set can have one mode, several modes, or none. The set 1, 1, 4, 7, 7, 9 has two modes, 1 and 7, because each occurs twice. The set 2, 4, 6, 8 has no mode, because every value occurs once; can a data set have no mode explains that convention. With grouped data, the mode becomes the modal class, the bin with the tallest bar.
The mode tells you nothing about the rest of the distribution. Knowing that the most common quiz score was 10 does not tell you whether most students scored near 10 or whether the scores were scattered with a small pile-up at the top.
The differences side by side
| Feature | Median | Mode |
|---|---|---|
| Based on | Position in the sorted data | Frequency of each value |
| Requires sorting | Yes | No |
| Data it works for | Quantitative data, or categories with a natural order | Any data, including unordered categories |
| Always exists | Yes | No |
| Always unique | Yes | No |
| Is one of the data values | Always when is odd; not always when is even | Always |
| Where it sits | In the middle of the sorted data | Anywhere, including either end |
| Effect of one extreme value | Little or none | Usually none |
The median is the halfway point of the ordered data. The mode is the most common value, wherever that value sits.
When to use which
For a quantitative variable, the median is the standard measure of center when the distribution is skewed or has outliers, and it pairs with the interquartile range as the measure of spread. It answers the question "what value has half the data on each side."
Use the mode when you need the most common value itself. For an unordered categorical variable it is the only measure of center available, because there is no middle of a list that cannot be sorted. For a discrete quantitative variable with many repeats, such as number of absences or number of siblings, the mode is a useful extra fact to report next to the median. For measured data with few or no repeats, the mode is usually absent or uninformative, and the median does the work.
The classic mix-up and how to avoid it
The first mistake is finding the middle of an unsorted list. The median is the middle of the sorted data. In 9, 2, 7 the value written in the middle is 2, and the median is 7.
The second mistake is assuming the most common value must be near the middle. In the quiz data on this page the mode is 10, the highest score anyone earned, while the median is 8. In the absence data the mode is 0, the lowest possible value. A mode at the edge of the data is common when a variable has a floor or a ceiling.
The third mistake is confusing two modes with a bimodal shape. A bimodal distribution has two separated peaks in its graph. Two neighboring values that tie for most frequent, such as 5 and 6 each occurring twice, make one peak. The unimodal distribution entry works through that case.
A mode at the top of the data
Eleven students score 6, 7, 7, 8, 8, 8, 9, 10, 10, 10, 10 on a 10-point quiz. Find the median and the mode.
The data are already sorted, and is odd, so the median is in position .
Count to the 6th value: 6, 7, 7, 8, 8, 8. The 6th value is 8, so the median is 8.
Check the split: five values (6, 7, 7, 8, 8) come before it and five values (9, 10, 10, 10, 10) come after it.
Tally the scores: 6 occurs once, 7 twice, 8 three times, 9 once, and 10 four times.
The largest count is 4, which belongs to the score 10, so the mode is 10.
The median is 8 and the mode is 10. The median is the middle score, with five scores on each side. The mode is the most common score, and here it is also the highest score in the data.
Median and mode from a frequency table
A teacher records the number of absences for 25 students: 9 students had 0 absences, 6 had 1, 5 had 2, 3 had 3, 1 had 4, and 1 had 5. Find the mode and the median.
Check the total: students.
The mode is the value with the largest frequency. The largest frequency is 9, and it belongs to 0 absences, so the mode is 0.
For the median, is odd, so the median is the value in position of the sorted list.
Build cumulative counts. Positions 1 through 9 are 0s. Positions 10 through 15 are 1s, since .
Position 13 falls in the block of 1s, so the median is 1 absence.
The mode is 0 absences and the median is 1 absence. The mode is the value in the first column of the table, 0, and the frequency 9 is how many students had it. The median is found by counting through the frequencies to the 13th student.
Frequently asked questions
Can the median and the mode be equal?
Yes. In 4, 5, 5, 5, 7, 8, 9 the middle (4th) value is 5 and the most frequent value is also 5. They tend to be close in a symmetric distribution with one peak, since the peak sits at the center. In other shapes they can be far apart.
Can a data set have a median and no mode?
Yes. In 3, 8, 12, 15, 20 every value occurs once, so there is no mode, and the median is the middle value, 12. This is the normal situation for measured quantities, where exact repeats are rare.
Does categorical data have a median?
Only if the categories have a natural order, since finding a middle requires sorting. Unordered categories such as eye color or favorite sport have a mode and no median.