Median Calculator
Find the middle value of a dataset
How the Median Is Calculated
Values are sorted from smallest to largest. For odd counts, the median is the middle value. For even counts, it's the average of the two middle values.
Enter your numbers
Type or paste numbers separated by commas. Spaces are ignored. Example: "5, 2, 8, 1, 9"
Click Calculate
The calculator sorts your values and finds the median automatically.
View results
See the median value and the sorted list of all your numbers.
The median is the middle value in a sorted dataset. Half the values fall below it, half above. Unlike the mean (average), the median is not affected by extreme outliers.
| Measure | Best For | Affected by Outliers |
|---|---|---|
| Median | Skewed distributions | No |
| Mean | Symmetric distributions | Yes |
| Mode | Categorical data | No |
Example: Incomes of $30k, $35k, $40k, $45k, $1M. Mean = $230k (misleading). Median = $40k (more representative).
Skewed data
When your data has a long tail on one side, the median gives a better sense of the "typical" value.
Data with outliers
Extreme values don't pull the median up or down like they do the mean.
Ordinal data
For ranked data (like survey responses), the median makes sense even when the mean doesn't.
How do I find the median manually?
Sort your numbers from smallest to largest. If you have an odd count, pick the middle number. If even, average the two middle numbers. For 1, 5, 7, 9, 12: median is 7. For 1, 5, 7, 9: median is (5+7)/2 = 6.
When is the median better than the mean?
Use the median when your data is skewed or has outliers. Home prices, salaries, and test scores often have extreme values that make the mean misleading. The median tells you what a "typical" value looks like.
Can the median be a decimal?
Yes. When you have an even number of values, the median is the average of the two middle numbers. If those are 5 and 8, the median is 6.5. This is normal and expected.
What if all my numbers are the same?
The median equals that number. If every value is 10, the median is 10. This makes sense—there's no variation in your data, so the middle value is the same as every value.
Does the median work with negative numbers?
Yes. Sort them normally: -10, -5, -2, 0, 3. The median is -2. Negative numbers are just values less than zero and work the same way in median calculations.
Other Free Tools
Average Calculator
Average Calculator – Calculate Mean, Median & More
Mode Calculator
Mode Calculator
Weighted Average Calculator
Weighted Average Calculator
Range Calculator
Range Calculator
Standard Deviation Calculator
Standard Deviation Calculator
Variance Calculator
Variance Calculator – Calculate Population and Sample Variance