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.