Weighted Average Calculator

Calculate a weighted average from values and weights, with examples for grades, credits, portfolio allocations, zero-weight rows, and signed weights.

Give each value the influence it should have

Weights can be credits, percentages, shares, units, importance scores, or portfolio allocations. Only the ratios between weights matter unless the total weight has real-world meaning.

Calculate a weighted average

  1. Enter each value and its weight.
  2. Multiply each pair.
  3. Sum the weighted products.
  4. Sum the weights.
  5. Divide weighted total by total weight.
  6. Inspect total weight before trusting interpretation.

Loading tool...

Weighted average formulas

The weighted average is a weighted total divided by total weight.

Generalweighted average=inxiwiinwi
Grades and creditscourse average=ingiciinci
Portfolio allocationsweighted return=inriaiinai
Signed weightsW=inwi,W0

Edge cases

  • Zero weights exclude rows from the average.
  • Negative weights are signed contributions, not ordinary importance.
  • A total weight of 0 makes the result undefined.
  • Weights do not need to sum to 1 or 100.

FAQ

Do weights need to add to 100?

No. The calculator divides by the total weight, so weights like 1, 2, 3 and 10, 20, 30 describe the same influence pattern.

Can I use zero or negative weights?

A zero weight removes that row from the average. Negative weights can model signed exposure, corrections, or short positions, but they change the meaning of the result and are undefined if total weight is zero.