Weighted Average

Enter values and matching weights.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The result is the sum of value times weight, divided by the sum of weights.

A zero total weight is rejected.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Average.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Weights in the numerator and the divisor

Pairing values with weights

You supply two lists of the same length: values, and weights. The result is the sum of (value × weight) divided by the sum of the weights. A blank or mismatched length is refused. A token that is not finite is refused. If the weights add to exactly zero, the division is refused. The printed number is the raw decimal conversion of that quotient, not a ten-digit rounded format, so a repeating fraction can show a long binary tail.

Ten with weight one, twenty with weight three

(10 × 1 + 20 × 3) / (1 + 3) = 70 / 4 = 17.5. The panel prints 17.5. The heavier twenty pulls the result above the unweighted mean of 15. A second pair of lists, values 5 and 5 with weights 2 and 8, stays at 5, because equal values ignore the weights. Weights need not be positive. A negative weight is accepted as long as the signed total is not zero, and it can drag the result outside the span of the values. That is ordinary weighted-sum arithmetic, and it is easy to trigger by a stray minus.

What is not normalized for you

The page does not convert weights into percents, and it does not require them to add to 1 or to 100. If you typed percents that already add to 100, the division by that total still produces the right weighted mean. If you typed fractions that add to 1, the denominator is 1 and the result is just the weighted sum. An empty list is refused. This is not the average calculator: there is no median, no mode, and no geometric mean. A weight of zero contributes nothing and, if every other weight is nonzero, simply drops that value out of both the numerator and the denominator.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.