Enter or paste here your set of numbers

Invalid input

Type on the keyboard or paste from your clipboard your set of numbers. Numbers have to be separated by commas.

Click on the Calculate button. The result will instantly appear on the screen.

Now you can copy the result to the clipboard.

Median is a mathematical value that is widely used in the analysis of statistical data. People often confuse the median, mode and average values. However, all these calculations are used for different purposes, though they have something in common.

How the median is calculated. The median of the number set is the value that, when placing the set in ascending order, will be exactly in the middle of the row. If the amount of numbers is even, then in the middle there will be two numbers. In such a situation, the result will be the arithmetic mean of these two numbers.

**Example 1: **The following set of numbers is presented {8, 9, 5, 1, 6}. To begin with, we will arrange all the numbers in ascending order (from the smallest to the largest). It will be {1, 5, 6, 8, 9}. The number that appears in the middle (the same amount of numbers to the left and to the right of it) is the median - in our example it is the number 6.

**Example 2: **Similarly, we take a set of numbers, but now it will have an even amount of numbers {8, 9, 5, 1, 7, 2}. Again, arrange the numbers in ascending order: {1, 2, 5, 7, 8, 9}. Now in the middle there are two numbers at once - 5 and 7. Next, you need to add them and divide them into two: 5 + 7 = 12. 12/2 = 6. The median value in this number set is 6.

In practice, the most common use of the median is statistical analysis. For understanding, let's imagine that there are 10 poor people and 1 rich person live in a country. All the poor have $5, the rich one has $1,000,000. If you calculate the average amount of money for everyone (mean value), it turns out that on average everyone has pretty a lot of money, which does not reflect the real state. But if you count the median, you'll get $5 as an average per person. And that better reflects the overall real economic situation in that country.