Mean, median and mode calculator

Paste a data set to see its mean, median and mode side by side, with the range and the sorted list that shows where the median comes from.

What you type stays in your browser

Average type
Separate numbers with commas, spaces or new lines. Use a point for decimals: 2.5
Mean (average)5

(2 + 3 + 3 + 5 + 7 + 10) ÷ 6 = 5

Median
4
Mode
3 (2 times)
Range
8
Sum
30
Count
6
Minimum
2
Maximum
10
Standard deviation (sample)
3.03315
Standard deviation (population)
2.768875

Sorted: 2, 3, 3, 5, 7, 10

Median = average of numbers 3 and 4 in sorted order = 4

In short

The mean is the sum divided by the count, the median is the middle of the sorted list and the mode is the most frequent value. For 2, 3, 3, 5, 7, 10: mean 30 ÷ 6 = 5, median (3 + 5) ÷ 2 = 4, mode 3, range 8.

How to find the mean, median and mode

  1. Type or paste the data set into the Numbers box, one value per line or separated by commas or spaces.
  2. The result panel shows the Mean (average) with the Median and Mode next to it, and the working line adds up the values and divides by the count.
  3. Read the Sorted line under the grid: the median is the middle number there, or the average of the two middle numbers when the count is even, as the line below it explains.
  4. Find the Range (largest minus smallest value) and the standard deviations in the grid if your worksheet also asks for spread.

Which average to use

Use the mean when the values are spread fairly evenly and every one should count, such as daily temperatures or test scores. Use the median when a few extreme values would distort the picture, such as salaries in a small company or house prices on one street. Use the mode for the most common category or size, such as the shoe size a shop should stock most of.

Comparing the three tells you about the shape of the data. If the mean is well above the median, a few large values are pulling it up (a right-skewed set); if it is below the median, a few small values are pulling it down.

Frequently asked questions

How do you find the median of an even number of values?

Sort the values and average the two in the middle. For 2, 3, 3, 5, 7, 10 the middle pair is the 3rd and 4th values, 3 and 5, so the median is (3 + 5) ÷ 2 = 4. With an odd count there is a single middle value and no averaging is needed.

Can a data set have two modes?

Yes. A set where two values tie for the most occurrences is bimodal: in 1, 1, 2, 4, 4, 9 both 1 and 4 appear twice, so both are modes. The calculator lists every tied value and how many times each one appears.

What does it mean when there is no mode?

Every value appears exactly once, so none is more common than the others. In 4, 8, 15, 16, 23, 42 there is no mode. Some textbooks then say every value is a mode, but the usual school convention, used here, is to say there is no mode.

How do you find the range?

Subtract the smallest value from the largest. For 2, 3, 3, 5, 7, 10 the range is 10 − 2 = 8. The range is a quick measure of spread; the standard deviation in the grid uses every value instead of only the two extremes.

Why is the mean different from the median?

The mean is pulled towards extreme values and the median is not. Adding 100 to the set 2, 3, 3, 5, 7, 10 moves the mean from 5 to about 18.6, while the median only moves from 4 to 5. That is why skewed data such as incomes is usually summarised with the median.

Can the mean, median and mode all be the same?

Yes, in a perfectly symmetric data set with its peak in the middle. For 1, 2, 3, 3, 3, 4, 5 the mean is 21 ÷ 7 = 3, the median is the 4th value, 3, and the mode is 3 as well.

Are my numbers stored or sent anywhere?

No. The mean, median and mode are worked out in your browser as you type, and nothing is sent to a server or saved.

Worked example: mean, median and mode of 2, 3, 3, 5, 7, 10

Mean: 2 + 3 + 3 + 5 + 7 + 10 = 30, and 30 ÷ 6 = 5. Median: the list is already sorted and has six values, so the median is the average of the 3rd and 4th, (3 + 5) ÷ 2 = 4. Mode: 3 appears twice and every other value once, so the mode is 3. Range: 10 − 2 = 8.

Here the mean (5) is above the median (4) because the 10 at the top end pulls it up, a small example of a right-skewed set.

Quick checklist for homework

Most mistakes come from skipping the sort or miscounting the values.

  • Count the values first; the count decides whether the median is one value or the average of two.
  • Sort from smallest to largest before finding the median, never use the order the data was given in.
  • Include repeated values every time they appear, both in the sum and in the count.
  • Negative numbers and decimals work the same way; the calculator accepts both.

More than three averages

For grades that carry different credits, switch to Weighted average or use the GPA calculator. The full average calculator page explains standard deviation and the spreadsheet formulas for each figure.

How your files stay private

This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.

Presets

Last updated Nov 20, 2026