Average Calculator: Mean, Median, Mode and When Each One Misleads
By FindMySum · Last reviewed
An average calculator answers a simple question, what is a typical value in this list, but "average" has three common meanings and they don't always agree. This calculator gives all three: the mean (add everything up and divide by how many there are), the median (the middle value once the list is sorted) and the mode (the value that turns up most often). It also reports the sum, count, minimum, maximum, range, first and third quartiles and the interquartile range, plus a frequency table. Seeing them side by side is the quickest way to tell whether one number really does summarise your data.
How each measure is calculated
Mean = sum of the values ÷ number of values. It uses every value, which makes it sensitive: change any one number and the mean moves. It is the balance point of the data, the place where the distances to values above it exactly cancel the distances to values below it.
Median = the middle value of the sorted list. With an odd count it is the value in the middle position; with an even count it is halfway between the two middle values. Half the data lies at or below it and half at or above it, and it ignores how far away the extreme values are.
Mode = the most frequent value. A list can have one mode, several (when values tie for most frequent) or none at all, when every value appears the same number of times. The calculator reports "no mode" in that last case rather than listing every value.
Range = maximum − minimum, the full spread of the data.
Quartiles split the sorted data into four parts. The calculator uses the inclusive method found in Excel's QUARTILE.INC: the first quartile sits at position 0.25 × (n − 1) in the sorted list, counting from zero, and the third quartile at 0.75 × (n − 1), interpolating when the position falls between two values. The interquartile range (IQR) is Q3 − Q1, the spread of the middle half of the data. The NIST e-Handbook notes that several percentile definitions are in use, so a statistics package or a textbook may give slightly different quartiles for small lists. None of them is wrong; they are different conventions, and the differences shrink as the list grows.
The arithmetic is done in exact decimals, so a list like 0.1, 0.2 averages to exactly 0.15. Averages that never terminate are rounded for display.
Worked example: the calculator's defaults
The calculator opens with the list 1, 2, 3, 4, 5.
- Count: 5 values. Sum: 1 + 2 + 3 + 4 + 5 = 15.
- Mean: 15 ÷ 5 = 3.
- Median: the list is already sorted and has an odd count, so the median is the third value, 3.
- Mode: every value appears once, so there is no mode. The frequency table shows each value at 20% of the list.
- Range: 5 − 1 = 4.
- Quartiles: n − 1 = 4, so Q1 is at position 0.25 × 4 = 1 (the second value, 2) and Q3 at position 0.75 × 4 = 3 (the fourth value, 4). The IQR is 4 − 2 = 2.
Because the list is evenly spaced and symmetrical, the mean and median are identical. That agreement is the signal that either one is a fair summary.
The midrange
The midrange is the point halfway between the smallest and largest values, (min + max) ÷ 2. For the default 1, 2, 3, 4, 5 it is (1 + 5) ÷ 2 = 3, the same as the mean and median because the numbers are evenly spread. It uses only the two extremes, so one unusual value moves it as much as the range: change the 5 to 50 and the midrange jumps to 25.5 while the median stays at 3. Weather records use it for the daily mean temperature, (high + low) ÷ 2.
When the mean and median disagree
Now take a list that isn't symmetrical, such as seven commute times in minutes: 42, 45, 45, 48, 51, 55 and 160, where the last one was the day of a highway closure. The calculator gives:
| Measure | Result |
|---|---|
| Sum | 446 |
| Mean | 63.71428571 |
| Median | 48 |
| Mode | 45 |
| Range | 118 |
| Q1 / Q3 | 45 / 53 |
| IQR | 8 |
The mean says a typical commute is almost 64 minutes, yet six of the seven trips took 55 minutes or less. The single long trip pulls the mean up by about 16 minutes, while the median barely notices it. Remove the 160 and the calculator gives a mean of 47.66666667 and a median of 46.5: the mean drops by 16 minutes, the median by a minute and a half.
A common rule of thumb, from John Tukey's work on box plots, flags a value as a possible outlier if it lies more than 1.5 × IQR beyond a quartile. Here 1.5 × 8 = 12, so anything above 53 + 12 = 65 minutes stands out, and 160 clearly does. An outlier isn't automatically an error. It might be the most important value in the list. But it is a reason to report the median, or to report the mean with and without it.
This is why incomes and house prices are usually summarised by the median: a small number of very high values lift the mean well above what most people earn or pay.
What the calculator doesn't do
- It gives every value equal weight. Course marks where a final exam counts for 40% need a weighted average; the grade calculator handles that.
- It doesn't measure spread around the mean. The range and IQR describe spread, but the usual measure, the standard deviation, lives in the standard deviation calculator.
- It doesn't judge your data. A typo such as 4,80 instead of 480 gives a perfectly computed but meaningless average. Check the sorted list and the minimum and maximum before trusting the result.
- The mode of continuous measurements is rarely meaningful. With values like 12.37 and 12.41, almost nothing repeats exactly. Grouping values into ranges is the usual fix.
Using the result
Report the mean when the data is roughly symmetrical and has no extreme values, and the median when it is skewed or contains outliers. If the two are close, either will do; if they are far apart, that gap is itself worth reporting. For changes between two averages, the percentage calculator gives the percentage increase or decrease, and for school marks the GPA calculator converts averages to a grade point scale.
More questions
Is the average of two averages the same as the overall average?
Only if both groups have the same number of values. If one class of 10 students averages 80 and another class of 30 averages 70, the combined average is not 75: it is (10 × 80 + 30 × 70) ÷ 40 = 72.5, because the larger class carries more weight. To combine averages correctly, multiply each by its count, add, and divide by the total count, or paste all the raw values into the calculator.
How do I work out the score I need to reach a target average?
Multiply the target by the number of values you will have in total, then subtract the sum of the values you already have. With scores of 72, 85 and 78 (sum 235) and a target average of 80 over four tests, you need 4 × 80 − 235 = 85 on the fourth. If the answer is above the maximum possible score, the target can't be reached.
What happens to the mean and median if I add the same number to every value?
Both shift by exactly that amount, and so does the mode, while the range and interquartile range stay the same. Multiplying every value by a number multiplies the mean, median, mode, range and IQR by that number. This is why converting a list from Celsius to Fahrenheit, or from dollars to cents, doesn't change the shape of the data, only its scale and position.
Can I paste a column of numbers from a spreadsheet?
Yes. The calculator accepts numbers separated by commas, spaces, semicolons or new lines, so a pasted column works as it is. When the values are separated by spaces or new lines, a number written with thousands separators, like 1,250, is read as one number; if you separate values with commas only, leave the thousands separators out.
Why is the median sometimes a number that isn't in my list?
With an even number of values there is no single middle value, so the median is the halfway point between the two middle ones. The list 42, 45, 45, 48, 51, 55 has six values; the middle two are 45 and 48, so the median is 46.5. The same thing happens with quartiles, which are interpolated between neighbouring values.
When is the mode more useful than the mean?
When the values are categories or sizes rather than measurements on a smooth scale. A shoe store cares that size 9 sells most often, not that the average size sold is 8.7, which no customer wears. The mode is also the only one of the three averages that makes sense for non-numeric data such as the most common answer in a survey.
When is the midrange useful?
When only the extremes are known, such as a day's high and low temperature: the midrange (high + low) ÷ 2 is the traditional daily mean temperature. For most data sets the median or mean describes the centre better, because the midrange depends on just two values.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.