Weighted Average Calculator

Compute the weighted mean from values and their matching weights.

Separate with spaces, new lines or semicolons. A comma or a dot can be a decimal.

Must match the number of values, in the same order.

Paste or type matching values and weights.

How this weighted average calculator works

Paste two matching lists — values and their weights — and this calculator reports the weighted mean. The headline is the weighted average with up to four decimal places. Details always show pairs used, total weight, weighted total, unweighted average, minimum, and maximum.

Empty either list is no result. The total weight must not be zero. Typed 0 weights are valid if other weights still add up to something other than 0. Negative weights are allowed. At most 5,000 numbers are used per list. Advanced options is GPA-style: Show normalized weights is unused while the section is closed, even if it stays checked.

How to use the weighted average calculator

  1. Paste or type the values in Values. Separate them with spaces, new lines, or semicolons. A comma or a dot can be a decimal.
  2. Paste matching Weights in the same order. Empty either list is no result.
  3. Read the weighted average in the headline, plus pairs used, total weight, weighted total, unweighted average, min, and max.
  4. Open Advanced options only if you want Show normalized weights. Closing the section hides that table even if the checkbox stays checked.

Advanced options, and closing them

This section is GPA-style. Closed, Show normalized weights is unused even if it stays checked. Open and checked, the first 50 pairs appear as a percent of total weight (lists longer than 50 note the truncation). Pairs used, total weight, weighted total, unweighted average, min, and max stay visible.

Weighted-average formula

Each value is multiplied by its matching weight. Those products are added, then divided by the sum of the weights. Zero weights contribute nothing. The unweighted average is the ordinary mean of the paired values, ignoring the weights.

Weighted mean
x¯w=∑xiwi∑wi

How a pasted list is read

Both lists split on spaces, new lines, and semicolons — not on every comma — so a European 12,5 13,2 stays two values. A comma-separated integer list such as 12,15,18 still works. US thousands (1,234.5) stay one number. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used per list.

Worked examples

Example: values 80, 90, 70 with weights 2, 3, 1

Weighted total = 80×2 + 90×3 + 70×1 = 500. Total weight = 6. Weighted average = 500 ÷ 6 ≈ 83.3333, which is the headline. Unweighted average is (80 + 90 + 70) ÷ 3 = 80. Pairs used is 3. With Advanced options open and Show normalized weights checked, the percents are about 33.33%, 50.00%, and 16.67%.

Example: all weights 0

Values 1, 2, 3 with weights 0, 0, 0 give no result because the total weight is 0. A single typed 0 among other non-zero weights is valid. Empty Values or empty Weights is no result.

Example: three values and two weights

The widget reports Found 3 values and 2 weights. The two lists must match. It still uses the overlapping pairs — the first two — so a result can appear alongside that warning. Closing Advanced options does not clear the pastes.

Things to keep in mind

Weights do not have to add to 1; the calculator normalizes by dividing by their sum. Closing Advanced options hides the percent table without clearing your lists. Completed results can be saved in this browser’s local history.

Weighted average calculator FAQ

Which fields are required?

A non-empty Values list and a non-empty Weights list that produce at least one pair, with a total weight other than 0. Empty either list is no result. Advanced options is optional.

What happens when I close Advanced options?

The normalized-weight table is unused even if Show normalized weights stays checked — the same GPA contract as other calculators on this site. The headline still shows the weighted average, and pairs used, total weight, weighted total, unweighted average, min, and max stay visible.

Are typed 0 or negative weights allowed?

Yes. Typed 0 contributes nothing. Negative weights are allowed. The only weight rule is that the total must not be zero.

What if the lists have different lengths?

A mismatch warning appears. The widget still pairs the overlapping entries (the shorter length). Tokens that are not finite numbers are skipped and counted.

How many numbers can I paste?

At most 5,000 values and 5,000 weights. Longer lists note the cap. A list that is too long to save still shows a result; history simply will not keep a shorter copy.

Does this weighted average calculator store my numbers?

Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.