Statistics & Analysis

Median

Reviewed byRemya Krishnan

Definition

The median is the middle value in a dataset when all observations are arranged in ascending or descending order. If the number of observations is odd, the median is the central value; if even, it is the average of the two central values.[1] It divides the distribution into two equal halves and is less sensitive to extreme values than the mean.

Explore the concept

Line up and look at the middle

Line 20 emergency department waits up from shortest to longest, swap the longest ones for extreme values until the median finally gives way, then choose what to report beside it.

20 patients from one week

110th, 11th200100200300400Patients, shortest wait firstMinutes waited778 ↑median 92
Middle pairReplaced by 24 hours

Median

92

minutes

Mean

148

minutes

Median 92: the average of the 10th and 11th waits

With 20 patients the middle falls between two of them: (88 + 96) ÷ 2 = 92. Half waited less, half waited more.

The big idea: The median is the middle of the ordered values, so it ignores how extreme the largest or smallest values are: almost half the data can go wild before it moves. Report it with the IQR, and with the mean when totals matter.

The study had 500 patients with a mean wait of 148 minutes, a median of 92 and a 90th percentile of 310. The 20 waits shown are illustrative, built to match that mean, median and 90th percentile (the average of the 18th and 19th waits); the IQR of 61 to 157.5 comes from these 20 values only. The 24 hour replacement value is illustrative; columns taller than 450 minutes are cut at the top of the chart.

Why it matters

The median is a critical measure of central tendency that provides a more representative summary than the mean when data are skewed or contain outliers. Income data, hospital lengths of stay, survival times, and health care costs are all typically right skewed, meaning that a small number of very large values pull the mean upward and away from the experience of the typical individual. In such cases, the median better reflects the "typical" value. In survival analysis, the median survival time is one of the most commonly reported outcomes. In health economics, median costs complement mean costs to provide a complete picture of the cost distribution. Understanding when to use the median versus the mean is essential for accurate data description and communication.

How it works

To find the median, all values are sorted from smallest to largest. For an odd number of observations (n), the median is the value at position (n + 1) divided by 2. For an even number, the median is the average of the values at positions n/2 and (n/2) + 1. Unlike the mean, the median uses only the ordinal positions of the data and is therefore unaffected by how extreme the largest or smallest values are.

The median has a breakdown point of 50%, meaning that almost half of the data can be replaced by arbitrarily extreme values and the median still stays within the range of the remaining, unchanged values. The mean, by contrast, has a breakdown point of 0% and is affected by even a single extreme value. This property makes the median a resistant measure of central tendency.

In skewed distributions, the relationship between the mean and median provides information about the direction of skew. In a right skewed distribution (long tail on the right), the mean usually exceeds the median. In a left skewed distribution (long tail on the left), the mean usually falls below the median; the rule can fail, particularly for discrete data or distributions with more than one peak.[3] In a symmetric distribution, the mean and median are equal.

The median is also used as the basis for several other statistics. The interquartile range (IQR), defined as the difference between the 75th and 25th percentiles (Q3 minus Q1), is a resistant measure of spread that is typically reported alongside the median. The median absolute deviation (MAD) is another resistant measure of variability. In survival analysis, the median survival time is the time at which the Kaplan Meier survival curve crosses the 50% probability threshold.

When to use it

Report the median when data are skewed, when outliers are present, when the distribution has heavy tails, or when the variable is measured on an ordinal scale. It is standard for reporting survival times, hospital lengths of stay, and income, and for describing the typical cost per patient, although economic evaluations still need mean costs because budgets depend on totals. When data are approximately normally distributed and free of outliers, the mean is preferred because it uses all the information in the data and has more desirable mathematical properties for inference. In practice, reporting both the mean and median allows readers to assess the symmetry of the distribution.

Key takeaways

  • The median is a critical measure of central tendency that provides a more representative summary than the mean when data are skewed or contain outliers.
  • For an odd number of observations (n), the median is the value at position (n + 1) divided by 2.
  • Report the median when data are skewed, when outliers are present, when the distribution has heavy tails, or when the variable is measured on an ordinal scale.
  • A common mistake is reporting only the mean for skewed data, giving a misleading impression of the typical value.

Common mistakes

  • A common mistake is reporting only the mean for skewed data, giving a misleading impression of the typical value.
  • Another error is comparing medians between groups using parametric tests (such as the t test) that assume normality and operate on means;[1] a bootstrap confidence interval for the difference in medians,[1] or quantile regression, compares medians directly,[5] whereas the Mann Whitney U test compares whole distributions and tests medians only when the groups' distributions have the same shape.[4]
  • Some researchers report the median without any measure of dispersion, when the interquartile range should accompany it.
  • Finally, in meta analysis, researchers sometimes convert medians to means for pooling without considering whether the conversion formula is appropriate for the data distribution, which can introduce bias.[2]

Example

A study of emergency department wait times at a large urban hospital records the wait times for 500 patients during one week. The mean wait time is 148 minutes, but the median is 92 minutes, reflecting a right skewed distribution where a small number of patients waited more than 6 hours. The hospital administration uses the median (92 minutes) to describe the typical patient experience and the 90th percentile (310 minutes) to show how long the slowest tenth of patients waited, rather than reporting only the mean, which is inflated by the extreme values.

Test your understanding

5 questions that adapt as you go: answer two in a row correctly and they get harder.

Question 1 of 5

Scenario:

A cancer trial reports median survival in each arm, estimated from Kaplan Meier curves.

Question:

Where is the median survival time read from the Kaplan Meier curve?

Hardness: Interpret

Sources

  1. [1]Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. SAGE Publications, 2024. ISBN 9781529630008
  2. [2]Wan X, Wang W, Liu J, Tong T. Estimating the sample mean and standard deviation from the sample size, median, range and/or interquartile range. BMC Med Res Methodol. 2014;14:135. doi:10.1186/1471-2288-14-135
  3. [3]von Hippel PT. Mean, median, and skew: correcting a textbook rule. Journal of Statistics Education. 2005;13(2). (online journal, no page numbers). doi:10.1080/10691898.2005.11910556
  4. [4]Divine GW, Norton HJ, Baron AE, Juarez-Colunga E. The Wilcoxon-Mann-Whitney procedure fails as a test of medians. The American Statistician. 2018;72(3):278-286. doi:10.1080/00031305.2017.1305291
  5. [5]Staffa SJ, Kohane DS, Zurakowski D. Quantile regression and its applications: a primer for anesthesiologists. Anesth Analg. 2019;128(4):820-830. doi:10.1213/ANE.0000000000004017

Cite this term

FullPaperguide. (2026, October 16). Median. In Paperguide Research Glossary. https://paperguide.ai/research-glossary/median/
In-text(Paperguide, 2026)

Related terms