---
title: "George Li Tutoring: the median and how to compute it"
url: "https://georgelitutoring.com/learn/median-definition-and-calculation-methods.md"
canonical_url: "https://georgelitutoring.com/learn/median-definition-and-calculation-methods"
last_updated: "2026-11-25"
type: "guide"
summary: "The median for odd and even lists, the grouped-data formula for frequency tables, and why one outlier moves the mean but barely moves the median."
related: ["https://georgelitutoring.com/tutoring/ap-and-high-school.md", "https://georgelitutoring.com/packages.md", "https://georgelitutoring.com/tools/study-planner.md"]
---

# The median and how to compute it

> **For AI agents:** the complete index of George Li Tutoring pages is [llms.txt](https://georgelitutoring.com/llms.txt). Every page is also served as markdown at its URL plus .md.

The median for odd and even lists, the grouped-data formula for frequency tables, and why one outlier moves the mean but barely moves the median.

The median is the middle value of a data set once it is sorted from smallest to largest. Half of the values sit at or below it and half sit at or above it. With an odd number of values it is the one in the center. With an even number it is the average of the two in the center.

| List (sorted) | Count | Median | Mean |
| --- | --- | --- | --- |
| 3, 7, 8, 12, 15 | 5 | 8 | 9 |
| 4, 6, 9, 15 | 4 | 7.5 | 8.5 |
| 12, 15, 16, 18, 19 | 5 | 16 | 16 |
| 12, 15, 16, 18, 95 | 5 | 16 | 31.2 |

## How do you find the median of a list?

1. Sort the values from least to most. Skipping this step is the most common mistake.
2. Count them. Call the count n.
3. If n is odd, the median is the value in position (n + 1) divided by 2.
4. If n is even, average the values in positions n over 2 and n over 2 plus 1.

For 3, 7, 8, 12, 15, the count is 5, so the median is in position 3, which holds 8. For 4, 6, 9, 15, the count is 4, so the median is the average of the second and third values, 6 and 9, which is 7.5. Notice that 7.5 is not in the list. The median of an even list often is not one of the data points.

## Why is the median different from the mean?

The mean uses every value's size, so one extreme value pulls it. The median uses only order, so it ignores how far the extremes sit. Compare the last two lists in the table. Replacing 19 with 95 lifts the mean from 16 to 31.2, while the median stays at 16. That is why reports of income or home prices often quote a median. The median describes a typical value without being dragged by a few very large ones.

The median works for any values you can put in order. That includes numbers and ranked categories, but it does not apply to labels with no order, such as colors.

## How do you find the median from a grouped frequency table?

When the data are given as classes with counts, you cannot sort individual values, so you find the class that holds the middle and then estimate inside it. The estimate is

median = L + ((n over 2 minus F) over f) times w

where L is the lower boundary of the median class, n is the total count, F is the number of values in all the classes before it (the cumulative count), f is the count inside the median class and w is the class width.

**Worked example: Median from a grouped table.** Thirty students' times to finish a worksheet, in minutes, fall in these classes: 0 to under 10 has 4 students, 10 to under 20 has 9, 20 to under 30 has 12 and 30 to under 40 has 5. Estimate the median.

1. The total is 4 plus 9 plus 12 plus 5, which is 30, so n over 2 is 15.
2. Build running totals: 4, then 13, then 25, then 30.
3. The 15th value is the first running total of at least 15, which is 25, so the median class is 20 to under 30.
4. Read the pieces: L is 20, F is 13 (the total before this class), f is 12 and w is 10.
5. Apply the formula: 20 plus (15 minus 13) over 12 times 10, which is 20 plus 20 over 12, or about 21.67.

Answer: the median is about 21.7 minutes. It sits just inside the class because only 2 of the 12 values in the class are needed to reach the halfway count.

The result is an estimate, because the table hides where inside each class the values fall. It assumes they spread evenly across the class. If the true values bunch toward one end, the real median will differ a little.

## Where does the median show up in test math?

Test questions about the median usually take one of three forms: from a list, from a frequency table of repeated values, or in a question about what happens to the median when a value changes. For a frequency table with repeated values, add the counts until you pass the middle position, as in step 3 above, then read the value in that row. For the change question, remember that the median only cares about the order, so changing a value that stays on the same side of the middle changes nothing. Practice on both with a few lists of your own, changing one value at a time.

## Practice with answers

1. Find the median of 14, 9, 22, 5, 17. Answer: sorted 5, 9, 14, 17, 22, so 14.
2. Find the median of 31, 28, 40, 35, 26, 33. Answer: sorted 26, 28, 31, 33, 35, 40, the average of 31 and 33 is 32.
3. A list has median 20. A new value of 100 is added. Can the median fall? Answer: no. Adding a value larger than the median can only keep it or raise it.
4. A grouped table has n = 50, classes of width 5 starting at 0, and running totals 8, 21, 40 and 50. Estimate the median. Answer: n over 2 is 25, and the first running total of at least 25 is 40, so the median class is 10 to under 15, with F = 21 and f = 19. The estimate is 10 plus (25 minus 21) over 19 times 5, which is about 11.05.

## When does a tutor help with statistics?

A tutor helps when you can compute a median but cannot say which statistic a question wants, or when grouped tables slow you down. A session can take your last quiz and sort the errors into sorting, counting and class-reading mistakes. See the [high school courses page](https://georgelitutoring.com/tutoring/ap-and-high-school.md), the [packages](https://georgelitutoring.com/packages.md), or [book a first session](https://georgelitutoring.com/book/first-session).

### What is the median in math?

The middle value of a sorted data set. With two middle values, it is their average.

### Do you have to sort the data to find the median?

Yes. The median depends on position, and position only means something once the values are in order.

### When is the median better than the mean?

When the data has a few very large or very small values. The median is not pulled by them, and the mean is.

### Can the median be a number that is not in the list?

Yes. For an even number of values it is the average of the two middle ones, which may fall between data points.

## Related

- [Online AP® exam and course tutor](https://georgelitutoring.com/tutoring/ap-and-high-school.md)
- [Tutoring prices: $150 to $200 an hour](https://georgelitutoring.com/packages.md)
- [Free study plan and study-hour planner](https://georgelitutoring.com/tools/study-planner.md)
