A clear answer. Here’s how.
Weighted mean = Σ(value × weight) / Σ(weight). Lists must have the same length, weights must be non-negative and at least one must be positive. Weights need not add up to 100.
How this is checked
3 reference checks passed These 3 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.
See the checks and where each expected answer comes from
Case 1
- Inputs
- Values (commas or new lines) 80, 90, 70Matching weights 2, 3, 1
- Expected, and what Toolmoz gave
- Weighted average expected 83.33333333333333, Toolmoz 83.33333333333333Total weight expected 6, Toolmoz 6Items expected 3, Toolmoz 3
- Where the expected answer comes from
- (80 × 2 + 90 × 3 + 70 × 1) ÷ (2 + 3 + 1) = (160 + 270 + 70) ÷ 6 = 500 ÷ 6 = 83.3333
- Allowed difference
- ±1e-9 relative
Case 2
- Inputs
- Values (commas or new lines) 4, 3, 2Matching weights 3, 4, 2
- Expected, and what Toolmoz gave
- Weighted average expected 3.111111111111111, Toolmoz 3.1111111111111107Total weight expected 9, Toolmoz 9
- Where the expected answer comes from
- A grade-point example: (4 × 3 + 3 × 4 + 2 × 2) ÷ (3 + 4 + 2) = 28 ÷ 9 = 3.1111
- Allowed difference
- ±1e-9 relative
Case 3
- Inputs
- Values (commas or new lines) 100, 0Matching weights 1, 3
- Expected, and what Toolmoz gave
- Weighted average expected 25, Toolmoz 25Total weight expected 4, Toolmoz 4Items expected 2, Toolmoz 2
- Where the expected answer comes from
- (100 × 1 + 0 × 3) ÷ (1 + 3) = 100 ÷ 4 = 25
- Allowed difference
- ±1e-9
What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Values (commas or new lines)
- 80, 90, 70
- Matching weights
- 2, 3, 1
Example result
- Weighted average
- 83.3333333333
- Total weight
- 6
- Items
- 3