Weighted Average
calculator.
A weighted average lets each value count by how much it matters, not just once.
| # | Label | Value | Weight % |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
- Simple average
- 87.5
- Total weight
- 100%
- Weights move it by
- −0.1
Final exam carries 40% of the weight and adds 36.8 to the result. The weights move the answer down by 0.1 from the simple average of 87.5.
Where the beam balances
A bigger circle has more weight, and the point sits at the weighted average, 87.4. The dashed line marks the simple average, 87.5.
Against the simple average
The simple average is 0.1 higher, because it ignores how much each row counts.
Reach a target
- Final exam needs a value of
- 98.5
- Weight the new row needs (added to the total)
- 26
The average with one row left out
| Leave out | Average | Change |
|---|---|---|
| Midterm exam | 88.4286 | +1.0286 |
| Final exam | 84.3333 | −3.0667 |
| Homework | 89.75 | +2.35 |
| Participation | 86.5556 | −0.8444 |
A large change points to the row to check first.
What each row contributes
| Row | Value | Weight | Share of weight | Adds to result |
|---|---|---|---|---|
| Midterm exam85 at 30% | 85 | 30 | 30% | 25.5 |
| Final exam92 at 40% | 92 | 40 | 40% | 36.8 |
| Homework78 at 20% | 78 | 20 | 20% | 15.6 |
| Participation95 at 10% | 95 | 10 | 10% | 9.5 |
Working
- 1Multiply each value by its weight85 × 30 = 2,55092 × 40 = 3,68078 × 20 = 1,56095 × 10 = 950
- 2Add the productsSum of products = 8,740
- 3Add the weightsSum of weights = 100
- 4Divide the first sum by the second8,740100= 87.4
- 5Check: the answer times the total weight87.4 × 100 = 8,740
How it's worked out
Each value gets a weight. You multiply each value by its weight, add the results, and divide by the sum of the weights.
Here each x is a value and each w is its weight. Only the sizes of the weights relative to each other matter. Scores of 80, 90 and 70 with weights of 3, 2 and 5 give 77, and the same scores with 30%, 20% and 50% give 77.
In a spreadsheet this is SUMPRODUCT over SUM. SUMPRODUCT multiplies matching cells and adds the results. It treats text as 0, so a stray word in a score column drops that row from the top of the fraction but not its weight from the bottom.
A weight of 0 takes a row out without deleting it, which helps when you want to test a what-if. Grade points weighted by credits work the same way, and the GPA calculator is set up for them.
Worked examples
Priya works out her course grade
Priya's course sets the midterm at 30%, the final at 40%, homework at 20% and participation at 10%. She scored 85, 92, 78 and 95.
Her grade is 87.4, just under the plain average of 87.5. Her final pulls the grade up with 40% of the weight, but her best score, 95 for participation, counts for only 10%.
To finish on 90 with the other rows fixed, she would have needed 98.5 on the final. Her contributions, 25.5, 36.8, 15.6, 9.5, add up to 87.4. Without the final, the average of the rest would be 84.33.
Omar finds his average cost per share
Omar bought 100 shares at $20, then 50 at $26 and 80 at $18.50. The price is the value and the number of shares is the weight. He paid $4,780 for 230 shares, an average of $20.78 each.
The plain average of the three prices is $21.50, which ignores how many shares each buy held. To bring his average down to $20 by buying more at $18, he needs another 90 shares.
This is the average price paid, before any fees. IRS rules limit when he can use an average like this for tax.
Mr. Reyes combines two class averages
A class of 30 averaged 72 on a test, and a class of 10 averaged 88. Averaging the two averages gives 80, as if the classes were the same size.
Weight each average by its class size and you get 76, which is the true average of all 40 students. The large class counts three times as much, so the answer sits closer to 72.
Reading your result
The answer sits between your lowest and highest value. With weights of 0 or more it cannot fall outside that range. If it seems to, a value or a weight is mistyped.
Read the contribution, not just the share. A row's contribution is how much of the final figure it supplies, and all the contributions add up to the answer. A row with a small share can still add a lot if its value is large.
Take the warning on percent weights seriously. If your weights add to 90%, the tool still divides by 90 and tells you. Scores of 80, 90 and 70 at 30%, 40% and 20% give 82.22. That treats the weights as parts of their own total, which is what you want only if the missing 10% truly does not count yet.
For returns, use the money at the start. With 60% in stocks returning 9.5%, 30% in bonds at 4% and 10% in cash at 2%, the portfolio returned 7.1% for that period. The weights must be the share of money at the start of the period, and the sum only covers one period. Over many years, returns compound, so use a geometric mean.
Common mistakes
- Dividing by the row count. Divide by the sum of the weights, not by how many rows you have. It is an easy slip to make in a spreadsheet.
- Averaging averages. Averages of groups of different sizes need the group sizes as weights.
- Using distance as the weight for speed. Here, each speed needs the time spent at it as its weight. If you only know the length of each leg, use a harmonic mean instead.
- Mixing scales. A score out of 20 and a score out of 100 must go on one scale first, or the weights do not mean what you think.