What a weighted mean is and why it matters
A weighted mean is an average where some numbers count more than others. In a regular average, you add all the numbers and divide by how many there are. In a weighted mean, you multiply each number by its weight first, then add those products, then divide by the sum of all the weights.
You use weighted means when the data points have different importance or frequency. A student's final grade is a weighted mean: the midterm might count 30%, the final exam 40%, and homework 30%. A single test score of 95 does not tell you the final grade—you need to know its weight first.
Weighted means show up in real work constantly: calculating your portfolio return when you own different amounts of each stock, finding the average price per unit when you bought different quantities at different prices, or measuring average customer satisfaction when some locations serve far more customers than others.
Key Takeaways
- A weighted mean multiplies each value by its weight, adds those products together, then divides by the sum of all weights.
- The formula is: (value₁ × weight₁ + value₂ × weight₂ + ... + valueₙ × weightₙ) ÷ (weight₁ + weight₂ + ... + weightₙ).
- Weights can be percentages, frequencies, or any number that represents how much each value matters relative to the others.
- If all weights are equal, the weighted mean equals the regular mean.
- You can calculate a weighted mean with pencil and paper, a spreadsheet, or a calculator—the method depends on how many data points you have.
The weighted mean formula and what each part means
The formula for a weighted mean is:
Weighted Mean = (value₁ × weight₁ + value₂ × weight₂ + ... + valueₙ × weightₙ) ÷ (weight₁ + weight₂ + ... + weightₙ)
Break this down into three steps. First, multiply each value by its weight. Second, add all those products together. Third, divide by the sum of all the weights.
The weights themselves do not have to add up to 1 or 100—they just have to represent the relative importance of each value. If you are averaging test scores where the midterm counts twice as much as a quiz, you could use weights of 2 and 1. If you are averaging percentages, you could use weights of 30, 40, and 30. The weights are proportional: what matters is their relationship to each other, not their absolute size.
A step-by-step example with student grades
Suppose a student has three grades: a midterm of 80, a final exam of 90, and homework of 85. The weights are 30% for the midterm, 40% for the final, and 30% for homework.
Step 1: Multiply each grade by its weight.
- Midterm: 80 × 0.30 = 24
- Final: 90 × 0.40 = 36
- Homework: 85 × 0.30 = 25.5
Step 2: Add the products. 24 + 36 + 25.5 = 85.5
Step 3: Divide by the sum of the weights. 0.30 + 0.40 + 0.30 = 1.00 85.5 ÷ 1.00 = 85.5
The student's weighted mean grade is 85.5. Notice that the final exam (90) pulled the average up because it has the highest weight (40%), while the midterm (80) pulled it down slightly because it has a lower weight (30%).
Using a spreadsheet to calculate weighted means
For more than a few data points, a spreadsheet is faster and less error-prone. Open a spreadsheet program like Excel, Google Sheets, or LibreOffice Calc. Put your values in one column and their weights in another column.
In a new cell, use the SUMPRODUCT function to multiply each value by its weight and add them all at once. The formula looks like this:
=SUMPRODUCT(values_range, weights_range) / SUM(weights_range)
If your values are in cells A2 through A10 and your weights are in B2 through B10, the formula becomes:
=SUMPRODUCT(A2:A10, B2:B10) / SUM(B2:B10)
Press Enter, and the spreadsheet calculates the weighted mean when ready. This method scales to hundreds of data points without any extra work on your part.
When weights are frequencies instead of percentages
Sometimes your weights are not percentages but counts—how many times something happened or how many people gave a certain response. The calculation works exactly the same way.
Imagine a survey where 15 people rated a product as 5 stars, 8 people rated it as 4 stars, and 2 people rated it as 3 stars. The weighted mean rating is:
(5 × 15 + 4 × 8 + 3 × 2) ÷ (15 + 8 + 2) = (75 + 32 + 6) ÷ 25 = 113 ÷ 25 = 4.52 stars
The weights here are the number of people (15, 8, 2), not percentages. The result is the same: you multiply each rating by how many people gave it, add those products, and divide by the total number of people.
Common mistakes and how to avoid them
The most common mistake is forgetting to divide by the sum of the weights. Some people add the weighted values and stop there, which gives a number that is too large and meaningless. Always divide by the sum of the weights at the end.
Another mistake is using weights that do not match the data. If you are calculating a student's grade and the weights are supposed to be 30%, 40%, and 30%, make sure you are using 0.30, 0.40, and 0.30 (or 30, 40, and 30 if you keep them as whole numbers). Mixing percentages and whole numbers in the same calculation will give a wrong answer.
A third mistake is forgetting that a regular mean is just a weighted mean where all weights are equal. If you have values 10, 20, and 30 with equal weights, the weighted mean is (10 + 20 + 30) ÷ 3 = 20, which is the same as the regular average. This is a useful check: if your weights are all the same, your weighted mean should equal your regular mean.
Weighted means in real-world situations
Portfolio returns use weighted means. If you own $5,000 in Stock A (which returned 10%) and $15,000 in Stock B (which returned 5%), your portfolio return is not 7.5%. It is (10 × 5,000 + 5 × 15,000) ÷ (5,000 + 15,000) = (50,000 + 75,000) ÷ 20,000 = 6.25%. Stock B's lower return has more weight because you own more of it.
Average cost per unit uses weighted means. If you bought 100 units at $10 each and 50 units at $12 each, your average cost per unit is (10 × 100 + 12 × 50) ÷ (100 + 50) = (1,000 + 600) ÷ 150 = $10.67 per unit, not $11.
Grade point average (GPA) is a weighted mean where the weight is the number of credit hours for each course. A 4.0 in a 3-credit course counts more than a 4.0 in a 1-credit course.
Frequently Asked Questions
What is the difference between a weighted mean and a regular mean?
A regular mean treats all values equally. A weighted mean gives some values more importance than others. If you have test scores of 80, 90, and 100, the regular mean is 90. If the first test counts twice as much as the others, the weighted mean is (80 × 2 + 90 × 1 + 100 × 1) ÷ 4 = 87.5, which is lower because the lowest score had more weight.
Do the weights have to add up to 1 or 100?
No. Weights can be any numbers as long as they represent the relative importance of each value. If weights are 2, 3, and 5, they work the same as 0.2, 0.3, and 0.5, or 20, 30, and 50. The ratio between them is what matters, not their sum.
Can I use a calculator to find a weighted mean?
Yes, if you do the steps one at a time. Multiply each value by its weight, write down each product, add all the products, then divide by the sum of the weights. For more than three or four data points, a spreadsheet is faster and less error-prone.
What if some of my weights are zero?
A weight of zero means that value does not count at all. It contributes nothing to the sum. This is useful when you want to exclude certain data points from the calculation without deleting them from your list.