Weighted Average Calculator

Free weighted average calculator with every step shown. Enter values and weights, get the formula, the Excel method and the score you need on a final.

Kushagra VermaCreator: Kushagra VermaParker RowlandReviewer: Parker Rowland

Weighted Average Calculator

You scored 85 on homework, 78 on quizzes and 92 on the final. Add them up, divide by three, and you get 85. Your teacher’s gradebook says 86.4. The difference is weighting: the final counts for half the grade, so your 92 pulls harder than the other two scores.

A weighted average multiplies each value by its weight, adds those products, and divides by the total of the weights. The calculator above does that for any list of values, shows every step, and has a Score needed tab for the question that usually comes next: what do I need on the final?

How do you use the weighted average calculator?

  1. Type each value in the left column and its weight next to it. Values can be grades, prices, ratings or any other number.
  2. Enter the weights in whatever form you have them: 20, 30 and 50 for percentages, 0.2, 0.3 and 0.5 for decimals, or credit hours and quantities. You don’t need to convert anything, because the calculator divides by whatever the weights add up to.
  3. Press Add row for more items. Rows you leave empty are ignored.
  4. Press Calculate. You’ll see the weighted average, the plain average next to it, and the full working in four steps.

A quick way to know the answer is sane: a weighted average always lands between your lowest and highest value. If it doesn’t, a weight has ended up in the value column.

What is the weighted average formula?

Weighted average = Σ(w × x) / Σw

x is each value and w is its weight. Σ means “add them all up”. So you work out every value times its weight, add those up, and divide by the sum of the weights.

It helps to think of weights as votes. A score with a weight of 50 gets 50 votes on where the average lands, and a score with a weight of 20 gets 20. Dividing by the total number of votes, Σw, is what turns that back into an average.

You’ll often see the formula written without the division, as Σ(w × x). That shortcut only works when the weights already add up to exactly 1 or 100. Keep the division and it works for credit hours, quantities and anything else.

How do you calculate a weighted average step by step?

Here’s the gradebook from the top of the page:

Part of the courseScore (x)Weight (w)w × x
Homework85201,700
Quizzes78302,340
Final exam92504,600
Total1008,640
  1. Multiply each score by its weight: 85 × 20 = 1,700, 78 × 30 = 2,340, 92 × 50 = 4,600.
  2. Add the products: 1,700 + 2,340 + 4,600 = 8,640.
  3. Add the weights: 20 + 30 + 50 = 100.
  4. Divide: 8,640 / 100 = 86.4.

Look at where the 86.4 comes from. The final alone contributes 46 points, homework 17 and quizzes 23.4. That’s why a good final can rescue a weak quiz average, and a bad one can sink a good semester.

Bar chart showing a weighted average of 86.4 built from homework 85 at 20%, quizzes 78 at 30% and a final exam 92 at 50%

Weighted average examples

Average price when you buy in batches

You buy 40 units at $12.50, then 60 more at $15.00. Averaging the two prices gives $13.75, but that ignores the fact you bought more at the higher price. Use the quantities as weights:

(40 × 12.50 + 60 × 15.00) / (40 + 60) = 1,400 / 100 = $14.00

Each unit really cost you $14.00. Buy another 100 at $11.00 and your average drops to $12.50, because the new batch is as big as the first two combined. Average cost per share in investing works exactly like this, with the number of shares as the weight.

GPA with credit hours

An A (4.0) in a 4-credit class, a B (3.0) in a 3-credit class, an A- (3.7) in a 3-credit class and a C+ (2.3) in a 2-credit class. Credit hours are the weights:

(4.0 × 4 + 3.0 × 3 + 3.7 × 3 + 2.3 × 2) / 12 = 40.7 / 12 = 3.39

Average the four grade points and you’d get 3.25. The real GPA is higher because your best grade sits in your heaviest class. Grade point values vary a little between schools, so check yours for A- and C+.

Star rating from review counts

A product has 12 five-star reviews, 20 four-star, 6 three-star and 2 two-star. The star level is the value and the number of reviews is the weight:

(5 × 12 + 4 × 20 + 3 × 6 + 2 × 2) / 40 = 162 / 40 = 4.05

You’d get the same 4.05 by typing all 40 ratings into the mean, median and mode calculator. Weights are a shortcut for values that repeat.

What score do I need on my final?

Run the formula backwards. If the final is worth f (as a decimal), your grade so far is c and the overall grade you want is t:

Score needed = (t - c × (1 - f)) / f

Say you’re sitting on an 82, the final is worth 30%, and you want an 85. Everything except the final is worth 70%, so you’ve already banked 82 × 0.7 = 57.4 points. You need 85 - 57.4 = 27.6 more, and the final can give you at most 30. Divide: 27.6 / 0.3 = 92. You need a 92.

Diagram of the score needed on a final worth 30%: 57.4 points banked from a grade of 82, 27.6 more needed to reach 85, so 92 on the final

The answer can come out above 100. With an 86, a final worth 25% and a target of 90, you’d need 102, which isn’t happening without extra credit. When that’s the case, the Score needed tab says so and tells you the best you can still finish with.

Weighted average vs simple average: when do they differ?

A simple average is a weighted average where every weight is the same. Give three tests a weight of 1 each and the two methods agree. They split apart when the weights are uneven, and the gap grows the more spread out your values are.

ExampleSimple averageWeighted average
Course grade (20/30/50)8586.4
Unit price (40 and 60 units)$13.75$14.00
GPA (4, 3, 3, 2 credits)3.253.39
Star rating (40 reviews)3.54.05

Use the weighted version when the items don’t count equally in real life: parts of a grade, classes with different credits, purchases of different sizes. Five quizzes that all count the same only need a plain mean, and the guide to calculating the mean walks through that.

How do you calculate a weighted average in Excel?

Values in one column, weights in the next. With values in B2:B4 and weights in C2:C4:

=SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4)

SUMPRODUCT multiplies each value by the weight beside it and adds the results. SUM adds the weights. Dividing one by the other is the whole formula, and with the gradebook numbers it returns 86.4.

Google Sheets has a shorter option built in: =AVERAGE.WEIGHTED(B2:B4,C2:C4) gives the same answer. Excel doesn’t have that function, so stick with SUMPRODUCT there.

If your weight cells are formatted as percentages, that’s fine. Excel stores 20% as 0.2, and because you divide by the total, the answer doesn’t change. The one thing not to do is drop the /SUM part, which only gives the right answer when the weights happen to add up to exactly 1.

Common mistakes with weighted averages

You divide by 3 because there are three scores, and get 2,880. That’s the most common slip: the bottom of the formula is the sum of the weights, not the number of items. With percentage weights it’s obvious something is wrong. With decimal weights, the wrong answer can look believable, so check it falls between your lowest and highest value.

Your percentages add up to 90, not 100. The calculator still gives a correct average of what you entered, but in a course that usually means a category is missing, like a project worth 10%. With scores of 90 and 80 weighted 50 and 40, dividing by 100 would give 77. The right answer, dividing by 90, is 85.56.

You mix 20 and 0.3 in the same weight column. One row is in percent and the other in decimals, so that row counts 100 times more than you meant. Pick one format and use it in every row.

If a weight has to be worked out first, such as a quiz worth 15 points out of a 60-point total, the percentage calculator turns it into a percent you can drop in here.

Frequently asked questions

Do the weights have to add up to 100?

No. The formula divides by whatever the weights total, so credit hours, quantities and decimals all work. They only need to total 100 if you’re using the shortcut that skips the division.

Is a weighted average the same as a weighted mean?

Yes. Weighted mean is the statistics term and weighted average is the everyday one. The calculation is identical.

What does a weight of 2 mean?

It means that value counts twice. Giving one test a weight of 2 and another a weight of 1 is the same as listing the first score twice and taking a normal average of all three.

Can a weight be zero or negative?

Zero is allowed and leaves that value out of the result. Negative weights don’t make sense for grades, prices or ratings, so the calculator won’t accept them.

Is expected value a weighted average?

Yes, with probabilities as the weights. A bet that pays $100 half the time, $20 three times in ten and nothing the rest of the time has an expected value of 100 × 0.5 + 20 × 0.3 + 0 × 0.2 = $56. The probabilities add up to 1, so the division drops out.

  • Kushagra Verma

    Researcher | BSc. CS + Financial Math

    Kushagra Verma is a researcher with a BSc in Computer Science and Financial Mathematics, focusing on data-driven analysis and real-world applications.

  • Parker Rowland

    Former Math Teacher

    Parker Rowland is a Former math teacher, author, and ed tech enthusiast focused on clear math explanations, practical problem solving & effective learning.