Skip to content
Wagonsmith

Average Calculator

Paste a list of numbers into this average calculator to get the mean, sum, count, median, mode and range with every step shown, or switch to the weighted average tab when some numbers count more than others.

Results

Mean (average)
-
Sum
-
Count (n)
-
Median
-
Mode
-
Range
-

How to use the average calculator

  1. Type or paste your numbers into the box. Separate them with commas, spaces, semicolons or line breaks, so a column copied from a spreadsheet works as it is.
  2. Read the results as you type: the mean (the usual meaning of average), the sum, the count, the median, the mode and the range.
  3. Open the calculation steps under the results to see the addition, the division, and how the median was picked.
  4. If some numbers should count more than others, such as test scores with different weights, use the Weighted average tab and enter the values and their weights in the same order.

Mean, median and mode

People say average and usually mean the mean. The three common measures of the center of a list are these.

Mean = (x1 + x2 + ... + xn) ÷ n

Worked example 1: eight values

Take the numbers 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and the count is 8, so the mean is 40 ÷ 8 = 5. The list is already sorted, and with eight values the two middle ones are the fourth and fifth, 4 and 5, so the median is (4 + 5) ÷ 2 = 4.5. The number 4 appears three times, more than any other, so the mode is 4. The range is 9 − 2 = 7.

Worked example 2: why the median can differ

Try 10, 12, 13, 15 and 100. The sum is 150, so the mean is 150 ÷ 5 = 30. The median is the middle value, 13. One large number pulled the mean far above where most of the list sits, and the median did not move. When a list has a few extreme values, look at both, and be careful about which one a problem or report is asking for.

Weighted average

A weighted average gives each value its own weight, so some values count more than others. Multiply each value by its weight, add those products, then divide by the sum of the weights.

Weighted average = ∑(w × x) ÷ ∑w

For example, suppose a homework average of 90 counts for 20 percent of a course grade, a quiz average of 80 counts for 30 percent, and an exam score of 70 counts for 50 percent. The products are 90 × 20 = 1,800, 80 × 30 = 2,400 and 70 × 50 = 3,500, which total 7,700. The weights add up to 100, so the weighted average is 7,700 ÷ 100 = 77. The plain mean of 90, 80 and 70 would be 80, which overstates the result because the lowest score has the biggest weight.

The weights do not have to add up to 100 or to 1, because the division by the sum of the weights takes care of that. You can use percentages, credit hours, counts or any other non-negative numbers. If you want a full class grade with a final exam target, the weighted grade calculator is built for that, and the cumulative GPA calculator applies the same idea to credit hours.

Notes and limits

Commas are read as separators, so write 1500 rather than 1,500. Entries that are not numbers are ignored and listed in a warning so you can fix a typo. In weighted mode the number of values and the number of weights must match, the weights cannot be negative, and they cannot all be zero. Sums use compensated addition so long lists of decimals do not pick up tiny rounding errors, and results are shown to up to six decimal places. The calculation tells you the center of your list, not how spread out it is. For that, use the standard deviation calculator, and see the grade and statistics calculators for the rest of the set.

Sources

Source pages checked November 2026. Reporting "no mode" when every value appears once is the convention this calculator uses.

Frequently asked questions

What is the difference between average, mean, median and mode?

In everyday use, average usually means the mean: the sum of the numbers divided by how many there are. The median is the middle value after sorting, and the mode is the value that occurs most often. They can differ a lot when a few values are extreme.

How do I calculate a weighted average?

Multiply each value by its weight, add those products up, then divide by the sum of the weights. Enter your values in the first box and the matching weights in the second box on the Weighted average tab. The weights do not have to add up to 100 or to 1.

What if there is no mode or more than one mode?

If every number appears only once, this calculator reports that there is no mode. If two or more numbers tie for the highest count, all of them are listed, because a data set can have more than one mode.

How do I enter my numbers?

Type or paste them separated by commas, spaces, semicolons or line breaks, so a column copied from a spreadsheet works. Decimals and negative numbers are fine. Because commas are separators, type 1500 and not 1,500. Anything that is not a number is ignored and listed in a warning.

Why does the weighted average say the weights must not be negative or all zero?

The formula divides by the sum of the weights, so a total of zero cannot be divided by. This calculator does not accept negative weights. The number of values and the number of weights must also match.

Is my data sent anywhere?

No. The calculation runs in your browser, and nothing you paste is uploaded or stored by this site.