Find the median of any dataset in seconds. Sorts the values, highlights the middle position(s), and shows the step-by-step calculation for odd and even counts.
Paste any list of numbers separated by commas, spaces or newlines and the Median Calculator returns the middle value instantly, along with the sorted dataset and a step-by-step breakdown of exactly where the median sits. The tool opens on seven annual salaries: 40000, 40000, 40000, 40000, 40000, 40000, 400000. Six employees earn $40,000 and one earns $400,000. The median is $40,000, the value at position 4 of 7. The mean is $91,429, which is 128.6% above the median. That gap is the whole reason median matters.
The median is the value that splits a sorted dataset in half: half the numbers sit below it, half above. Because it depends only on order and not on magnitude, a single extreme value cannot drag it far from the centre. Income, house prices, test scores with one absent student: any distribution where outliers are real but unrepresentative is a case where median beats mean as a summary. Click Load Sample a second time to see the odd-count exam-score dataset, then again for a bimodal product-ratings set, then for ten daily temperature readings with decimals.
Input: 40000, 40000, 40000, 40000, 40000, 40000, 400000. Sorted in ascending order the values line up from position 1 to 7; position 4 is 40,000, which is the median. The mean of the same dataset is 91,428.57, inflated by the single $400,000 earner. If you were describing what a “typical” employee earns, $91,429 is misleading. $40,000 is not. This is the classic illustration found in every introductory statistics course, and it is why government income reports quote median household income rather than the mean.
Values may be integers or decimals (positive, negative, or zero) and can be separated by any combination of commas, semicolons, spaces or line breaks; mixed delimiters are fine. The tool handles datasets of any size a browser can process; in practice, pasting up to around 50,000 values is near-instant. A dataset with a single value has no median in the traditional sense, so the tool returns that one value as both the median and the “sorted” list. Entering fewer than one value after parsing shows the message “Some values are not valid numbers — check for letters or stray characters.” if any token is non-numeric. All computation runs in your browser; the data never leaves your device.
Median
40000
7 values, middle value at position 4
Sorted Dataset
7 values (odd): the middle value at position 4 is 40000.
The mean is 91428.571429 — that is 56.3% above the median. When a dataset is this skewed, the median is the better measure of centre.