calculator.onl
Categories50

Weighted Average & Weighted Mean Calculator

Calculate a weighted average from values and weights, or combine group means. See the weighted sum, normalized weights and each contribution.

A worked example

Give 30 more weight and follow the mean along the scale.

Weighted mean25Total weight5
Select observations for individual values or groups for group means. In group mode the weight is each group’s total underlying weight, not the number of groups.

Enter one value; weight pair on each line, for example 10;0.5. Use a semicolon between columns and a decimal dot. For ordinary group means, use each group’s number of observations as its weight.

Updates as you type

Check the active inputs and their stated limits.

YOUR RESULT

Weighted mean

25

Calculated from your inputs

Total weight5
Weighted sum125
Number of rows3
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Weighted average and weighted mean refer to the same calculation: multiply each value by its weight, add those products and divide by the total weight. Use fractional weights for measurements or scores, or combine group averages using each group’s size or total weight. Equal weights produce the ordinary arithmetic mean. The weights need not add to 1 or 100; the calculator normalizes them and shows each row’s contribution. It does not choose a school grading scale or assign weights for you. For a related calculation, try Variance, Standard Deviation & MAD Calculator.

What to enter

InputWhat it meansExample value
What the rows representSelect observations for individual values or groups for group means. In group mode the weight is each group’s total underlying weight, not the number of groups.Individual observations
Value or group mean; weight — one pair per lineEnter one value; weight pair on each line, for example 10;0.5. Use a semicolon between columns and a decimal dot. For ordinary group means, use each group’s number of observations as its weight.10;0.5 20;1.5 30;3

How the calculation works

  1. Multiply each value by its nonnegative weight, then sum the products and the weights.
  2. Divide the weighted sum by the positive total weight to obtain the weighted mean.
  3. Divide each weight by the total weight for its normalized share; multiply that share by its value for its contribution.
The formulax̄w = Σ(wᵢxᵢ)/Σwᵢ; aᵢ = wᵢ/Σwᵢ; cᵢ = aᵢxᵢ

A worked example

With values 10, 20 and 30 and weights 0.5, 1.5 and 3, the weighted sum is 125 and the total weight is 5, so the mean is 25. Shares are 10%, 30% and 60%; contributions are 1, 6 and 18. Group means 60 and 90 for groups of 2 and 8 observations combine to 84.

Example you can load

What to enter
Result for this example · Weighted mean25

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Accepts 1–500 value; weight pairs, with decimal dots, up to 12 decimal places and scientific exponents from −12 to 12. Values may be negative; weights must be nonnegative and not all zero. Magnitudes are capped at 10¹². Exact decimal rational sums reduce cancellation error. No school grading scale, diploma rule, uncertainty model or automatic weight choice is applied.

Frequently asked questions

Must my weights add up to 1 or 100?

No. Dividing by the total weight normalizes them. Multiplying all weights by the same positive number leaves the mean unchanged.

Can I average group means directly?

Only if the groups have equal total weight. To recover an overall mean from ordinary group means, weight each group by its size; do not use the number of groups.

Can I use negative values or zero weights?

Yes. Negative values contribute negatively, and a zero weight excludes that row’s value from the mean. Negative weights are rejected and at least one weight must be positive.