Weighted Average Calculator

Put a value and its weight on each line, such as a mark and how much that exam counts. You get the weighted average and a table of how each line adds to it.

How it works

Each line holds a value and its weight, separated by a space, a comma or a tab. A % sign after the weight is ignored, so 40% reads as 40.

Each value is multiplied by its weight, the products are added up, and the total is divided by the sum of the weights. The weights do not have to add up to 100 or to 1.

The table shows each value times its weight and the share of the total weight it carries. Everything runs on this page.

How to use it

  1. 1 Type one value and its weight per line, or paste two columns from a spreadsheet.
  2. 2 Read the weighted average at the top, with the total weight below it.
  3. 3 Compare it with the plain average to see how much the weights moved the result.
  4. 4 Check the table to see which line carries the most weight.

Good to know

  • For a course grade, use each mark as the value and the share of the grade as the weight: 82 50% for a final exam worth half.
  • For the average price of stock bought in batches, use the price as the value and the quantity as the weight.
  • If the weights add up to less than 100%, the result is the average of the parts you have so far, not your final grade.
  • A line with only one number stops the calculation, and the message names the line.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

How a weighted average works, with a course grade worked through

A plain average treats every value the same. Many real averages should not. A final exam usually counts for more than a homework set, and 100 shares bought at one price matter more than 10 shares bought at another. A weighted average gives each value a weight that says how much it counts, then averages them in proportion.

Take a course where homework is worth 20% of the grade, the midterm 30% and the final exam 50%. A student scores 90, 75 and 82. Multiply each mark by its weight: 90 times 20 is 1,800, 75 times 30 is 2,250 and 82 times 50 is 4,100. These add up to 8,150. Divide by the total weight, 100, and the weighted average is 81.5. The plain average of the three marks is 82.33. The weighted result is lower because the 75 counts for more than the 90 does.

The weights do not need to add up to 100. The calculator always divides by their sum, so weights of 2, 3 and 5 give the same 81.5. This also makes the tool useful for averages that have nothing to do with percentages. To find the average price paid for shares bought in three batches, enter each price with the number of shares as its weight. To find a class average from group results, enter each group average with the number of students in it. Both are weighted averages, and adding up the plain averages would give the wrong answer.

The table under the result lists each line with its value times its weight and its share of the total weight. It answers the questions that come next. Which exam decides the grade? How much would one more batch move the average price? A line whose share is large moves the result most, so improving that mark or that price has the biggest effect.

Some limits are worth knowing. Each line needs exactly two numbers, a value and then a weight, and a % sign is read as nothing. The tool does not read currency signs or units, so remove them first. When the weights add up to less than the full course, the result is the average of the work so far, not a projected final grade. The tool takes up to 1 MB of text, which is about 100,000 lines, and the table lists the first 50 lines only, while the answer uses all of them.

Frequently asked questions

Do the weights have to add up to 100?

No. The calculator divides by the total weight, whatever it is. Weights of 1, 2 and 3 give the same answer as 10, 20 and 30, or as 10%, 20% and 30%.

How is a weighted average different from a normal average?

A normal average counts every value once. A weighted average counts some values more than others. With marks of 90, 75 and 82 weighted 20%, 30% and 50%, the plain average is 82.33 but the weighted average is 81.5, because the 82 counts for half.

Can a weight be 0 or negative?

A weight of 0 leaves that value out. Negative weights are accepted because some formulas use them, but the weights together cannot add up to 0, because the answer would mean dividing by 0.

Is my data sent anywhere?

No. The calculation runs in this page, and nothing is sent to YappyKit or anyone else.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.