calc.cihat.dev

Weighted average calculator

Type values and their weights to get the weighted average, with every product added up. Grades and credits, test scores and percentages, prices and quantities all work the same way.

Weighted average

–

Total weight
–
Plain average, for comparison
–

How to use it

  1. Type each value and its weight on a row. A weight can be credits, hours, a percentage or a count.
  2. Add rows as you need. Rows with a missing value or weight are left out.
  3. Read the weighted average, and the plain average beside it to see what the weights changed.

The formula

Multiply each value by its weight, add the products, and divide by the sum of the weights: Σ(value × weight) ÷ Σ weight. With a 90 weighted 3 and a 70 weighted 1, the products are 270 and 70, the sum is 340, and 340 ÷ 4 = 85. The plain average of 90 and 70 is 80; the weight pulled the result towards the 90.

Weights do not have to add up to 100 or to 1. Percent weights of 40, 40 and 20 give the same answer as 2, 2 and 1, because only their proportions matter.

Final grades with weighted parts

A course that counts homework 20%, the midterm 30% and the final 50% is a weighted average with those three weights. With homework at 92, a midterm of 78 and a final of 85, the products are 18.4, 23.4 and 42.5, and the course grade is 84.3. If a part is not graded yet, leave it out to see where you stand on the graded work so far. For a GPA from letter grades and credits, use the GPA calculator; for a plain mean, median and mode, the average calculator.

A missing part: left out or zero?

An ungraded part and a part graded zero give very different results. With homework at 92 (20%) and a midterm of 78 (30%), leaving the final out gives 41.8 ÷ 50 × 100 = 83.6, your standing on the work graded so far. Entering the final as 0 at 50% gives 41.8, the grade you would end with if you skipped it. This calculator leaves out a row with an empty value, so type 0 only for work that really scored zero.

What do I need on the final?

Subtract what you already have from the target and divide by the final’s weight. Homework at 92 worth 20% and a midterm of 78 worth 30% already give 18.4 + 23.4 = 41.8 points of the course grade. For 80 overall, a final worth 50% needs (80 − 41.8) ÷ 0.5 = 76.4. A result above 100 means the target cannot be reached with that final alone.

Beyond grades: average price and average rate

The same formula gives an average purchase price. 100 shares bought at 20 and 50 bought at 26 cost 2,000 + 1,300 = 3,300 for 150 shares, an average of 22; averaging the two prices gives 23, which ignores that more shares were bought at 20. It gives an average interest rate too: 10,000 at 5% and 30,000 at 7% cost 500 + 2,100 = 2,600 a year on 40,000 in simple interest, which is 6.5%.

In Excel or Google Sheets, with values in A2:A4 and weights in B2:B4, =SUMPRODUCT(A2:A4, B2:B4) / SUM(B2:B4) does the whole calculation (Microsoft Support: SUMPRODUCT).

Plain and weighted averages of the examples on this page
ValuesWeightsPlain averageWeighted average
90, 703, 18085
92, 78, 8520, 30, 508584.3
20, 26100, 502322
5%, 7%10,000, 30,0006%6.5%

Questions people ask

How do I calculate a weighted average?

Multiply each value by its weight, add the results, and divide by the total of the weights.

Do the weights have to add up to 100?

No. Only the proportions between weights matter, so 50, 30 and 20 give the same result as 5, 3 and 2.

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

A plain average counts every value once. A weighted average counts each value as many times as its weight, so heavier items move the result more.

What score do I need on my final exam?

Needed score = (target − points you already have) ÷ weight of the final. With 41.8 points from homework and the midterm, an 80 overall needs 76.4 on a final worth 50%.

How do I calculate a weighted average in Excel?

Use =SUMPRODUCT(values, weights) / SUM(weights). Google Sheets accepts the same formula.

Is a weighted average always between the lowest and highest value?

Yes, as long as no weight is negative. The weights decide where between the two it lands: the heavier a value, the closer the average moves to it.

Can a weight be zero?

Yes. A row with weight 0 adds nothing; it is the same as leaving the row out.