Blog

How to Calculate a Weighted Average (and Your Course Grade)

By Ammad Humayun ·

Illustration of scores with different weights being combined∑

A weighted average counts some values more than others. It is how course grades, GPAs and blended rates are calculated, and it is easy to get wrong by treating the weights as scores.

A weighted average multiplies each value by its weight, adds the results, and divides by the total of the weights. A plain average is the special case where every weight is equal. The distinction matters whenever some components count more than others, which is true of nearly every course grade.

The formula

Weights can be percentages, credit hours, currency amounts or any consistent measure of importance. What matters is that all weights use the same unit and that you divide by their sum.

Weighted average = (v1 x w1 + v2 x w2 + ... + vn x wn) / (w1 + w2 + ... + wn)

When weights total 100%, the denominator is 1 and you can skip the division

Worked example: a course grade

The weighted average is 79.55. The unweighted average of the four scores is (88 + 74 + 91 + 69) / 4 = 80.5.

The difference is small here but it runs in a specific direction: the final exam, the weakest score, carries the heaviest weight, so weighting pulls the result down. Whenever your strongest and weakest results sit on different weights, the two averages diverge, and it is always the weighted one that counts.

ComponentScoreWeightScore x Weight
Assignments8820%17.6
Midterm7425%18.5
Project9125%22.75
Final exam6930%20.7
Total100%79.55

Working out what you need on the final

Using the same course before the final. Points earned from the first three components: 17.6 + 18.5 + 22.75 = 58.85. The final is worth 30%.

To reach an overall 80: (80 - 58.85) / 0.30 = 70.5. You need 70.5% on the final.

To reach 85: (85 - 58.85) / 0.30 = 87.2.

To reach 90: (90 - 58.85) / 0.30 = 103.8 — above 100, which means the grade is no longer reachable. That is useful information rather than a failure of the calculation, and it is worth running early enough in a term to change what you do about it.

Required score = (Target - Points already earned) / Weight of remaining assessment

GPA is a weighted average by credit hours

GPA is 42.6 / 13 = 3.28. The unweighted average of the four grade points is 3.35.

Credit hours are the weights, which means a four-credit course affects your GPA twice as much as a two-credit one. A strong grade in a small elective moves the number far less than people expect, and a weak grade in a heavy course moves it more.

Grade point scales differ between institutions — 4.0 scales, 5.0 scales for weighted courses, and percentage-based systems all exist — so use the conversion your institution publishes rather than a general one.

CourseGrade pointsCreditsPoints x Credits
Statistics3.7414.8
History3.039.0
Chemistry2.7410.8
Elective4.028.0
Total1342.6

Other places weighted averages appear

The loan case is a useful one. Two debts, 20,000 at 4% and 5,000 at 18%, give a blended rate of ((20,000 x 4) + (5,000 x 18)) / 25,000 = 6.8% — not the 11% that averaging the rates would suggest. Balance-weighted is the correct basis, and it is why a small high-rate debt affects the blended figure less than its rate implies, while still being the one worth clearing first.

  • Blended interest rates across several loans, weighted by outstanding balance.
  • Average price paid per share across purchases at different prices and quantities.
  • Portfolio returns, weighted by the amount invested in each holding.
  • Survey results weighted to correct for sample composition.
  • Average cost per unit when stock was bought in batches at different prices.
  • Blended hourly rates across a team billing at different levels.

Mistakes that skew a weighted average

  1. Averaging the values and ignoring the weights entirely, which is the most common error.
  2. Forgetting to divide by the sum of the weights when they do not total 100%.
  3. Mixing weight units, such as combining percentage weights with credit hours in one calculation.
  4. Treating a dropped or excused component as a zero rather than removing it and its weight from the calculation.
  5. Assuming an unweighted GPA transfers between institutions using different scales.
  6. Averaging percentages that are themselves based on different sized groups, which requires weighting by group size.

Assumptions and limitations

A weighted average assumes the weights genuinely reflect importance and that the values are measured on a comparable scale. Combining a score out of 100 with one out of 20 without converting first produces a number that means nothing, so normalise everything to the same scale before weighting.

It assumes all components are known. Any calculation done mid-term is a projection based on the assumption that outstanding components will be scored a particular way, which is fine as long as it is labelled that way.

It also hides variation. Two students with the same weighted average may have very different distributions — one consistent, one with a strong result offsetting a weak one — and a single number cannot distinguish them. Where the distribution matters, as it sometimes does for prerequisites or eligibility, look at the components rather than the average.

Keep weights and scores in the same scale

A weighted average is only meaningful when every score uses a compatible scale and every weight refers to the same basis. For a course grade, verify whether the final exam is weighted by percentage points, assignment category or another rule. For GPA, use the institution's credit-hour and grade-point system rather than assuming every course contributes equally.

Frequently asked questions

What if the weights don't add up to 100%?

The formula still works. Divide by the actual sum of the weights rather than assuming 100, which is exactly what credit-hour GPA calculations do.

How do I calculate a weighted average across several terms?

Multiply each term's GPA by its credits, sum those products, and divide by total credits across all terms. Averaging the term GPAs directly ignores that terms differ in size.

Does a pass/fail course affect GPA?

Usually not, since it carries no grade points, though it may still count towards credits earned. Institutional rules differ, so check yours.

Can a weighted average be higher than every individual value?

No. It always falls between the lowest and highest values, which is a useful sanity check — a result outside that range means an error somewhere in the arithmetic.

Why is an ordinary average sometimes wrong?

An ordinary average gives every value equal weight. A weighted average gives more influence to values associated with larger weights.

Can I average percentages from different courses directly?

Only when the courses have equal weighting. If credit hours or course weights differ, calculate the weighted average instead.

Conclusion

Multiply each value by its weight, add the products, divide by the sum of the weights. The check that catches most mistakes is simple: the answer must sit between your lowest and highest values, and if it does not, something went wrong. For course grades specifically, run the required-score calculation before the final rather than after it, since knowing what you need is only useful while there is still time to act on it.

Written by Ammad Humayun
Ammad Humayun writes the calculation guides on this site, using stated formulas and worked examples. If you spot an error or an unclear step, please tell us and we will check it against the formula.

Figures in this article are illustrative. Results depend on your own rates, fees, taxes and circumstances, and are for educational and planning purposes rather than financial advice.

Related articles

← Back to Blog