MathematicsStatisticsMedium

Median

Also known as:middle value50th percentilesecond quartile (Q2)

The median is the middle value of a dataset when values are arranged in ascending or descending order; it divides the distribution into two equal halves. For an even number of values, it is the average of the two central values. The median is a robust measure of central tendency, unaffected by extreme outliers, making it preferable to the mean for skewed distributions such as income or house prices.

Worked Example

Problem

Find the median of the following 7 exam scores: 72, 45, 88, 91, 63, 55, 80.

Solution

Step 1: Sort in ascending order: 45, 55, 63, 72, 80, 88, 91. Step 2: n = 7 (odd), so the median is the (7+1)/2 = 4th value. Step 3: The 4th value in the sorted list is 72.

Answer

Median = 72

Finding the Median: Odd vs Even Number of Values

Dataset SizeMethodExample DatasetMedian
Odd (n=5)Middle value: position (n+1)/23, 7, 9, 12, 159 (3rd value)
Even (n=6)Average of two middle values3, 7, 9, 12, 15, 20(9+12)/2 = 10.5
Odd (n=7)Middle value: position 41, 2, 4, 7, 9, 10, 147 (4th value)
Even (n=4)Average of 2nd and 3rd5, 10, 15, 20(10+15)/2 = 12.5

Interactive Tools

Wolfram Alpha — Median

Open Tool

Khan Academy — Median

Open Tool

Desmos Graphing Calculator

Open Tool
Visual showing data sorted in order with the median highlighted at the centre

Wikimedia Commons, CC BY-SA

Related Terms

From Latin medianus (of the middle), derived from medius (middle). The statistical use of "median" was popularised by Francis Galton in the 1880s as he sought a measure of the "typical" value robust to extreme observations.

mediancentral tendencystatisticsrobustdata analysis