X-Calculator
Math Updated November 23, 2026

Average Calculator

Find the mean, median, mode and range of any list of numbers, with the working shown.

Numbers (separate with commas, spaces or new lines)
Advertisement
Advertisement

This average calculator finds the mean, median, mode and range of any list of numbers in one go. Paste or type your values separated by commas, spaces or line breaks — straight from a spreadsheet column works too — and you also get the count, the sum, the sorted list and the working for each measure.

The four measures and their formulas

mean   = (x₁ + x₂ + … + xₙ) ÷ n
median = middle value of the sorted list
         (average of the two middle values if n is even)
mode   = the value that occurs most often
range  = largest value − smallest value

When people say “the average” they almost always mean the arithmetic mean. The median and mode are also averages — measures of the center of the data — and the range describes how spread out it is.

How to calculate the mean

Add all the values and divide by how many there are. For 4, 8, 15, 16, 23 and 42 the sum is 108 and there are 6 values, so the mean is 108 ÷ 6 = 18.

Advertisement
Advertisement

How to find the median

Sort the values from smallest to largest. With an odd count, the median is the single middle value; with an even count, it is the average of the two middle values. For the six numbers above, the middle pair is 15 and 16, so the median is (15 + 16) ÷ 2 = 15.5. For the test scores 78, 85, 88, 90, 92 (five values) the median is the third one, 88.

How to find the mode

Count how often each value appears. In 2, 4, 4, 4, 5, 5, 7, 9 the value 4 appears three times, more than any other, so the mode is 4. A list can have two modes (bimodal) — 1, 2, 2, 3, 3, 4 has modes 2 and 3 — or none at all when every value appears equally often.

Worked examples

  • Test scores 85, 92, 78, 90, 88: sum 433, mean 433 ÷ 5 = 86.6, median 88, no mode, range 92 − 78 = 14.
  • 2, 4, 4, 4, 5, 5, 7, 9: mean 40 ÷ 8 = 5, median (4 + 5) ÷ 2 = 4.5, mode 4, range 7.
  • Negative and decimal values −3, 0.5, 10: mean 7.5 ÷ 3 = 2.5, median 0.5, range 13.

Mean vs. median: which average should you use?

The mean uses every value, which makes it sensitive to outliers. Take five salaries: $40,000, $45,000, $50,000, $55,000 and $310,000. The mean is $500,000 ÷ 5 = $100,000, yet four of the five people earn far less. The median, $50,000, describes the typical salary much better. That is why income and home prices are usually reported as medians, while test scores and temperatures, which have few extreme values, use the mean.

Measure Best for Affected by outliers?
Mean Symmetric data: grades, heights, daily temperatures Yes, strongly
Median Skewed data: incomes, house prices, wait times Barely
Mode Categories and repeated values: shoe sizes, most common rating No
Range A quick sense of spread Yes — it uses only the two extremes

The range is a rough measure of spread. For a more robust one that uses every value, use the standard deviation calculator.

Weighted averages

A plain mean treats every value equally. When values carry different weights — credit hours in a GPA, or a final exam worth 40% of a grade — multiply each value by its weight, add the products and divide by the total weight:

weighted mean = (w₁x₁ + w₂x₂ + … + wₙxₙ) ÷ (w₁ + w₂ + … + wₙ)

Example: homework average 92 (weight 30%), midterm 78 (30%), final 85 (40%) → (0.3 × 92 + 0.3 × 78 + 0.4 × 85) ÷ 1 = 27.6 + 23.4 + 34 = 85. A shortcut for whole-number weights: repeat a value in the list as many times as its weight, and this calculator’s mean becomes the weighted mean.

Tips for entering data

  • Commas, spaces, semicolons and new lines all separate values, so you can paste a column from Excel or Google Sheets directly.
  • Do not use commas as thousands separators: type 1500, not 1,500 (which would be read as 1 and 500).
  • Negative numbers, decimals and scientific notation (2.5e3) are accepted.
  • Check your result in a spreadsheet with =AVERAGE(), =MEDIAN() and =MODE.MULT().

Frequently Asked Questions

How do you calculate the average of a list of numbers?

Add all the numbers together and divide by how many there are. For 4, 8, 15, 16, 23 and 42, the sum is 108 and the average is 108 ÷ 6 = 18.

What is the difference between mean, median and mode?

The mean is the sum divided by the count, the median is the middle value of the sorted list, and the mode is the value that appears most often.

How do you find the median of an even number of values?

Sort the values and average the two in the middle. For 4, 8, 15, 16, 23, 42 the middle pair is 15 and 16, so the median is 15.5.

Can a data set have no mode or more than one mode?

Yes. If every value appears the same number of times there is no mode, and if two or more values tie for most frequent the set is bimodal or multimodal.

When should I use the median instead of the mean?

Use the median when the data contain outliers or are skewed, such as incomes or house prices, because a few extreme values pull the mean away from the typical value.

Advertisement
Advertisement
Related

You may also need

All Math Calculators
Advertisement