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.
No valid numbers found. Enter at least one number, for example 2, 4, 4, 4, 5, 5, 7, 9.
No mode (every value appears once)Results
- Mean (average)
- -
- Sum
- -
- Count (n)
- -
- Median
- -
- Mode
- -
- Range
- -
Calculation steps
Results
- Weighted average
- -
- Sum of weights
- -
- Sum of value × weight
- -
- Count of values
- -
Calculation steps
| # | Value | Weight | Value × weight |
|---|---|---|---|
| Total |
Only the first 50 rows are shown. All of your numbers are used in the results above.
How to use the average calculator
- 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.
- Read the results as you type: the mean (the usual meaning of average), the sum, the count, the median, the mode and the range.
- Open the calculation steps under the results to see the addition, the division, and how the median was picked.
- 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
- Mean: add all the numbers, then divide by how many numbers there are.
- Median: sort the numbers. If the count is odd, the median is the middle one. If the count is even, it is the average of the two middle ones.
- Mode: the number that appears most often. There can be more than one mode. When every number appears only once, this calculator reports that there is no mode.
- Range: the largest number minus the smallest. It uses only the two extreme values, so it says nothing about the numbers in between.
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
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.1 "Measures of Location": itl.nist.gov/div898/handbook/eda/section3/eda351.htm. It states that "the mean is the sum of the data points divided by the number of data points," that the mean is "most commonly referred to as the average," that the median has "half the data smaller than that point and half the data larger than that point," and that the mode "occurs with the greatest frequency. It is not necessarily unique."
- NIST/SEMATECH e-Handbook, section 1.3.5.6 "Measures of Scale": itl.nist.gov/div898/handbook/eda/section3/eda356.htm. It defines the range as "the largest value minus the smallest value in a data set."
- NIST Dataplot Reference Manual, WEIGHTED MEAN: itl.nist.gov/div898/software/dataplot/refman2/ch2/weigmean.pdf. It gives the weighted mean as the sum of each weight times its observation divided by the sum of the weights, where "wi is the weight for the ith observation."
- OpenStax, Introductory Statistics 2e, section 2.5 "Measures of the Center of the Data": openstax.org. It says "The technical term is “arithmetic mean” and “average” is technically a center location," and "The mode is the most frequent value."
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.