Skip to content
Zesona
Median CalculatorLocal

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

Runs in your browser

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. 1

    Paste or type your values, separated by commas, spaces or new lines.

  2. 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.

Other tools you might reach for next.