Σ(w·x) ÷ ΣwReviewed 28 Sep 2026Runs in your browser

Weighted Average Calculator

Calculate a weighted average from values and their weights — course grades, GPA, portfolio returns or scored criteria — with the weight-by-weight breakdown, the impact versus a simple average, and every step of the working.

Who wrote it

Written by Suhaib Hassan. The formula and both worked examples on this page are re-derived by hand before publishing. Our methodology.

How the engine works

It multiplies each value by its weight, adds the products, and divides by the total of the weights. Weights can be percentages, credits, dollars or any other size measure.

Why we built it

Weights rarely sum to exactly 100. This tool works either way, shows each item's share of the result, and compares it with the plain average.

Values & weights

Enter each value and how much it counts.

Weights are…

—

#ItemValue (x)Weight (w)ShareRemove
—
Weighted arithmetic mean (x̄w)—
—

—

Total of weights (Σw)—
Simple average (unweighted)—
Weighting impact—
—
Calculation step-by-step

    How the weighted average is derived

    A simple mean treats every observation as equally important. The weighted mean lets each observation count in proportion to its weight, so a heavy item moves the result more than a light one.

    The formula

    Weighted arithmetic meanx̄w = Σ(wᵢ · xᵢ) ÷ Σwᵢ

    Multiply each value xᵢ by its weight wᵢ, add those products, then divide by the sum of the weights. Dividing by Σw is what makes the result a true average whatever units the weights use.

    When weights are percentages

    Normalised weightsΣwᵢ = 100% (or 1.00)

    If the weights already total 100%, the denominator is 1 and the weighted mean is simply Σ(wᵢ · xᵢ) with each weight written as a fraction. If they do not total 100%, dividing by Σw rescales them automatically.

    Variable glossary

    What each symbol means and what values it can take.

    SymbolNameAllowed valuesMeaning
    x̄wWeighted meanBetween the smallest and largest x (for non-negative weights)The weighted average result.
    xᵢObserved valueAny real numberA score, return, rating or measurement.
    wᵢWeightUsually ≥ 0How much xᵢ counts: a percentage, credit hours, dollars invested, and so on.
    ΣwᵢSum of weightsMust not be 0The denominator. If it is zero the mean is undefined.

    Two worked examples

    Both are checked by hand, and both can be reproduced above (the second uses a different weight scale).

    Course grade percent weights

    A student scores 78 on homework (20%), 85 on the midterm (30%) and 92 on the final (50%).

    Σ(w·x) = (0.20 × 78) + (0.30 × 85) + (0.50 × 92)
       = 15.6 + 25.5 + 46.0 = 87.1
    Σw = 0.20 + 0.30 + 0.50 = 1.00
    Weighted average = 87.10 ÷ 1.00 = 87.10

    Contrast: the simple average is (78 + 85 + 92) ÷ 3 = 85.00. The heavy final exam lifts the result by 2.10 points.

    Portfolio return dollar weights

    $50,000 earns 12%, $30,000 earns 8% and $20,000 earns 4%.

    Σ(w·x) = (50,000 × 12) + (30,000 × 8) + (20,000 × 4)
       = 600,000 + 240,000 + 80,000 = 920,000
    Σw = 100,000
    Weighted return = 920,000 ÷ 100,000 = 9.20%

    Contrast: the simple average is (12 + 8 + 4) ÷ 3 = 8.00%. The largest holding earns the most, so the portfolio return is 1.20 points higher.

    Where weighted averages are used

    Wherever items are not equally important, a simple average misleads.

    Grades & GPA

    Exams usually count for more than homework, and a 4-credit course counts for more than a 1-credit seminar in a grade point average.

    Weight: percent or credit hours

    Portfolio returns

    A portfolio's return is the average of its holdings' returns weighted by how much money is in each.

    Weight: amount invested

    Scoring matrices

    Vendor or product scoring gives more weight to the criteria that matter most, such as security over appearance.

    Weight: priority

    What is a weighted average?

    A weighted average (weighted arithmetic mean) is an average in which each value counts according to an assigned weight. It is the right tool when some observations represent more of the total than others.

    How to calculate a weighted average

    • Multiply each value by its weight.
    • Add the products together.
    • Add the weights together.
    • Divide the sum of products by the sum of weights.

    By Suhaib Hassan · Reviewed 28 September 2026 · How CalculatePilot verifies formulas →

    Sources

    What grade do I need on the final exam?

    To find the score you need on a remaining assignment, rearrange the weighted average formula:

    needed score = (target grade − current grade × (1 − final weight)) ÷ final weight

    Example: you have 82% going into a final worth 30% of the course and want an 85% overall. Needed = (85 − 82 × 0.70) ÷ 0.30 = (85 − 57.4) ÷ 0.30 = 92%. For an overall 80% the same formula gives about 75.3%. If the result is above 100%, the target cannot be reached without extra credit.

    Frequently asked questions

    What is the difference between a simple mean and a weighted average?

    A simple mean gives every value the same importance: add and divide by the count. A weighted average lets each value count in proportion to its weight, so items with larger weights influence the result more.

    What happens if the weights do not add up to 100?

    Nothing goes wrong: the calculation divides by the total of the weights, so it rescales them automatically. For example weights of 2, 3 and 5 give the same result as 20%, 30% and 50%. This page flags a total other than 100 only so you can check for a typing slip.

    Can weights be negative?

    Mathematically the formula still works, but negative weights are unusual and can push the result outside the range of the values. In grading and finance weights are normally zero or positive, and this page warns you if any weight is negative.

    How does a zero weight affect the result?

    A zero-weight item contributes nothing to the numerator or the denominator, so it does not change the weighted average. It still counts in the simple average shown for comparison.

    How do I calculate a GPA with this?

    Enter each course's grade points (for example A = 4.0) as the value and its credit hours as the weight. The weighted average is your GPA on that scale. Check your institution's own grade-point conversion.

    What if the sum of weights is zero?

    The average is undefined because the formula would divide by zero. Give at least one item a non-zero weight.

    Related calculators

    Continue your analysis.

    All Math Calculators

    Embed This Weighted Average Calculator

    Free and responsive, and it runs in the visitor's browser. Branding removal from $7.99/month.

    <iframe src="https://www.calculatepilot.com/embed/weighted-average-calculator.html" width="100%" height="560" loading="lazy" title="Weighted Average Calculator"></iframe>
    For website owners

    Want this calculator on your own website?

    Embed it in one line of code. Keep it free with a small CalculatePilot attribution link, or go white-label: your brand, no attribution, one license for all your domains.

    • All 159 calculators, unlimited embeds
    • Works on WordPress, Webflow, Squarespace, Wix and plain HTML
    • Runs in your visitor's browser, so nothing is sent to a server
    • License key emailed automatically after checkout, cancel anytime
    $7.99 / month
    or $89.99 / year · white-label Pro
    Get the white-label license Embed free with attribution