Weighted Average Calculator
Compute the weighted mean when different values contribute with different levels of importance.
Reviewed by the ToolNestr Editorial Team — July 2026
How weighted averaging works
A weighted average (or weighted mean) is a calculation that takes into account the varying degrees of importance of the numbers in a data set. Unlike a simple arithmetic mean where each data point contributes equally, a weighted average multiplies each data point by a predetermined weight before summing and dividing by the total weight.
The fundamental formula is: Weighted Average = Σ(value × weight) / Σ(weight). The numerator is the sum of each value multiplied by its corresponding weight. The denominator is the sum of all weights. The weights represent the relative importance of each value — a value with a weight of 5 contributes five times as much to the average as a value with a weight of 1.
Weights must be non-negative numbers. They do not need to sum to any particular value — the formula handles any set of non-negative weights naturally. If the weights sum to zero, the weighted average is undefined. In practice, weights are often percentages summing to 100%, or frequencies representing how many times each value occurs in the data set.
The formula explained
Weighted average formula
x̄ = Σ(xiwi) / Σwi
Multiply each value by its weight, sum these products, then divide by the sum of all weights.
Connection to simple mean
Simple: wi = 1 ⇒ x̄ = Σxi / n
The simple arithmetic mean is a special case of the weighted mean where all weights are equal.
Worked example: Course grade calculation
Scores: Homework = 85 (weight 3), Quiz = 92 (weight 2), Exam = 78 (weight 5), Project = 95 (weight 1)
Step 1: Weighted sum = 85×3 + 92×2 + 78×5 + 95×1 = 255 + 184 + 390 + 95 = 924
Step 2: Total weight = 3 + 2 + 5 + 1 = 11
Step 3: Weighted average = 924 / 11 = 84.0
The weighted average of 84.0 is lower than the simple average of 87.5 because the exam (lowest score) has the highest weight.
Students & Educators
Course grades are the classic example of weighted averages. Different assignments have different weights (homework 10%, quizzes 20%, midterm 30%, final 40%). The weighted average calculates the final course grade accurately.
Investors
Portfolio returns are weighted by allocation. If 60% of your portfolio returns 8% and 40% returns 12%, the weighted return is 0.6×8 + 0.4×12 = 9.6%. Weighted average cost of capital (WACC) is another key financial application.
Data Analysts
Survey data often requires weighting to match population demographics. If a survey under-represents a group, their responses get higher weights. Weighted averages correct for sampling bias and produce more representative results.
Supply Chain Managers
Inventory valuation methods like weighted average cost calculate the cost of goods sold by averaging the cost of all units, weighted by the number of units purchased at each price. This smooths out price fluctuations in inventory accounting.
How to use the weighted average calculator
Enter value:weight pairs
Type each value followed by a colon and its weight, separated by commas. For example, "85:3, 92:2, 78:5".
Results update automatically
The weighted average appears instantly. The detail section shows the numerator, denominator, and a comparison with the simple average.
Adjust and compare
Change weights to see how they affect the result. The simple average comparison helps you understand the impact of the weighting scheme.
Tips for weighted averaging
Weights can be normalized
If your weights sum to 1 (or 100%), you can skip the division step: the weighted average is simply Σ(value × weight). For example, if three assets in a portfolio have weights 0.5, 0.3, and 0.2, the weighted return is 0.5×R₁ + 0.3×R₂ + 0.2×R₃ directly.
Beware of extreme weights
A single very large weight can dominate the weighted average, making it almost equal to that value. Conversely, a value with a negligible weight contributes almost nothing. Check that your weights reflect the true importance of each data point in your analysis.
Weighted averages can be biased
If weights are chosen subjectively or based on unreliable data, the weighted average can be misleading. Always document how weights are determined and consider sensitivity analysis — how much would the result change if weights were adjusted by 10-20%?
Frequency as weight
When data is grouped by frequency, the weighted average formula naturally computes the mean. For example, if 3 students scored 85, 2 scored 92, and 5 scored 78, the frequency (number of students) serves as the weight: (85×3 + 92×2 + 78×5) / (3+2+5).
Related tools
Frequently asked questions
What is a weighted average?
A weighted average assigns different weights (importance) to each data point before averaging. It is calculated as the sum of (value × weight) divided by the sum of weights.
When should I use a weighted average instead of a simple average?
Use a weighted average when data points have different levels of importance or frequency. For example, course grades weighted by credit hours, or investment returns weighted by allocation size.
What if all weights are equal?
If all weights are equal, the weighted average equals the simple average. This can serve as a useful check: if your weights are all 1, the result is the same as the arithmetic mean.
Can weights be percentages?
Yes, weights can be percentages that sum to 100%. The calculator handles both raw weights (like 2, 3, 5) and percentage weights that sum to 100. The result is the same either way.
What happens if weights are zero?
A value with zero weight is effectively excluded from the average. This is useful when you want to calculate the average of a subset without removing the data entirely from your list.