A little context. A clearer answer.
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
| Input | What it means | Example value |
|---|---|---|
| What the rows represent | 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. | Individual observations |
| Value or group mean; weight — one pair per line | 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. | 10;0.5 20;1.5 30;3 |
How the calculation works
- Multiply each value by its nonnegative weight, then sum the products and the weights.
- Divide the weighted sum by the positive total weight to obtain the weighted mean.
- Divide each weight by the total weight for its normalized share; multiply that share by its value for its contribution.
x̄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 enterThis 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.