Skip to content
LoveToCalc

Definition — what does that mean?

Median

The middle value once the numbers are sorted.

In Swedish: Median

Median

The relation

Md=x̃

The middle value once the values are put in order. With an even count, the mean of the two in the middle.

Separate the numbers with spaces, commas or semicolons, for example 2.5, 4, 7

Md=4.5

Md equals (4 plus 5) divided by 2, equals 9 divided by 2, equals 4.5

Working3 steps

Practice questions

You are given

  • x=39, 23, 16, 7, 5, 37, 8, 21, 39

What the formula says

Md = x̃

Sort the values in order and take the one in the middle. With an even count there are two values in the middle, and the median is their mean. The formula is a definition, so it looks like a name rather than a calculation: the work is in sorting and counting to the middle.

The median splits the sorted list in the middle: as many values stand before it as after it. That is why it resists outliers: it does not matter how far away the largest value is, only that it is above.

Worked examples

Even count. 2, 4, 4, 4, 5, 5, 7, 9 is already sorted. There are eight values, so the middle lies between the fourth and the fifth, 4 and 5. The median is (4 + 5) / 2 = 4.5.

Odd count. 3, 1, 2 sorts to 1, 2, 3. The middle value is 2, and no division is needed.

With an outlier. Add 100 to the first list. Now there are nine values, and the fifth, 5, is the median. The mean jumps from 5 to 15.6 at the same time.

Common mistakes

Common questions

What is the median if all the values are equal? That same value. 6, 6, 6, 6 has a median of 6, and the mean is 6 too.

Does the median have to be in the list? Only with an odd count. With an even count it is the mean of the two in the middle, and that number is often not in the list.

Median or mean for salaries? Usually the median. A few very high salaries pull the mean up, so most people earn less than “the average”. The median salary is the one half earn more than and half less than.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
Mdx̃4+524.5

Last reviewed October 6, 2026 ·How pages are reviewed

Ready-made worksheets with this formula

Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.

Middle school

  • Mean, median and mode

    Sixteen lists of numbers: six means, five medians and five modes. No calculator. The first one is worked.

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.