Median Calculator — Middle Value for a Number List

Find the median of a list: sort values, take the middle (or average the two middles). See how median differs from mean, with examples.

Inputs

Where this formula comes from

Sort the numbers. If the count is odd, the median is the middle value. If even, average the two central values. That is the classic sample median.

Unlike the mean, the median resists extreme outliers: one huge value moves the average more than the middle order statistic.

Enter numbers separated by commas or spaces. Non-numeric tokens are skipped so pasted lists stay usable.

Common mistakes

How to use this calculator

Paste or type a list of numbers. After sorting, an odd-length list takes the middle value; an even-length list averages the two central values. That sample median resists single extreme outliers better than the mean.

Entry order does not matter — only the sorted order. Non-numeric tokens are skipped so you can paste lightly messy lists, but an empty numeric list has no median.

Use median for skewed income or size data when a few giants would drag the mean. Use mean when every observation should pull equally and the distribution is roughly symmetric.

This page does not compute trimmed means, modes, or quartiles. For spread, open standard-deviation or related stats tools after you understand the center.

Duplicate values are allowed and common. With an even count, averaging the two central values can produce a number that never appears in the list — that is expected for the conventional sample median.

For already-grouped frequency tables you need a weighted median procedure, not a flat paste of distinct bin labels. Expand frequencies or use a stats package when data arrive as bins.

Odd outliers still shift which values sit in the center after sorting, but far less than they shift the mean. If five salaries are 40, 42, 43, 44, and 400, the median stays near 43 while the mean jumps. Report both when audiences might assume “average” means mean.

Streaming calculators sometimes approximate medians for huge feeds; this page computes an exact sample median for a fully listed set that fits in the browser form. For millions of rows, use a data warehouse function instead.

If you must compare medians across groups of very different sizes, note the sample sizes beside the medians. A median from n=3 is far noisier than one from n=300 even when both numbers look tidy.

Frequently asked questions

How do you find the median?
Sort the numbers. For an odd count, take the middle value. For an even count, average the two middle values.
Why use median instead of mean?
Median resists outliers. A single extreme value moves the mean more than the median.
How do I enter values?
Type a list separated by commas or spaces. Non-numeric tokens are skipped.
What is the median of two middle numbers?
Average them. Example: sorted 1, 2, 3, 4 → median = (2+3)/2 = 2.5.