CalcWisp

Median

Also called: middle value, 50th percentile

Definition: The median is the middle value of a data set sorted from smallest to largest; with an even count it is the mean of the two middle values.

Updated November 9, 2026 · How we check facts

The median is the value that has half of the data below it and half above it. NIST defines it as the value of the point which has half the data smaller than that point. Because it depends on rank, not on the size of each value, extreme values do not distort it, which makes it a better description of a typical value than the arithmetic mean when outliers are present.

How to find it

  1. Sort the values from smallest to largest.
  2. If the count n is odd, the median is the value at position (n + 1) ÷ 2.
  3. If n is even, the median is the mean of the two middle values.

Example

Odd count: 3, 4, 5, 6, 8, 8, 9 has seven values, so the median is the 4th, 6.

Even count: 3, 5, 7, 10 has four values; the middle two are 5 and 7, so the median is (5 + 7) ÷ 2 = 6.

With the electricity bills 42, 45, 47, 48, 50, 52 and 310, the median is $48 while the mean is about $84.86, which shows how one extreme value moves the mean but not the median. The mean, median and mode calculator finds it for any list, and the guide to calculating an average walks through more cases.

Calculate it

Free toolMean, Median, Mode CalculatorAll three averages, plus variance, from one list.Free toolAverage CalculatorMean, median, mode and more from any list of numbers.

Guides that explain it

Related terms

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods — 1.3.5.1 Measures of Location
  2. OpenStax Introductory Statistics 2e — 2.5 Measures of the Center of the Data