Math Tools
Median Calculator
Enter numbers to find the median value. See statistics including mean, count, range, and more.
Median
3.00
Math Tools
Enter numbers to find the median value. See statistics including mean, count, range, and more.
Median
3.00
The median is the middle number in a sorted dataset—the value that splits your data in half with 50% of values above it and 50% below it. Unlike the mean (average), the median is not affected by extreme outliers, making it more representative of typical values in skewed distributions.
Enter your numbers separated by commas or spaces. The calculator sorts them in ascending order and identifies the middle value. If you have an odd number of values, the median is the exact center number. If you have an even number of values, the median is the average of the two middle numbers.
For odd n: Median = value at position (n+1)/2 | For even n: Median = [value at (n/2) + value at (n/2)+1] ÷ 2n is the total count of numbers in your dataset. For odd-sized datasets, you pick the single center value. For even-sized datasets, you average the two center values to find the median.
| Input | Result | Notes |
|---|---|---|
| 3, 7, 2, 9, 5 | 5 | Sorted: 2, 3, 5, 7, 9. The middle value is 5 (odd count). |
| 10, 20, 30, 40 | 25 | Sorted: 10, 20, 30, 40. Average the two middle values: (20 + 30) ÷ 2 = 25. |
| 85, 92, 78, 88, 95, 81, 89 | 88 | Test scores sorted: 78, 81, 85, 88, 89, 92, 95. The fourth value (88) is the median. |
The median is the middle value in a sorted list, while the average (mean) is the sum of all values divided by how many values there are. Median is better for skewed data with outliers.
Yes, absolutely. Negative numbers sort and calculate exactly like positive numbers. The median will be the middle value regardless of sign.
The median is the average of the two middle numbers. For example, in [10, 20, 30, 40], the median is (20 + 30) ÷ 2 = 25.
Because these datasets often have extreme high values that skew the average upward. The median gives a truer picture of what a typical property or salary actually is.
Yes, enter decimals separated by commas (e.g., 3.5, 4.2, 2.8) and the calculator handles them. Fractions must be converted to decimals first.
Mean is the average; median is the middle value; mode is the most frequent value. Use median for skewed distributions, mode to find the most popular item, and mean for normally distributed data.