Weighted Average Calculator
The weighted average calculator gives each value the influence specified by its weight. Use relative weights for counts or importance, or choose percentage weights that must total 100%.
Check the highlighted fields.
Your numbers
Example inputs. Results update as you type.
Result
87
The weighted average is 87. Each weight is divided by the total weight.
Decimal expansion: terminating.
- Total weight
- 100
- Number of values
- 2
No result. Check the fields marked below.
What to check next
- What is the arithmetic mean of these values?
Find the unweighted mean, along with the sum, count, minimum and maximum.
- What is a percentage of a number?
Find a percentage of a number, a part as a percentage, or the whole behind a known part.
How the calculation works
A larger weight gives a value more influence. Relative weights are divided by their total; doubling every weight leaves the average unchanged. Percentage mode checks the total instead of silently correcting it.
Step-by-step solution
- Sum of value × weight = 8700
- Total weight = 100
- 8700 ÷ 100 = 87
| Row | Value | Weight | Exact contribution | Decimal approximation |
|---|---|---|---|---|
| 1 | 80 | 30 | 24 | 24 |
| 2 | 90 | 70 | 63 | 63 |
Rounded contributions may not add to the rounded total. Exact fractions are used for the calculation.
Examples
Two percentage-sized shares — 87
The weighted average is 87. Each weight is divided by the total weight.
- Weight interpretation
- Relative weights — normalize by their total
- Values and weights
- 80 with weight 30; 90 with weight 70
- Sum of value × weight = 8700
- Total weight = 100
- 8700 ÷ 100 = 87
Unequal counts — 17.5
The weighted average is 17.5. Each weight is divided by the total weight.
- Weight interpretation
- Relative weights — normalize by their total
- Values and weights
- 10 with weight 1; 20 with weight 3
- Sum of value × weight = 70
- Total weight = 4
- 70 ÷ 4 = 35/2
Zero-weight row — 20
The weighted average is 20. Each weight is divided by the total weight.
- Weight interpretation
- Relative weights — normalize by their total
- Values and weights
- 100 with weight 0; 20 with weight 1
- Sum of value × weight = 20
- Total weight = 1
- 20 ÷ 1 = 20
Percentage mode — 87
The weighted average is 87. Percentage weights total exactly 100%.
- Weight interpretation
- Percentage weights — total must be 100%
- Values and weights
- 80 with weight 30; 90 with weight 70
- Sum of value × weight = 8700
- Total weight = 100
- 8700 ÷ 100 = 87
How this is calculated
Weighted mean = sum(value × weight) / sum(weights). Relative mode explicitly normalizes; percentage mode requires an exact total of 100%.
Both weighted products and their sum stay exact. Divide by the unrounded total weight, then round the displayed answer to 12 places. Individual table rows can have small display-rounding differences.
Use 1 to 100 rows. Negative weights and a zero total weight are rejected. Contributions are rounded only for display.
Reviewed
Questions
Must weights add to 100?
Only in percentage mode. Relative weights may have any positive total and are explicitly normalized by that total.
Can a weight be zero or negative?
A zero weight is allowed and contributes nothing. At least one weight must be positive. Negative weights are outside this ordinary weighted-mean model.
Why can the displayed contributions fail to add to the rounded total?
Each displayed contribution is rounded separately. The final result uses exact contributions, so small display differences do not change the calculation.
What does an empty row mean?
It is incomplete, not a zero. Fill both cells or remove the row. This prevents accidental changes in the intended weights.
The arithmetic is exact for the numbers entered; rounded decimals are approximations. Applying a result to measured or estimated quantities also carries their uncertainty. General mathematical information, not professional advice.
Calculation checks and limits
We tested the exact rational results under the stated conventions with checks every answer must pass and with worked examples. We did not compare it with a separate calculation or an outside program. Measurement uncertainty and the meaning of real-world inputs are not covered by these checks; they require context outside the mathematical model.