Median Formula

The median is the middle value when all data points are arranged in order from smallest to largest.

The Formula

median position=n+12

Ask yourself: Do you need the value in the middle position once the data are sorted, so that half lie on each side?

Quick example

Heights: 4'8", 5'0", 5'2", 5'4", 6'2". Median = 5'2" (the middle). The 6'2" outlier doesn't affect it.

Notation

The median is denoted x~ or M. It equals the 50th percentile (P50) and the second quartile (Q2).

What this formula means

The median is the middle value when all data points are arranged in order from smallest to largest. Half the values lie above it and half below. For an even number of values, the median is the average of the two middle values.

The median is the person standing in the middle of a line sorted by height, with as many people on one side as the other. Swap the tallest person for a basketball player and the middle person does not change. The picture needs one adjustment for an even-sized line, where the middle falls between two people and you take the value halfway between them.

Formal view

For sorted data x(1)≤x(2)≤…≤x(n), the median is x~=x((n+1)/2) when n is odd, or x~=x(n/2)+x(n/2+1)2 when n is even.

Worked examples

Example 1

medium
Eight scores: 60,65,70,75,80,85,90,95. Find the median and explain which positions you used.
Show solution

Answer

77.5

First step

1.
n=8; the middle pair are positions 4 and 5: 75 and 80.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
Twelve test scores have median 80. After the teacher adds 5 bonus points to each score, what is the new median?

Example 3

challenge
Seven distinct positive integers have median 10. What is the smallest possible value of their sum?

Common mistakes

  • Forgetting to order data first
  • Confusing with mean
  • Not averaging two middle values for even-sized data

Common mistakes guide

If this formula keeps breaking in real problems, read the most common errors before you practice again.

Why this formula matters

The median gives a typical value that one extreme cannot hijack. When a report says the median home price in a town is $350,000, you know half the homes cost less, even if a few mansions sold for millions. Without it, a single huge value can make a group look richer, faster or bigger than nearly everyone in it really is.

Frequently asked questions

What is the Median formula?

The median is the middle value when all data points are arranged in order from smallest to largest. Half the values lie above it and half below. For an even number of values, the median is the average of the two middle values.

How do you use the Median formula?

Use the median when a question asks for the middle value or a typical value and the data include a few values far from the rest, such as incomes, house prices or one very slow finishing time. Sort first, then find the middle position. If the values are fairly balanced with no extremes and you want the even share, the mean works well; for the most common value or category, use the mode.

What do the symbols mean in the Median formula?

The median is denoted x~ or M. It equals the 50th percentile (P50) and the second quartile (Q2).

Why is the Median formula important in Statistics?

The median gives a typical value that one extreme cannot hijack. When a report says the median home price in a town is $350,000, you know half the homes cost less, even if a few mansions sold for millions. Without it, a single huge value can make a group look richer, faster or bigger than nearly everyone in it really is.

What do students get wrong about Median?

Students often know a procedure related to median but skip the recognition step: Do you need the value in the middle position once the data are sorted, so that half lie on each side? That leads to a calculation or graph that looks reasonable but answers a different question.

What should I learn before the Median formula?

Before studying the Median formula, you should understand: mean fair share.