Median Calculator
Use this median calculator to find the exact middle value of your dataset. It automatically sorts the data and works for both odd and even numbers of observations.
What is Median?
The median is a measure of central tendency representing the exact middle value in a sorted dataset. Exactly 50% of the numbers in the dataset are smaller than the median, and exactly 50% are larger.
Median Formula
Unlike the mean, the median does not have a single standard algebraic formula based on summing values. Instead, it relies on the ordered positions (ranks) of the data points.
The position of the median can be found using the formula: Position = (n + 1) / 2
Where n is the number of data values.
- If n is odd: The median is the value at that exact position.
- If n is even: The position will be a decimal ending in .5. The median is the average of the two values immediately surrounding that position.
When is the Median Better Than the Mean?
The median is robust against outliers, while the mean is not. For example, if you measure the typical income of a neighborhood, a single billionaire moving in would drastically drag the mean upwards, making it seem like everyone is wealthy. The median, however, would hardly change, providing a much more accurate picture of the typical resident.