Find the arithmetic mean of a list of numbers exactly, with no floating-point drift in the sum.
Median Calculator
Find the median of a list of numbers, averaging the two middle values for an even count.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Separate with commas, spaces or new lines. A column pasted from a spreadsheet works. Processed in your browser.
How many digits to show when the answer is irrational. An exact answer ignores this.
Try an example
Fill in Values to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste or type your values, separated by commas, spaces or new lines.
- 2
A column copied from a spreadsheet works directly.
Questions about Median Calculator
Why can the median not be one of my values?
With an even number of values there is no single middle one, so the median is the average of the two middle values - and that average need not appear in the data. Eight values ending 4, 5 give a median of 4.5. That is the standard convention.
Why prefer the median to the mean?
Because it is unaffected by how extreme the outliers are. Changing the largest value from 9 to 9,000,000 moves the mean enormously and leaves the median exactly where it was. For skewed data - incomes, house prices, response times - that robustness is usually what you want.
Why does this say the answer is exact?
Because it is. The arithmetic runs on exact fractions over arbitrary-precision integers, not floating-point numbers, so 1/3 + 1/3 + 1/3 is exactly 1 rather than 0.9999999999999999, and there is no rounding anywhere in the calculation. Where a result genuinely cannot be written exactly - a square root, a logarithm, anything involving pi - the page says so and gives a stated number of correct digits instead.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Median Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Median Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Find every most-frequent value, reporting multimodal data as multimodal and data with no repeats as having no mode.
Find the range of a list of numbers, with the minimum and maximum.
Find a percentile by a named definition, reporting what every supported definition gives because they disagree.
Find the quartiles and the five-number summary, with Tukey outlier fences and every quartile convention reported.
Find the interquartile range and the Tukey outlier fences, with the quartile convention named.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.