Mean, Median, Mode Calculator

Paste or type numbers separated by commas or spaces. See mean, median, and mode instantly—with definitions, steps, a frequency table, and a bar chart.

Input

Quick examples

Non-numeric tokens are skipped. Up to 500 values recommended for smooth charts.

8 values parsed

Results summary

Mean (average)
26.5

Typical value if every point counted equally.

Median
25

Less affected by extreme highs or lows than the mean.

Mode

No mode — each value appears once.

Frequency by value

1215182228354042

Purple bars = mode value(s). Hover a bar for the exact count.

Step-by-step explanation

How we calculated these

Mean: add all values and divide by how many there are.

Sum = 12 + 15 + 18 + 22 + 28 + 35 + 40 + 42 = 212. Count n = 8. Mean = 212 ÷ 8 = 26.5.

Median: sort the data smallest → largest, then take the middle (or average the two middle values if n is even).

Sorted: 12, 15, 18, 22, 28, 35, 40, 42.

Two middle values (positions 4 and 5): 22 and 28 → median = their average = 25.

Mode: count how often each value appears; the mode is the value(s) with the highest count.

Here every value appears exactly once, so there is no single "most frequent" value.

Frequency table

ValueFrequency%
12112.5%
15112.5%
18112.5%
22112.5%
28112.5%
35112.5%
40112.5%
42112.5%

Highlighted rows = mode value(s).

What is mean, median, and mode?

These are the three most common measures of central tendency—ways to describe a "typical" value in a list. The mean is the arithmetic average. The median is the middle after sorting (or the average of the two middle values). The mode is the value that appears most often.

Difference between mean vs median vs mode

The mean uses every number, so it is sensitive to very large or small outliers. The median only cares about order, so it is more robust for skewed data. The mode is about repetition—ideal for categorical-style numeric codes or finding the most common score, and there may be zero, one, or several modes.

When to use each?

  • Mean: symmetric data, no extreme outliers, same units as your measurements.
  • Median: incomes, house prices, reaction times—anything with occasional extremes.
  • Mode: most common category or score; useful when you care about frequency, not averaging.

Examples

  • Data 2, 3, 3, 4 → mean 3, median 3, mode 3.
  • Data 1, 2, 99 → mean 34, median 2 (median resists the outlier).
  • Data 1, 1, 2, 2 → two modes: 1 and 2 (bimodal).

FAQs

Can there be more than one mode?
Yes. If two or more values tie for the highest frequency, the data set is multimodal (bimodal if exactly two).
Why might there be no mode?
If every value appears exactly once, no value is "most frequent," so many textbooks say there is no mode.
When is the median better than the mean?
When outliers skew the average—median uses position in the sorted list, so extreme values affect it less.