Skip to content

Weighted Average Calculator

Enter each value with its weight to get the weighted average, the plain average for comparison, and the Excel formula that gives the same answer.

Updated

Item (optional)ValueWeight
Weights can be percentages, credits, quantities or any numbers. They do not need to add up to 100.
Weighted average85.3
Sum of weights100
Sum of value × weight8530
Plain average, for comparison84.333333
The same result in Excel
fx=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4)

How to calculate a weighted average

  1. Type each number in the Value column and how much it counts in the Weight column. The Item column is an optional label for your own reference.
  2. Select Add a row for more values, or the × at the end of a row to remove it.
  3. Read the Weighted average on the right. Below it are the sum of the weights, the sum of value × weight, and the plain average for comparison.
  4. Copy the formula under The same result in Excel if you want it in a sheet.

The result updates as you type. A row is left out until it has both a value and a weight. Weights can be percentages, credits, quantities or any other numbers.

The formula

weighted average = Σ(value × weight) / Σ(weight)

Σ means “add up”. Multiply each value by its weight and add the products. Then divide by the total of the weights.

Worked example

A course grade is made up of homework (20%), a midterm (30%) and a final exam (50%). The scores are 88, 74 and 91. These are the rows the calculator starts with.

Item Value Weight Value × weight
Homework 88 20 1,760
Midterm 74 30 2,220
Final exam 91 50 4,550
Total 100 8,530
  1. Multiply. 88 × 20 = 1,760. 74 × 30 = 2,220. 91 × 50 = 4,550.
  2. Add the products. 1,760 + 2,220 + 4,550 = 8,530.
  3. Add the weights. 20 + 30 + 50 = 100.
  4. Divide. 8,530 / 100 = 85.3.

The weighted average is 85.3. The plain average of the three scores is (88 + 74 + 91) / 3 = 84.33. The weighted result is higher because the best score, 91, carries half the weight.

Weights do not need to add up to 100

Dividing by the sum of the weights makes the scale irrelevant. Weights of 2, 3 and 5 give (176 + 222 + 455) / 10 = 85.3, the same answer.

This also gives a grade so far. Before the final exam, enter only homework and the midterm: (1,760 + 2,220) / 50 = 79.6. To finish the course on 85 you would need (8,500 − 3,980) / 50 = 90.4 in the final.

Weighted average in Excel

With the values in B2:B4 and the weights in C2:C4:

=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4)

SUMPRODUCT multiplies the two ranges row by row and adds the products. SUM adds the weights. For the example above the formula returns 85.3.

  • The two ranges must be the same size, or SUMPRODUCT returns #VALUE!.
  • Excel has an AVERAGE function and no built-in weighted average function, so this pair is the standard way.
  • If the weights are percentages that total 100%, =SUMPRODUCT(B2:B4, C2:C4) alone gives the same number. Keeping the division is safer, because it stays correct when a weight changes.

In Google Sheets the same formula works, and there is also a dedicated function:

=AVERAGE.WEIGHTED(B2:B4, C2:C4)

Where weighted averages are used

  • Course grades. Each category score is weighted by its share of the final grade, as in the example.
  • GPA. Grade points are weighted by credit hours. A 4.0 in a 3-credit course, a 3.0 in a 4-credit course and a 3.7 in a 3-credit course give (12 + 12 + 11.1) / 10 = 3.51.
  • Average price paid. Prices are weighted by quantity. Buying 10 units at 20 and 30 units at 24 costs 920 for 40 units, an average of 23. The plain average of the two prices, 22, understates what you paid.
  • Portfolio returns. Each holding’s return is weighted by its share of the portfolio. With 60% in a fund that returned 8% and 40% in one that returned 3%, the portfolio returned 4.8 + 1.2 = 6%.
  • Survey scores. A rating is weighted by the number of people who gave it. Twelve responses of 5, six of 4 and two of 2 average (60 + 24 + 4) / 20 = 4.4.

Common mistakes

  • Averaging the averages. If one class of 10 students averages 90 and another of 30 averages 70, the overall average is (900 + 2,100) / 40 = 75, and the midpoint of 80 is wrong. Weight each group’s average by its size.
  • Mixing weight scales. Entering 20 for one row and 0.3 for another makes the first row count about 67 times more. Use percentages or decimals throughout.
  • Dividing by the wrong total. Dividing by 100 when the entered weights add up to 50 treats the missing items as zeros. Divide by the sum of the weights you used.
  • Dividing by the number of items. That is the plain average formula. A weighted average divides by the total weight.
  • Weights that add up to zero. The division is impossible, and the calculator asks for different weights.

Questions

How do you calculate a weighted average?

Multiply each value by its weight, add the results, and divide by the sum of the weights. For 88, 74 and 91 with weights 20, 30 and 50, that is 8,530 divided by 100, which is 85.3.

What is the weighted average formula in Excel?

=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4), with the values in column B and the weights in column C. Excel has no single weighted average function.

Do the weights have to add up to 100?

No. The formula divides by the sum of the weights, so 20, 30 and 50 give the same answer as 2, 3 and 5 or 0.2, 0.3 and 0.5. Only the proportions between the weights matter.

What is the difference between an average and a weighted average?

A plain average counts every value equally. A weighted average lets some values count more than others. If all the weights are equal, the two give the same result.

How do I calculate my grade with weighted categories?

Enter each category score as the value and its percentage of the final grade as the weight. To see your grade so far, enter only the categories that have been marked. The calculator divides by the weights you entered.

How do I calculate GPA with credit hours?

Use the grade points for each course as the value and its credit hours as the weight. A 4.0 in a 3-credit course and a 3.0 in a 4-credit course give 24 grade points over 7 credits, a GPA of 3.43.

Related