What Is a Weighted Average?

A weighted average (also called a weighted arithmetic mean) calculates the average of values where each item carries a different level of importance, volume, credit load, or probability. Whereas the ordinary arithmetic mean assigns every observation an identical share (1 ÷ N), weighted averaging lets heavy items steer the final average proportionally more than minor items.

Think about buying shares of stock (100 shares at $50 and 300 shares at $70) or earning college credit grades (A in a 4-credit lab course vs. C in a 1-credit elective). Simply averaging the numbers ignores how many units or credits stood behind each price or score. Our dynamic calculator supports unlimited rows with any weights or percentage weights, contrasts the result live against the unweighted simple mean, charts each row's exact contribution, and even solves what missing score or return you need to reach a target average.

Weighted Average Formulas

Whether your weights are raw quantities (credit hours, unit counts, shares purchased) or decimal/percentage allocations adding up to 100%, the exact algebraic structure stays identical:

General Weighted Average: x̄_w = (x₁w₁ + x₂w₂ + … + xₙwₙ) ÷ (w₁ + w₂ + … + wₙ)
Normalized (Σwᵢ = 100%): x̄_w = Σ [ xᵢ × (wᵢ% ÷ 100) ]
Find Value Needed for Goal: Needed = (Target − Current × (1 − W)) ÷ W
  • When Weights Sum to Anything (Credits, Units, Votes): Multiply each value xᵢ by its corresponding weight wᵢ, sum all products to get Σ(xᵢwᵢ), and divide by total weight Σwᵢ.
  • When Weights Represent Percentages: If percentages sum exactly to 100%, dividing by 100 simplifies to multiplying each value by its decimal weight share. Even if your syllabus weights currently sum to 75% mid-semester, our calculator normalizes cleanly by dividing by 75!
Weighted average infographic showing (90x4)+(82x3)+(88x3)=870 divided by 10 credits equals 87.00 versus 86.67 unweighted simple mean
Diagram 1: Weighting 90 by 4 credits instead of 3 shifts the overall average from 86.67 up to 87.00 cleanly.

2 Worked Examples

Example 1: Weighted Course Score Using Credit Hours (Any Weights Mode)

Suppose a student finishes three classes with scores of 90 in a 4-credit Calculus course, 82 in a 3-credit Physics course, and 88 in a 3-credit History course:

  1. Multiply each score by its credit weight: Calculus gives 90 × 4 = 360, Physics gives 82 × 3 = 246, and History gives 88 × 3 = 264. Sum those products: 360 + 246 + 264 = 870.
  2. Sum the total credits: 4 + 3 + 3 = 10 credits (meaning Calculus holds a 40% share while Physics and History each hold 30%).
  3. Divide numerator by total weight: 870 ÷ 10 = 87.00 weighted average! Notice that the equal-weight simple mean would be (90 + 82 + 88) ÷ 3 = 86.67, which under-values the high grade in the heavier 4-credit class.

Example 2: Portfolio Expected Return (50% / 30% / 20%) & Target Value Needed

Imagine an investor holds 50% of a portfolio in Large-Cap Stocks returning +12%, 30% in Treasury Bonds returning +4%, and 20% in International Equities returning +9%. What is the portfolio's combined weighted return? Then, in a separate goal check, suppose you currently average 84 across 75% of total weight and need an 88 overall average:

  • Portfolio weighted return: Multiply each return by its allocation weight: (12 × 50) + (4 × 30) + (9 × 20) = 600 + 120 + 180 = 900. Divide by 100 total percent weight to get +9.00%! Notice Large-Cap Stocks alone contributed 6.00 percentage points (66.7% of the total gain) because they hold half the capital.
  • Missing value for an 88 target (with 25% weight remaining): Switch to our Find Needed Value tab: locked-in points from the first 75% weight equal 84 × 0.75 = 63. Subtracting from 88 leaves 25 points needed across the remaining 0.25 weight: (88 − 63) ÷ 0.25 = 100!
Portfolio weighted contribution bars showing +6.00% from Large-Cap Stocks, +1.20% from Bonds, and +1.80% from Intl Equities summing to +9.00% total return
Diagram 2: Visualizing individual asset return contributions (+6.00%, +1.20%, +1.80%) combining into a +9.00% overall portfolio return.

Weighted Average vs. Simple Unweighted Mean

When can you safely skip weights, and when does unweighted averaging cause serious errors? Compare both methods across common data structures below:

Feature / Scenario Simple Arithmetic Mean Weighted Average
Formula (x₁ + x₂ + … + xₙ) ÷ N (x₁w₁ + x₂w₂ + … + xₙwₙ) ÷ Σwᵢ
Weight Per Item Strictly equal (1 ÷ N each) Custom per row (credits, units, %, shares)
Equal Weights Case Identical result Reduces cleanly to exact Simple Mean when all wᵢ = c
Course GPA / Syllabus Wrong if credit hours or exam weights differ Exact standard used across universities & LMS systems
Inventory Costing (WAC) Wrong unless every batch bought exact same units Exact GAAP/IFRS Weighted Average Cost per unit

Real-World Applications: GPA, Inventory WAC, VWAP & Surveys

Weighted averaging acts as the backbone equation across education, accounting, trading desks, and election polling:

Four real-world applications of weighted average: college GPA by credit hours, stock cost basis and VWAP, inventory WAC costing, and survey post-stratification
Diagram 3: Real-world industries where unequal batch sizes, credit hours, capital shares, or population weights require weighted averaging.
  • Academic GPA & Weighted Syllabus Grades: Colleges weight letter points (4.0 for an A, 3.0 for a B) by course credit hours. You can also test multi-row grading scales directly in our dedicated Grade Percentage Calculator.
  • Accounting Inventory Costing (Weighted Average Cost / WAC): If a warehouse buys 200 units at $10 ($2,000) and later buys 800 units at $15 ($12,000), its Cost of Goods Sold (COGS) per unit is ($2,000 + $12,000) ÷ 1,000 = $14.00, never the unweighted $12.50!
  • Stock Cost Basis & Volume-Weighted Average Price (VWAP): Buying 100 shares at $50 and 300 shares at $70 sets your break-even cost basis at $65.00 per share, weighted cleanly by share count.
  • Polling & Census Survey Calibration: If young voters make up 15% of poll respondents while accounting for 25% of actual voters, pollsters weight each group by census population share so survey estimates stay nationally representative.

Weighted Average Bounds & Weight Normalization Rule

Notice two mathematical guarantees that help catch input errors immediately. First, for non-negative weights, the weighted average is always trapped between the minimum and maximum item values (Min(xᵢ) ≤ Weighted Avg ≤ Max(xᵢ)); if your calculation outputs a number outside that range, a sign or parenthetical grouping slipped!

Second, multiplying every weight by the same positive factor (for instance scaling [4, 3, 3] by 10 into [40%, 30%, 30%], or multiplying batch units by 2) never alters the final weighted average because that constant factor cancels out cleanly between numerator and denominator (Σ(xᵢ·c·wᵢ) ÷ Σ(c·wᵢ) = Σ(xᵢ·wᵢ) ÷ Σwᵢ). Only the relative ratios between weights control the average!

Weighted Average From Frequency Tables & Weighted Spread

Many surveys and retail sales logs summarize identical observations using a frequency table rather than repeating rows hundreds of times. Each distinct outcome acts as Value (xᵢ) and its occurrence count acts directly as Weight (wᵢ). For instance, if 40 shoppers spend $25, 35 shoppers spend $50, and 25 shoppers spend $100, entering those three summary rows produces ($1,000 + $1,750 + $2,500) ÷ 100 = $52.50 average spend per ticket instantly without flattening raw tables!

When measuring risk or dispersion alongside a weighted center (for example across grouped data or probability outcomes), apply the matching weighted sum formula: multiply each squared deviation from the weighted average by its weight share using Weighted Variance = Σ [ wᵢ × (xᵢ − x̄_w)² ] ÷ Σ wᵢ (or explore unweighted sample spread in our Variance Calculator). Checking both the weighted mean and how far heavy rows sit from that center ensures large weights do not hide high underlying volatility across batches.

Weighted Average Formula in Excel & Google Sheets

In spreadsheets, avoid typing slow cell-by-cell multiplication chains like =(A2*B2+A3*B3+A4*B4)/SUM(B2:B4). Instead, use the built-in SUMPRODUCT array function across Values in A2:A10 and Weights in B2:B10:

Excel / Sheets Weighted Average (Any Weights): =SUMPRODUCT(A2:A10, B2:B10) / SUM(B2:B10)
Weighted Average (When B2:B10 Sums to 100%): =SUMPRODUCT(A2:A10, B2:B10)
Dynamic Filtered Weighted Avg (Skip Blanks): =SUMPRODUCT(A2:A10, B2:B10) / SUMIF(A2:A10, "<>", B2:B10)
Value Needed for Target Avg (Curr C2, Goal D2, W E2): =(D2 - C2*(1 - E2)) / E2

5 Common Weighted Average Mistakes to Avoid

  1. Averaging Pre-Computed Averages Directly (Simpson's Paradox Trap): Suppose Factory A produces 1,000 units with a 2% defect rate (20 defects) and Factory B produces 50 units with a 10% defect rate (5 defects). Averaging 2% and 10% gives 6%, whereas the true company-wide weighted defect rate is 25 ÷ 1,050 = 2.38%!
  2. Using Simple SUMPRODUCT Without Dividing When Weights Do Not Sum to 1: Writing =SUMPRODUCT(A2:A4, B2:B4) without / SUM(B2:B4) on weights [4, 3, 3] returns 870 instead of 87! Always divide by SUM(weights) unless weights strictly sum to 100%.
  3. Typing Negative Weights by Accident: Standard weighted averages require non-negative weights (wᵢ ≥ 0) so items represent shares of a real total. Negative weights can throw averages outside the minimum-to-maximum range!
  4. Forgetting Missing Assignments Default to Zero or Unweighted: Leaving out a 0 score on a weighted category shifts remaining weight shares upward artificially if your total weight shrinks below 100%.
  5. Mixing Percentage Formatting (0.50 vs. 50) Inside One Column: Mixing 0.50 and 30 in Excel weights makes 30 count 60 times heavier than 0.50! Keep all weights in one consistent unit (all decimals summing to 1, all percentages summing to 100, or all raw credits/units).

Related Statistics & Math Calculators

Explore our specialized tools across the Math & Statistics hub:

Read how Staticnexa tests precision and weight validation across every calculator in our Editorial & Mathematical Accuracy Policy.

Frequently Asked Questions

What is the formula for weighted average?

Multiply each value by its weight, add all those products together, and divide by the sum of all weights: Weighted Average = Sum(xi * wi) / Sum(wi).

Do weights have to add up to 100%?

No! Weights can be credit hours (4, 3, 3), batch counts (200, 800), share quantities, or any positive numbers. Because the formula divides by Sum(wi), any positive weights work cleanly.

What is the Excel formula for weighted average?

Use =SUMPRODUCT(values_range, weights_range) / SUM(weights_range). Dividing by SUM(weights_range) ensures accuracy whether weights sum to 100%, 1.0, or any arbitrary total.

When does weighted average equal the simple arithmetic mean?

Whenever every observation shares the exact same weight (for instance, every class is 3 credits or every asset holds an equal 25% allocation), weighted average equals the standard arithmetic mean.

Can weighted average be larger than the maximum item or smaller than the minimum?

For non-negative weights (w >= 0), no: the weighted average always lies safely between the smallest and largest data values in your list.

How do I calculate what score or return I need on the remaining weight?

Switch to Find Needed Value mode and apply Needed = (Target - Current * (1 - W)) / W, where W is the decimal share (such as 0.25 for 25%) of the remaining item.

Mathematical References & Standards