Free Median Calculator

Median Calculator

Enter a list of numbers to find its median after sorting. The result shows the middle value or pair, count, range, and calculation method. Compare central values with our Average Calculator.

M Odd & even sets Automatic sorting Negative & decimal values No sign-up

Calculator

Find the median of a data set

Paste or type your values. The calculator sorts them numerically and identifies the exact middle position or middle pair.

Separate values with commas, spaces, semicolons, or new lines. Up to 10,000 finite values are supported.

Advertisement

What is a median calculator?

A median calculator finds the central value of a data set after the values are arranged from smallest to largest. It is useful when you want a measure of center that is based on position rather than the size of every observation. For the arithmetic mean, use the Average Calculator.

How does the median calculator work?

The calculator parses the list, sorts it numerically, and checks whether the number of observations is odd or even. An odd-sized set has one middle value. An even-sized set has two middle values, so the calculator averages those two values.

What formula is used for the median?

Odd count: Median = value at position (n + 1) / 2
Even count: Median = (middle value 1 + middle value 2) / 2

If your data also needs percentage comparisons, the Percentage Calculator can help.

Advertisement

How do you use this median calculator?

  1. Enter or paste your numbers.
  2. Separate values with commas, spaces, semicolons, or line breaks.
  3. Select Calculate Median.
  4. Review the median, middle values, minimum, maximum, and range.

Median calculator examples

For 4, 7, 10, 12, 19, the median is 10 because it is the third of five sorted values. For 2, 6, 8, 20, the two middle values are 6 and 8, so the median is 7. If those values represent ratios or proportions, see the Ratio Calculator.

When is median useful?

Median is often useful for skewed data or data that includes outliers because its position changes less than the arithmetic mean when one value becomes extremely large or small. It does not describe spread by itself; for that, use the Standard Deviation Calculator.

What are the calculator's limits?

The calculator accepts up to 10,000 finite numeric values. It sorts numbers numerically rather than alphabetically. Very large values are limited by browser double-precision arithmetic, and display formatting may round long decimal results.

Frequently asked questions about medians

The median is the middle value after a data set is sorted. If the set contains an even number of values, the median is the arithmetic mean of the two middle values.
Sort the values and choose the single value in the middle position.
Sort the values, identify the two middle values, add them, and divide by two.
Yes. It accepts finite negative numbers, positive numbers, zero, and decimal values.
Yes. Values can be separated by commas, spaces, semicolons, or line breaks.
No. Median is based on the ordered middle position, while the arithmetic mean adds all values and divides by the count.
Because it depends on position rather than the magnitude of every value, the median is often less affected by unusually high or low observations than the arithmetic mean.
No. The calculator sorts the values before finding the middle position, so the input order does not change the median.

Methodology and calculation scope

Values are parsed as finite JavaScript numbers and sorted in ascending numeric order. The median calculation uses the central index for odd-sized data and the arithmetic mean of the two central values for even-sized data.

Privacy note: Calculations run locally in your browser. The values you enter are not sent to a calculation server.
Advertisement