How to calculate the weighted mean
The weighted mean is an average where some values contribute more than others based on their assigned weights. To find it, multiply each value by its weight, add those products together, and divide by the sum of the weights.
Formula
M is the weighted mean, a and b are the data values, and u and v are their respective weights.
The Weighted Mean Method Explained
In a standard average, every number carries the same importance. A weighted mean adjusts this by multiplying each value by a measure of importance, called a weight. If value a has weight u and value b has weight v, their total contribution is calculated as (a · u) + (b · v).
To find the final average, divide this combined product by the sum of the weights, (u + v). For instance, if you have scores 5 and 8 with weights 2 and 3, compute (5 · 2 + 8 · 3) / (2 + 3) = (10 + 24) / 5 = 34 / 5 = 6.8.
When and Where Weighted Averages Are Used
Weighted means are most frequently used in academic grading. In many school courses, a final exam might carry a weight of 40% while homework accounts for 10%, meaning exam scores have a much greater impact on your final grade.
They are also the standard method for calculating Grade Point Average (GPA), where credit hours serve as weights for course grades. In business and finance, weighted averages help calculate inventory costs and overall investment portfolio returns.
Common Calculation Mistakes
The most frequent mistake is dividing by the count of items rather than the sum of the weights. If you are averaging two scores with weights of 2 and 3, you must divide by 5, not by 2.
Another common error is mixing up the values and the weights during multiplication. Always confirm which number represents the actual measurement (like a test score or unit price) and which number represents the weight or frequency.
Quick Sanity Checks and Mental Tricks
Your calculated weighted mean must always fall between your lowest and highest data values. If your values are 5 and 8, any result smaller than 5 or greater than 8 indicates an arithmetic mistake.
You can also check your work by seeing which value carries more weight. The result must always pull closer to the value with the larger weight. Because 8 carries a weight of 3 and 5 carries a weight of 2, the result of 6.8 correctly sits closer to 8 than to 5.
Worked examples
Example 1a and b are scores with positive weights u and v. a=5,\;b=8,\;u=2,\;v=3. Find M.
Write the relationship for the requested quantity.
M=\frac{a u + b v}{u + v}Substitute each value, keeping its sign.
\frac{\left(\left(5\cdot 2\right)+\left(8\cdot 3\right)\right)}{\left(2+3\right)}Simplify the expression to obtain the exact result.
\frac{34}{5}
Example 2a and b are scores with positive weights u and v. a=65,\;b=80,\;u=1,\;v=4. Find M.
Write the relationship for the requested quantity.
M=\frac{a u + b v}{u + v}Substitute each value, keeping its sign.
\frac{\left(\left(65\cdot 1\right)+\left(80\cdot 4\right)\right)}{\left(1+4\right)}Simplify the expression to obtain the exact result.
77
Example 3a and b are scores with positive weights u and v. a=10,\;b=16,\;u=3,\;v=2. Find M.
Write the relationship for the requested quantity.
M=\frac{a u + b v}{u + v}Substitute each value, keeping its sign.
\frac{\left(\left(10\cdot 3\right)+\left(16\cdot 2\right)\right)}{\left(3+2\right)}Simplify the expression to obtain the exact result.
\frac{62}{5}
Questions and answers
What is the difference between a mean and a weighted mean?
A standard mean treats every value equally by dividing the sum of values by the count of items. A weighted mean multiplies each value by its relative importance before dividing by the sum of all weights.
Can weights be expressed as percentages?
Yes. When weights are given as percentages that add up to 100%, you can convert them to decimals so their sum in the denominator equals 1.
How do you calculate GPA using a weighted mean?
Multiply each course grade point value by the number of credit hours for that class. Sum those values and divide by the total number of credit hours attempted.
Can weights be negative?
In standard statistical and classroom problems, weights represent quantities, credits, or proportions and must always be positive.
Solve your own problem
Different numbers or a harder variant? Type it in and get the steps.