How to Calculate Median
Learn how to calculate median by sorting data, finding the middle value, handling even counts, mistakes, troubleshooting, and FAQs.
Quick Answer
To calculate the median, put the numbers in order. If there is an odd count, choose the middle number. If there is an even count, average the two middle numbers.
What You Need
- Data set
- Ability to sort values
- Calculator if needed
- Count of values
- Average method for even counts
Safety Precautions
- Sort numbers before finding the median.
- Do not confuse median with mean or mode.
- Include zero if it is a real value.
- Check whether outliers should remain in the data set.
Step-by-Step Instructions
- Step 1
List values
Write every number in the data set.
- Step 2
Sort in order
Arrange numbers from smallest to largest.
- Step 3
Count values
Find how many numbers are in the list.
- Step 4
Use odd-count rule
If the count is odd, choose the middle value.
- Step 5
Use even-count rule
If the count is even, average the two middle values.
- Step 6
Label the result
Use units if the data has units.
- Step 7
Compare with mean
Notice whether outliers make mean and median different.
Practical Example
Example: For 3, 9, 2, 7, 5, sort to 2, 3, 5, 7, 9. The median is 5.
Common Mistakes
- Not sorting first
- Choosing the largest middle-looking number
- Forgetting to average two middle values
- Confusing median with mode
- Dropping zero values
- Miscalculating the count
Troubleshooting
There are two middle numbers
Add them and divide by 2.
Data has outliers
Median may be more representative than mean, but do not remove data unless instructed.
Numbers repeat
Repeats still count as separate values.
The median is a decimal
That can happen with an even number of values.
Helpful Internal Links
FAQs
What is median?
Median is the middle value after data is sorted.
How do I find median with even numbers?
Average the two middle values.
Is median the same as average?
No. Average usually means mean; median is the middle value.
Do repeated numbers count?
Yes, every listed value counts.
Related Guides
How to Find the Average
Learn how to find the average by adding values and dividing by the count, with examples, common mistakes, troubleshooting, and FAQs.
How to Find Mode
Learn how to find the mode by counting repeated values, handling no mode or multiple modes, examples, common mistakes, troubleshooting, and FAQs.
How to Calculate Density
Learn how to calculate density with the formula density equals mass divided by volume, examples, units, mistakes, troubleshooting, and FAQs.
Help us improve this guide
Tell us about an outdated instruction, unclear step, broken link or safety concern. Do not include passwords, account numbers, medical records or other sensitive information.