Weighted Average Equations in One Unknown
Solve for a missing score, amount or weight in a weighted average, with grade, mixture and GPA examples and quick checks.
Key takeaways
- A weighted average is the sum of weight times value, divided by the sum of the weights.
- When the weights are fractions that add to 1, no further division is needed.
- A missing value leads directly to a linear equation, and a missing weight does after clearing the denominator.
- The average always lies between the smallest and largest values that carry positive weight.
- Weighted distances above and below the average balance exactly, which gives a fast check.
A weighted average multiplies each value by how much it counts, adds those products, and divides by the total of the weights. To solve for something missing, write that definition as an equation, set it equal to the known or desired average, and solve. With only one unknown value or one unknown amount, the equation is linear once any denominator is cleared.
For values v₁, v₂, v₃ with weights w₁, w₂, w₃, whose total is not zero, the average is (w₁v₁ + w₂v₂ + w₃v₃)/(w₁ + w₂ + w₃). This article assumes weights that are zero or positive.
Finding a missing score
Say a hypothetical course weights homework 20 percent, tests 50 percent and the final exam 30 percent. A student has 92 on homework and 78 on tests and wants 85 overall. What final score is needed?
The weights are 0.20, 0.50 and 0.30, which add to 1.
0.20(92) + 0.50(78) + 0.30f = 85
18.4 + 39 + 0.30f = 85
0.30f = 27.6
f = 92 A score of 92 is needed. Check: 18.4 + 39 + 27.6 = 85.
Contribution is weight times score. Hypothetical example: the numbers are made up to show the method, not a quote or an average.
Real courses may drop low scores, round at certain stages or use points instead of percentages, so read the syllabus before relying on a calculation like this.
When the target is out of reach
Change the goal to 90 and the equation reads 57.4 + 0.30f = 90, so f = 32.6/0.30, about 108.7.
The algebra is fine, but if the exam tops out at 100 the goal cannot be met. The highest possible average is 57.4 + 30 = 87.4. Computing the best and worst cases first tells you whether a question has a usable answer: here the course grade must land between 57.4 and 87.4.
A single-test version of this question, with equal weights, is worked in solving the mean formula for a needed score.
Solving for the final in general
If you face the same question often, solve it once with letters. Let the work already done contribute C points toward the course grade, let the final carry weight w as a decimal, and let T be the target. With w not zero,
C + wf = T
wf = T − C
f = (T − C)/w In the example, C = 18.4 + 39 = 57.4, T = 85 and w = 0.30, so f = 27.6/0.30 = 92.
The formula shows how sensitive the answer is. Dividing by a small weight magnifies every point of shortfall: with a final worth 30 percent, raising the target by 3 points raises the required score by 10. With a final worth 50 percent, the same 3 points would require only 6 more.
It also reads backward. If you already know the score you expect, the equation C + wf = T gives the course grade T directly, with no solving at all. Which letter is unknown decides how much algebra you need.
Weights that do not add to 1
Credits, counts and kilograms are weights too, and then you must divide by their total. Say a student has 12 credits with a grade point average of 3.0 and takes 15 more credits. What average g on the new credits would raise the overall figure to 3.2?
(12·3.0 + 15g)/(12 + 15) = 3.2
36 + 15g = 86.4 (multiply by 27)
15g = 50.4
g = 3.36 Schools differ in how they treat repeated or pass-fail courses, so treat this as the arithmetic only.
Simply solving (3.0 + g)/2 = 3.2 would give 3.4. That answer treats 12 credits and 15 credits as equal in importance, which they are not.
Solving for an unknown count
Sometimes the values are known and a weight is missing. Say 30 students averaged 72 on a quiz. How many more students averaging 90 would bring the combined average to 78?
(30·72 + 90n)/(30 + n) = 78
2160 + 90n = 78(30 + n)
2160 + 90n = 2340 + 78n
12n = 180
n = 15 Check: the total of the scores is 2160 + 1350 = 3510, and 3510/45 = 78.
The denominator 30 + n is positive for any sensible count, so multiplying by it is safe. If n had come out negative or fractional, the story would have had no solution even though the equation did.
Splitting a fixed total
A related type fixes the total amount and asks how to divide it. Say a shop wants 20 kilograms of a coffee blend worth 11 dollars per kilogram, using beans at 9 and 14 dollars. Let x be the kilograms of the cheaper bean, so the other amount is 20 − x.
9x + 14(20 − x) = 11·20
9x + 280 − 14x = 220
−5x = −60
x = 12 Use 12 kg of the 9 dollar bean and 8 kg of the 14 dollar bean. The costs are 108 and 112, totaling 220.
One unknown suffices because the second amount is expressed through the first. You could use two variables and two equations, as in mixture problems with two equations, and substitution would bring you straight back to this line.
The balance point view
Picture each value as a position on a number line with a mass equal to its weight. The weighted average is the point where the line would balance. So the weighted distances below the average equal the weighted distances above it.
In the quiz example, 30 students sit 6 points below 78, and n students sit 12 points above it.
30·6 = n·12
n = 15 The coffee works too. The cheap bean is 2 dollars below the target and the expensive one 3 dollars above, so the amounts are in the ratio 3:2, the reverse of the distances. Splitting 20 kg that way gives 12 and 8, using the method from splitting in a given ratio.
This view also gives instant estimates. An average nearer to one value means that value carries more weight.
When the unknown is the weight itself
Suppose the syllabus is silent about how much a project counted, but you know the result. A student averaged 80 on everything else, scored 95 on the project and finished with 83. Let p be the fraction of the grade carried by the project, so everything else carries 1 − p.
80(1 − p) + 95p = 83
80 + 15p = 83
p = 0.2 The project was worth 20 percent. Notice that 83 is 3 points above 80 and 12 points below 95, so the weights are in the ratio 12 to 3, or 4 to 1, in favor of the other work.
This method fails when the two values are equal. If both parts scored 80 and the result is 80, the equation reads 80 = 80 and every weight fits. If both scored 80 and the result is 83, no weight fits. The data can pin down p only when the values differ, and a sensible p also requires the average to lie between them.
Concentrations and removals
Percent mixtures are weighted averages with volumes as weights. Say you have 3 liters of a drink that is 20 percent fruit juice and want 36 percent by adding pure juice, which is 100 percent. Assume the volumes simply add.
(0.20·3 + 1.00j)/(3 + j) = 0.36
0.6 + j = 1.08 + 0.36j
0.64j = 0.48
j = 0.75 Adding 0.75 liter gives 1.35 liters of juice in 3.75 liters, which is 36 percent. More of this family appears in alloy and solution mixing.
Removal runs the same logic in reverse. Six numbers average 15, and after one is removed the other five average 14. The totals are 90 and 70, so the removed number is 20.
Two unknowns need more information
One weighted average equation can determine only one unknown. If both the final exam score f and a project score g are still open, an equation such as 0.2g + 0.3f = 45 has many solutions: f = 90 with g = 90, or f = 100 with g = 75, among others.
You can still use it. Fix a realistic value for one unknown and solve for the other, or express one in terms of the other: g = 225 − 1.5f. That formula shows the trade, with each point on the final worth a point and a half on the project. A second independent fact, such as a requirement that the two scores be equal, would pin down both.
Mistakes to avoid
- Averaging averages. The plain mean of two group averages is right only when the groups have equal weight.
- Forgetting the unknown in the denominator. Adding n people changes the total count as well as the total score.
- Mixing percent forms. Use 0.20, 0.50 and 0.30, or 20, 50 and 30 with a division by 100, but do not blend them.
- Weighting the wrong thing. For speeds, the correct weights are times, not distances, as explained in why the simple mean fails for speeds.
- Skipping the range check. An average of 72s and 90s cannot be 95.
Setting up any problem of this type
A small table keeps the bookkeeping straight. Give each group a row, with columns for weight, value and their product. For the quiz example:
| Group | Weight (students) | Value (average) | Product |
|---|---|---|---|
| first | 30 | 72 | 2160 |
| added | n | 90 | 90n |
| combined | 30 + n | 78 | 78(30 + n) |
The weights add down the column, and so do the products. The values do not. The equation comes from saying that the first two products total the third: 2160 + 90n = 78(30 + n).
Whatever the story, fill the rows with what you know, put a letter in the one empty cell, and express every other unfilled cell through that letter.
Practice
- Two tests count 30 percent each and a project 40 percent. Scores are 80 and 90 on the tests. What project score gives 87?
- How many liters of a 10 percent solution of food dye in water must join 4 liters of a 25 percent one to make 15 percent?
1. 24 + 27 + 0.4p = 87, so 0.4p = 36 and p = 90
2. 0.10n + 1 = 0.15(4 + n), so 0.4 = 0.05n and n = 8