Median Calculator — Find the Middle Value Instantly
Find the median of any data set with step-by-step explanation. Learn how to calculate the median and when to use it. For averages, try our average calculator.
Table of Contents
Find the Median
Enter your data values as comma-separated numbers. Click Calculate to find the median.
Median – Complete Explanation
The median is the middle value in a sorted data set. It divides the data into two equal halves — half the values are below and half are above.
Median Definition
Odd n: Median = value at position (n + 1) / 2 Even n: Median = average of values at positions n/2 and n/2 + 1
1. What Is the Median?
The median is the 50th percentile — the point where half the data lies below and half above. Unlike the mean, it doesn't care about how far away extremes are, only their position.
2. How to Find the Median
- Sort the data from smallest to largest.
- Find the middle: Odd n → pick the middle value. Even n → average the two middle values.
3. Step-by-Step Examples
3.1 Example 1: Odd Number of Values
Data: 3, 7, 1, 9, 5 Sorted: 1, 3, 5, 7, 9 n = 5 (odd) → Middle = 3rd value = 5 Median = 5
3.2 Example 2: Even Number of Values
Data: 12, 8, 15, 6, 10, 4 Sorted: 4, 6, 8, 10, 12, 15 n = 6 (even) → Middle = 3rd & 4th values Median = (8 + 10) / 2 = 9
4. More Examples
22, 18, 30, 25, 20 → Sorted: 18, 20, 22, 25, 30 → Median = 22
45, 52, 38, 41, 49, 55 → Median = 47
7, 7, 7, 7, 7 → Median = 7
100, 2, 50, 75, 25, 10 → Median = 37.5
5. Mean vs. Median — When to Use Which
Use the Mean when: Symmetric data, no outliers, further calculations needed.
Use the Median when: Skewed data, outliers present, reporting "typical" value.
6. Median and Skewed Data
Skewness and Central Tendency
Right-skewed: Mean > Median Left-skewed: Mean < Median Symmetric: Mean ≈ Median
Income: $30K, $35K, $40K, $45K, $2M → Mean = $430K, Median = $40K
7. Median, Quartiles, and the Five-Number Summary
Five-Number Summary
Minimum — Q₁ — Median (Q₂) — Q₃ — Maximum
Used for box plots and understanding data distribution.
8. Common Mistakes to Avoid
- Forgetting to sort — always sort first.
- Wrong formula for even n — average the two middle values.
- Confusing position with value — median is a value, not an index.
9. Real-World Applications
- Economics: Median household income.
- Real Estate: Median home price.
- Education: Median test scores.
- Healthcare: Median survival time.
- Sports: Median player salary.
10. Practice Problems with Solutions
13, 19, 7, 25, 16 → Median = 16
42, 31, 56, 28, 37, 49 → Median = 39.5
88, 92, 75, 85, 95, 78, 82 → Median = 85
1, 2, 3, 4, 100 → Median = 3, Mean = 22 → Mean larger (skewed)
11. Tips for Mastering the Median
- Always sort first.
- For odd n: (n+1)/2 position.
- For even n: average two middle values.
- Use median for skewed data or with outliers.
12. Final Thoughts
The median is a powerful measure of central tendency that stands strong where the mean falls short. Use this calculator to check your work, but practice until sorting and identifying middle values becomes second nature.
13. Frequently Asked Questions
The median is defined as the middle value in ordered data. Without sorting, the "middle" position is meaningless — you'd just be picking a random value. Sorting arranges the data so that the middle position corresponds to the actual central value.
Use the median when your data is skewed or contains outliers. The median is not affected by extreme values — it only cares about rank. For income data, housing prices, or any data with a long tail, the median gives a more representative "typical" value.
Duplicates don't change the median calculation. They simply occupy adjacent positions in the sorted list. For example, the median of 2, 2, 2, 2, 2 is 2 — the middle value is 2 regardless of how many times it appears.
The median is the second quartile (Q₂), representing the 50th percentile. Q₁ (25th percentile) is the median of the lower half; Q₃ (75th percentile) is the median of the upper half. Together with min and max, they form the five-number summary used in box plots.
Yes, when there's an even number of values. For data 4, 6, 8, 10, the median is (6+8)/2 = 7 — a value not in the original set. This is the average of the two middle values, which may or may not appear in the data.
Explore Math Topics
Continue your learning journey with our other math guides
Conclusion
The median is a powerful measure of central tendency that stands strong where the mean falls short. Use this calculator to check your work, but practice until sorting and identifying middle values becomes second nature.
Readers who wish to continue practicing and reinforce what they've learned can explore the companion learning resource for guided exercises.