Weighted Average Calculator

Average values that count for different amounts, such as credits.

Last updated 2026-11-26 · How we calculate this

Enter Values and Weights

Values and weights
ValueWeight
Row 1

Row 2

Row 3

The weight is how much each value counts, such as a number of shares, credits or reviews.

Weighted Average

Enter a value and a weight in at least one row to see the weighted average.

Weights must be 0 or more, and at least one must be above 0. The calculator treats the values as plain numbers, so money, percentages and grades all work, but enter them in the same unit. Results are rounded to four decimal places.

Quick Answer

Multiply each value by its weight, add those products and divide by the total of the weights. Buying 10 shares at $50, 20 at $65 and 5 at $80 costs 500 + 1,300 + 400 = 2,200 for 35 shares, an average of 2,200 ÷ 35 = 62.8571 per share.

How to Use This Calculator

Use a weighted average whenever some values count more than others: grades with different credits, shares bought at different prices, star ratings with different numbers of reviews, or survey answers from groups of different sizes. Enter each value with its weight on its own row. The calculator gives the weighted average, the total weight and the plain average of the values, so you can see how much the weighting changes the answer.

  1. Enter a value and its weight on each row.
  2. Add a row for every extra value.
  3. Read the weighted average.
  4. Compare it with the plain average to see the effect of the weights.

The Formula

Weighted average = (value₁ × weight₁ + value₂ × weight₂ + …) ÷ (weight₁ + weight₂ + …)

Each value pulls the result toward itself in proportion to its weight, so a value with twice the weight has twice the pull. If every weight is the same, the weighted average equals the plain average. The weights do not need to add up to 100 or to 1, because the total is divided out at the end, so counts, credits, percentages and decimals all work as weights.

Worked Example

Average price per share: 10 shares at $50, 20 at $65 and 5 at $80 cost 2,200 for 35 shares, so the average is 62.8571 a share. The plain average of the three prices is 65, higher because the cheapest lot was the second largest.

Star rating: 120 five-star, 45 four-star, 15 three-star, 8 two-star and 12 one-star reviews give (600 + 180 + 45 + 16 + 12) ÷ 200 = 4.265 stars.

Grades by credits: 90% in a 4-credit class, 80% in a 3-credit class and 70% in a 1-credit class average (360 + 240 + 70) ÷ 8 = 83.75%.

Frequently Asked Questions

How is a weighted average different from a normal average?

A normal average counts every value once. A weighted average lets each value count as many times as its weight says. Averaging two exam scores of 70 and 90 gives 80, but if the 90 was on an exam worth three times as much, the weighted average is 85.

Do the weights have to add up to 100?

No. The calculator divides by whatever the weights add up to, so 2, 3 and 5 give the same answer as 20%, 30% and 50%. The total weight is shown so you can check it against your source, such as a syllabus that should total 100%.

Can weights be decimals or percentages?

Yes. Enter percentages as plain numbers, such as 25 for 25%, or use decimals such as 0.25. Use the same style for every row. Mixing 25 in one row and 0.25 in another would give the first value a hundred times the pull.

How do I find the average price per share?

Enter each purchase price as a value and the number of shares bought at that price as its weight. The weighted average is your average cost per share, ignoring fees. The total weight is how many shares you hold.

How are star ratings averaged?

Use each star level, 5 down to 1, as a value and the number of reviews at that level as its weight. The result is the average rating, the same figure shopping sites show before they round it to the nearest tenth or half star.

What if a weight is zero?

A value with a weight of 0 has no effect on the weighted average, as if it were left out, though it still counts in the plain average. If every weight is 0 there is nothing to divide by, and the calculator asks for at least one weight above 0.

Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Measures of Location; Investor.gov (SEC), Cost Basis