What Is the Weighted Mean?
The weighted mean (or weighted average) is a type of average where some values contribute more than others to the final result. Instead of treating every data point equally as the simple arithmetic mean does, each value is multiplied by a weight that reflects its relative importance. This calculator is universal and applies to any field — grades, finance, surveys, physics, and more.
How to Use This Calculator
Enter your values as a comma-separated list (for example 80, 90, 70) and the matching weights in the same order (for example 2, 3, 1). The first value pairs with the first weight, the second with the second, and so on. The calculator multiplies each value by its weight, sums those products, and divides by the total of the weights.
The Formula Explained
The weighted mean is defined as:
$$\bar{x}_w = \frac{\sum_{i=1}^{n} w_i \cdot x_i}{\sum_{i=1}^{n} w_i}$$
Here \(x_i\) is each value, \(w_i\) is its weight, \(\sum(w_i x_i)\) is the sum of every weight-times-value product, and \(\sum w_i\) is the sum of all weights. When all weights are equal, the weighted mean reduces to the ordinary arithmetic mean.
Worked Example
Suppose a student scores 80, 90, and 70 on three assessments worth 2, 3, and 1 credits respectively. The weighted products are \(80 \times 2 = 160\), \(90 \times 3 = 270\), and \(70 \times 1 = 70\), summing to 500. The total weight is \(2 + 3 + 1 = 6\). So the weighted mean is $$500 \div 6 \approx 83.33$$ — higher than the simple average of 80, because the highest score carried the most weight.
Key Terms and Definitions
- Value (\(x_i\))
- The individual data point being averaged, such as an exam score, a price, or a measurement. In the calculator, values are entered as a comma-separated list in the values field (for example, 80, 90, 70).
- Weight (\(w_i\))
- A number that states how much influence the matching value has on the result. A larger weight means that value pulls the average closer to itself. Weights are entered as a comma-separated list in the weights field, in the same order and with the same count as the values. Weights must be non-negative (zero or greater); a weight of 0 removes that value from the result.
- Weighted sum
- The sum of each value multiplied by its weight: \(\sum_{i=1}^{n} w_i x_i\). This is the numerator of the weighted mean formula.
- Total weight
- The sum of all weights: \(\sum_{i=1}^{n} w_i\). This is the denominator of the formula. It cannot be zero, because dividing by zero is undefined, so at least one weight must be greater than zero.
- Normalized weights
- Weights divided by the total weight, \(w_i^{*} = \frac{w_i}{\sum_j w_j}\), so that they sum to 1 (or 100% when written as percentages). Using normalized weights, the weighted mean is simply \(\sum_{i=1}^{n} w_i^{*} x_i\). Scaling all weights by the same positive factor does not change the result.
- Arithmetic mean
- The ordinary average: the sum of the values divided by their count, \(\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i\). It is the special case of the weighted mean in which every weight is equal.
- Weighted mean
- The average in which each value contributes in proportion to its weight: $$\bar{x}_w = \frac{\sum_{i=1}^{n} w_i x_i}{\sum_{i=1}^{n} w_i}$$ With non-negative weights and a non-zero total weight, the result always lies between the smallest and largest value that has a positive weight.
Conventions and edge cases
Each case below was run through this calculator; the result column is what it actually returns.
| Case | Input | Result |
|---|---|---|
| Values 90, 80, 70 with weights 3, 2, 1 | 90, 80, 70; 3, 2, 1 | 83.3333 |
| Weights that add up to 0 | 90, 80; 1, -1 | The weighted mean is not defined when the weights add up to 0. |
Checked on 2026-11-08
FAQ
What if my values and weights lists have different lengths? The calculator pairs them in order and uses only as many pairs as the shorter list allows, ignoring extras.
Can weights be decimals or percentages? Yes. Weights can be any positive numbers — fractions, percentages, or counts. Only their relative sizes matter.
How is this different from a simple average? A simple average gives every value the same weight. The weighted mean lets you emphasize more important values, which is why it equals the simple mean only when all weights are identical.