The median is the middle value of a sorted data set: half the numbers sit above it and half below. For an odd count it is the middle number; for an even count it is the average of the two middle numbers. In 4, 8, 15, 16, 23, 42 the median is 15.5. Unlike the mean, outliers barely move it.
Median
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Median Calculator
- Type or paste your numbers, separated by commas, spaces or new lines.
- The median updates instantly, along with the count and the mean.
- Compare the median with the mean to see whether outliers are pulling your average.
Here is what each result means:
| Result | What it means |
|---|---|
| Median | The middle value once your numbers are sorted. |
| Count of values | How many numbers you entered. |
| Mean | The arithmetic average, shown so you can compare it with the median. |
What Is the Median?
The median is the middle value of a data set: half the numbers are above it and half below. To find it you first sort the values, then pick the centre. It is a measure of central tendency, like the mean and the mode, but it describes the typical value in a different way.
Its great strength is resistance to outliers. One huge or tiny value barely moves the median, whereas it can drag the mean a long way. That is why incomes and house prices are usually reported as medians rather than averages.
How Does the Median Calculator Work?
It sorts your numbers, then takes the middle one for an odd count or the average of the two middle ones for an even count.
Odd count: middle value. Even count: (two middle values) / 2- Sort the numbers from smallest to largest.
- If the count is odd, the median is the single middle value.
- If the count is even, the median is the average of the two central values.
Sorting is the key step: the median is meaningless until the values are in order.
Median Example
Odd count: for 5, 2, 9, 1, 7, sort to 1, 2, 5, 7, 9. The middle of five values is the third, so the median is 5.
Even count: for 4, 8, 15, 16, 23, 42, the two middle values are 15 and 16, so the median is (15 + 16) / 2 = 15.5.
Outlier effect: for 3, 4, 4, 5, 6, 90 the median is 4.5, while the mean is about 18.7. The single 90 pulls the mean far above the typical value, but leaves the median almost untouched.
Median vs Mean vs Mode
These three averages describe the centre of a data set in different ways, and each suits different situations.
| Measure | What it is | Best for |
|---|---|---|
| Median | The middle value when sorted | Skewed data with outliers |
| Mean | The arithmetic average | Symmetric data without extremes |
| Mode | The most frequent value | Categories and repeated values |
When the mean and median are close, the data is roughly symmetric. When they differ a lot, outliers or skew are at work. To average a data set, use the percentage tools alongside this for a fuller picture.
What Changes the Median
The median responds to your data in ways that are worth understanding, and that is exactly what makes it useful.
Outliers Barely Move It
Adding one extreme value shifts the middle position by at most one place, so a single huge or tiny number leaves the median almost unchanged, unlike the mean.
Adding or Removing Values
Each value you add or remove can nudge which number sits in the middle, and can flip the count between odd and even, changing whether the median is one value or an average of two.
The Count Parity
An odd count gives a single middle value; an even count averages the two central values, which may not appear in your data at all.
When to Use the Median
Income and Wealth
A few very high earners pull the mean up, so median income better reflects a typical household.
House and Property Prices
One mansion can distort an average, which is why property reports lead with the median price.
Response and Wait Times
A handful of very long waits inflate the mean, so the median describes the typical experience more honestly.
Median for Grouped Data
For raw numbers, the median is simply the middle value. For data grouped into ranges, such as a frequency table, it is estimated with a formula that finds the class containing the middle position and interpolates within it.
This calculator works on raw values, which covers most everyday needs. If you only have grouped ranges, you would need the midpoint of each class and the grouped-median formula, which is a more advanced step used mainly in statistics courses.
Common Mistakes
1. Forgetting to Sort
The median is the middle of the sorted list, not the middle of the order you typed. This tool sorts for you.
2. Miscounting Even Sets
With an even count, average the two central values rather than picking one.
3. Confusing Median with Mean
They are different. Use the median when outliers would distort the mean.
4. Dropping Repeated Values
Repeated numbers still count. Include every value, even duplicates.
5. Ignoring the Count
Whether the count is odd or even changes how the median is found.
Accuracy and Limitations
The result is exact for the numbers you enter, but the median only describes the centre, not the whole distribution.
What it calculates accurately
- The median for any list of raw numbers
- The count and the mean for comparison
- A correct even-count average of the two middle values
What it does not account for
- Grouped or binned data
- Spread measures such as standard deviation
- Weighting of values
- Whether outliers should be kept or removed
How We Calculate the Median
Frequently Asked Questions
How do you find the median?
Sort the numbers from smallest to largest, then take the middle value. If there is an even number of values, average the two middle ones. This calculator sorts and computes it for you.
What is the median of an even set of numbers?
It is the average of the two middle values after sorting. For 4, 8, 15, 16, 23, 42 the two middle values are 15 and 16, so the median is 15.5.
What is the difference between median and mean?
The mean is the arithmetic average of all values, while the median is the middle value when sorted. The median resists outliers, so it better represents skewed data such as income.
Why use the median instead of the mean?
When a data set has outliers or is skewed, the mean can be misleading because extreme values pull it. The median stays near the typical value, which is why it is used for income and house prices.
Does the median have to be one of the numbers?
Not always. For an odd count it is one of your values, but for an even count it is the average of the two middle values, which may not appear in the data.
How do repeated values affect the median?
They count like any other value. Include every number, including duplicates, when finding the middle.
Can I paste numbers from a spreadsheet?
Yes. Separate values by commas, spaces or new lines. The calculator ignores any non-numeric text and uses the numbers it finds.
What is the median for grouped data?
For data grouped into ranges you use a grouped-median formula that locates the middle class and interpolates within it. This tool works on raw values rather than grouped ranges.
Is my information saved?
No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere unless you choose to Save a result, which stays only in this browser.
Sources
- How to find the median (Maths Is Fun).
- Mean, median and mode (Corporate Finance Institute).
- Statistics: mean, median, and mode (Khan Academy).
Related Calculators
Looking for more math and stats tools?
Explore all math calculatorsThis calculator is for general study and analysis help. It reports the median and related statistics for the numbers you enter; interpreting them for research or reporting is your responsibility. Spotted an error? Let us know.
Creator
Hamza Shakeel is the Chief Technology Officer at MultiCalculators.com, responsible for the platform's technical architecture, calculator engine performance, and infrastructure reliability. He leads engineering efforts focused on site speed, mobile responsiveness, Core Web Vitals optimization, and security. Hamza ensures every calculation runs accurately and instantly across all devices, while maintaining the platform's stability and scalability as it grows. His work directly supports the seamless, trustworthy experience users expect from MultiCalculators.com.
Areas of Expertise: Web Engineering, Core Web Vitals, Site Performance, Calculator Logic, Cloud Infrastructure, Security
