Weighted average calculator: how do you average with weights?
Enter each value with its weight, such as a grade and its share of the course or a price and how much you bought. You get the weighted average and what each row adds to it.
Weighted average calculator
I want the weighted average of 4 values, with weights as percentages.
Weighted average
82.6
The weighted average is 82.6. Final exam counts the most (weight 40%), so the answer is 1.4 lower than the plain mean of 84.
- 84Plain mean (each value counts once)
- 100%Total weight
- 8,260Sum of value × weight
- 40%Largest share: Final exam
How the weighted average calculator works it out
- Multiply each value by its weight: 95 × 20 = 1,900, 88 × 15 = 1,320, 72 × 25 = 1,800, 81 × 40 = 3,240.
- Add the products: 8,260.
- Add the weights: 20 + 15 + 25 + 40 = 100%.
- Divide: 8,260 ÷ 100 = 82.6.
- Compare: the plain mean is 84. The weighted average is lower because the larger weights sit on lower values.
Each row adds value × weight ÷ total weight to the answer; the last column adds up to the weighted average. The marked row has the largest weight.
| Item | Value | Weight | Adds |
|---|---|---|---|
| Homework | 95 | 20% | 19 |
| Quizzes | 88 | 15% | 13.2 |
| Midterm | 72 | 25% | 18 |
| Final exam | 81 | 40% | 32.4 |
| Total | 100% | 82.6 |
How to use the weighted average calculator
- Weights are: Percent when each weight is a share of the whole, as on a syllabus. Count for credits, quantities or how many times a value occurs. The math is the same; the answer explains weights that do not add up to 100%.
- Values and weights: one row per item. The name is optional and only labels the row. Type the value (a grade, price or score) and its weight. Use Add a row for more, up to 20, and × to remove one.
- Read the answer: the weighted average is on top, compared with the plain mean. The bars are as tall as each value and as wide as its weight, so the widest bars pull the answer the most.
When to use a weighted average calculator
Use it for a course grade when homework, quizzes and exams count for different percentages, for a GPA where courses have different credits, for the average price you paid across several purchases, or for any score where some parts matter more than others, such as a weighted survey or a product rating by number of reviews.
For an ordinary mean where every value counts once, use the average calculator. To see how far the values are spread around their mean, use the standard deviation calculator.
Weighted average calculator at a glance
What it does
Multiplies each value by its weight, adds the products, divides by the sum of the weights and shows what each row adds, next to the plain mean.
Who it's for
Students working out a course grade or GPA, teachers, shoppers and anyone averaging prices, rates or scores that do not count equally.
Watch out for
Divide by the sum of the weights, not by the number of values. If percent weights add up to less than 100, the answer is your average over that part only.
How the weighted average calculator works
A weighted average lets some values count more than others. Multiply every value by its weight, add those products, and divide by the sum of the weights. A value with weight 40 pulls the answer twice as hard as one with weight 20. When every weight is the same, the result is simply the ordinary mean.
With your numbers: (95 × 20 + 88 × 15 + 72 × 25 + 81 × 40) ÷ (20 + 15 + 25 + 40) = 8,260 ÷ 100 = 82.6.
Dividing by the sum of the weights is what makes it work for any kind of weight. Percentages that add up to 100 divide by 100; credits that add up to 12 divide by 12; and weights that add up to 60% so far give your average over the part that is graded, on the same scale as the grades. A weight of 0 leaves a value out, and the weights themselves can never be negative.
For an ordinary mean with the median and mode, use the average calculator. To see how spread out the values are, use the standard deviation calculator, and to turn a score such as 42 out of 50 into a percent first, use the percentage calculator.
Weighted average calculator: worked examples
Homework 95 (20%), quizzes 88 (15%), midterm 72 (25%) and final exam 81 (40%). What is the course grade?
95 × 20 + 88 × 15 + 72 × 25 + 81 × 40 = 8,260. The weights add up to 100, so the grade is 8,260 ÷ 100 = 82.6.
Common mistake: averaging the four scores (84). The midterm and final count for 65% of the grade and are the lowest scores, so the real grade is lower.
Grade points 4.0 (3 credits), 3.3 (4 credits), 3.7 (3 credits) and 2.7 (2 credits). What is the GPA?
4.0 × 3 + 3.3 × 4 + 3.7 × 3 + 2.7 × 2 = 41.7 quality points over 12 credits: 41.7 ÷ 12 = 3.475, usually shown as 3.48.
Common mistake: averaging the grade points without the credits (3.425). A 4-credit course counts twice as much as a 2-credit course.
Only homework 90 (20%) and the midterm 76 (40%) are graded so far. What is the grade now?
90 × 20 + 76 × 40 = 4,840. Divide by the weights graded so far, 60: 80.67. The final exam, the other 40%, can still change it.
Common mistake: dividing by 100, which gives 48.4 and looks like a failing grade.
You bought 10 gallons at $3.20, 15 at $3.45 and 8 at $2.99. What did you pay per gallon on average?
$32.00 + $51.75 + $23.92 = $107.67 for 33 gallons: $3.26 a gallon.
Common mistake: averaging the three prices ($3.21). You bought more at the highest price, so it counts more.
A weighted average calculator in Excel and Google Sheets
Put names in column A, values in column B and weights in column C, from row 2 down. SUMPRODUCT multiplies each value by its weight and adds the results.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| B2:B20 | Values | 95, 88, 72, 81 |
| C2:C20 | Weights | 20, 15, 25, 40 |
| D2 | Weighted average | =SUMPRODUCT(B2:B20,C2:C20)/SUM(C2:C20) |
Weighted average (Excel and Google Sheets)
=SUMPRODUCT(B2:B20,C2:C20)/SUM(C2:C20) Weighted average (Google Sheets only)
=AVERAGE.WEIGHTED(B2:B20,C2:C20) Plain mean, for comparison
=AVERAGE(B2:B20) Score needed on the rest for a target in F2 (percent weights)
=(F2*100-SUMPRODUCT(B2:B20,C2:C20))/(100-SUM(C2:C20)) Excel has no AVERAGE.WEIGHTED function; SUMPRODUCT works in both. Empty rows count as 0 × 0 and do not change the answer. Fill the last formula in only while some weight is still ungraded.
Weighted average calculator: frequently asked questions
How do you calculate a weighted average?
Multiply each value by its weight, add the results and divide by the sum of the weights. For 80 with weight 1 and 90 with weight 3: (80 + 270) ÷ 4 = 87.5.
Do the weights have to add up to 100?
No. Dividing by the sum of the weights works for any total: credits that add up to 12, quantities, or percentages. If percent weights add up to 60, the answer is your average over that 60%.
What grade do I need on the final?
Multiply your target by 100, subtract value × weight for what is graded, and divide by the weight left. With 80.67 over 60% so far and a target of 85: (8,500 − 4,840) ÷ 40 = 91.5 on the final.
What is the difference between a weighted average and a normal average?
A normal average counts every value once. A weighted average lets some count more. With equal weights the two are the same.
How is GPA a weighted average?
Each grade point is weighted by the course credits. Multiply grade points by credits for quality points, add them and divide by the total credits.
Can a weight be zero or negative?
A weight of 0 leaves the value out, which is handy for a test not taken yet. Weights cannot be negative. The values can be negative, such as temperatures or returns.
Other math calculators
- Average calculator
- Decimal to fraction
- Fraction calculator
- Fraction to decimal
- Median calculator
- Percent change calculator
- Percent difference calculator
- Percent increase calculator
- Percent off calculator
- Percentage calculator
- Ratio calculator
- Rounding calculator
- Scientific notation calculator
- Simplify fractions calculator
- Square root calculator
- Standard deviation calculator
Report a problem with this calculator · Sponsor this calculator