To calculate a weighted average, multiply each value by its weight, add those products, and divide by the total of the weights. If homework (20%) is 95, quizzes (15%) are 88, the midterm (25%) is 76 and the final (40%) is 70, the weighted average is 79.2, not the plain average of 82.25.

If some numbers matter more than others, a plain average gives the wrong answer. Learning how to calculate weighted average fixes that, and it takes one formula you can do on a phone calculator.
This guide covers the formula, a full class grade example, weights given as points instead of percents, the score you need on a final, and the averaging traps that trip up even spreadsheet users. If you want the answer right away, plug your numbers into our weighted average calculator.
How Do You Calculate a Weighted Average?
You calculate a weighted average by multiplying each value by its weight, adding the products, and dividing that sum by the sum of the weights.
w = the weight of each value, x = the value itself
This is the same formula the NIST Dataplot reference manual gives for the weighted mean. Σ just means “add them all up.”
- List each value next to its weight.
- Multiply each value by its weight.
- Add the products.
- Add the weights.
- Divide the first total by the second.
If your weights are percentages that add up to 100, step 4 gives 100 (or 1.0 as decimals), so you can just add the products and divide by 100. If they do not add to 100, you must divide by their real total. Skipping that step is the most common error.
A few edge cases are worth knowing. A weight of 0 removes that value from the result completely, which is how a dropped quiz works. Weights cannot be negative in normal grading or pricing problems. And if every weight is the same, say 1, 1 and 1, the weighted average equals the ordinary mean. Weights do not need units of their own. Credits, points, gallons, people and percents all work, as long as every weight in the list uses the same unit.
How Do You Calculate a Weighted Grade?
To calculate a weighted grade, multiply each category average by its syllabus percentage, add the results, and divide by the total percentage graded so far.
Jordan’s syllabus says homework is 20%, quizzes 15%, the midterm 25% and the final 40%. Jordan scored 95, 88, 76 and 70.
- Homework: 95 × 0.20 = 19.0
- Quizzes: 88 × 0.15 = 13.2
- Midterm: 76 × 0.25 = 19.0
- Final: 70 × 0.40 = 28.0
- Add: 19.0 + 13.2 + 19.0 + 28.0 = 79.2. The weights add to 1.00, so no extra division is needed.
Jordan’s course grade is 79.2. The plain average of the four scores is 82.25. The weighted result is lower because the weakest score, the final, carries the most weight.
| Category | Weight | Score | Weight × score |
|---|---|---|---|
| Homework | 20% | 95 | 19.0 |
| Quizzes | 15% | 88 | 13.2 |
| Midterm | 25% | 76 | 19.0 |
| Final | 40% | 70 | 28.0 |
| Total | 100% | 79.2 |
A GPA works the same way, with credit hours as the weights. Our GPA calculator does that version for you.
What If the Weights Do Not Add Up to 100?
If the weights do not add up to 100, divide the sum of the products by the actual total of the weights, and the answer comes out right.
Many teachers use points instead of percents. Say lab reports are worth 150 points, a project 100 points and exams 250 points, for 500 in all. You scored 88%, 95% and 81% in those parts.
| Part | Points possible | Your score | Points × score | Share of grade |
|---|---|---|---|---|
| Lab reports | 150 | 88% | 13,200 | 30% |
| Project | 100 | 95% | 9,500 | 20% |
| Exams | 250 | 81% | 20,250 | 50% |
| Total | 500 | 42,950 | 100% |
42,950 ÷ 500 = 85.9%. Dividing by 100 instead of 500 would give a nonsense 429.5%.
The share column shows a handy trick: divide each weight by the total weight to turn any weights into percentages. 150 ÷ 500 = 30%. The final answer does not change.
The same logic works for midway grades. If only 60% of the course is graded, divide by 60, not 100. Dividing by 100 makes your current grade look far lower than it is.
How Do You Average Scores With Different Point Totals?
To average scores with different point totals, decide whether each test should count equally or by its points, because the two methods give different answers.
Say you scored 40 out of 50 on Test 1 (80%) and 90 out of 120 on Test 2 (75%).
| Method | Math | Result |
|---|---|---|
| Each test counts equally | (80% + 75%) ÷ 2 | 77.5% |
| Each test counts by its points | (40 + 90) ÷ (50 + 120) | 76.5% |
130 ÷ 170 = 0.7647, which rounds to 76.5%.
The second method is a weighted average in disguise. Adding raw points gives each test a weight equal to its point total, so the 120 point test counts 2.4 times as much as the 50 point test. Neither method is wrong. Your syllabus decides which one applies. If it says “total points,” add the raw scores. If it lists tests as equal parts of a category, average the percentages.
This also explains why a teacher’s gradebook can disagree with your own math. Many gradebooks add raw points inside a category, then weight the categories by percent. When you check your grade, copy that exact structure: points inside each category first, then category weights.
What Score Do I Need on the Final to Get a Certain Grade?
The score you need on the final equals your target grade minus the weighted points you already have, divided by the final’s weight.
Current grade = Σ(w × x) so far ÷ weights graded so far
Before the final, Jordan has 19.0 + 13.2 + 19.0 = 51.2 weighted points over 60% of the course. That is a current grade of 51.2 ÷ 0.60 = 85.3.
| Target course grade | Final exam score needed (40% weight) |
|---|---|
| 90 | 97.0 |
| 85 | 84.5 |
| 80 | 72.0 |
| 75 | 59.5 |
| 70 | 47.0 |
Example for 80: (80 − 51.2) ÷ 0.40 = 72.0.
Because the final is worth 40%, every 10 points on it moves the course grade by 4 points. The final grade calculator runs this for any weight and target.
Why Is a Weighted Average Different From a Regular Average?
A weighted average differs from a regular average because it lets bigger or more important items count more, while a regular average treats every item as equal.
A plain mean is just a weighted average where every weight is 1. You can find that version with our average calculator. The two match only when all weights are equal.
Trap 1: averaging prices
You buy 10 gallons of gas at $3.10 and later 4 gallons at $3.60. The average of the two prices is $3.35. But you paid $31.00 + $14.40 = $45.40 for 14 gallons, which is $3.24 a gallon. Weight prices by quantity.
Trap 2: averaging percentages
Class A has 20 students and a 90% pass rate. Class B has 80 students and a 60% pass rate. Averaging 90% and 60% gives 75%. The real rate is (18 + 48) ÷ 100 = 66%. Weight rates by group size. For the basics of percents themselves, see how to calculate percentage.
Trap 3: averaging averages
The same problem shows up when you average two class averages, two monthly averages or two GPAs. Go back to the raw totals, or weight each average by its count.
Where Are Weighted Averages Used in Real Life?
Weighted averages are used for course grades, GPAs, star ratings, inventory costs and price indexes such as the Consumer Price Index.
- Star ratings: 120 five star, 45 four star, 15 three star, 8 two star and 12 one star reviews give 853 stars over 200 reviews, a 4.27 average when rounded up from 4.265.
- Consumer Price Index: The Bureau of Labor Statistics weights each spending category by its “relative importance,” which is its expenditure weight as a percentage of all items. Rent moves the index more than postage because households spend more on it.
- Inventory and purchases: Stores and shoppers find the average cost of goods bought at different prices by weighting each price by quantity, just like the gas example.
Doing it in a spreadsheet
In Excel or Google Sheets, put values in column B and weights in column C, then use =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5). SUMPRODUCT multiplies each pair and adds them, and dividing by SUM handles weights that do not total 100. For quick one off checks, the weighted average calculator is faster than building a sheet.
Quick Recap
- Weighted average = Σ(w × x) ÷ Σw.
- Divide by the real total of the weights, not by 100, when weights are points or partial.
- Needed final score = (target − points so far) ÷ final weight.
- Weight prices by quantity and rates by group size, or the average will be wrong.
- In a spreadsheet use SUMPRODUCT divided by SUM.

Frequently Asked Questions
What is the formula for weighted average?
Weighted average = Σ(w × x) ÷ Σw. Multiply each value x by its weight w, add those products, and divide by the sum of all weights. When weights are percents that total 100, divide by 100.
How do you calculate weighted average in Excel?
Put values in one column and weights in another, then use =SUMPRODUCT(values,weights)/SUM(weights). For values in B2:B5 and weights in C2:C5, type =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5). The same formula works in Google Sheets.
Can weights be decimals instead of percentages?
Yes. 0.20, 20% and 20 points out of 100 all give the same answer, as long as you divide by the total of whatever weights you used. Weights of 0.2, 0.3 and 0.5 total 1.0.
Is a weighted average always higher than the simple average?
No. It is higher when the heaviest weights sit on the largest values and lower when they sit on the smallest. In our grade example the 40% final was the lowest score, so the weighted grade was lower.
What is the difference between weighted mean and weighted average?
They are the same thing. Statisticians tend to say weighted mean, as in the NIST Dataplot manual, while teachers and finance users usually say weighted average. The formula does not change.
How do I calculate my grade if only part of the course is graded?
Add the weighted points you have and divide by the weights graded so far. With 51.2 weighted points over 60% of the course, your current grade is 51.2 ÷ 0.60, or about 85.3.
Sources
- NIST Dataplot Reference Manual: WEIGHTED MEAN, weighted mean formula Σ(w × x) ÷ Σw
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Location, definition of the ordinary mean
- U.S. Bureau of Labor Statistics: Relative Importance and Weight Information for the CPI, CPI categories are weighted by relative importance
