Mathematics
Median Calculator
Find the middle value of a sorted list, or the average of the two middle values.
Let’s calculate.
Usage estimateSort the values and find the centre of the list.
Formula and worked example
Median = middle sorted value, or mean of the two middle values
Reference example
The sorted list 2, 3, 8, 9 has median 5.5.
When this calculation applies
Repeated observations are retained. The median need not appear in an even-length input list; it is not the mean or the most frequent value.
Background reference: OpenStax. References explain the method or units; they do not certify this calculator.
Source scope: OpenStax explains the middle observation and the mean of the middle pair. It is a definition source, not an endorsement of this implementation.
For the derivation, input conventions and numerical limits, open .
Choose the right number-list summary
- See mean, median, sum, count and extremes together
- Find only the middle of a sorted list— this calculator
- Add all signed entries to find a net total
- Give comparable entries different weights
How to use this result
For 9; 2; 7, sorting gives 2; 7; 9, so the median is 7. With 2; 3; 8; 9, average the middle pair: (3 + 8) ÷ 2 = 5.5.
Do I have to sort the values myself?
No. Enter values in any order using semicolons or new lines. Keep repeated values: each occurrence is part of the list. A decimal comma can be used inside a number, so commas do not separate entries.
How does the median differ from the mean?
The median uses the middle position after sorting; the mean adds all values and divides by their count. For 1; 2; 100, the median is 2 while the mean is approximately 34.33.