Formula & Calculator

Median

Finds the middle value of a sorted dataset, a measure of central tendency that is robust to outliers.

StatisticsDescriptive StatisticsCentral Tendency

Median CalculatorMiddle Value

Median = middle value of sorted data (or avg of two middle)
Median = the central value of a dataset  ·  For even number of observations, the median is the average of the two middle values.
⟹ SolveMedian, Dataset, Missing Value
Please fix the errors above.
Solve for:
Presets:
Median
Median: n: Sorted:
✓ Copied!
Data Distribution
Data points Median
Median = middle value of sorted dataset  ·  For even n, median = average of two middle values.
Median = middle value (sorted data), or average of two middle values
Median

Variables

SymbolQuantityUnit
MedianMedian value
nNumber of data points

What it means

The median is the value that separates the lower half of a sorted dataset from the upper half. It is a measure of central tendency that is robust to extreme values, unlike the mean. For an odd number of observations, it is the middle value; for an even number, it is the average of the two middle values. The median is commonly used in reporting income, house prices, and other distributions that are often skewed. It is also used in non‑parametric statistics. Understanding the median is important for interpreting data where outliers could distort the average. It provides a more "typical" value in skewed distributions.

Worked example

Median – Two Examples

Real‑World
Scenario: The sorted salaries (in $k): 1, 3, 5, 7, 9. Find the median.
ParameterValue
Sorted Data1,3,5,7,9
n5
1Odd n, median is middle value: 5
Result 5 ✓ Middle salary
Scenario: Data: 2, 4, 6, 8 (even n). Find the median.
ParameterValue
Sorted Data2,4,6,8
n4
1Even n, median = average of middle two: (4+6)/2 = 5
Result 5.0 ✓ Average of middle two
Insight: Median is the 50th percentile. It is robust to outliers, unlike the mean.

Common mistakes

  • Sorting: Always sort the data in ascending order before finding the median.
  • Even n: If the number of values is even, take the average of the two middle numbers.
  • Odd n: The median is the exact middle value.
  • Robustness: The median is robust to outliers, unlike the mean.
  • Data type: Applicable to ordinal and continuous data – not nominal.

Applications

The median is the middle value of a sorted dataset, separating the higher half from the lower half. It is a robust measure of central tendency, less affected by outliers than the mean. Engineers use it when data are skewed, such as in material strength tests or reliability data. In economics, median income better represents typical earnings than the mean. In healthcare, it describes patient waiting times. By using the median, professionals can provide a more accurate summary of non‑normal distributions. It is also used in descriptive statistics and in constructing box plots. Understanding the median is crucial for interpreting data with extreme values, ensuring that conclusions are not distorted by a few unusual observations.

  • Income and salary reporting (less influenced by extremes)
  • Reliability and lifetime data analysis (skewed distributions)
  • Healthcare – patient waiting times and treatment durations
  • Real estate – property price summaries
  • Quality control – when data are not normally distributed