Weighted Average Calculator

Calculate the weighted average (weighted mean) of up to 8 values by giving each one its own weight. Used for course grades, GPA, investment returns and survey data.

Enter up to 8 value & weight pairs:

ValueWeight
Weights can be percentages, decimals, credits or counts. Type 40 for 40%, not "40%".
Weighted Average —
Simple average —
Total weight —
Weighted sum —
Pairs entered —

How to Use

  1. Enter each value: type each score, price, rate or other number in the Value column, one per row.
  2. Enter its weight: type how much that value counts in the Weight column. Percentages (40, 30, 30), decimals (0.4, 0.3, 0.3), credit hours or counts all work, because only the proportions between the weights matter.
  3. Fill at least two rows: each row needs both a value and a weight. Completely blank rows are skipped. If a row has only one of the two, the calculator tells you which row to finish.
  4. Read the result: the weighted average appears instantly, with the simple average, total weight, weighted sum and number of pairs below it.

What You'll Discover

  • Weighted average: the single number that represents your values once each one is counted according to its weight. It always lands between your smallest and largest value.
  • Simple average: the plain mean of the same values with every weight treated as equal, so you can see how much the weighting moved the answer. It includes every complete row, including any row whose weight is zero.
  • Total weight: the sum of all weights. If you used percentages it should be 100; if you used credit hours it is your total credits.
  • Weighted sum: the sum of each value times its weight, which is the top half of the formula.
  • Pairs entered: how many complete value and weight rows were used.

The calculator accepts weights of zero or more, and negative values are fine. It stops with a plain message instead of a number if a weight is negative, if every weight is zero (the average would be undefined), or if the numbers are too large to calculate.

Weighted Average Formula

Multiply each value by its weight, add up those products, then divide by the sum of the weights:

Weighted average = Σ(value × weight) / Σ(weight)

For the default example in the calculator, the values 90, 80 and 70 with weights 0.4, 0.3 and 0.3 give (90×0.4 + 80×0.3 + 70×0.3) / (0.4 + 0.3 + 0.3) = (36 + 24 + 21) / 1 = 81, compared with a simple average of 80. Dividing by the total weight is what makes the weights work on any scale: if your weights already add up to 1 (or 100%), the denominator is 1 (or 100) and you can skip the division.

Weighted Average vs Simple Average

A simple average treats every value as equally important: add them up and divide by how many there are. A weighted average lets some values count more than others, which is how most grading schemes, indexes and blended rates really work.

Take a course where the exam counts for 40% of the grade, the midterm 30%, homework 20% and quizzes 10%. The scores are 82, 74, 95 and 88.

ItemScoreWeightScore × weight
Exam82403,280
Midterm74302,220
Homework95201,900
Quizzes8810880
Total1008,280

The weighted average is 8,280 ÷ 100 = 82.8. The simple average of the four scores is (82 + 74 + 95 + 88) ÷ 4 = 84.75. The simple figure is almost two points too generous because the highest scores sit on the lightly weighted items, while the exam and midterm, which carry 70% of the grade, are the weakest.

Two rules help you sanity-check any weighted average. First, with non-negative weights the result always lies between your smallest and largest value. Second, it is pulled toward the values with the biggest weights. When every weight is equal the two averages are identical, and with unequal weights they usually differ.

Choosing Weights: Percentages, Credits, Counts and Dollars

The weight is whatever measures "how much this value counts". It does not have to be a percentage. The same formula covers very different situations, and the table shows the usual pairing of value and weight for each, with a worked result.

SituationValueWeightWorked example
Course gradeScore on each itemPercent of the grade82, 74, 95, 88 with 40, 30, 20, 10 gives 82.8
GPAGrade pointsCredit hours4.0 (4 credits), 3.0 (3), 3.3 (3), 2.0 (2) gives 38.9 ÷ 12 ≈ 3.24
Portfolio returnReturn of each holdingAmount invested6% on $10,000, 10% on $5,000, −2% on $5,000 gives 5%
Combined group averageAverage of each groupGroup sizeMean 72 for 40 people and 80 for 60 people gives 76.8
Average price paidPrice per unitUnits bought100 units at $5 and 50 at $8 gives $900 ÷ 150 = $6.00
Decision scoreRating of each criterionImportance of the criterionRatings 8, 6, 9 with importance 5, 3, 2 gives 7.6

The GPA row is worth a note: the grade-point values (such as 3.3) depend on your school's scale, so use the scale printed in your handbook. For a full course grade with a final-exam target, the grade calculator is built for that job. The calculator on this page is the general-purpose version that works for any value and weight.

The combined group average row shows the most common mistake with weights: averaging averages. Two groups of different sizes cannot be combined with a simple average, because the larger group should count for more. The simple average of 72 and 80 is 76, but the correct combined mean is 76.8.

Weights That Do Not Add Up to 100, Zero Weights and Negative Weights

Because the formula divides by the total weight, you never need to adjust your weights so they add up to 1 or 100. Weights of 40, 30 and 30 give exactly the same answer as 0.4, 0.3 and 0.3, or 4, 3 and 3. Only the proportions matter. Here is what this calculator does in each unusual case.

SituationWhat happens
Weights add up to 1, 100 or any other totalWorks. The total weight is shown so you can check it matches what you intended.
A weight is zeroWorks. That value has no effect on the weighted average, although it is still included in the simple average and the pair count.
Every weight is zeroNo result. The formula would divide by zero, so the calculator asks for at least one positive weight.
A weight is negativeNo result. Negative weights are not used in ordinary weighted averages, and they can push the answer outside the range of your values.
A row has a value but no weight (or the reverse)That row is ignored and the message names the row, so you can finish it. At least two complete rows are needed for a result.
A value is negativeWorks. Values such as losses or temperatures below zero are fine.

A quick example shows why negative weights are blocked. Values 10 and 20 with weights 3 and −1 produce (30 − 20) ÷ 2 = 5, which is below both inputs, so it cannot be read as an average of them. If you need an average of rates, speeds or growth factors, a different mean is usually the better tool: see the harmonic mean calculator for rates and the geometric mean calculator for growth.

What Is the Weighted Average If...

What is the weighted average if my scores are 82, 74, 95 and 88 with weights 40, 30, 20 and 10?

The weighted average is 82.8. The products are 3,280, 2,220, 1,900 and 880, which add up to 8,280, and the weights add up to 100. Dividing 8,280 by 100 gives 82.8. The simple average of the same four scores is 84.75, so the weighting lowers the result by 1.95 points.

What is my GPA if I earned 4.0 in a 4-credit course, 3.0 in a 3-credit course, 3.3 in a 3-credit course and 2.0 in a 2-credit course?

Your GPA is about 3.24. The grade points times credits are 16, 9, 9.9 and 4, which sum to 38.9, and the total credits are 12. Then 38.9 ÷ 12 = 3.2417. The unweighted average of the four grades would be 3.075, which undervalues the 4.0 earned in your biggest course. Check the grade-point values against your own school's scale.

What is the weighted average if all the weights are equal?

It equals the simple average. Values 90, 80 and 70 with weights of 5, 5 and 5 give (450 + 400 + 350) ÷ 15 = 80, the same as (90 + 80 + 70) ÷ 3. When every weight is the same, it cancels out of the fraction and only the plain mean is left.

What is the weighted average if the weights are 20%, 20% and 60% and the scores are 100, 90 and 80?

The weighted average is 86. The calculation is 100×20 + 90×20 + 80×60 = 2,000 + 1,800 + 4,800 = 8,600, divided by 100. The simple average is 90, so the heavily weighted 80 drags the result down by four points.

What is the weighted average if my weights add up to 90 instead of 100?

Divide by the actual total, 90, and not by 100. For values 90, 80 and 70 with weights 50, 30 and 10, the weighted sum is 4,500 + 2,400 + 700 = 7,600. Dividing by 90 gives 84.44. Dividing by 100 would give 76, which is wrong because it silently treats the missing 10% as a score of zero. The calculator always divides by the total weight you entered.

What is the weighted average if one value has a weight of zero?

A zero weight removes that value from the weighted average. Adding a fourth value of 20 with weight 0 to the 90, 80 and 70 example (weights 40, 30, 30) still gives 81. The simple average does change, because it counts every row, so the two figures will drift apart.

What is the weighted average if one value has a much bigger weight?

The result sits close to the heavily weighted value. For the values 50 and 100 with weights 9 and 1, the weighted average is (450 + 100) ÷ 10 = 55, not 75. A weight ratio of 9 to 1 means the 50 counts nine times as much as the 100.

What is my average return if I put $10,000 at 6%, $5,000 at 10% and $5,000 at −2%?

The weighted average return is 5%. Using the dollar amounts as weights: (10,000×6 + 5,000×10 + 5,000×(−2)) ÷ 20,000 = 100,000 ÷ 20,000 = 5. The simple average of the three returns is 4.67%, which ignores how much money was in each holding. This is a one-period blend of returns, not an annualised growth rate.

What is the combined average if one class of 20 students averages 90 and another of 5 averages 60?

The combined average is 84, not 75. Use the class sizes as weights: (20×90 + 5×60) ÷ 25 = 2,100 ÷ 25 = 84. Taking the simple average of the two class averages gives 75, which gives the five-student class the same say as the twenty-student class.

What is the weighted average if one of my weights is negative?

This calculator does not return an average in that case. It shows a message that weights must be zero or positive. With a negative weight the formula can return a number outside the range of your values (10 and 20 with weights 3 and −1 give 5), and if the weights add to zero it cannot be evaluated at all.

People Also Search For

How to calculate a weighted average in Excel or Google Sheets

Use SUMPRODUCT divided by SUM: =SUMPRODUCT(A2:A5, B2:B5) / SUM(B2:B5), with values in column A and weights in column B. SUMPRODUCT multiplies each pair and adds the products, and SUM adds the weights. For the 82, 74, 95, 88 scores with weights 40, 30, 20, 10 it returns 82.8, matching the calculator above.

How to find a weighted average when the weights do not add up to 100%

Divide the weighted sum by the total of the weights, whatever that total is. You do not need to rescale. If your weights sum to 90, divide by 90; if they are credit hours totalling 12, divide by 12. Only if the weights already total 100% can you divide by 100 and treat the result as complete.

Weighted average vs weighted mean

They are the same calculation. "Weighted mean" and "weighted arithmetic mean" are the statistical names; "weighted average" is the everyday one. Both are Σ(value × weight) ÷ Σ(weight). Do not confuse them with the weighted geometric or harmonic mean, which use different formulas.

How to calculate the grade I need on the final exam

Rearrange the weighted average formula to solve for the missing score. If your current work is worth 70% of the grade with an average of 78, and the final is worth 30%, the score needed for an overall 80 is (80 − 0.7×78) ÷ 0.3 = 84.67. For an overall 85 you would need 101.33, which is out of reach on a 100-point scale. The grade calculator does this automatically.

How to average percentages correctly

Weight each percentage by the size of the group it came from. A 90% on a 10-point quiz and a 70% on a 100-point test do not average to 80%. Weighted by points, the result is (9 + 70) ÷ 110 ≈ 71.8%, because the test counts ten times as much. For percentages, the average percentage calculator handles both the simple and weighted case.

How to average speeds or growth rates

For speeds, weight each speed by the time spent at it. Driving 1 hour at 40 km/h and 3 hours at 60 km/h covers 40 + 180 = 220 km in 4 hours, an average of 55 km/h. Enter 40 and 60 with weights 1 and 3 (the hours) in this calculator to get the same 55. If the two legs cover equal distances instead, the harmonic mean is the right average: 120 km at 40 km/h and 120 km at 60 km/h averages 48 km/h. See the harmonic mean calculator for that case, and the geometric mean calculator for compounding growth rates.

Frequently Asked Questions

What is a weighted average?

A weighted average gives each value a weight that reflects its importance before averaging. Unlike a simple average, where every value counts equally, a weighted average lets some values matter more than others. For example, a final exam worth 40% of your grade has more impact than a quiz worth 10%.

How do you calculate a weighted average?

Multiply each value by its weight, add the products together, and divide by the sum of the weights. For values 90, 80 and 70 with weights 0.4, 0.3 and 0.3, the result is (36 + 24 + 21) ÷ 1 = 81.

Do the weights need to add up to 100% or 1?

No. The weights can be any non-negative numbers. The formula divides by the total weight, so weights of 40, 30, 30 give the same result as 0.4, 0.3, 0.3 or 4, 3, 3. Only the relative proportions matter.

When does the weighted average equal the simple average?

When all the weights are equal. Every weight then cancels out and the formula reduces to the sum of the values divided by the number of values, which is the ordinary arithmetic mean. With unequal weights the two usually differ.

Can weights be zero or negative?

A weight of zero is allowed and simply removes that value from the weighted average, although at least one weight must be above zero. Negative weights are not accepted: the calculator shows a message instead of a result, because a negative weight can give an answer outside the range of your values and ordinary weighted averages do not use them.

Can the values be negative or decimals?

Yes. Values can be negative, zero or decimal numbers, for example investment losses or temperatures below zero. Only the weights have to be zero or positive.

Why is the weighted average different from the simple average?

Because the weights are unequal. The weighted average is pulled toward the values that carry the most weight, while the simple average ignores weights completely. The calculator shows both so you can see how far the weighting moved the answer.

Will the weighted average always be between my smallest and largest value?

Yes, as long as every weight is zero or positive and the total weight is above zero. The result is a blend of your values, so it cannot be smaller than the minimum or larger than the maximum. If your answer falls outside that range, check for a typo.

How do I calculate GPA using a weighted average?

Use the grade points as values and the credit hours as weights. For example, (4.0×3 + 3.0×4 + 3.5×2) ÷ (3 + 4 + 2) = 31 ÷ 9 ≈ 3.44. The unweighted average of the same three grades is 3.5, so the 3.0 in the 4-credit course pulls the GPA down. Grade-point values depend on your school's scale.

What if I have more than 8 values?

This calculator has 8 rows. You can combine rows first: values that share a weight can be averaged into one row, and you then give that row the total of their weights. A subgroup average weighted by its total weight gives exactly the same final result. For long lists such as a full gradebook, the grade calculator lets you add as many assignments as you need.

What happens if I leave a row half filled?

A row with a value but no weight, or a weight but no value, is left out of the calculation and the message below the results names the row so you can complete it. Rows that are entirely blank are ignored silently. You need at least two complete rows to get a result.

How many decimal places does the result show?

Up to six decimal places, with trailing zeros removed, so 81 shows as 81 and one-third shows as 0.333333. Very small non-zero results are shown in scientific notation instead of rounding to zero. Round the final answer to the precision your course or report needs.

Is my data stored or sent anywhere?

No. All calculations run in your browser. Nothing you type is sent to a server or saved, and no account is needed.

Last reviewed: November 2026 — formulas and worked examples verified.