Mean, Median, Mode, Range Calculator

Summarize the central values and spread of a data set.

Reset

Understanding mean, median, mode and range

Ask four people to describe a typical value in a dataset and you can get four different answers — and all four can be right. The mean adds everything up and divides. The median takes the middle value.

Formula and method

Mean = (x₁ + x₂ + … + xₙ) ÷ n
Range = maximum value − minimum value

For a dataset x₁, x₂, …, xₙ with n values, sorted from smallest to largest: Add all the values and divide by how many there are. Median: if n is odd, the middle value — the one at position (n + 1) ÷ 2. If n is even, the average of the two middle values. Mode: the value that appears most often. Count how many times each value occurs and take the highest count. A dataset can have one mode, several modes, or no mode. Sorting is the key step for the median and the range: both depend on order, so the values must be arranged smallest to largest before either is read off. The mean needs no sorting at all — it only needs the total and the count.

Worked example

Example 1 — Seven ages at a family gathering Ages: 3, 7, 7, 9, 12, 15, 21. Count: 7; sum: 3 + 7 + 7 + 9 + 12 + 15 + 21 = 74 Mean: 74 ÷ 7 = 10.57 years Median: the values are already sorted; the 4th value is 9 Mode: 7 (it appears twice, more than any other age) Range: 21 − 3 = 18 years Three different "typical" ages — 10.57, 9 and 7 — and each is defensible. The mean (10.57) is pulled up by the 21-year-old; the median (9) is the middle person; the mode (7) is the age with the most people. For describing a typical person at this gathering, the median is the most honest single number, and the range of 18 years warns you that the group spans toddlers to adults.