Math & Statistics

Median Calculator

Find the middle of a numeric dataset, including the average of the two middle values when its count is even.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

Separate numbers with commas, spaces, or new lines; no thousands separators. Up to 1,000 values, each from -1 trillion to 1 trillion.

How to use this calculator

  1. Enter values and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Odd count: middle sorted value; even count: average of the two middle sorted values

Numbers are sorted numerically, so 10 comes after 2. Every observation retains its place, including repeated values. For an even count, the result can be a value absent from the dataset.

PUTTING IT INTO PRACTICE

A worked example

For 2, 4, 4, 4, 5, 5, 7, 9, the middle values are 4 and 5. Their average is 4.5.

How to interpret your result

The median describes the midpoint by rank. Compare it with the arithmetic mean when unusually large or small observations may affect an average.

Assumptions and limitations

Each entry is one equally weighted observation. Decimal and negative values are allowed.

This is an ungrouped numeric dataset; it does not estimate a median from frequency intervals or support missing-data markers.