Skip to content
OverCalculator
  1. Home
  2. Math & Scientific
  3. Weighted Average Calculator
Math & Scientific

Weighted Average Calculator

Calculate a weighted average or weighted mean for grades, portfolios, lab measurements, survey scores, and any dataset where entries carry unequal importance.

Published

Weighted average
Weighted average
89
Total weight
100
Entries
3 entries
Weighted products
Entry 1: 90 × 20
1,800
Entry 2: 85 × 50
4,250
Entry 3: 95 × 30
2,850

Each value is multiplied by its weight, then divided by the total weight of 100.

Entry
Entry 1
Entry 2
Entry 3

Results update as you type.

Weighted Average Calculator

A weighted average calculator finds the mean of values that should not all count equally. Instead of treating a one-credit quiz, a four-credit lab, and a final exam as identical observations, it multiplies each value by its weight and divides by the total weight. Use it for course grades, portfolio returns, survey scores, lab repeats, and any decision where the size or importance of each entry matters.

Why weighting changes the meaning of an average

The ordinary arithmetic mean answers a narrow question: what value would each observation have if the total were spread evenly across all observations? That is useful when every observation has equal standing. Weighted averaging answers a different question: what is the average after each observation is counted in proportion to its relevance, frequency, or exposure?

Suppose a student earns 100 on a five-point homework check and 80 on a 100-point exam. The simple average is 90, but that number exaggerates the homework because it counts the five-point task as heavily as the exam. A weighted average using point values gives an answer much closer to the student’s real course performance. The same idea appears in finance when an asset with 60 percent of a portfolio should influence the portfolio return more than an asset with 5 percent, and in statistics when a group mean based on 800 people should count more than a group mean based on 20.

Weights are units of influence. They may be credit hours, assignment points, kilograms of material, minutes of exposure, survey counts, probabilities, or percentages. The calculator does not require them to add to 100 because the formula divides by the total weight. What matters is that all weights describe the same kind of influence. Mixing credit hours with percentages or sample sizes with subjective importance scores creates a number that looks precise but has no clear interpretation.

Formula and variable definitions

For values and weights in matching rows, the weighted mean is

weighted average=(valuei×weighti)weighti\text{weighted average} = \frac{\sum \left(\text{value}_i \times \text{weight}_i\right)}{\sum \text{weight}_i}

where:

  • valuei\text{value}_i is the numeric value in row ii.
  • weighti\text{weight}_i is the nonnegative influence assigned to row ii.
  • (valuei×weighti)\sum \left(\text{value}_i \times \text{weight}_i\right) is the sum of all weighted products.
  • weighti\sum \text{weight}_i is the total weight and must be greater than zero.

The derivation is a direct extension of the ordinary mean. If a value with weight 20 represents 20 equal copies of that value, then adding all repeated values and dividing by the number of copies gives the same formula. That repeated-copy interpretation is especially intuitive for points, frequencies, and sample sizes. For fractional weights such as portfolio shares, the algebra is the same even though the weights represent proportions rather than literal copies.

Checked example

The calculator’s default rows are 90 with weight 20, 85 with weight 50, and 95 with weight 30. First multiply each value by its weight:

90×20=180090 \times 20 = 1800

85×50=425085 \times 50 = 4250

95×30=285095 \times 30 = 2850

Add those products and add the weights:

1800+4250+2850=89001800 + 4250 + 2850 = 8900

20+50+30=10020 + 50 + 30 = 100

Now divide the weighted product total by the total weight:

8900100=89\frac{8900}{100} = 89

The displayed weighted average is 89. The calculator also reports total weight as 100, entries as 3 entries, and a weighted-products breakdown for each row. Products and totals accumulate at full JavaScript numeric precision; only the final displayed quotient is rounded to two decimal places.

How to interpret the result

A weighted average usually stays between the smallest and largest value when all weights are nonnegative and at least one weight is positive. A result near one end means the heavier weights are attached to values near that end. In the default example, the largest weight is attached to 85, so the answer, 89, is pulled below the simple average of 90.

For course work, use the weights exactly as the syllabus defines them: category percentages, assignment points, or credit hours. If you are averaging percentages from several quizzes, the average percentage calculator is helpful when each quiz has equal standing, while this page is better when quizzes have different point values. For a grade system with honors or Advanced Placement weighting, compare the separate weighted GPA calculator. For broader summary measures such as median, quartiles, and spread, use the statistics calculator.

In finance, weights can be position sizes. A portfolio return is not the simple average of each holding’s return unless every holding has the same value. In measurement work, weights may represent confidence: a reading with a smaller uncertainty or a larger sample size may deserve more influence, provided the weighting rule is chosen before looking at the answer.

Domain, edge cases, and common mistakes

The calculator accepts up to 100 entries. Values can be positive, zero, or negative, which allows losses, below-zero temperatures, or signed scores. Weights are intended to be zero or positive. A zero-weight row is ignored mathematically, although it still appears in the breakdown with a product of zero. If the total weight is zero, the denominator is zero and no weighted average exists.

The most common mistake is averaging already-averaged numbers without weighting by their denominators. If one class section has an average of 70 across 10 students and another has an average of 90 across 40 students, the combined average is not 80. The second section contains four times as many students and must receive four times the weight. Another mistake is entering percentages twice: if a category weight is 40 percent, enter 40 or 0.40 consistently for all categories, not a mixture of both. Finally, avoid rounding each weighted product too early. Keep full precision through the sum, then round the final average.

Sources

Frequently asked questions

What is a weighted average?
A weighted average is a mean in which some values count more than others. Each value is multiplied by its weight, the products are added, and that total is divided by the sum of the weights. It is the right average when credits, hours, shares, probabilities, or importance levels are unequal.
Do the weights have to add to 100?
No. Weights may be percentages, points, course credits, hours, sample sizes, or portfolio shares. They only need to be on one consistent scale. If you multiply every weight by the same positive number, the weighted average stays the same because both the numerator and denominator change by that factor.
Can a weighted average use zero weights?
A row with weight zero is allowed by the calculator and contributes nothing to the weighted sum or total weight. However, the combined weight across all rows must be positive. If every weight is zero, there is no meaningful denominator, so the calculator reports the input as invalid.
Why did my weighted grade not match my course gradebook?
Gradebooks often have extra rules: dropped assignments, late penalties, category caps, extra credit, minimum exam requirements, or rounding at category boundaries. This calculator applies the pure weighted mean formula to the rows you enter. Match the syllabus weights and include the same scores your instructor includes before comparing results.
Can weights be negative?
The calculator is designed for nonnegative weights because most weighted averages represent importance, frequency, exposure, or share. Negative weights can appear in specialized mathematical estimators, but they can produce results outside the range of the input values. For grades, prices, measurements, and portfolios, use zero or positive weights only.

Related calculators

Weighted Average Calculator updated at