Median Calculator
The Middle Value, Untouched by Extremes
Sort a list of numbers from smallest to largest and the median is whatever sits in the middle. Unlike the mean, it doesn't care how far away the highest or lowest values are — only their rank matters. That single property makes it the preferred measure of "typical" whenever a data set contains outliers, skew, or a long tail: household income, home prices, and response times are all reported as medians for exactly this reason.
The Formula
If n is odd: Median = the middle value (position (n+1)/2)
If n is even: Median = average of the two middle values
For an odd-sized data set there's a single middle position. For an even-sized set there are two middle positions, and the median is their average.
Why It Resists Outliers
Take five test scores where one student had an unusually strong result:
| Scores | Mean | Median |
|---|---|---|
| 55, 60, 62, 65, 98 | 68.0 | 62 |
The single 98 pulls the mean up by six points versus the median, even though four of the five students scored in the high 50s to mid 60s. The median reflects the typical student; the mean reflects the arithmetic total spread evenly.
Where This Measure Matters
- Real estate — median home price is standard because a handful of mansions would otherwise distort a straight average.
- Income and wage data — income distributions are right-skewed, so government statistics agencies report median household income rather than mean.
- Quality control — median processing time isn't thrown off by a single slow outlier the way an average would be.
- Exploratory data analysis — comparing the mean and median of the same data set is a quick way to detect skew before doing any deeper analysis.
How to Use This Calculator
- Enter your numbers into the values field, separated by commas.
- Select Calculate.
- The result shows the sorted list and which position(s) determined the median.
Related Calculations
Pair this with the Mean Calculator to check for skew, or use the Interquartile Range Calculator to see how spread out the middle 50% of your data is.