Home · Statistics · Descriptive Statistics · Median Calculator
Median Calculator
The median is the middle value of a sorted data set, splitting the lower half from the upper half.
What this calculator does
The median is the middle value of a sorted data set, splitting the lower half from the upper half. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The data are sorted first; the median is the value at the centre of the sorted list.
For an even count the median is the average of the two central values.
Percentiles and quartiles use linear interpolation (the R-7 method), the numpy.percentile default.
Worked example
With the example inputs this page opens with, the result is 6.50. Change any figure and the result updates with the same formula.
Quick reference
| Figure | Value |
|---|---|
| Result | 6.50 |
| Count (n) | 10 |
| Mean | 6 |
| Median | 6.5 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is the median resistant to outliers?
It depends only on the central order positions, so moving an extreme value further out does not change it at all.
Is the median the same as the second quartile?
Yes. The median, Q2 and the 50th percentile are three names for the same point in the data.
How does the Median Calculator work?
The median is the middle value of a sorted data set, splitting the lower half from the upper half. Data values → Median. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Median Calculator need?
Data values → Median. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.