Math Tools
Median Calculator
Find the median, mean, mode, range, Q1, Q3, interquartile range and outliers of a list of numbers, with the quartile method used by Excel, SPSS or textbooks.
How to use Median Calculator
Enter numbers separated by spaces, commas, semicolons or new lines and the results update as you type. Choose the quartile method that matches your course or software; under the results you will find how the median was worked out and the sorted list.
- Enter the numbersPaste or type a list. Decimals, negatives and scientific notation work, and anything else is skipped with a warning.
- Choose a methodPick linear interpolation, the exclusive method or the median of each half to match Excel, SPSS or a TI calculator.
- Read the resultsCheck the median, quartiles and outliers, then compare the workings with the sorted values.
Median versus mean
The median is the middle value once the numbers are sorted: the middle one for an odd count, or the average of the two middle ones for an even count. The sample 12, 15, 11, 18, 14, 13, 95, 16 has 8 values; the 4th and 5th sorted values are 14 and 15, so the median is 14.5, while the single large value of 95 pulls the mean up to 24.25. That is why typical incomes and house prices are usually reported as medians.
Three ways to calculate quartiles
Software disagrees on quartiles. Linear interpolation matches Excel's QUARTILE.INC and NumPy's default and gives Q1 = 12.75 and Q3 = 16.5 for the sample. The exclusive method matches QUARTILE.EXC, SPSS and Minitab and gives 12.25 and 17.5. The median of each half, common in textbooks and on TI calculators, gives 12.5 and 17. Outliers lie below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR, which flags 95 in the sample.
Accuracy and data handling
Confirm input units and the data range; displayed results may be rounded to the precision shown. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How is the median of an even number of values found?
Sort the values and average the two in the middle. In the sample of 8 values, the 4th and 5th are 14 and 15, so the median is 14.5.
Why do my quartiles differ from Excel?
Excel has two quartile functions, QUARTILE.INC and QUARTILE.EXC, which give different answers. Choose the matching option under Quartile method.
Can I enter numbers such as 1,000?
Commas are separators, so 1,000 is read as 1 and 0, and the tool warns when a comma-separated list seems to contain thousands separators. Write one thousand as 1000.