Weighted Average Calculator
Calculate weighted averages with step-by-step explanation. Enter values and their weights to find the weighted mean for grades, investments, statistics, and data analysis.
Calculate Weighted Average
Enter values and their corresponding weights as comma-separated lists. Click Calculate to find the weighted average.
Want to Truly Master Averages and Data Analysis?
This calculator is great for quick checks — but real mastery comes from practice. Get the interactive workbook with 130 exercises covering weighted averages, mean, median, mode, and statistical analysis.
One-time purchase. No subscriptions. Free updates for life.
Weighted Average – Complete Explanation
A weighted average (or weighted mean) is an average where each value contributes differently to the final result based on its assigned weight. Unlike a simple arithmetic mean where all values count equally, a weighted average gives more importance to some values than others — making it essential for grades, financial analysis, survey statistics, and countless real-world applications.
Weighted Average Formula
Weighted Average = Σ(wᵢ × xᵢ) / Σ(wᵢ)
Where xᵢ are the values and wᵢ are their corresponding weights.
1. The Weighted Average Formula Explained
The formula has two key parts:
- Numerator — Σ(wᵢ × xᵢ): Multiply each value by its weight, then add all these products together. This gives the "weighted sum."
- Denominator — Σ(wᵢ): The sum of all weights. This normalizes the result so that the weighted average is on the same scale as the original values.
When weights are expressed as percentages that sum to 100% (or decimals that sum to 1), the denominator is 1, and the weighted average is simply the sum of the weighted values.
2. Weighted Average vs. Regular Average
Regular Average (Arithmetic Mean):
Data: 80, 90, 70
Average = (80 + 90 + 70) / 3 = 240 / 3 = 80
All values count equally — each has 1/3 influence.
Weighted Average:
Data: 80 (weight 0.5), 90 (weight 0.3), 70 (weight 0.2)
Weighted Avg = (80×0.5 + 90×0.3 + 70×0.2) / (0.5+0.3+0.2) = (40+27+14) / 1 = 81
The 80 has the most influence, pulling the average higher than the regular mean.
3. Step-by-Step Examples
Example 1: Course Grade Calculation
Calculate the weighted average grade:
Homework: 92 (weight 20%)
Quizzes: 85 (weight 15%)
Midterm: 78 (weight 30%)
Final: 88 (weight 35%)
Step 1: Multiply each grade by its weight (as decimal):
92 × 0.20 = 18.4
85 × 0.15 = 12.75
78 × 0.30 = 23.4
88 × 0.35 = 30.8
Step 2: Sum the weighted values:
18.4 + 12.75 + 23.4 + 30.8 = 85.35
Step 3: Sum the weights:
0.20 + 0.15 + 0.30 + 0.35 = 1.00
Step 4: Divide: 85.35 / 1 = 85.35
Result: Weighted Average = 85.35%
Example 2: Portfolio Return
Calculate the weighted average return of an investment portfolio:
Stock A: 12% return, $5,000 invested
Stock B: 8% return, $3,000 invested
Stock C: 15% return, $2,000 invested
Step 1: Weights = proportion of total investment:
Total = $10,000
Stock A weight: 5000/10000 = 0.50
Stock B weight: 3000/10000 = 0.30
Stock C weight: 2000/10000 = 0.20
Step 2: Weighted returns:
12 × 0.50 = 6.0
8 × 0.30 = 2.4
15 × 0.20 = 3.0
Step 3: Sum: 6.0 + 2.4 + 3.0 = 11.4
Result: Weighted Average Return = 11.4%
4. More Examples
Example 1: Survey ratings — 5 stars (40 votes), 4 stars (30 votes), 3 stars (15 votes), 2 stars (10 votes), 1 star (5 votes)
Weighted = (5×40 + 4×30 + 3×15 + 2×10 + 1×5) / 100 = 390/100 = 3.9 stars
Example 2: Test scores — Test 1: 75 (weight 1), Test 2: 85 (weight 2), Test 3: 90 (weight 3)
Weighted = (75×1 + 85×2 + 90×3) / (1+2+3) = 515/6 = 85.83
Example 3: GPA calculation — Math (A=4.0, 4 credits), English (B=3.0, 3 credits), Science (A-=3.7, 4 credits)
Weighted = (4.0×4 + 3.0×3 + 3.7×4) / (4+3+4) = 39.8/11 = 3.62 GPA
5. Grade Calculation with Weighted Categories
Many courses use weighted grading systems where different categories (homework, tests, projects, participation) have different percentage weights. The weighted average combines these into a single final grade.
Final Grade = Σ(Category Average × Category Weight) / Σ(Category Weights)
This is why a low homework score might not hurt your grade as much as a low exam score — the exam category typically has a higher weight.
6. Weights That Don't Sum to 1
Weights don't have to sum to 1 or 100%. The formula automatically normalizes by dividing by the sum of weights. This is useful when:
- Using whole numbers to represent frequency or importance (e.g., "counts twice")
- Using raw counts as weights (e.g., number of respondents in each group)
- Working with investment amounts rather than percentages
Example: Items with different quantities — Item A: $10 (qty 3), Item B: $15 (qty 2)
Weighted price = (10×3 + 15×2) / (3+2) = 60/5 = $12 per item on average
7. Common Mistakes to Avoid
- Forgetting to divide by the sum of weights: The weighted sum alone is not the average — you must divide by the total weight.
- Using percentages without converting to decimals: If weights are 20%, 30%, 50%, multiply by 0.20, 0.30, 0.50 — not 20, 30, 50 (unless weights sum to 100).
- Mismatched number of values and weights: Every value must have exactly one corresponding weight.
- Confusing weight with value: The weight is the importance or frequency, not another data point.
- Allowing negative weights: Weights should generally be non-negative. Negative weights can produce meaningless results.
- Assuming weights sum to 1: Always check. If they don't, the denominator matters.
8. Real-World Applications
- Education: Calculating final grades, GPA, and class rankings based on weighted categories.
- Finance: Portfolio returns, weighted average cost of capital (WACC), and index fund calculations.
- Statistics: Survey analysis where responses are weighted by demographic representation.
- Economics: Consumer Price Index (CPI) uses weighted averages of price changes.
- Baseball: Slugging percentage and on-base plus slugging (OPS) are weighted averages.
- Inventory Management: Weighted average cost method for valuing inventory.
- Data Science: Weighted loss functions in machine learning to handle class imbalance.
9. Practice Problems with Solutions
Problem 1: Test 1: 88 (25%), Test 2: 92 (25%), Final: 85 (50%). Find the weighted average.
Solution: (88×0.25 + 92×0.25 + 85×0.50) / 1 = 87.5 → 87.5%
Problem 2: Product A: $5 (200 units), Product B: $8 (150 units), Product C: $12 (50 units). Find the weighted average price.
Solution: (5×200 + 8×150 + 12×50) / 400 = 2800/400 = $7.00
Problem 3: Three investments: 10% return (40% of portfolio), 6% return (35%), 14% return (25%). What is the overall return?
Solution: 10×0.40 + 6×0.35 + 14×0.25 = 4 + 2.1 + 3.5 = 9.6%
10. Tips for Mastering Weighted Averages
- Always verify that weights are in the correct format — convert percentages to decimals before multiplying.
- Check that the number of weights equals the number of values.
- When weights are given as frequencies or counts, the denominator is the total count.
- The weighted average always falls between the minimum and maximum values (if all weights are non-negative).
- Use weighted averages when different data points have different levels of importance, reliability, or frequency.
- When all weights are equal, the weighted average reduces to the simple arithmetic mean.
- Double-check your work by estimating: the weighted average should be "pulled" toward the values with the highest weights.
11. Final Thoughts
The weighted average is one of the most practical mathematical tools you'll encounter. From calculating your GPA to evaluating investment returns, it provides a more nuanced and accurate picture than a simple average when not all data points are created equal. Understanding weighted averages empowers you to make better decisions with data, whether you're a student tracking your grades, an investor managing a portfolio, or a professional analyzing survey results.
Use this calculator to verify your work, but practice the manual calculation to build a deep understanding. The ability to quickly compute and interpret weighted averages is a skill that serves you well across academics, finance, and everyday life.