Weighted Average Calculator

Add each value with its weight to get the weighted mean, or switch to course-grade mode to combine category scores and see what you need on the rest.

The weighted average formula

A weighted average gives some values more influence than others. Each value is multiplied by its weight, the products are added, and the total is divided by the sum of the weights:

Weighted average = Σ(wᵢ × xᵢ) ÷ Σwᵢ

Weights can be any non-negative numbers: credit hours, quantities, percentages or decimals. Only their proportions matter, so weights of 3, 4, 2 and 1 give the same answer as 30%, 40%, 20% and 10%. When all weights are equal, the weighted average equals the ordinary (arithmetic) mean.

The calculator also shows the simple mean for comparison, each value's share of the total weight and its contribution to the result. The contributions always add up to the weighted average.

Worked example

Values and weights. Scores of 85, 92, 78 and 88 with weights 3, 4, 2 and 1:

  1. Σ(w × x) = 3×85 + 4×92 + 2×78 + 1×88 = 255 + 368 + 156 + 88 = 867
  2. Σw = 3 + 4 + 2 + 1 = 10
  3. Weighted average = 867 ÷ 10 = 86.7, compared with a simple mean of 85.75.

Course grade. Homework is worth 20% (score 92), quizzes 15% (85), the midterm 25% (78), a project 15% (88) and the final exam 25% (not taken yet). The graded work is 75% of the course and earns 18.4 + 12.75 + 19.5 + 13.2 = 63.85 points, so the current grade is 63.85 ÷ 75 = 85.13%. To finish with 85%, the final exam needs (85 × 100 − 6,385) ÷ 25 = 84.6%.

Missing weights and ungraded work

In grade mode, leave the score empty for anything not graded yet. The current grade is then the weighted average of graded work only, which is what most online gradebooks show. If your category weights do not add up to 100%, the calculator warns you. Usually this means a category is missing from your list. The result is still scaled to the weights you entered.

When you set a target, the calculator finds the average you need on the ungraded weight:

Needed = (Target × Total weight − Σ weight × score) ÷ Ungraded weight

A result above 100% means the target can't be reached without extra credit. A result of 0% or less means it is already secured. For a single final exam, the final grade calculator gives the same answer with a sensitivity table.

Where weighted averages are used

  • GPA: grade points weighted by credit hours (see the GPA calculator).
  • Investing: portfolio return weighted by the money in each holding, or average cost per share weighted by shares bought.
  • Business: weighted average cost of inventory, or weighted average cost of capital (WACC).
  • Surveys and indexes: price indexes such as the CPI weight each item by its share of spending.

Frequently asked questions

Do the weights have to add up to 100?

Not in values-and-weights mode. Any weights work because the formula divides by their sum. In grade mode the weights should total 100%, and you get a warning if they don't.

What is the difference between a weighted and a simple average?

A simple average counts every value equally. A weighted average lets values with bigger weights pull the result toward them.

How do I calculate a weighted grade by hand?

Multiply each category score by its weight in percent, add the products, and divide by the total weight of the graded categories.

Can weights be decimals or negative?

Decimals are fine. Negative weights are not allowed because they have no meaning for an average.

Sources & references

Last reviewed: