Median Calculator: Locate the Median Free in 60 Seconds

Median Calculator middle value

Find the median (middle value) of any data set, plus quartiles and IQR.

Separate with commas, spaces or new lines. The calculator sorts them for you.

Median
Count (n)
Q1
Q3
IQR
Mean
Show working

This free median calculator finds the middle value of any data set — sorting your numbers automatically — and also returns the quartiles and interquartile range.

How to use the median calculator

Enter your numbers into the median calculator above and press Calculate. It sorts the data, finds the median (the middle value), and shows Q1, Q3 and the IQR. As a middle value calculator and median finder, it handles both odd and even counts correctly.

median calculator bar chart with a line marking the middle value of the data set
The median splits the ordered data into two equal halves.

What is the median?

The median is the value in the middle of a sorted data set — half the numbers are below it and half above. See the median reference for more.

Definition. The median is the middle value of ordered data; with an even count it is the average of the two central values.

How to find the median step by step

  1. Sort the numbers from smallest to largest.
  2. If the count is odd, take the middle value.
  3. If the count is even, average the two middle values.
✅ TipThe median is resistant to outliers, which is why incomes and house prices are usually reported as medians rather than the mean.

Worked example

For 8, 3, 9, 2, 7, 5, 10, sorted: 2, 3, 5, 7, 8, 9, 10. With 7 values the median is the 4th, so the median is 7.

Median vs mean

MedianMean
DefinitionMiddle valueAverage
OutliersResistantSensitive
Best forSkewed dataSymmetric data

Why the median matters in machine learning

In machine learning for beginners, the median is a robust way to fill missing values and to summarize skewed features without being thrown off by outliers.

🤖 ML insight

Median imputation — replacing missing values with the column median — is a common, outlier-resistant preprocessing trick.

Frequently asked questions

What does this median calculator return?
The median, plus Q1, Q3, the interquartile range and the mean.
Do I need to sort my numbers first?
No — the median calculator sorts them for you.
What if there is an even number of values?
The median is the average of the two middle values.
How is the median different from the mean?
The median is the middle value and resists outliers; the mean is the average and is sensitive to them.
Is the median calculator free?
Yes, completely free and browser-based.

Quartiles, IQR and outliers

The median is the second quartile, Q2. The first quartile, Q1, is the median of the lower half and the third quartile, Q3, is the median of the upper half. The interquartile range, $\text{IQR}=Q_3-Q_1$, captures the spread of the middle 50% of the data and is the basis of the box plot.

A widely used rule flags any value below $Q_1-1.5\times\text{IQR}$ or above $Q_3+1.5\times\text{IQR}$ as an outlier. Because it depends on order rather than magnitude, the middle value resists those extremes far better than the average — which is why skewed figures such as income are usually reported this way.

Median calculator: summary

This median calculator finds the middle value and quartiles in one click. Compare it with the mean calculator and the standard deviation calculator.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top