Weighted Average Calculator
Calculate weighted average (weighted mean) when values have different importance or weights. Used for grades, GPA, portfolio returns.
About the Weighted Average Calculator
A weighted average calculator computes the mean of a set of values where each value contributes differently based on its assigned weight or importance. Unlike a simple arithmetic mean that treats all values equally, a weighted average multiplies each value by its weight before averaging — reflecting that some data points are more significant, more reliable, or represent larger quantities than others. Weighted averages appear in GPA calculations (credit hours are weights), investment portfolio returns (portfolio allocation percentages are weights), economic indices (expenditure shares are weights), survey result aggregation (sample sizes are weights), grade calculations (assignment category weights), payroll (hours worked as weights), and countless other contexts where not all measurements carry equal importance.
Formula
Weighted average = sum(x_i x w_i) / sum(w_i) | When weights sum to 1: WA = sum(x_i x w_i)
How It Works
Weighted average = Sum(value x weight) / Sum(weights). Weights do not need to sum to 100% or any specific value — the formula normalises them automatically. Example: Investment portfolio with $40,000 (40% allocation) returning 6% and $60,000 (60% allocation) returning 9%: Weighted return = (40 x 6 + 60 x 9) / (40 + 60) = (240 + 540) / 100 = 780/100 = 7.8%. Compare to simple average: (6+9)/2 = 7.5%. The weighted average correctly shows that the larger allocation dominates. GPA example: 4-credit A (4.0) + 3-credit B+ (3.3) + 3-credit B (3.0): Weighted GPA = (4x4.0 + 3x3.3 + 3x3.0) / (4+3+3) = (16+9.9+9) / 10 = 34.9/10 = 3.49.
Tips & Best Practices
- ✓When weights sum to 1.0 (or 100%), the formula simplifies to just the sum of (value x weight) without dividing — the denominator is already 1.
- ✓GPA uses credit hours as weights: a 4-credit course affects GPA four times more than a 1-credit elective. Understanding this weight structure helps prioritise study time.
- ✓Stock index methodology: the S&P 500 is a market-cap weighted index — larger companies have larger weights. An equal-weighted S&P 500 would treat every company equally regardless of size.
- ✓Polling aggregation: FiveThirtyEight and other poll aggregators weight polls by sample size, recency, polling methodology quality, and historical accuracy — a sophisticated weighted average.
- ✓Weighted median: unlike the weighted average, the weighted median is the value where cumulative weight reaches 50%. It is resistant to outliers, just as the unweighted median is.
- ✓WACC (Weighted Average Cost of Capital): businesses calculate their cost of financing by weighting the cost of debt and equity by their proportions in the capital structure. Essential for NPV and investment decisions.
- ✓Inventory costing (weighted average cost method): the average cost of inventory = total cost of goods available / total units available. Used in accounting to value inventory and calculate COGS.
- ✓Nutritional analysis: when combining foods in a recipe, the nutrient content per gram is the weighted average across all ingredients, weighted by the mass of each ingredient.
Who Uses This Calculator
Students calculating course grades where categories have different weights. Financial analysts computing portfolio returns weighted by allocation. Teachers designing fair grading rubrics. Researchers aggregating survey data from samples of different sizes. Accountants applying the weighted average cost method to inventory valuation. Businesses computing WACC for investment decisions. Economists constructing price indices weighted by consumption expenditure.
Optimised for: USA · Canada · UK · Australia · Calculations run in your browser · No data stored
Frequently Asked Questions
How do you calculate weighted average?
Weighted avg = Σ(value × weight) / Σ(weights). For a 70% midterm (30%) and 85% final (70%): (70×0.30 + 85×0.70) = 80.5%.