How to use this weighted average calculator
Enter each value and the weight it carries, one pair per row: a score and the percent of the grade it counts for, a price and the quantity bought, a return and the share of the portfolio. Add rows with + Add value. The weights do not have to add up to 100: the calculator divides by their total. Runs in your browser.
Weighted average formula
Weighted average = Σ(value × weight) ÷ Σ(weight). Three scores of 90, 80 and 85 that count for 30%, 20% and 50% of a grade:
- 90 × 30 = 2,700
- 80 × 20 = 1,600
- 85 × 50 = 4,250
- Add the products: 8,550. Add the weights: 100.
- Weighted average = 8,550 ÷ 100 = 85.5.
The weighted average of 3 values with a total weight of 100 is 85.5.
Weighted vs plain average
The plain average of 90, 80 and 85 is 85, but the 50% item pulls the weighted result to 85.5. The difference between the two is shown in the result card. Whenever the items do not count equally (course components, shares of different sizes, prices bought in different quantities) the plain average is wrong.
Weights that are counts
Weights can be any positive numbers. A price of 70 bought once and 90 bought three times has an average cost of 85, not 80. Weights of 1 and 3 give the same answer as 25% and 75%.
Typical uses
- Course grades: exams, homework and projects with different percentages (see the final grade calculator).
- Average cost: several purchases at different prices and quantities.
- Portfolio return: returns weighted by the amount invested in each asset.
- Index values: items weighted by importance.
Related calculators and converters
Weighted average calculator FAQ
How do you calculate a weighted average?
Multiply each value by its weight, add the products, and divide by the sum of the weights.
What is the weighted average of 90, 80 and 85 with weights 30, 20 and 50?
(90×30 + 80×20 + 85×50) ÷ 100 = 85.5.
Do the weights have to add to 100%?
No. The calculator divides by the total weight, so 3 and 1 work as well as 75% and 25%.
What if a weight is 0?
The row has no effect on the result. Leave a row empty to ignore it.
Can weighted values be negative?
Values can be negative (for example returns). Weights should not be.
What is the difference from a regular average?
A regular average gives every item the same weight. A weighted average lets some items count more.