Skip to content
KazamTools

Mean, Median and Mode Calculator

Paste a list of numbers and get the mean, median, mode and range, with the working shown.

By , Founder and editor-in-chiefUpdated

Separate values with commas, spaces or new lines. Use a dot for decimals (2.5). Negative numbers are fine.

Mean (average)

15

Median 14 · Mode 13 · Range 8

Mean
15
Sum ÷ count
Median
14
Middle of the sorted list
Mode
13
Unimodal, 4 times each
Range
8
Largest − smallest
Count (n)
9
Sum
135
Smallest
13
Largest
21

How it was worked out

  1. Mean = sum ÷ count = 135 ÷ 9 = 15
  2. Median: 9 values (odd), so the median is value number (9 + 1) ÷ 2 = 5 in the sorted list = 14
  3. Mode: 13 appears 4 times, more often than any other value
  4. Range = largest − smallest = 21 − 13 = 8

Sorted list

  1. 13
  2. 13
  3. 13
  4. 13
  5. 14 (middle value)
  6. 14
  7. 16
  8. 18
  9. 21

The highlighted value is the middle one: the median.

How often each value appears
ValueFrequency
13 (mode)4
142
161
181
211

Next: measure how spread out the numbers are with the standard deviation calculator, or see how far one value is from the mean with the z-score calculator.

How to use the Mean, Median, Mode Calculator

  1. 1Paste or type your numbers, separated by commas, spaces or new lines.
  2. 2Read the mean, median, mode and range at once, plus the count, sum, smallest and largest value.
  3. 3Check the sorted list: the middle value (or the two middle values) is highlighted.
  4. 4Use the frequency table to see why a value is the mode, and copy the results when you are done.

Three kinds of average

“Average” usually means the mean, but statistics has three common ways to describe the middle of a list of numbers. Each answers a slightly different question.

Measure What it is Best for
Mean The sum of the values divided by how many there are Evenly spread data with no extreme values
Median The middle value once the list is sorted Skewed data, such as prices, salaries and waiting times
Mode The value that appears most often Categories and repeated values, such as shoe sizes or the most common score
Range The largest value minus the smallest A quick check of how spread out the data is

The formulas

Mean = sum of the values ÷ number of values
Median = value number (n + 1) ÷ 2 in the sorted list
Range = largest value − smallest value

When n is odd, (n + 1) ÷ 2 is a whole number and points straight at the middle value. When n is even it lands halfway between two values, so the median is the average of those two. The mode has no formula: you count how often each value appears.

Worked examples

Example 1: an odd number of values. Find the mean, median, mode and range of 13, 18, 13, 14, 13, 16, 14, 21, 13.

  • Sum = 135 and there are 9 values, so the mean = 135 ÷ 9 = 15.
  • Sorted: 13, 13, 13, 13, 14, 14, 16, 18, 21. The middle is value number (9 + 1) ÷ 2 = 5, so the median = 14.
  • 13 appears four times, more than any other value, so the mode = 13.
  • Range = 21 − 13 = 8.

These are the numbers the calculator shows when it first loads.

Example 2: an even number of values. Take 8, 3, 5, 12, 7, 10.

  • Sum = 45, so the mean = 45 ÷ 6 = 7.5.
  • Sorted: 3, 5, 7, 8, 10, 12. The two middle values are 7 and 8, so the median = (7 + 8) ÷ 2 = 7.5.
  • Every value appears once, so there is no mode.
  • Range = 12 − 3 = 9.

Example 3: two modes. Shoe sizes sold in one hour: 6, 7, 7, 8, 9, 9, 10.

  • Mean = 56 ÷ 7 = 8, and the median (the 4th value) is also 8.
  • 7 and 9 each appear twice, so the list is bimodal with modes 7 and 9. For a shop deciding what to restock, the modes are more useful than the mean.

When the mean and median disagree

The mean is pulled towards extreme values; the median is not. Six people earn 30, 32, 35, 38, 40 and 250 thousand a year.

  • Mean = 425 ÷ 6 ≈ 70.8 thousand
  • Median = (35 + 38) ÷ 2 = 36.5 thousand

Five of the six earn less than the mean, so the mean gives a misleading picture of a typical salary here. That is why incomes and house prices are often reported as medians. If the mean and median of your data are far apart, the data is skewed, and the median is the safer “typical” value.

No mode, one mode or several

  • No mode: every value appears exactly once, as in 2, 5, 9.
  • One mode (unimodal): one value appears more often than any other.
  • Two or more modes (bimodal, multimodal): several values tie for the highest count. The calculator lists all of them.

If every value appears the same number of times, such as 1, 1, 2, 2, textbooks differ. Some say both values are modes; others say there is no mode because nothing stands out. The calculator lists both values as modes and points out the tie, so you can follow your course’s rule.

Common mistakes

  • Forgetting to sort before finding the median. The median of 9, 2, 7 is 7, not 2. Always put the values in order first.
  • Taking one middle value when n is even. With an even count there are two middle values; average them.
  • Leaving out repeated values. If 13 appears four times, it goes into the sum four times and takes four places in the sorted list.
  • Counting the mode’s frequency as the mode. In Example 1 the mode is 13 (the value), not 4 (how often it appears).
  • Treating the range as the spread of typical values. One outlier can double the range. For a fuller picture of spread, use the standard deviation.

Tips

  • Paste straight from a spreadsheet column: new lines count as separators. Use dots for decimals, because commas separate values.
  • Negative numbers and decimals work. The calculator adds decimals with extra precision, so 0.1 added ten times gives exactly 1.
  • Lists of up to 100,000 values work; for very long lists the sorted view shows the values around the middle.

For the spread of the data, the next step is the standard deviation calculator. To see how far a single value sits from the mean, use the z-score calculator. For a weighted average of marks, try the grade calculator. Everything runs in your browser and nothing is uploaded.

Cite this calculator

Using this calculator in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, November 3). Mean, Median, mode calculator. Retrieved November 20, 2026, from https://kazamtools.com/math/mean-median-mode-calculator/
MLA
"Mean, Median, Mode Calculator." KazamTools, 3 Nov. 2026, https://kazamtools.com/math/mean-median-mode-calculator/. Accessed 20 Nov. 2026.
Chicago
KazamTools. "Mean, Median, Mode Calculator." Last modified November 3, 2026. Accessed November 20, 2026. https://kazamtools.com/math/mean-median-mode-calculator/.
Plain link
Mean, Median, Mode Calculator (KazamTools): https://kazamtools.com/math/mean-median-mode-calculator/
HTML link
<a href="https://kazamtools.com/math/mean-median-mode-calculator/">Mean median mode calculator</a> by KazamTools

Frequently asked questions

How do you find the mean?

Add all the numbers and divide by how many there are. For 2, 4 and 9 the sum is 15 and there are 3 numbers, so the mean is 15 ÷ 3 = 5. The mean is what most people call the average.

How do you find the median?

Sort the numbers from smallest to largest and take the middle one. With an even count there are two middle numbers, so the median is their average: for 3, 5, 7, 8 it is (5 + 7) ÷ 2 = 6.

How do you find the mode?

Count how often each value appears. The mode is the value that appears most often. A list can have two modes (bimodal) or more, and if every value appears only once there is no mode.

Can there be more than one mode?

Yes. In 1, 2, 2, 3, 3, 4 both 2 and 3 appear twice, so the list is bimodal with modes 2 and 3. The calculator lists every mode.

What is the range?

The range is the largest value minus the smallest. For 4, 9, 2 and 7 it is 9 − 2 = 7. It is a quick measure of spread, but one extreme value changes it a lot.

Which is better, the mean or the median?

The mean uses every value, so it works well for evenly spread data. The median ignores how far out the extremes are, so it is the better middle for skewed data such as house prices or salaries.

Guides

Was this tool helpful?

Add this mean, median, mode calculator to your website (free)

Copy this code into any web page. The tool stays free, has no ads inside it, and works on phones. Please keep the credit link under it.

Want a live preview or light and dark colours? Open this widget in the widget builder, where you can also browse every free calculator widget.