Weighted Average Calculator

Weighted average—
Total weight—
Pairs used—

How Weighted Average Calculator is calculated: Weighted average = sum of (value × weight) ÷ sum of weights

What is a weighted average?

A weighted average is an average where some values count more than others. Each value gets a weight, you multiply each value by its weight, add the results, and divide by the total weight. For marks of 80, 90 and 70 with weights of 3, 2 and 1, the total is 80×3 + 90×2 + 70×1 = 490, the total weight is 6, and 490 ÷ 6 = 81.67.

Weights appear everywhere once you start looking. An exam worth 60% of your grade counts more than one worth 40%. A share that is half your portfolio moves your return more than a share that is a tenth of it. A plain average treats every number equally, which is exactly wrong whenever the numbers are not equal in importance.

This calculator takes two lists — values and weights, in the same order — and returns the weighted average, the total weight, and how many pairs were used. The result updates as you type. Nothing is uploaded, and there is no sign-up.

How a weighted average calculator works

The method has three steps. First, multiply each value by its weight: 80 × 3 = 240, 90 × 2 = 180, 70 × 1 = 70. Second, add those products: 240 + 180 + 70 = 490. Third, divide by the total weight: 3 + 2 + 1 = 6, and 490 ÷ 6 = 81.67. The weighted average is 81.67, a little above the plain average of 80, because the highest mark carried the heaviest weight.

Weights do not need to add up to 100 or to 1 — any numbers work, because the formula divides by the total weight anyway. Weights of 3, 2 and 1 give the same answer as weights of 30, 20 and 10, or 0.5, 0.333 and 0.167. Only the ratios between the weights matter, never their size.

The two lists are paired in order: the first value goes with the first weight, the second with the second, and so on. If the lists are different lengths, the calculator uses only the shorter one — the pairs that exist — and the count row shows how many pairs were used, so you can spot a mismatch at a glance.

Weights are not percentages

The idea people get wrong most often is the weight itself. A weight is a measure of importance, not a percentage, and it does not have to add up to 100. Weights of 3, 2 and 1 mean the first value counts three times as much as the third — that is all they mean. Writing them as 50%, 33% and 17% would give the same answer, but the raw numbers are simpler.

A second confusion is between weights and marks. In a grade calculation, the weight is how much the exam counts, and the value is the mark you scored. Swapping them gives a nonsense answer: weighting the marks 80, 90 and 70 by the marks themselves is not a grade, it is a different calculation entirely. Values in the top box, weights in the bottom box, in the same order.

A third trap is the weight of zero. A weight of zero means the value does not count at all — it is excluded from the average as if it were never entered. That is sometimes useful, for example dropping an exam that was cancelled, but a zero weight by accident silently removes a value. If the count row is smaller than you expected, check for a zero weight.

A worked example: exam marks, equal weights and a mismatch

Start with the default lists: values 80, 90, 70 and weights 3, 2, 1. The products are 240, 180 and 70, adding up to 490; the total weight is 6, and 490 ÷ 6 = 81.67. The plain average of the same three marks is 80, so the weighting lifted the result by 1.67 — the 90 carried double the weight of the 70.

Now equal weights: values 100 and 50 with weights 1 and 1. The products are 100 and 50, the total is 150, the total weight is 2, and the weighted average is 75 — exactly the plain average. Equal weights always give the plain average, which is a useful check that the calculator is behaving.

Try a longer list: values 90, 80, 70, 60 with weights 4, 3, 2, 1. The products are 360, 240, 140 and 60, adding up to 800; the total weight is 10, and the weighted average is 80. And a mismatch: values 90, 80, 70 with only two weights, 2 and 1 — the calculator uses the first two pairs, 90×2 + 80×1 = 260, divided by a total weight of 3, giving 86.67, and the count row shows 2 pairs used.

Where weighted averages actually get used

School grades are the classic use. A final exam worth 60% and coursework worth 40% cannot be averaged plainly: a student scoring 90 on the exam and 70 on coursework has a weighted average of 90×0.6 + 70×0.4 = 82, not the plain average of 80. A GPA calculator applies the same idea across a whole transcript, weighting each subject by its credits.

Investment portfolios run on weighted averages too. A portfolio holding 50% in a fund returning 12%, 30% in one returning 8% and 20% in one returning 4% has a weighted return of 6 + 2.4 + 0.8 = 9.2%. The plain average of the three returns is 8%, which understates the portfolio because the best fund is also the biggest holding.

Cricket and sport use weighted averages for ratings, and shops use them for average selling prices when some items sell in far larger quantities than others. Anywhere importance varies, the weighted average is the honest average — and a percentage calculator turns the result into a percentage when the values are marks out of 100.

Hospitals use weighted averages for patient satisfaction scores, weighting each ward by how many patients it treated. A small ward with perfect scores cannot lift the hospital average the way a large ward can, and the weighted figure is the one managers trust when they compare hospitals of different sizes.

Weighted average vs plain average

The plain average is a weighted average where every weight is 1. For 80, 90 and 70, the plain average is 80; with weights 3, 2 and 1 it is 81.67. The difference is small here, but it grows whenever the weights are lopsided — a weight of 10 on one value and 1 on the rest will drag the average most of the way toward that value.

Use the plain average when every value counts equally — a list of daily temperatures, a set of test scores from identical quizzes. Use the weighted average whenever the values differ in importance — exams with different credit, investments with different sizes, surveys with different sample sizes. An average calculator gives you the plain mean; this page gives you the weighted one.

Averaging averages is the mistake the weighted average exists to prevent. Two classes averaging 80 and 60 do not average to 70 overall unless the classes are the same size. A class of 10 averaging 80 and a class of 30 averaging 60 give (10×80 + 30×60) ÷ 40 = 65 — the class sizes are the weights, and the weighted average is the only correct answer.

Common weighted average mistakes

The most common mistake is averaging averages without weighting by size. Two groups of different sizes cannot be combined by averaging their averages — the bigger group must count more. Weight each group's average by the group's size, then divide by the total size.

The second mistake is mismatched lists. Values and weights are paired in order, so a weight typed in the wrong position attaches to the wrong value. If the result looks wrong, read the two lists side by side: the first weight belongs to the first value, and any extra value without a weight is ignored — the count row will tell you.

The third mistake is forgetting to divide by the total weight. Adding the products gives 490 for the default lists, but 490 is not the average — it is the weighted total. The division by 6 is what turns it into 81.67, and skipping it is the easiest arithmetic slip in this whole calculation.

The fourth mistake is using percentages as weights without checking they add to 100. Weights of 60 and 30 leave 10% unaccounted for, and the calculator will still divide by 90 — the total weight — giving an answer that quietly ignores the missing 10%. Make sure percentage weights add up, or use a ratio calculator to set the proportions first.

How to use this weighted average calculator

Type your values in the top box and your weights in the bottom box, separated by commas, spaces, or one per line. Each value needs a weight in the same position — the first value pairs with the first weight, and so on. The weighted average, the total weight and the number of pairs update live as you type.

Check the count row first. If you entered 5 values and 5 weights but the count says 4, one entry did not parse — usually a thousands separator like 1,000, which the calculator reads as two numbers, 1 and 000. Remove the comma inside large numbers and the count will match.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. Use it for grades, portfolio returns, and survey results, and pair it with the median calculator whenever you want the middle value alongside the weighted mean.

Frequently Asked Questions

The weighted average is 81.67. The products are 240, 180 and 70, adding up to 490, and the total weight is 6, so 490 ÷ 6 = 81.67. The plain average of the same three marks is 80.

No. Weights of 3, 2 and 1 give the same answer as 30, 20 and 10, because the formula divides by the total weight anyway. Only the ratios between the weights matter, never their size. If you do use percentages, make sure they add up to 100.

The calculator uses only the pairs that exist — the shorter list decides. With values 90, 80, 70 and weights 2, 1, it uses the first two pairs, giving (180 + 80) ÷ 3 = 86.67, and the count row shows 2 pairs used.

A plain average treats every value equally, while a weighted average lets some values count more. Two classes averaging 80 and 60 do not average to 70 overall unless they are the same size — a class of 10 and a class of 30 give (800 + 1800) ÷ 40 = 65.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.