Sitonce
Country: HK
Show exams for United States Hong Kong
Sign in

How to Calculate a Weighted Average

Updated 6 min read
Key takeaway

Multiply each value by its weight, add the products, then divide by the sum of the weights.

More key points
  • If the weights are percentages that total 100%, convert them to decimals or divide the weighted sum by 100.
  • A weighted average gives more influence to values with larger weights.
On this page11 sections
  1. The formula
  2. Example with percentage weights
  3. Example with counts
  4. A reliable setup method
  5. Percentages and decimals
  6. What if the weights do not total 100%
  7. Common errors
  8. Key takeaway
  9. Multiply each value by its weight
  10. Check whether weights sum to one or to the total count
  11. Interpret and check the result

A simple average treats every value equally. A weighted average does not. It gives each value an influence, or weight, and is useful when categories contain different numbers of observations or an assignment has components with different percentage contributions.

The formula

Weighted average = sum of (value × weight) ÷ sum of weights. If the weights are fractions or percentages that add to 1 or 100%, the denominator is already accounted for: multiply each value by its decimal weight and add the products.

MethodFormula
General weights(x₁w₁ + x₂w₂ + … + xₙwₙ) ÷ (w₁ + w₂ + … + wₙ)
Percentage weights totaling 100%x₁p₁ + x₂p₂ + … + xₙpₙ, using each percentage as a decimal
Frequency weightsSum each observed value multiplied by its frequency, then divide by the total frequency

Example with percentage weights

A course grade is based on quizzes worth 20%, a project worth 30%, and a final exam worth 50%. A student earns 80, 90, and 70. Multiply each result by its decimal weight: 80 × 0.20 = 16; 90 × 0.30 = 27; and 70 × 0.50 = 35. Add the weighted contributions: 16 + 27 + 35 = 78. The weighted course average is 78.

The simple average of the three scores would be 80, but that would incorrectly give each category one-third of the influence. The final exam has the largest weight, so its lower score pulls the actual weighted average down.

Example with counts

Suppose a shop sells 4 items at $3 each and 6 items at $5 each. The average price per item is (4 × 3 + 6 × 5) ÷ (4 + 6) = 42 ÷ 10 = $4.20. Averaging $3 and $5 directly would give $4.00, but that ignores that more items sold at $5.

A reliable setup method

  1. List each value and its corresponding weight in a pair. Keep the pairs together.
  2. Check how the weights are expressed: counts, raw weights, fractions, or percentages.
  3. Multiply each value by its weight.
  4. Add the products.
  5. Divide by the total weight unless the weights already add to one (or 100% when using percentages as decimals).
  6. Check whether the result falls between the smallest and largest values; if all weights are nonnegative, it ordinarily should.

Percentages and decimals

Convert a percentage to a decimal by dividing by 100: 25% becomes 0.25. If weights total 100%, then multiplying by decimal weights and summing gives the final average directly. If you instead use whole-number percentage weights, divide the weighted sum by 100. Do not mix the two methods or divide twice.

What if the weights do not total 100%

Use the general formula and divide by the total weight. For example, values 10 and 20 with raw weights 2 and 3 produce (10 × 2 + 20 × 3) ÷ 5 = 16. The weights can be rescaled by the same positive factor without changing the result: 2:3 is equivalent to 40%:60%. If a problem’s percentage weights fail to total 100%, check for a missing category or copied value before calculating.

Common errors

  • Taking the simple mean when the problem says the categories have unequal weights.
  • Pairing a value with the wrong percentage or frequency.
  • Using 20 instead of 0.20 in one part of a decimal-weight calculation.
  • Adding the weighted products but forgetting to divide by the total raw weight.
  • Dividing by 100 after already using decimal weights that total 1.
  • Rounding each product too early. Keep exact values until the final step when possible.

Key takeaway

Multiply value by weight, add the weighted products, and divide by total weight unless the weights already sum to one. The central exam question is whether each value contributes equally; if not, use a weighted average.

Multiply each value by its weight

A weighted average gives some observations more influence than others. Multiply each value by its weight, add the products, then divide by the total weight when the weights are not already proportions. If a course grade uses homework at 20% with a score of 90 and exams at 80% with a score of 75, the weighted average is 0.20(90) + 0.80(75) = 18 + 60 = 78. A simple average of 90 and 75 would incorrectly give equal weight.

When weights are given as frequencies, the formula is sum(value × frequency) divided by total frequency. If four students score 80 and two score 100, the mean is (4×80 + 2×100)/6 = 86.67. The two groups do not receive equal weight because they contain different numbers of students.

Check whether weights sum to one or to the total count

If weights are proportions or percentages that total 1 or 100%, multiply and add without dividing again. If weights are raw counts or importance points that do not sum to 1, divide the weighted sum by the sum of weights. For values 5 and 9 with weights 2 and 3, the average is (5×2 + 9×3)/(2+3) = 37/5 = 7.4.

If percentages sum to less than 100 because a category is missing or rounding is used, determine whether the problem expects renormalization. For example, weights 0.2 and 0.7 total 0.9; if these are the complete relative weights, divide the weighted sum by 0.9. If 10% is intentionally ungraded, the method may differ. Read the setup before assuming.

Interpret and check the result

A weighted average should lie between the smallest and largest values when weights are nonnegative. It will be closer to values with larger weights. If a calculation falls outside that range, check multiplication, denominators, and whether percentage weights were converted to decimals. Keep the same units for every value being averaged; averaging dollars with percentages is not meaningful unless the problem defines a conversion.

Weighted averages appear in grades, survey summaries, rates, and grouped data. For a rate such as average speed over equal distances, time weighting may be required; taking the simple mean of speeds can be wrong. Identify what the weights represent before applying the formula.

  • Multiply each value by its corresponding weight.
  • Divide by total weight unless weights already sum to 1.
  • Convert percentages to decimals before multiplying.
  • Use frequencies as weights for grouped observations.
  • Check that the result lies within the range of values and matches the context.

Common questions

What is the weighted average formula?

Divide the sum of each value multiplied by its weight by the sum of all weights. When percentage weights total 100%, convert them to decimals and add the weighted values directly.

Do percentage weights need to add to 100%?

They normally should when they describe the whole. If weights are raw values or counts, divide by their total. If percentages do not add to 100%, check whether a category is missing.

When should I use a weighted average instead of a simple average?

Use a weighted average when values have unequal importance, counts, or percentage contributions. Use a simple average when every observation has equal weight.