Weighted Average Calculator
Enter values and how much each should count. See the weighted average and each row’s contribution.
Calculate with your figures
The calculator fields are loading. Wait here or read the worked example below.The calculator fields are ready. Press Tab to enter your values. Read the worked example
Enter one value and a non-negative weight per row. At least one weight must be positive. Use one consistent weight scale; weights do not need to total 100.
Input limits and rounding
Enter up to 100 values and a matching list of non-negative weights, in the same order. Separate entries with semicolons, spaces or new lines; do not use commas. Arabic and Persian digits are accepted. At least one weight must be positive. Results may be rounded; ≈ marks a rounded value. Zero or nonzero values with absolute magnitude from 1e-12 to 1e15 are supported, with at most 24 significant digits, unless a field states a different limit. Very large or small results use up to 12 significant digits.
Free to use. Inputs stay in your browser and are not saved or sent anywhere.
How to calculate a weighted average
A weight is how much a value counts. Use the same kind of weight for every row. If every weight is equal, the weighted mean is the simple average.
Weighted sum = Σ(value × matching weight).
Weighted average = weighted sum ÷ Σ(weights). All-zero weights are rejected because the average is undefined.
Worked example
For values 10 and 20 with weights 1 and 3:
- Weighted sum: 10 × 1 + 20 × 3 = 70.
- Total weight: 1 + 3 = 4.
- Weighted average: 70 ÷ 4 = 17.5.
Equal weights would give 15; the larger weight pulls this result towards 20.
Choose weights that match your question
For purchase prices, use the number of identical units bought at each price. For course marks, use the assessment percentages or course credits specified by the grading policy. Put every value and its weight in the same row, or the same position when pasting lists. Use one consistent weight scale throughout. Do not mix unit counts with percentage shares in one calculation.
Percentage-weighted marks
Suppose two assessments make up the whole course: a mark of 70 counts for 40% and a mark of 100 counts for 60%. Enter values 70; 100 and weights 40; 60. The weighted mean is (70 × 40 + 100 × 60) ÷ 100 = 88. Entering weights 0.4; 0.6 gives the same answer. If you enter only completed assessments, the result is the weighted average of those entries, not automatically the final course grade.
Quantity-weighted purchase price
A buyer purchases 100 identical units at 8 each and 300 at 10 each, all in one currency. Enter values 8; 10 and weights 100; 300. Total cost is 3,800 across 400 units, so the weighted average price is 9.50 per unit. The equal-weight average of the two prices is 9.00 and ignores the different quantities. Fees and other costs are excluded from this illustration.
Worked example for a weighted average of percentages
Suppose a retailer wants the combined return rate for store and online orders in the same month. Each order belongs to one channel. Use each channel’s total orders as its weight.
| Channel | Orders | Returns | Return rate |
|---|---|---|---|
| Store | 50 | 10 | 20% |
| Online | 450 | 9 | 2% |
| Combined | 500 | 19 | 3.8% |
In Enter rows, pair 20 with 50 and 2 with 450. In Paste lists, use values 20; 2 and weights 50; 450. Type the rates as numbers.
The combined return rate is 3.8%. The calculator gives (20 × 50 + 2 × 450) ÷ 500 = 3.8. The original counts also give 19 ÷ 500 × 100 = 3.8%.
Giving both channels equal weight would give 11%. Use 3.8% for the overall report and keep the individual rates to compare channels. Use the same definition and period for every group. If the rates were rounded, divide the combined returns by the combined orders to avoid carrying that rounding into the result.
Select Combined percentages in the calculator, then select Calculate. The result is 3.8, representing 3.8%.
Try these inputs in the calculator or calculate a percentage from counts.
Assumptions and limits
- Lists must have the same number of entries. Weights cannot be negative; a zero weight excludes that value’s influence.
- Choose weights that match your question, such as quantity or share. This tool does not determine the right weights or check whether a grading policy is appropriate.
Understand your result
Must percentage weights total 100?
No. The calculation divides by the total weight. Weights 1 and 3 give the same mean as 25 and 75, provided they represent the same relative shares.
Related calculators
Weighted average in Excel or a spreadsheet
With values in A2:A3 and matching weights in B2:B3, use =SUMPRODUCT(A2:A3,B2:B3)/SUM(B2:B3). For 70 and 100 weighted by 40 and 60, the weighted sum is 8,800 and total weight is 100, giving 88.
Use numbers in every paired cell, nonnegative weights and a positive total weight. Spreadsheet locale settings may use semicolons instead of commas between function arguments. Here, copy the two numeric columns without headers and choose Paste two spreadsheet columns. The calculator validates every row rather than silently skipping text.
Weights can be quantities, assessment weights or group denominators, but do not mix meanings. They need not add to 100. For a simple average where each observation counts equally, use the Average Calculator.