Average calculator
"Average" can mean the mean or the median, and when a list contains an outlier the two disagree sharply. This tool gives you both, plus the sorted list so you can see why.
Separate them with spaces, commas, semicolons or new lines. Paste a column from a spreadsheet directly.
Result
- Mean
- 67
- Median
- 35
- Count
- 5
- Sum
- 335
- Minimum
- 30
- Maximum
- 200
- Range
- 170
30 · 32 · 35 · 38 · 200
How this is calculated
The median is read off the list after sorting it numerically. With an even count there is no single middle value, so the median is the mean of the two central ones.
- count
- — how many numbers you entered
- sum
- — all the numbers added together
- range
- — the spread from smallest to largest
Worked example
Take five salaries: 30, 32, 35, 38 and 200 (thousands). The sum is 335, so the mean is 67. But four of the five people earn under 40 — the mean describes none of them, because the single large value drags it upward. The median is the third value of the sorted list, 35, which represents the group far better. Whenever the mean and the median are far apart, the list contains outliers and the median is usually the more honest summary.
How to use it
- Type or paste your numbers. Any mix of spaces, new lines, semicolons and commas works as a separator.
- Anything that is not a number is listed back to you rather than silently ignored, so a typo cannot quietly change the result.
- Compare the mean and the median. If they differ a lot, look at the sorted list for the values pulling the mean around.
Limitations and assumptions
- In locales where the comma is the decimal mark, the comma is not treated as a separator — "1,5 2,5" is two numbers, not four. Use spaces or new lines there.
- For the same reason, grouped thousands such as "1,234" cannot be used inside the list in English-style locales, where the comma separates items.
- This is descriptive statistics for the numbers you entered. It does not compute a standard deviation, a weighted mean or a mode, and it makes no inference about any wider population.
Questions
Should I use the mean or the median?
Use the median when the list has extreme values or is skewed — incomes, house prices, response times. Use the mean when values cluster symmetrically and you need a figure that can be multiplied back up by the count, such as a total.
How is the median found when there is an even number of values?
There is no single middle value, so the two central numbers of the sorted list are averaged. For 1, 2, 3, 4 the median is (2 + 3) ÷ 2 = 2.5.
Does the order I type the numbers in matter?
No. The list is sorted numerically before the median is taken, and every other measure is order-independent. Sorting numerically rather than as text matters: as text, 10 would come before 2.
Related calculators
- Percentage calculatorThree percentage questions in one tool: a share of a number, what share one number is of another, and the change between two numbers.
- Discount calculatorFinal price and saving for one discount or several applied in sequence, with the single discount that would have the same effect.
This page has not yet had an editorial review.
