Skip to content
Mathico

Weighted Mean Calculator

The weighted mean is Σ(w × x) ÷ Σw: multiply each value by its weight, add the products, and divide by the total weight. Paste your values and weights to get the answer with every step shown.

Separate numbers with commas, spaces or new lines. You can paste two columns straight from a spreadsheet. Weights can be percentages, credits, counts or any positive numbers.

xww × xShare of weight
90201,80020%
80302,40030%
70503,50050%
Σ1007,700100%

Weighted mean

77

7,700 ÷ 100 = 77

Sum of weights Σw
100
Sum of products Σwx
7,700
Unweighted mean
80
Weighted SD
7.8102
Weighted SD (frequency weights, n − 1)
7.8496
Number of values
3

How to use the weighted mean calculator

  1. Type or paste your values in the first box and their weights in the second, in the same order.
  2. The table shows each product w × x and each item's share of the total weight.
  3. 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

x̄w = Σ(wᵢ × xᵢ) ÷ Σwᵢ
Weighted SD = √( Σwᵢ(xᵢ − x̄w)² ÷ Σwᵢ )

Worked example: a course grade

ComponentScore (x)Weight (w)w × x
Homework9020%1,800
Midterm8030%2,400
Final exam7050%3,500
Total1007,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.