UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeStatisticsMedian Calculator

Related Tools

Mean Calculator

Median Calculator

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.

You Might Also Like

All Statistics

Mean Calculator

Paste any dataset to instantly compute mean, median, mode, range, variance, standard deviation, quartiles, IQR and skewness. Sample and population modes.

Wei/ETH Converter

Convert between all 10 Ethereum denominations — Wei, Gwei, Szabo, Finney, ETH and more — with BigInt precision and instant copy for every result.

Gas Fee Calculator

Calculate Ethereum gas fees in ETH and USD. Supports EIP-1559 (base fee + tip) and legacy gas price. Six transaction type presets included.

Satoshi/BTC

Convert between Satoshi, Bit, mBTC and BTC with BigInt precision. No floating-point rounding at the satoshi level, no price feed, no network call.

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.

Getting the Middle Value Right for Odd and Even Counts

  1. Odd count: sort the values and take the one in the exact centre. Seven values: position 4 is the median.
  2. Even count: sort the values, take the two values nearest the centre, add them and divide by two. Eight values: positions 4 and 5 average to give the median.
  3. The tool highlights the middle value(s) in orange in the sorted strip and writes the arithmetic out below it, so the calculation is always visible rather than implied.
  4. When the mean and the median differ by more than 5%, an insight line appears naming the direction and the percentage gap. It goes away when the distribution is close to symmetric.

Worked Example: the Seven Salaries

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.

Input Limits and What the Tool Accepts

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

400004000040000400004000040000400000

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.