Skip to main content
MathKit

Median Calculator

The median is the middle value when your numbers are sorted. For an even count, it is the average of the two middle values.

Calculator

Use the Median Calculator

Result

—

Formula

middle value of sorted data

Step-by-step

  1. 1

    Enter values

    List your numbers, separated by commas.

  2. 2

    Read the median

    The calculator sorts and finds the middle.

Worked example

Example input: numbers: 3,1,2

Result: 2

Related tools

Frequently asked questions

How does the calculator find the median?

It sorts the list ascending and reads the middle entry. For 3, 1, 2 the sorted order is 1, 2, 3 and the median is 2 — no averaging needed with an odd count.

What happens with an even number of values?

With two middle entries the median is their average: the list 1, 2, 3, 4 reads (2 + 3) / 2 = 2.5. That is the standard definition, and the calculator applies it automatically.

Why is the median more robust than the mean?

One enormous outlier value drags the mean all the way up but barely moves the median: in 3, 5, 1,000,000 the mean is huge while the median stays at 5, the honest middle.

What is the median of 1, 2, 3, 4, 5?

3. Sorted, the list already reads 1, 2, 3, 4, 5, and 3 sits dead center with two values on each side — an odd count needs no averaging.

Useful links