Saved

Press the star next to a tool's name to save it.

All my tools

Median Calculator

Enter your numbers to find the median, the middle value once they’re in order. You’ll also see the mean, mode and range of your list.

Separate them with commas, spaces or new lines.

Your result opens on the next page.

Median

9

Enter your numbers to see the median.

What the median is

The median is the middle value of a list once it’s sorted from lowest to highest. Half the values are at or below it, and half are at or above it.

How to find it

  1. Sort the numbers from lowest to highest.
  2. If the count is odd, the median is the middle number.
  3. If the count is even, the median is the average of the two middle numbers.

Worked examples

Odd count: 12, 7, 3, 25, 18, 9, 7 sorts to 3, 7, 7, 9, 12, 18, 25. There are 7 values, so the median is the 4th, which is 9.

Even count: 3, 7, 9, 12 has two middle numbers, 7 and 9. The median is (7 + 9) ÷ 2 = 8.

Median vs mean

The mean adds everything and divides by the count, so one extreme value can pull it a long way. The median barely moves. For 20, 22, 25, 28 and 500, the mean is 119, but the median is 25. That’s why home prices and incomes are often reported as medians.

MeasureWhat it tells you
MedianThe middle value
MeanThe average
ModeThe most common value

To see how spread out your numbers are, try the range calculator.

Looking for median BMI by age and gender? That needs growth chart data, which this tool doesn’t include. Our BMI calculator is a better place to start.

How to use the median calculator

  1. Type or paste your numbers into the Your numbers box. Separate them with commas or spaces, and enter them in any order.
  2. Press Find median. Your result opens on the next page.
  3. Read the median at the top. A sentence under it says how many values you entered and whether the median is the middle value or the average of the two middle values.
  4. Check the sorted list. The calculator shows your numbers from lowest to highest, so you can spot a typo. Long lists show the first 50 values.
  5. Look at the table for how many values, the mean, the mode, the lowest and the highest.

You can enter from 1 to 10,000 numbers. A single number is its own median. Anything that isn’t a number, such as a word or a stray letter, gives an error message instead of a wrong answer.

Worked example: house prices with one outlier

Eight homes on a street sold for these prices, in thousands of dollars: 310, 295, 420, 305, 1500, 330, 315 and 298.

  • Sorted: 295, 298, 305, 310, 315, 330, 420, 1500
  • There are 8 values, an even count, so the median is the average of the 4th and 5th values: (310 + 315) ÷ 2 = 312.5
  • The mean is 471.625

The one mansion at 1,500 drags the mean far above what most homes sold for. The median, at 312.5, still describes a typical sale. The NIST/SEMATECH e-Handbook explains why: extreme values do not distort the median, since the median is based on ranks.[1] It adds that for data with extreme values in the tails, the median gives a better estimate of location than the mean.[1]

You can test this yourself. Remove 1500 from the list and press Find median again. The mean drops from 471.625 to 324.7143, a fall of more than 140, while the median only moves from 312.5 to 310. One unusual sale changed the average a lot and the middle value hardly at all.

What the gap between mean and median tells you

When the mean and median are far apart, your data is lopsided, or skewed. The handbook notes that for skewed distributions the mean and median are not the same, and that if the right tail is heavier than the left tail, the mean will be greater than the median.[1] That is exactly what happened with the house prices: one very high value made a long right tail.

The opposite also holds. A few very low values pull the mean below the median. For a normal, bell-shaped distribution, the handbook says the mean, median and mode are equivalent.[1] With skewed data it is not obvious which measure is most meaningful, so it helps to look at all three.[1] This calculator shows them side by side for that reason.

How the mode is shown

The handbook defines the mode as the value that occurs most often, and notes that it is not necessarily unique.[1] The calculator follows that. If two or more values tie for most common, it lists all of them from lowest to highest. If no value appears more than once, the mode row says “None, no value repeats”.

For example, 4, 8, 4, 6, 8 and 2 sorts to 2, 4, 4, 6, 8, 8. The two middle values are 4 and 6, so the median is 5. The mode row shows 4, 8 because both appear twice, and the mean is 5.3333. Notice that the median, 5, isn’t one of your numbers. That is normal with an even count.

Common mistakes when finding the median

  • Not sorting first. The middle of an unsorted list is just a random value. The calculator always sorts before it picks the middle.
  • Dropping repeated values. Every copy counts. In 3, 7, 7, 9, 12, 18, 25, both 7s are part of the count of seven values.
  • Typing thousands with commas. Commas separate values here, so 1,500 is read as two numbers, 1 and 500. Type 1500.
  • Picking one middle value from an even list. With an even count there are two middle values, and the median is their average.

To see the mean on its own with more detail, try the average calculator. For quartiles and percentiles, use the percentile calculator, or get every summary figure at once from the descriptive statistics calculator.

What next

Use this often? Add Median to your Home screen.

Frequently asked questions

How do you find the median of an even set of numbers?

Sort the numbers and average the two in the middle. For 3, 7, 9 and 12, the median is (7 + 9) ÷ 2 = 8.

Do the numbers need to be in order?

To work it out by hand, yes. This calculator sorts them for you, so you can enter them in any order.

Is the median the same as the average?

No. The average, or mean, adds all values and divides by the count. The median is the middle value, and extreme values barely affect it.

Can the median be a number that isn’t in the list?

Yes, with an even count. The median of 3, 7, 9 and 12 is 8, which isn’t in the list.

What is the median of a single number?

The number itself. With one value, it is the middle of the list, so the median of 42 is 42.

Does the median calculator count repeated values?

Yes. Every value counts, including repeats. In 3, 7, 7 and 9 there are four values, so the median is the average of the two 7s, which is 7.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools