What is a weighted average calculator?
A weighted average calculator is a tool that finds the mean of a set of values when some of those values matter more than others. In a plain average every number counts equally, but in many real situations that assumption is wrong: a final exam should count for more than a short quiz, and a price that applies to many units should influence an overall figure more than a price that applies to only a few. By attaching a weight to each value, this calculator lets the more important entries pull the result toward themselves, producing a number that reflects the data more faithfully than a simple mean.
Simple average vs. weighted average
A simple average adds up the values and divides by how many there are. It is the right choice only when every value carries the same importance.
A weighted average instead multiplies each value by its weight, sums those products, and divides by the total of the weights. Whenever the entries differ in significance, sample size, frequency, or contribution, the weighted average is the correct tool. When all the weights happen to be equal, the weighted average collapses back into the ordinary mean.
Formula
The weighted average of values with weights is:
which can be written compactly with summation notation as:
Where:
- is each individual value,
- is the weight assigned to that value,
- is the number of value-weight pairs.
The denominator is the sum of all the weights. If that sum is zero, the weighted average is undefined, and the calculator returns no result.
How does the calculator work?
To use the weighted average calculator, follow these steps:
-
Enter each value in its own row, alongside the weight you want to give it. You can add as many rows as you need.
-
Make sure every value has a weight. A row with a value but no weight is skipped, because without a weight it cannot contribute to the average.
-
Read the result. The calculator returns the weighted average and the number of value-weight pairs it used, updating automatically as you type.
Example calculations
Weighting course grades
Suppose three assignments scored 90, 80, and 70, and they count for 3, 2, and 1 units of importance respectively. Multiply each score by its weight, add the products, and divide by the total weight:
The weighted average is about 83.33, higher than the plain mean of 80 because the best score carries the most weight.
Weighting prices by quantity
Imagine buying the same item at three different prices: 5 units at $19.99, 3 units at $13.99, and 2 units at $25.00. Weight each price by the quantity bought:
The average price paid per unit is $19.19.
Equal weights reduce to the simple mean
If two values of 10 and 20 are each given a weight of 1, the weighted average equals the ordinary average:
The result is 15, exactly the simple mean.
Practical applications
-
Grades and GPA. Schools combine exam, quiz, and homework scores using weights that reflect how much each component counts toward the final grade.
-
Finance and pricing. Investors and buyers compute weighted average costs, returns, or prices, weighting each figure by the amount of money or number of units it represents.
-
Surveys and statistics. Analysts merge measurements taken from groups of unequal size by weighting each measurement by its sample size.
Frequently asked questions
What happens if the weights add up to zero?
The weighted average divides by the total of the weights, so a total of zero leaves the result undefined. In that case the calculator shows no result. This can happen if you mix positive and negative weights that cancel out.
Do the weights need to add up to 1 or 100%?
No. The weights can be any numbers on any scale, because the formula divides by their total. Using fractions that sum to 1, percentages that sum to 100, or whole-number counts all give the same answer for the same proportions.
What is the difference between this and a plain average calculator?
The average calculator treats every number as equally important, while this tool lets you weight each value differently. To average percentages with optional sample sizes, use the average percentage calculator.