Average Calculator
Paste or type a list of numbers — separated by commas, spaces or new lines — and the calculator returns the mean, median, mode and range, alongside the sum, count, minimum and maximum.
Mean (average)
5
- Median
- 4.5
- Mode
- 4
- Range
- 7
- Minimum
- 2
- Maximum
- 9
- Sum
- 40
- Count
- 8
Calculated from 8 values. Mean is the arithmetic average; median is the middle value when sorted; mode is the most-frequent value; range is max − min.
How to use this calculator
Type or paste numbers into the input field. Separate them however you like — commas, spaces, tabs or new lines all work. The calculator updates as you type and shows the mean (arithmetic average) as the headline result, with the median, mode, range, sum, count, minimum and maximum below. Decimal numbers and negative numbers are handled correctly. Unrecognised tokens are ignored and reported in the explanation.
How the calculation works
The mean is the sum of all values divided by the count. The median is the middle value when the list is sorted — for an even-length list it is the mean of the two middle values. The mode is the value that appears most often; if two or more values tie for the highest frequency, every tied value is shown. If no value repeats, the calculator reports "no mode" rather than picking an arbitrary one. The range is the maximum minus the minimum. All four measures are standard descriptive statistics taught in any introductory course.
Worked example
For the dataset 2, 4, 4, 4, 5, 5, 7, 9 (eight values): the sum is 40, so the mean is 40 ÷ 8 = 5. Sorted, the two middle values are 4 and 5, so the median is (4 + 5) ÷ 2 = 4.5. The value 4 appears three times — more than any other — so the mode is 4. The range is 9 − 2 = 7. For the simpler dataset 1, 2, 3, 4, 5: the mean is 3, the median is 3, there is no mode (every value appears once), and the range is 4.
Frequently asked questions
What is the difference between the mean, median and mode?
The mean (or average) is the sum of the values divided by how many there are — it uses every data point but is sensitive to extreme outliers. The median is the middle value when the data is sorted — it ignores how far away the extremes are, so it is more robust for skewed data (incomes, house prices). The mode is the value that occurs most often — useful for categorical or discrete data where "typical" means "most common" rather than "in the middle".
What if my data has no mode?
If no value is repeated, the dataset has no mode. Some textbooks instead say "every value is its own mode", but the practical answer is the same — there is no single "most common" value to report. This calculator displays "no mode" in that case. When two or more values tie for the highest frequency, the dataset is bimodal (two modes) or multimodal (three or more), and every tied value is shown.
How is the median calculated for an even number of values?
Sort the values from smallest to largest. With an odd count, the median is simply the middle value. With an even count there is no single middle value, so the median is defined as the mean of the two middle values. For example, in 2, 4, 6, 8 the two middle values are 4 and 6, and the median is (4 + 6) ÷ 2 = 5.
When should I use the median instead of the mean?
Use the median when the data is skewed by a few very large or very small values. House prices, salaries and reaction times are all classic examples — a few millionaires pull the mean salary up, but the median ("a typical earner") is barely affected. The mean is the right choice when the data is roughly symmetric and you want a measure that uses every value (it feeds into other calculations like standard deviation and variance).
What separator characters can I use?
Anything sensible: commas, spaces, tabs, semicolons, or new lines all work, and you can mix them. The calculator splits on any whitespace or comma/semicolon, so pasting a column from a spreadsheet or a comma-separated row both work without reformatting. Tokens that are not valid numbers are skipped and reported under the result.
Does this handle decimals and negative numbers?
Yes. Any finite real number works — integers, decimals, and negatives. The mean and range are computed with full floating-point precision and displayed with up to ten decimal places of accuracy. Very large datasets (thousands of values) compute in a fraction of a second; the underlying algorithms are linear in the size of the list (and the sort step is O(n log n) for the median).