Sort the accepted finite numeric values and calculate the median, averaging the two middle values when the count is even.
The Median Calculator sorts the accepted finite numeric values and reports their central value. It also displays the sorted list so the position used for the result can be checked. The page computes only the sorted values and median; it does not report the mean, mode, quartiles, or a measure of spread.
The median is defined by order rather than by adding every value. With an odd number of observations, one value occupies the middle position. With an even number, the result is the arithmetic mean of the two central sorted values. Consequently, the median can be a value not present in the original list when the count is even.
The input accepts comma or whitespace separators. Empty separators add no observations, and malformed or non-finite tokens are visibly listed as ignored. The sorted output contains only the accepted values. Check that list before interpreting the centre, especially when a typo or omitted record would change the ordering or the number of values.
Let x(1) ≤ x(2) ≤ … ≤ x(n) be the accepted values after sorting. For odd n, the median is x((n+1)/2). This selects the one value with the same number of observations on either side.
For even n, the median is [x(n/2) + x(n/2+1)] / 2. The two central values are averaged; neither is chosen arbitrarily. The result can therefore fall between adjacent observations.
Sorting does not change the values, but it changes their order so the central position is explicit. Repeated values remain repeated in the sorted list because each accepted token represents one observation.
Start with the sorted-values row, then count from either end. For an odd-sized list, the value in the central position is the median. For an even-sized list, inspect both central values and take their arithmetic mean. The page applies this rule automatically and displays the resulting median separately.
In the default example, the sorted values are 4, 8, 15, 16, 23, and 42. There are six values, so the two central entries are 15 and 16. Their average is 15.5, which is the displayed median even though 15.5 is not one of the six inputs.
The median describes the centre by rank; it does not say how far values are from the centre or whether values are concentrated in one region. It also does not reveal the shape of the distribution. Use the sorted list as context, and do not infer a spread or a percentile from the single median output.
The reported median is a descriptive statistic for the accepted finite numeric values. It is not an estimate of uncertainty and does not establish that the observations represent a wider population.
For a decision or report, preserve the input definition and inspect the sorted list. This calculator does not assess data collection, measurement quality, or the appropriateness of a particular summary.