What is a weighted average?
A weighted average gives some observations more influence than others. Multiply every value by its weight, add those products, and divide by the total weight.
A weight may represent importance, quantity, frequency, credits or exposure. The calculation cannot decide whether the chosen weights are appropriate; that depends on the problem being modelled.
Relative weights and percentage weights
Relative weights can use any non-negative scale. For example, weights 1, 2 and 3 give the third value three times the influence of the first. Percentage weights express each share out of 100 and must total 100% in this calculator.
Weighted-average example
Suppose scores of 80, 90 and 70 have weights of 20%, 30% and 50%. The weighted average is (80 × 20 + 90 × 30 + 70 × 50) ÷ 100 = 78.
Where weighted averages are used
Course components with different importance
If coursework scores 74 at 30%, a project scores 82 at 30%, and an exam scores 68 at 40%, the result is 74 × 0.30 + 82 × 0.30 + 68 × 0.40 = 74. Institutions may use different categories, caps and rounding rules, so check the official policy before treating the result as a recorded grade.
Average purchase price
Buying 40 units at £12 and 60 units at £15 gives an average purchase price of (40 × 12 + 60 × 15) ÷ 100 = £13.80 per unit. Quantities act as weights. Transaction costs would need to be added separately.
Portfolio return for one period
If 70% of a portfolio returns 5% and 30% returns −2%, its one-period weighted return is 2.9%, assuming those are the relevant starting weights. Returns across several time periods normally require compounding rather than a simple weighted average.
Combining group results
Two classes average 68 and 76, with 20 and 30 students. The combined mean is (68 × 20 + 76 × 30) ÷ 50 = 72.8. Averaging 68 and 76 directly would incorrectly give both classes equal influence.
Zero and missing weights
A zero-weight entry has no effect on the final result. A missing weight is different from zero and should be corrected rather than silently ignored. Negative weights are excluded because they require a specialised interpretation.