✍️ TextWonder 📄 PDFWonder 📁 DocWonder 🖼️ ImageWonder 🛠️ DevWonder 🎓 StudentWonder 🧮 CalcWonder 🩺 HealthWonder 🎨 ColorWonder 💾 DataWonder 📐 UnitWonder
TextWonder
Calculators · 5 min read ·

How to Calculate Weighted Average — Stocks, Grades, Payroll & More

Calculate weighted average for stocks, grades, payroll, and inventory cost. Learn the formula and see real examples. Use our free online weighted average calculator.

A weighted average is an average where some values matter more than others. It's used across finance, education, and business to make accurate calculations when data points have different importance levels.

What is a Weighted Average?

Unlike a simple average (which gives equal weight to all numbers), a weighted average lets each value have a different importance level. The formula is:

Weighted Average = (Sum of Value × Weight) ÷ Sum of Weights

Quick Example: Stock Purchase Cost

You bought 100 shares at ₹100 and then 50 shares at ₹120.

Your simple average would be (100 + 120) ÷ 2 = ₹110, but the weighted average (₹106.67) is more accurate because you own more shares at the lower price.

How to Calculate Weighted Average for Stocks

  1. Go to textwonder.com/calc/weighted-average-calculator
  2. Click the "📈 Stocks (Avg Cost)" preset to load an example.
  3. Replace the example values with your own:
    • Value = Purchase price per share
    • Weight = Number of shares purchased at that price
  4. Click + Add Row for each separate purchase.
  5. The Weighted Average shows your average cost per share instantly.

Real-World Example

Weighted Average = (200×50 + 180×100 + 220×50) ÷ (50+100+50) = ₹193.33 per share

How to Calculate Weighted Average for Grades (GPA)

  1. Go to the weighted average calculator
  2. Click the "📚 Grades (GPA)" preset.
  3. Update each row with:
    • Value = Your score/grade (as a percentage or GPA point)
    • Weight = Credit hours or course weight
  4. The result is your weighted GPA.

Example: Calculating Weighted GPA

Weighted GPA = (85×3 + 92×2 + 78×4) ÷ (3+2+4) = 82.78

How to Calculate Weighted Average for Payroll

HR teams use weighted averages to find the average salary across departments with different team sizes:

  1. Open the calculator and click "💼 Payroll" preset.
  2. For each entry:
    • Value = Average salary in that department
    • Weight = Number of employees in that department
  3. The result is the organization's weighted average salary.

Example: Company-Wide Average Salary

Weighted Average = (75000×20 + 50000×15 + 35000×10) ÷ (20+15+10) = ₹56,964 per month

How to Calculate Weighted Average for Inventory Cost

Retail and manufacturing businesses use weighted average cost to value inventory:

  1. Click the "📦 Inventory Cost" preset.
  2. For each batch purchased:
    • Value = Cost per unit
    • Weight = Number of units in that batch
  3. Your weighted average cost per unit appears instantly.

Example: Wholesale Inventory

Weighted Average Cost = (100×50 + 110×30 + 95×20) ÷ (50+30+20) = ₹103.75 per unit

Weighted Average for Financial Returns

Investors use weighted averages to calculate portfolio performance or investment returns:

This shows your true average return based on actual capital deployed, not equal-weighted average returns.

When to Use Weighted Average

Weighted Average vs Simple Average

Aspect Simple Average Weighted Average
Formula Sum ÷ Count Sum of (Value × Weight) ÷ Sum of Weights
Weight All values equal Each value can differ
Best for Uniform data Data with varying importance
Example Average of 3 test scores Average cost of stocks bought at different quantities

Key Takeaways

Calculate Weighted Average Free Online

Open Weighted Average Calculator →