Grades and education

Weighted average calculator

Combine values that do not contribute equally. Each value is multiplied by its matching weight before the weighted sum is divided by total weight.

Enter your values

Separate entries with commas, semicolons, spaces, or new lines.

Separate entries with commas, semicolons, spaces, or new lines.

Your results

Weighted average
—

How we got this result: The page substitutes your current entries into this rule: Weighted average = Σ(value × weight) ÷ Σweights.

How to use this calculator

  1. Enter values, matching weights.
  2. Review the assumptions and units shown beside the fields.
  3. Read the live result, calculation note, and worked examples before using the answer.

When an ordinary average gives the wrong model

An arithmetic mean treats every value as one equally important observation. That is appropriate when the entries contribute equally, but not when one exam represents more of a grade, one asset represents more of a portfolio, or one price applies to more units. A weighted average preserves those unequal contributions by pairing every value with a weight before combining them.

Consider scores of 70 and 90. Their ordinary mean is 80 because each score supplies half of the result. If the first score carries weight 25 and the second carries weight 75, the weighted average is 85. The original values did not change; the contribution assigned to each value did. The result moves toward 90 because that score has three times the weight of 70.

Weighting is not automatically more accurate than an ordinary mean. It is more appropriate only when the weights describe the question correctly. A mistaken course percentage or portfolio allocation can produce flawless arithmetic and a misleading answer. Values say what is being averaged; weights say how much each value contributes. Both parts need a defensible source.

Building the weighted sum and denominator

The formula is Σ(value × weight) ÷ Σweights. First multiply each value by its matching weight. Add those products to form the weighted sum. Separately add all the weights. Dividing the weighted sum by the total weight returns the result to the scale of the original values. Omitting that final division produces a weighted total, not a weighted average.

For values 70 and 90 with weights 25 and 75, the products are 1,750 and 6,750. Their sum is 8,500, while the weights sum to 100. Dividing 8,500 by 100 gives 85. The same answer results from decimal weights 0.25 and 0.75: the numerator becomes 85 and the denominator becomes 1.

This equivalence shows that weights express ratios, not a required unit. Multiplying every weight by the same positive constant leaves the average unchanged because numerator and denominator are multiplied by that constant. Weights 1 and 3, 25 and 75, or 0.25 and 0.75 all describe the same relative influence. What must remain fixed is the pairing between each weight and its value.

Worked example with three values

Take values 6, 8, and 10 with matching weights 1, 2, and 3. The weighted products are 6 × 1 = 6, 8 × 2 = 16, and 10 × 3 = 30. Their sum is 52. The total weight is 1 + 2 + 3 = 6, so the weighted average is 52 ÷ 6 = 8.666666..., displayed as about 8.67.

The ordinary mean of 6, 8, and 10 is 8. The weighted result is higher because the largest value also carries the largest weight. It still lies between the minimum value 6 and maximum value 10, as a positive-weight average should. That range check is useful: a result outside the range indicates a data-entry error, a nonstandard negative weight, or a different calculation than the conventional weighted mean.

Rounding the recurring result to 8.67 is suitable for display, but later calculations should use 52/6 or the full numeric result when possible. Substituting the rounded figure repeatedly can accumulate error. Always state the rounding level when the last decimal could affect a decision or comparison.

Using percentage weights for a course grade

Suppose three completed components have scores 82, 91, and 76, with weights 20%, 50%, and 30%. Using decimal weights gives 82 × 0.2 = 16.4, 91 × 0.5 = 45.5, and 76 × 0.3 = 22.8. The weighted sum is 84.7 and the weights total 1, so the weighted average is 84.7.

Using whole percentage numbers produces the same answer: (82 × 20 + 91 × 50 + 76 × 30) ÷ 100 = 84.7. Do not mix formats within one list, such as weights 20, 0.5, and 30. That would make the second component one hundredth as influential as intended relative to the whole-number entries.

If the entered weights cover only part of a course, dividing by their actual total calculates the average across the included components. It does not automatically add missing assignments as zeros or predict a final course grade. Define whether the task is to summarize completed work or to calculate progress against the entire course; those are different questions with different denominators.

Weighting returns by portfolio allocation

The same arithmetic can summarize components with positive and negative values. Suppose three positions have returns of 4%, −2%, and 10% and allocations of 50, 30, and 20. The weighted products are 200, −60, and 200. Their total is 340, and total allocation is 100, so the weighted return is 3.4% for that simplified period.

This example uses positive allocation weights even though one measured return is negative. A negative value and a negative weight mean different things: the value describes the observation, while the weight describes its contribution. Conventional allocation and grade examples normally use nonnegative weights. Specialized mathematical models may use negative weights, but the familiar interpretation as a share of a whole no longer applies automatically.

The calculation also assumes all component returns refer to the same period and use compatible definitions. Combining one monthly return with one annual return would not become meaningful merely because the weights sum to 100. Align the measurement period and basis before using the weighted formula, and treat the result as a summary of the supplied model rather than a forecast.

Pairing values and weights correctly

The calculator reads the lists by position: the first weight belongs to the first value, the second weight to the second value, and so on. Sorting one list without applying the same reordering to the other changes the calculation. A useful preparation method is to write the data as explicit pairs, such as (82, 20), (91, 50), and (76, 30), before entering separate lists.

Values and weights should have the same number of entries for the page's intended use. An omitted weight leaves the model ambiguous: should the missing entry receive no influence, equal influence, or some other amount? Resolve that question in the source data rather than relying on an accidental default. Separators such as commas or line breaks affect parsing, so review the interpreted entries if the output is unexpected.

A quick sensitivity check can expose a mispairing. The heaviest positive weight should pull the result toward its own value. In the course example, weight 50 belongs to score 91, so the result 84.7 should be nearer to 91 than it would be if that score had a small weight. If swapping two weights changes the story substantially, return to the original labels and confirm the intended pairing.

Equal weights, zero totals, and range checks

Equal weights reduce the formula to the ordinary mean. Values 6, 8, and 10 with weights 2, 2, and 2 produce weighted sum 48 and total weight 6, giving 8. This is a useful boundary check: when every entry has equal influence, a weighted-average tool and a standard average should agree.

A total weight of zero has no defined weighted average because the formula would divide by zero. The function therefore returns no result in that case. A list containing both positive and negative weights can sum to zero even when none of the individual weights is zero. For ordinary grading, frequency, price, and allocation uses, nonnegative weights avoid that issue and preserve the usual interpretation.

With nonnegative weights and at least one positive weight, the result must fall between the smallest and largest entered values. It may equal an endpoint when all effective weight is concentrated there. This min-to-max rule, agreement under equal weights, and invariance when all weights are scaled by the same positive factor provide three independent checks on the result.

Choosing and reporting weights transparently

Weights can represent shares, frequencies, quantities, credits, durations, or deliberate importance. The label matters. A price weighted by units sold answers a different question from the unweighted mean of product prices. A test score weighted by course percentage answers a different question from a score weighted by credit hours. Before calculating, complete the sentence: each value is weighted by what?

Report enough information for another reader to reproduce the average: the values, the matching weights, the formula, and the rounding rule. A bare result such as 84.7 hides whether the weights were 20/50/30, equal, or chosen another way. Transparency is particularly important when weights involve judgment rather than directly observed quantities.

The calculator performs the arithmetic but cannot validate whether a weight is fair, official, current, or appropriate. It also does not repair incompatible units or missing categories. Use it after defining the model, then check pair order, total weight, expected range, and one hand-worked example. Those checks turn a plausible-looking output into a result that can be explained and audited.

Reference and example table

CaseMeaning
Example 1Values 6, 8, 10 with weights 1, 2, 3 give 8.67.
Example 2Values 70 and 90 with weights 25 and 75 give 85.
Example 3Equal weights reproduce the ordinary arithmetic mean.

Frequently asked questions

What is the weighted-average formula?

Multiply each value by its matching weight, add those products, and divide by the sum of all weights: Σ(value × weight) ÷ Σweights.

How do values 6, 8, and 10 with weights 1, 2, and 3 produce 8.67?

The products are 6, 16, and 30, totaling 52. The weights total 6, so 52 ÷ 6 = 8.666666..., displayed as 8.67.

Do weights have to total 100?

No. Only their ratios matter because the formula divides by total weight. Weights 1 and 3 produce the same average as 25 and 75 for the same paired values.

What happens when all weights are equal?

The weighted average becomes the ordinary arithmetic mean. For example, values 6, 8, and 10 with equal weights average to 8.

Can the values themselves be negative?

Yes. With returns 4%, −2%, and 10% weighted 50, 30, and 20, the weighted result is 3.4%. The values and weights play different roles.

Why does the order of entries matter?

Each weight is paired with the value in the same position. Reordering one list without reordering the other assigns influence to the wrong observations and changes the result.

What happens if total weight is zero?

The result is not defined because the formula would divide by zero. The function returns no weighted average when the weights sum to zero.

How can I check a weighted average?

For nonnegative weights, confirm that the result lies between the minimum and maximum values. Also test equal weights and verify that scaling every weight by the same factor leaves the answer unchanged.