About the Weighted Average Calculator
A plain average treats every value equally, which is wrong whenever some values matter more. If assignments are worth 20 percent, the midterm 30 percent and the final exam 50 percent, scores of 85, 70 and 78 give a course grade of 77, not the simple average of about 77.7. This weighted average calculator handles any list of values and weights, whether percentages, credits or quantities bought, and shows the plain average beside the weighted one with a table of each value's contribution. Stock purchases at different prices and survey answers with different group sizes work the same way.
The formula is weighted average = Σ(value × weight) ÷ Σ(weight): multiply each value by its weight, add the products, and divide by the total weight. The weights do not have to add up to 100 or to 1, because dividing by their sum normalizes them automatically. When every weight is equal, the weighted average is the same as the ordinary mean. Each value's share of the total weight is shown, so you can see what drives the result.
Example: scores of 90, 80 and 70 with weights of 30%, 50% and 20% give (90 × 30 + 80 × 50 + 70 × 20) ÷ 100 = (2,700 + 4,000 + 1,400) ÷ 100 = 81. The plain average of the three scores is 80, so the heavy weight on the 80 and the light weight on the 70 lift the result by a point. Investors use the same method for portfolio returns, weighting each holding by its value.
For course grades with letter grades, use the grade calculator; for grade point averages, the GPA calculator; and for an ordinary mean, median and mode, the average calculator.
How to use the Weighted Average Calculator
- Enter the valuesType each score, price or rate in the Value column.
- Enter the weightsType each value's weight: a percentage, credits, quantity or any number.
- Add more rowsUse Add row for more items; empty rows are ignored.
- Read the resultSee the weighted average, the plain average and the working table.
Weighted Average Calculator features
- Weighted mean from any number of rows
- Weights need not add up to 100
- Plain average shown for comparison
- Each value's share of the total weight
- Working table you can download as CSV
- Decimals and large numbers
- Private: nothing leaves your browser
Common uses
- Course grades with weighted assignments
- Average purchase price of shares bought at different prices
- Portfolio returns weighted by holding size
- Survey results weighted by group size
- Average cost per unit across batches
Weighted averages in practice: grades, portfolios, inventory and price indices
A weighted average gives some values more influence than others, according to their importance, size or share. It is how course grades combine assignments and exams, how investors measure portfolio returns, how businesses value stock and how statisticians build price indices. This guide covers those uses with worked examples, explains how to choose the right weights and highlights mistakes that produce misleading averages.
Weights reflect importance or size
In a weighted average, each value is multiplied by its weight, the products are added and the total is divided by the sum of the weights. The weights can be percentages, counts, credit hours or amounts of money. What matters is that each weight reflects how much that value should count. A simple average is just a weighted average where every weight is equal.
Portfolio returns
An investor with 60% of their money in a fund that returned 12% and 40% in a fund that returned 5% earned a weighted average return of 0.6 × 12 + 0.4 × 5 = 9.2%. The simple average of the two returns, 8.5%, would understate the result, because more money was in the better-performing fund. Portfolio reports always use weighted returns for this reason.
Inventory and average cost
Businesses that buy the same item at different prices often value their stock at the weighted average cost. A shop that bought 100 units at Rs 50 and later 200 units at Rs 56 has 300 units with an average cost of (100 × 50 + 200 × 56) ÷ 300 = Rs 54 per unit. That figure is used to calculate the cost of goods sold and the value of remaining stock in the accounts.
A worked example: comparing suppliers
A restaurant buys rice from three suppliers over a month: 200 kg at Rs 300 per kg, 150 kg at Rs 320 and 50 kg at Rs 290. The simple average price is Rs 303.33 per kg, but the weighted average, which accounts for the quantities, is (200 × 300 + 150 × 320 + 50 × 290) ÷ 400 = Rs 306.25 per kg.
The weighted figure is what the restaurant actually paid on average, and it is the right number for budgeting. The simple average would understate the cost because the most expensive supplier provided a large share.
Price indices and inflation
Inflation figures such as the consumer price index are weighted averages of price changes. Each category, such as food, housing and transport, is weighted by its share of typical household spending, measured through surveys. A 10% rise in food prices therefore affects the index more than a 10% rise in a category on which households spend little. Your personal inflation rate can differ from the official one if your spending pattern differs.
Survey weighting
Survey organisations weight responses so that their sample matches the population. If young people make up 30% of the population but only 20% of the people who answered, each young respondent's answers are given a larger weight. Weighting improves accuracy, though it cannot fully fix a sample that misses some groups entirely.
Choosing the right weights
The weights must match the question being asked. Average speed over a journey must be weighted by time, not distance, and average price per unit by quantity bought, not by the number of purchases. Using the wrong weights gives an average that is precise but answers a different question.
Common mistakes
- Using a simple average when values represent different amounts.
- Forgetting to divide by the total of the weights.
- Weighting by the wrong quantity.
- Mixing percentages and fractions as weights in one calculation.
Related tools
For simple averages and spread, use Average Calculator. For course grades, try Grade Calculator, and for investment growth, Investment Calculator.
Weighted scoring for decisions
Weighted averages help with decisions that involve several factors. Someone choosing between flats might weight price at 40%, location at 30%, size at 20% and condition at 10%, score each flat out of 10 on each factor and calculate a weighted score. The flat with the highest score is not automatically the right choice, but the exercise makes priorities explicit and shows which factors drive the decision.
When weights do not add up to 100
Weights do not have to add up to 100 or to 1, because the calculation divides by their total. Weights of 3, 2 and 1 work exactly like 50%, 33.3% and 16.7%. Normalising the weights, by dividing each by their sum, gives percentages that are easier to explain to others, but it does not change the result.
Weighted averages in spreadsheets
Spreadsheets calculate weighted averages with SUMPRODUCT. If values are in A2:A10 and weights in B2:B10, the formula =SUMPRODUCT(A2:A10,B2:B10)/SUM(B2:B10) gives the weighted average. Using a formula rather than calculating by hand makes it easy to update the result when a value or a weight changes, and reduces the chance of arithmetic slips.
Limits
Calculations are exact for the values and weights entered; the meaning of the result depends on choosing appropriate weights.
Further reading: How to Calculate GPA and CGPA, with Worked Examples.
Frequently asked questions
What is a weighted average?
An average where each value is multiplied by a weight showing its importance, the products are added, and the total is divided by the sum of the weights. Values with bigger weights pull the result toward themselves.
How do I calculate a weighted average?
Multiply each value by its weight, add up the products, then divide by the sum of the weights. For 80 with weight 3 and 90 with weight 1: (240 + 90) ÷ 4 = 82.5.
Do the weights need to add up to 100%?
No. The formula divides by the total weight, so weights of 3, 5 and 2 give exactly the same result as 30%, 50% and 20%. Only the proportions between the weights matter.
What is the difference between weighted and simple average?
A simple average treats every value equally, adding them and dividing by how many there are. A weighted average lets some values count more. They are equal only when all the weights are the same.
How do I find the average price of shares bought at different prices?
Use the price as the value and the number of shares as the weight. 100 shares at $10 and 50 shares at $16 average (1,000 + 800) ÷ 150 = $12 per share.
Can a weight be zero or negative?
A zero weight simply removes that value from the average. Negative weights are not meaningful for ordinary averages, so the calculator asks for positive weights and a total weight above zero.
Is GPA a weighted average?
Yes. A grade point average weights each course's grade points by its credit hours, so a four-credit course affects the GPA twice as much as a two-credit one.