Median Calculator

Find the median and review the mean, mode, range, minimum, maximum, and sorted data in one step.

Median Calculator
Enter numbers separated by commas or spaces to locate the middle of the sorted data.

About the median

The median is the middle value of an ordered data set. It divides the observations so that at least half lie at or below it and at least half lie at or above it. This positional definition makes the median one of the most useful measures of central tendency, particularly when data are skewed or contain unusually large or small observations. Finding a median starts by sorting every value from least to greatest. If the count is odd, the observation in the single middle position is the median. For five sorted values, that is the third value. If the count is even, there are two middle observations, so their arithmetic mean becomes the median. For the sorted values 2, 4, 6, and 8, the middle pair is 4 and 6, giving a median of 5. The median differs from the arithmetic mean because magnitude matters less than position. Consider incomes of 30, 35, 40, 45, and 500 thousand dollars. The median remains 40 thousand dollars and describes the middle person, while the mean rises sharply because of the highest income. Neither statistic is universally better. The mean uses all numerical information and supports many mathematical methods; the median provides a stable center when outliers or asymmetry would distort an average. This tool provides related descriptive values to place the median in context. The mean is the sum divided by the count. The mode identifies the most frequent observation, including multiple values when frequencies tie. The range is the maximum minus the minimum and shows total span. Minimum, maximum, and the sorted list make it easy to confirm the ordering and identify the two values used when the count is even. Medians appear throughout practical analysis. Published home prices and household incomes often use medians because their distributions have long upper tails. Median response times can describe a typical user experience without a few stalled requests dominating the result. Researchers use medians for ordinal scales and for quantitative samples that do not satisfy assumptions needed by methods based on means. A median is also the second quartile, or 50th percentile, under common percentile definitions. The calculator accepts positive values, negative values, decimals, and repeated observations. Separate values with commas, spaces, or a combination of both. Repetitions remain in the sorted list because each observation contributes a position. Although the calculator supplies several summaries, always consider sample size and distribution shape. Two data sets can have the same median yet differ greatly in spread, clusters, or tails, so a visualization or additional statistics may be needed for a complete interpretation.

Median examples

Odd, even, repeated, and skewed data sets demonstrate how the middle is selected.

Data setMedianCalculation
9, 2, 4, 7, 55Sorting gives 2, 4, 5, 7, 9, so the third value is the median.
2, 4, 6, 85The two center values are 4 and 6, and their average is 5.
1, 2, 2, 2, 1002The outlier changes the mean substantially but does not move the middle position.
-10, -3, 0, 6-1.5The even-count median is the average of -3 and 0.

How to find the median

  1. Enter or paste the observations, separating each number with a comma or space.
  2. Click Calculate to sort the values and locate the center position.
  3. Read the median and use the supporting summaries to understand the data set.
  4. Click Reset to clear the field before entering another list.

Median calculator FAQ

How do I find the median?

Sort all observations from smallest to largest and select the middle one. If the count is even, average the two middle observations.

What is the difference between median and mean?

The median is based on position in the sorted data, while the mean adds every value and divides by the count. Extreme values generally influence the mean much more than the median.

Can the median be a value not in the data set?

Yes. With an even number of observations, the average of the middle pair may not be an observed value. With an odd count, the median is always one of the observations.

Do repeated values count when finding the median?

Yes. Every observation occupies a position after sorting, including duplicates. Removing repeated values would generally produce the wrong result.

Is the median the same as the 50th percentile?

The median is commonly called the 50th percentile because half the observations lie on either side. Exact percentile interpolation conventions can differ, but the median's middle-position definition is consistent.