Weighted Average Calculator
Average values that count for different amounts, such as credits.
Last updated 2026-11-26 · How we calculate this
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.
- Enter a value and its weight on each row.
- Add a row for every extra value.
- Read the weighted average.
- 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
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Measures of Location; Investor.gov (SEC), Cost Basis