Weighted Mean Calculator - Calculate Weighted Average
Calculate the weighted mean (weighted average) for any number of values and weights — useful for grades, finance, surveys, and statistics.
Enter your data values and their corresponding weights, one per field or comma-separated, then click Calculate for an instant weighted average.
Weighted Mean Calculator - Calculate Weighted Average
Calculate the weighted mean (weighted average) for any number of values and weights — useful for grades, finance, surveys, and statistics.
Enter the same number of values and weights, separated by commas or spaces. Weights do not need to sum to 1.
About the weighted mean calculator
The weighted mean — also called the weighted average — is a generalization of the arithmetic mean that accounts for the fact that not all values contribute equally to the average. Each value is multiplied by a weight that reflects its importance, frequency, or proportion, and the products are summed and then divided by the total weight. When all weights are equal, the weighted mean reduces to the simple arithmetic mean, which is why the arithmetic mean is a special case of the weighted mean.
The formula is x̄w = (w₁x₁ + w₂x₂ + … + wₙxₙ) / (w₁ + w₂ + … + wₙ). The weights can be any positive numbers — they do not need to sum to 1 or to 100. Proportional weights (summing to 1) and percentage weights (summing to 100) give the same result, and so do integer frequency weights. The calculator normalises automatically, so you can enter class sizes, portfolio dollar amounts, or survey response counts directly as weights without converting them to fractions.
Grade calculation is one of the most common uses. A course might assign 20% weight to homework, 30% to the midterm, and 50% to the final. If a student scores 88 on homework, 72 on the midterm, and 84 on the final, the weighted mean is (0.20×88 + 0.30×72 + 0.50×84) / 1.0 = (17.6 + 21.6 + 42.0) = 81.2. A simple average of 88, 72, and 84 would give 81.33 — close but different, and the difference grows when weights are very unequal.
In finance, the weighted mean is used to compute the average return on a portfolio where each asset has a different dollar value invested. An investor with $10,000 in Asset A (returning 5%), $25,000 in Asset B (returning 8%), and $15,000 in Asset C (returning −2%) has a portfolio return of (10000×0.05 + 25000×0.08 + 15000×(−0.02)) / 50000 = (500 + 2000 − 300) / 50000 = 4.4%. The simple average return of 3.67% would be misleading because Asset B represents half the portfolio.
In statistics, the weighted mean arises whenever samples are drawn with unequal probabilities or when sub-group means must be combined: a national average income that properly weights each region by its population, a meta-analysis that weights studies by their sample sizes, or a survey that post-stratifies responses by demographic group. In physics and engineering, the centre of mass is the weighted mean position where the weights are the masses of individual components. The weighted mean is also fundamental to expectation in probability theory: E[X] = Σ xᵢ P(X=xᵢ), which is precisely the weighted mean with probabilities as weights.
Weighted mean examples
Three scenarios — academic, financial, and quality analysis — showing the weighted mean in practice.
| Values & Weights | Weighted Mean | Details |
|---|---|---|
| Values: 85, 95, 89, 92 | Weights: 0.20, 0.30, 0.15, 0.35 | 90.25 | Student grade: homework, quiz, lab, and exam with different percentage weights. The exam (weight 0.35) drives the result higher. |
| Values: 5.5%, 8.2%, −2.1%, 12.5% | Weights: $10k, $25k, $5k, $30k | 8.92% | Portfolio return: four assets with dollar-value weights. Weighted sum = 624,500 / total weight = 70,000. The two largest positions (B and D) dominate. |
| Values: 10, 20, 30, 40 | Weights: 1, 1, 1, 1 | 25 | When all weights are equal, the weighted mean equals the simple arithmetic mean: (10+20+30+40)/4 = 25. |
How to use the weighted mean calculator
- Enter the data values in the Values field, separated by commas or spaces.
- Enter the corresponding weights in the Weights field in the same order as the values.
- Weights can be any positive numbers — proportions, percentages, counts, or dollar amounts all work.
- Click Calculate to see the weighted mean, total weight, number of items, and weighted sum.
- Click Reset to clear both fields, or tap an example button to load a pre-built scenario.
Weighted mean FAQ
What is the weighted mean?
The weighted mean is an average where each value contributes proportionally to its assigned weight. It equals the sum of each value multiplied by its weight, divided by the total weight. When all weights are equal, it reduces to the simple arithmetic mean.
Do the weights need to sum to 1 or 100?
No. Weights can be any positive numbers. Whether you enter proportions that sum to 1, percentages that sum to 100, or raw counts that sum to any value, the calculator divides by the total weight automatically, so the result is always correct. Negative weights are not permitted.
How does the weighted mean differ from the arithmetic mean?
The arithmetic mean treats all values identically. The weighted mean allows some values to count more than others based on their weights. A grade calculator using equal weights gives the same result as the arithmetic mean; a grade calculator with different assignment weights gives the weighted mean, which is almost always the more meaningful result.
What happens if all weights are the same?
When all weights are equal — for example, all 1s — the formula simplifies to the sum of the values divided by the number of values, which is the arithmetic mean. You can verify this by entering equal weights for any data set; the weighted mean will match the simple average.
Can I use the weighted mean for survey data?
Yes. Enter the response values (e.g., ratings from 1 to 5) as values, and the number of respondents choosing each rating as weights. The result is the mean rating, properly accounting for how many people gave each response. This is also called a frequency-weighted mean.
What if my values include negative numbers?
Negative values are fully supported. Common examples include portfolio returns, where some assets lose money, or temperature anomalies that include values below a baseline. The weights, however, must all be positive — a negative weight has no natural interpretation and is rejected by the calculator.