One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Weighted Average Calculator

Quick Answer

A weighted average multiplies each value by its weight, adds the products and divides by the total weight: Σ(value × weight) ÷ Σ(weight). Grades of 90, 80 and 70 weighted 30%, 50% and 20% give (2,700 + 4,000 + 1,400) ÷ 100 = 81, one point higher than the simple average of 80.

Type the value, then its weight. A label in front is optional. Weights can be percentages, credit hours or quantities.
Result

The weighted average is 81

Simple (unweighted) average80
Sum of weights100
Sum of value × weight8,100
Items3
Each item’s share of the total weight
ItemValueWeightShare of weightValue × weight
Homework903030%2,700
Exams805050%4,000
Project702020%1,400
Total100100%8,100
Step-by-step calculation
  1. Σ(value × weight) = 90 × 30 + 80 × 50 + 70 × 20 = 8,100
  2. Σ(weight) = 30 + 50 + 20 = 100
  3. Weighted average = 8,100 ÷ 100 = 81

The weights do not need to add up to 100. The calculator divides by their total, so weights of 30, 50 and 20 give the same answer as 0.3, 0.5 and 0.2.

About the Weighted Average Calculator

A weighted average gives some values more influence than others. Course grades are the most common example: if exams count for 50% of the grade and homework for 30%, an exam score should move the final grade more than a homework score. The same calculation is used for portfolio returns, the average price across purchases of different sizes, survey results and inventory costs.

Type one item per line with its value and weight. Weights can be percentages, credit hours, quantities or any other positive numbers, and they do not need to add up to 100, because the calculator divides by their total. The result shows each item’s share of the total weight, the simple average for comparison and the full calculation.

How to Use the Weighted Average Calculator

  1. Enter one item per line: the value, then its weight, for example "90, 30". You can put a label in front, such as "Exams, 80, 50".
  2. Use any kind of weight: percentages, credit hours, units bought or number of responses.
  3. Choose how many decimal places to show, then read the weighted average, each item’s share and the steps.

Weighted Average Calculator Formula

Weighted average

x̄w = Σ(xᵢ × wᵢ) ÷ Σwᵢ

xᵢ is each value and wᵢ its weight.

Share of the total weight

shareᵢ = wᵢ ÷ Σwᵢ

The shares always add up to 100%, which is why the weights can be on any scale.

Simple average

x̄ = Σxᵢ ÷ n

A weighted average where every weight is equal gives this same result.

Worked Example

A course grade with weighted categories

Input: Homework 90 (30%), exams 80 (50%), project 70 (20%)

  • 90 × 30 = 2,700
  • 80 × 50 = 4,000
  • 70 × 20 = 1,400
  • Sum of products = 8,100; sum of weights = 100
  • Weighted average = 8,100 ÷ 100 = 81

Result: The course grade is 81, while the simple average of the three scores is 80.

Frequently Asked Questions

How do you calculate a weighted average?

Multiply each value by its weight, add up the products, then divide by the sum of the weights. For scores of 90, 80 and 70 with weights 30, 50 and 20, that is 8,100 ÷ 100 = 81.

Do the weights have to add up to 100%?

No. The formula divides by the total of the weights, so 30, 50 and 20, or 0.3, 0.5 and 0.2, or 3, 5 and 2 all give the same answer. Only the proportions between the weights matter.

What is the difference between a weighted average and a simple average?

A simple average treats every value equally. A weighted average lets some values count more than others. The two are equal only when every weight is the same.

How do I calculate a weighted average in Excel or Google Sheets?

Put the values in one column and the weights in the next, then use =SUMPRODUCT(A2:A10, B2:B10) / SUM(B2:B10). SUMPRODUCT multiplies each value by its weight and adds the products.

Can a weight be zero or negative?

A weight of zero is allowed and leaves that item out of the result. Negative weights have no meaning for an average, so the calculator rejects them.

How do I work out a weighted grade when some categories are not graded yet?

Leave the ungraded categories out. Because the calculator divides by the total of the weights you enter, the result is your current grade based on the work graded so far.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.

Embed this Weighted Average Calculator on your website

Paste this code into any page. It is free and needs no sign-up; please keep the credit line under the calculator. Embed terms and all calculators.

<iframe src="https://www.onecalculator.net/embed/weighted-average-calculator/" title="Weighted Average Calculator" width="100%" height="600" style="border:1px solid #e2e8f0;border-radius:8px" loading="lazy"></iframe>
<p style="font-size:13px">Weighted Average Calculator by <a href="https://www.onecalculator.net/weighted-average-calculator/">One Calculator</a></p>