Median Calculator

Middle value of sorted list

How to Find the Median

The median is the middle value of a data set when all numbers are arranged in order from smallest to largest. Unlike the mean, it is not affected by extremely high or low outliers. If five home prices are $200K, $220K, $250K, $240K, and $2M, the median is $240K — a figure that reflects a typical home in the neighborhood far better than the mean of $582K.

To find the median, first sort the values. If the count is odd, the median is the single middle number. For the set {1, 3, 5, 7, 9}, the median is 5 — the third of five values. If the count is even, there is no single middle value, so the median is the average of the two central numbers. For {1, 2, 3, 4}, the two middle values are 2 and 3, so the median is (2 + 3) ÷ 2 = 2.5.

The median is one of the three common measures of central tendency, alongside the mean and the mode. Statisticians often report median income, median home prices, and median test scores because real-world data frequently has skewed distributions where a few extreme values distort the mean. In a right-skewed distribution (many low values, a few very high ones), the median is typically less than the mean.

In even-sized data sets, remember to average the two middle values rather than picking one arbitrarily. For {10, 20, 30}, the median is 20. For {10, 20, 30, 40}, the median is (20 + 30) ÷ 2 = 25. This convention ensures the median always divides the data set into two equal halves by count.

Medians appear in everyday reporting: the "typical" salary in a region, the middle ACT score in a class, or the 50th percentile in growth charts for children. When you need a representative value that is not skewed by extremes, the median is usually the better choice. Enter your numbers in any order — the calculator sorts them and returns the correct median automatically.

Examples

ExampleResult
Median of 1, 3, 5, 7, 95
Median of 1, 2, 3, 42.5
Median of 10, 20, 3020
Median of 5, 1, 9 (any order)5
Median of 2, 85
Median of 4, 6, 8, 10, 128
Median of 100, 50, 7575

Frequently asked questions

Average the two middle values after sorting. For 1, 2, 3, 4 the median is (2 + 3) ÷ 2 = 2.5.

Use the median when your data has outliers or is skewed — such as income, home prices, or reaction times — because it better represents a typical value.

No. The median depends only on the values themselves, not the order you type them. The calculator sorts them for you.

Related calculators