Weighted Average Calculator

Some numbers count more than others. Here are two stock purchases at different prices.

  • Each row's share shown
  • Compare with simple average
  • Updated Nov 2, 2026
Weight your values
Example trade record
  • 100 shares × $10$1,000
  • 50 shares × $12$600
  • Total ÷ 150 shares$1,600

100 at $1050 at $12

AveragePrice per share$10.67

Use this weighted average calculator when some numbers count more than others. Enter each value and its weight to get the weighted average, see how much each row contributes, and compare it with a simple average.

Last updated November 2, 2026  How we calculate

Label (optional)ValueWeightRemove

Weights can be percentages, counts, credits, or any amount. They don't have to add up to 100. Enter values as plain numbers, without $ or % signs.

Weighted average

10.6667

Σ(value × weight) = 1,600
Σ(weight) = 150
Weighted average = 1,600 ÷ 150 = 10.6667

First purchase: 10 × 1001,00066.6667% of weight
Second purchase: 12 × 5060033.3333% of weight
Simple average, for comparison11

What Is a Weighted Average?

A weighted average is an average where each value counts in proportion to its weight. A simple average gives every value the same say; a weighted average lets important or larger values count more. Multiply each value by its weight, add the products, and divide by the sum of the weights.

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

If every weight is the same, the weighted average equals the simple average.

How to Calculate a Weighted Average

Example: you buy 100 shares of a stock at $10 and later 50 more at $12. What did you pay per share on average?

  1. Multiply each value by its weight. $10 × 100 = $1,000 and $12 × 50 = $600.
  2. Add the products. $1,000 + $600 = $1,600.
  3. Add the weights. 100 + 50 = 150 shares.
  4. Divide. $1,600 ÷ 150 = $10.67 per share.
PurchasePrice (value)Shares (weight)Price × sharesShare of weight
First$10100$1,00066.7%
Second$1250$60033.3%
Total150$1,600100%

The simple average of $10 and $12 is $11, which overstates your cost because you bought more shares at the lower price.

Weighted vs. Simple Average

The two differ whenever the weights are unequal. Say a product is sold in three places: one listing has a 4.8-star rating from 20 reviews, another 4.2 stars from 300 reviews, and a third 4.5 stars from 80 reviews. The simple average of the three ratings is 4.5. Weighted by review count, it's (4.8 × 20 + 4.2 × 300 + 4.5 × 80) ÷ 400 = 1,716 ÷ 400 = 4.29. The 4.2-star listing holds 75% of the reviews, so it pulls the result down, while the 4.8-star listing holds only 5%.

Class grades work the same way, with each category weighted by its share of the grade. For letter grades and the score you need to reach a target, use the weighted grade calculator.

Weighted Average in Excel or Google Sheets

Put the values in one column and the weights in the next, then use SUMPRODUCT, which multiplies matching cells and adds the results (Microsoft Support):

=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4)

Here B2:B4 holds the values and C2:C4 the weights. The same formula works in Google Sheets.

When to Use a Weighted Average

In corporate finance, the weighted average cost of capital (WACC) applies the same idea to a company's debt and equity, but it adds tax adjustments, so it needs its own calculation.

Frequently Asked Questions

Do weights have to add up to 100?

No. The formula divides by the total weight, so weights of 2, 3, and 5 give the same result as 20, 30, and 50.

Can a weight be zero?

Yes. A value with weight 0 doesn't affect the result. At least one weight has to be more than 0.

What's the difference between a weighted average and the mean?

The mean (simple average) gives every value equal weight. A weighted average is a mean where values count by their weights. Use the average calculator when every value counts equally, or the mean, median, mode calculator for the median, mode, and spread of a list.

How do I calculate a weighted average with percentages as weights?

Enter the percentages as the weights, for example 20, 30, and 50. If they add up to 100, the weighted average is just the sum of value × weight ÷ 100.

Sources