Statistics
Median
Sort the list, then take the middle entry. With an even count, average the two central values. Resists extreme values.
Last updated
The Formula
median = middle value of the sorted list
Sort the list, then take the middle entry. With an even count, average the two central values. Resists extreme values.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| n | Count | count | How many values the list contains. |
| median | Median | same unit as the data | Middle value after sorting, or the average of the two middle values. |
What Each Symbol Means
ncount
Count
How many values the list contains.
mediansame unit as the data
Median
Middle value after sorting, or the average of the two middle values.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate the average (mean, median and mode) page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate The Average (Mean, Median And Mode), filed under Math. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Median?
The formula for Median is median = middle value of the sorted list. Sort the list, then take the middle entry. With an even count, average the two central values. Resists extreme values.
What units should I use with Median?
Substitute n as a plain count, median in same unit as the data. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Median?
Forgetting to sort before taking the median. The median is the middle of the ordered list, not the middle of the list as given. Taking the middle entry of an unsorted list returns an arbitrary value that happens to sit in that position.