CalcGallery

Mean, Median and Mode Calculator

The mean, median and every mode of a data set, with its range and quartiles.

Built by AbhiLast reviewed September 23, 2026

29MeanMedian

Your numbers

Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8

One number per row. Negative numbers and decimals are fine.

Result

Mean: 5

Exact arithmetic on the values entered. Nothing is estimated.

Median
4.5
Mode
4
Range
7
Smallest value
2
Largest value
9
First quartile, Q1
4
Third quartile, Q3
5.5
Interquartile range
1.5
Midrange
5.5
Sum
40
Count
8
Report a problem with this calculator
Your entries are kept on this device only.

Results follow the mathematical operation and values shown. Check that you selected the intended operation, convention and dataset type before relying on the result. Read the full disclaimer

How to use the Mean, Median and Mode Calculator

  1. Enter your numbers, one per row. Add rows as you need them; a row you add and leave empty is ignored.
  2. Read the mean, then the median, the mode and the measures of spread below it.

The three averages

MeasureHow it is foundWhat it tells you
Meanadd every value and divide by how many there arethe balance point of the data
Mediansort the values and take the middle one, or the mean of the middle twothe value half the data sits below
Modethe value or values that occur most oftenthe most common value, if one exists

The mean uses every value, so a single extreme value moves it. The median ignores how far out the extremes are, only which side of the middle they fall. The mode is the only one of the three that works for categories as well as numbers, and it is the only one that can be missing or plural.

Spread

For the spread around the mean, use the variance or standard deviation calculators.

Entering data

Enter numbers one per row. Negative numbers and decimals are fine. The page sorts a copy of your data to find the median and quartiles, so your rows stay in the order you typed them.

With your numbers

  1. Mean = sum ÷ count = 40 ÷ 8 = 5
  2. Median = the middle of the sorted values = 4.5
  3. Range = 9 − 2 = 7

Quick reference

Exact arithmetic on the values entered. Nothing is estimated.

Common math examples, worked out with this calculator's starting values.
ExampleMean
2, 4, 4, 4, 5, 5, 7, 95
1, 2, 3, 4 (no mode)2.5
1, 1, 2, 2, 3 (bimodal)1.8
−3, −1, 0, 1, 30
Test scores 72, 85, 90, 85, 6880
3, 7, 7, 2, 9, 7, 35.428571

Common questions about the Mean, Median and Mode Calculator

Which should I use, the mean or the median?
The median when the data are skewed or have outliers, the mean when they are roughly symmetric. House prices and incomes are the classic skewed cases: a few very large values pull the mean up while the median stays with the typical value. When the two are far apart, that gap is itself worth reporting.
What if no number repeats?
Then the data set has no mode, and the page says so. Some calculators report the smallest value or every value instead, which is wrong: the mode is the most frequent value, and when every value occurs once there is no most frequent value.
Can a data set have more than one mode?
Yes. If two values tie for most frequent the set is bimodal, and with three or more it is multimodal. The page lists every one. Two clear modes often mean two different groups have been mixed together, such as the heights of adults and children.
How are the quartiles worked out?
By linear interpolation between the sorted values, the method spreadsheets use for PERCENTILE.INC and QUARTILE.INC (Hyndman and Fan type 7). Textbooks sometimes teach the median of each half instead, which can give a different Q3: for 2, 4, 4, 4, 5, 5, 7, 9 it gives 6 rather than 5.5. Both are legitimate conventions; this page uses one and names it.

Report a problem with this calculator