How to use the weighted mean calculator
- Type or paste your values in the first box and their weights in the second, in the same order.
- The table shows each product w × x and each item's share of the total weight.
- Read the weighted mean, the plain mean for comparison and the weighted standard deviation. Download the table as a CSV if you need it.
Weighted mean formula
Weighted SD = √( Σwᵢ(xᵢ − x̄w)² ÷ Σwᵢ )
Worked example: a course grade
| Component | Score (x) | Weight (w) | w × x |
|---|---|---|---|
| Homework | 90 | 20% | 1,800 |
| Midterm | 80 | 30% | 2,400 |
| Final exam | 70 | 50% | 3,500 |
| Total | 100 | 7,700 |
Weighted mean = 7,700 ÷ 100 = 77. The unweighted mean of 90, 80 and 70 is 80; the weighted result is lower because the final exam carries half the weight. The weighted standard deviation is √((20 × 13² + 30 × 3² + 50 × 7²) ÷ 100) = √61 ≈ 7.81.
Where weighted averages are used
- Grades and GPA: category weights or credit hours.
- Investing: portfolio returns weighted by the amount in each holding, or average cost per share.
- Business: average price across products sold in different quantities, or weighted average cost of inventory.
- Surveys and statistics: grouped data where the weight is how often each value occurs.
For course grades with categories, the grade calculator handles it directly, and the GPA calculator weights by credit hours. For spread in unweighted data, use the standard deviation calculator. More math calculators.
Sources
Frequently asked questions
What is a weighted mean?
A weighted mean is an average in which some values count more than others. Each value is multiplied by its weight, the products are added, and the total is divided by the sum of the weights: x̄w = Σ(w × x) ÷ Σw.
How do I calculate a weighted average?
Multiply each value by its weight, add up the products, then divide by the total weight. For scores of 90, 80 and 70 weighted 20%, 30% and 50%: (90 × 20 + 80 × 30 + 70 × 50) ÷ 100 = 7,700 ÷ 100 = 77.
Do the weights have to add up to 100 or 1?
No. Because the formula divides by the sum of the weights, any positive weights work: percentages, credit hours, quantities or counts. Weights of 2, 3 and 5 give the same answer as 20%, 30% and 50%.
What's the difference between a weighted mean and a regular mean?
A regular (arithmetic) mean gives every value the same weight. A weighted mean lets bigger or more important items count more. In the example above the plain mean is 80, but the weighted mean is 77 because the lowest score carries the most weight.
How do I calculate a weighted average in Excel or Google Sheets?
Use =SUMPRODUCT(values, weights) / SUM(weights). For values in A2:A4 and weights in B2:B4: =SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4).
What is the weighted standard deviation?
It measures the spread of the values around the weighted mean, with each squared deviation multiplied by its weight: √(Σw(x − x̄w)² ÷ Σw). When weights are frequency counts, divide by Σw − 1 instead for the sample version.