Weighted Average Calculator
Weighted average calculation.
Formula
WA = Σ(val×wt)/Σ(wt)
Example
80,90,70 weights 3,2,1 → 80.83.
Embed this calculator on your site
Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.
<iframe src="https://calcnestai.com/embed/weighted-average-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Weighted Average Calculator — Free Tool by CalcNest AI"></iframe>
Understanding the Weighted Average Calculator
A weighted average multiplies each value by its weight before averaging, so some values count more than others. Using a plain average where weights are needed is not an approximation but an error, and it is among the more common quantitative mistakes in ordinary work.
How it actually works
Enter values and matching weights as comma-separated lists. The calculator multiplies each pair, sums the products, and divides by the total weight. Values 85, 90, 78 with weights 3, 4, 2 give 85.67.
| Situation | Weight |
|---|---|
| Course grades | Credit hours |
| Combining group means | Group sizes |
| Portfolio return | Amount invested |
| Price index | Consumption share |
The deeper context most people miss
The second row is the one people get wrong most often. Averaging two group means treats the groups as equally sized, so combining a 50% rate from 10 observations with a 90% rate from 1,000 by taking the simple mean of 70% is badly wrong; the weighted figure is close to 89.6%.
Why unweighted averaging of rates misleads
Rates and percentages carry an implicit denominator, and averaging them discards it. This produces errors whose direction depends on which groups are large, and it can reverse a comparison entirely. Simpson's paradox is the extreme case: a treatment can appear better in every subgroup and worse overall, or the reverse, purely because of how group sizes differ between the comparison arms. The most cited real example is the 1973 Berkeley graduate admissions data, where the overall admission rate favoured men while most individual departments favoured women, because women applied disproportionately to departments with lower admission rates overall. Neither figure was wrong; they answered different questions, and the resolution depends on what causal question is being asked rather than on arithmetic alone. The same structure appears in comparing hospital mortality rates without adjusting for case mix, where hospitals treating sicker patients appear worse, and in comparing schools without accounting for intake. The defence is to state the denominators explicitly, to weight when combining, and to ask whether a difference in group composition could be driving an aggregate comparison. Standardisation, which reweights groups to a common reference composition, is the formal tool and is why age-standardised mortality rates exist.
A worked example: how weights change the answer
Values of 85, 90, and 78 with weights 3, 4, and 2 give 85.67, where the unweighted mean would be 84.33. The gap arises because the highest value carries the largest weight. In a grade context those weights are credit hours, so a high mark in a four-credit course pulls the average more than a low mark in a two-credit one, which is exactly the intent. Grade point averages work this way universally, and students frequently underestimate how much a single heavily weighted course moves the result. The same structure appears in portfolio returns, where the return on a holding must be weighted by the amount invested rather than averaged across holdings, and averaging position returns unweighted is a genuine error that overstates the contribution of small positions. Index construction is weighted averaging at scale, and the choice of weights is a substantive decision rather than a technical detail: a price-weighted index gives more influence to higher-priced shares regardless of company size, a market-capitalisation-weighted index gives more to larger companies, and an equal-weighted index gives each constituent the same influence. These produce visibly different results from identical constituents, which is why index methodology matters and why comparing indices with different weighting schemes requires care.
Deciding what the weights should be
Choosing weights is where the substance lies, and it is frequently a judgement rather than a fact. For combining measurements of differing precision, the statistically optimal weights are inversely proportional to variance, so more precise measurements count more, and this is what inverse-variance weighting in meta-analysis does. For combining groups to estimate a population value, the weights are the group sizes. For representing a population from a non-representative sample, survey weights adjust for differential selection probability and non-response, and this is standard in polling, where raw responses are weighted to match known population demographics. That practice is defensible and introduces its own risk, since weighting amplifies the influence of small subgroups and a handful of respondents in a heavily weighted cell can swing a published figure noticeably, which has been documented in polling post-mortems. For composite scores and rankings, weights encode priorities and are arguments rather than measurements, so a university or country ranking's weighting scheme is the substance of its claim and changing it reorders the results. The practical discipline is to state the weights explicitly, to check sensitivity by varying them, and to be suspicious of any composite index whose weighting is not published.
Weighted averages in estimation and machine learning
The idea generalises well beyond descriptive statistics. Weighted least squares fits a regression giving more influence to observations with smaller error variance, which is the right approach when precision varies across the data. Kernel methods weight nearby observations more heavily than distant ones, which is how local regression and kernel density estimation work, and the bandwidth controlling how quickly weight falls with distance is the key tuning parameter. Exponential smoothing weights recent observations more than older ones with geometrically decaying weights, and it underlies many forecasting methods and the exponential moving averages used in finance and in monitoring systems. Importance sampling reweights samples drawn from one distribution to estimate quantities under another, which is fundamental in Monte Carlo methods. Ensemble methods in machine learning combine model predictions with weights, with boosting adjusting weights on training examples iteratively to focus on those previously misclassified. Attention mechanisms in neural networks compute weighted averages of value vectors with weights derived from query-key similarity, so the central operation of the architecture underlying current language models is a learned weighted average. In each case the pattern is the same: the weights encode what should matter, and choosing them well is most of the modelling.
Variations: weighting schemes and related measures
Simple weights sum to any total and are normalised by dividing by the sum. Probability weights sum to one. Inverse-variance weights combine measurements of differing precision optimally. Exponentially decaying weights emphasise recency. Frequency weights represent repeated observations. Survey weights correct for sampling design. Geometric and harmonic weighted means exist for multiplicative and rate-based quantities respectively, and using the arithmetic weighted mean where a geometric one is needed is a further error on top of the weighting question. Trimmed and Winsorised means discard or cap extremes, which is a form of weighting where extreme observations receive zero or reduced weight. The weighted median is the value where cumulative weight reaches half and is robust where the weighted mean is not. Weighted standard deviation and weighted correlation extend the other summary statistics. For any of these, the effective sample size given weights is smaller than the raw count when weights are unequal, which is why heavily weighted survey data carries more uncertainty than its sample size suggests, and design effect quantifies that loss.
Applying weights correctly
Weight whenever combining groups of different sizes, since averaging group means treats them as equal and can be badly wrong or even reverse a comparison. Use group sizes as weights when estimating a population value from subgroup figures. Use inverse-variance weights when combining measurements of differing precision, which is optimal and is what meta-analysis does. Use amount invested rather than equal weighting when averaging portfolio returns, since averaging position returns overstates small holdings. State weights explicitly in any composite score or index, since the weighting scheme is the substance of the claim rather than a technical detail. Test sensitivity by varying the weights, which reveals whether a conclusion depends on a debatable choice. Watch for Simpson's paradox whenever an aggregate comparison contradicts subgroup comparisons, which arises from differing group composition. Note that unequal weights reduce effective sample size, so heavily weighted survey data carries more uncertainty than its raw count suggests. And check whether a geometric or harmonic weighted mean is required, since growth rates and rates over fixed distances need those instead.
What people get wrong
- Averaging group means without weighting by group size, which treats a group of 10 as equal to a group of 1,000 and can be substantially wrong.
- Averaging position returns equally across a portfolio, when returns must be weighted by amount invested and equal averaging overstates small holdings.
- Accepting a composite index without knowing its weighting scheme, when the weights encode the priorities and changing them reorders the results.
- Treating an aggregate comparison as authoritative when it contradicts every subgroup, which is Simpson's paradox and arises from differing group composition.
Where the math comes from
Weighted Average = Σ(value × weight) / Σ(weight). The unweighted mean is the special case where all weights are equal. Weights must correspond one-to-one with values, and when combining group means the correct weights are the group sizes, since averaging means directly treats groups of different sizes as equally influential.
Questions and answers
What is the difference between percent and percentage point?
Percent change is relative (going from 5% to 10% is a 100% increase). Percentage point change is absolute (the same shift is a 5 percentage point increase). News stories often confuse these.
How do I calculate a discount?
Discount amount = original x discount %. Final price = original x (1 - discount %). For 20% off $100: discount $20, final $80.
What is the formula for compound percentage?
Final = original x (1 + r1) x (1 + r2) x ... where each r is a percentage as decimal. A 10% raise then 10% cut: 1.10 x 0.90 = 0.99 = 99% of original.
How do I reverse a percentage?
If $80 is 80% of original: original = $80 / 0.80 = $100. To reverse 'X% off' to find original: original = final / (1 - X/100).
How do percentages work in tax?
Marginal tax rate applies to income within a bracket. Effective rate is total tax / total income. They diverge because of progressive brackets.
When do I need a weighted average?
Whenever the values represent different quantities or group sizes. Combining a 50% rate from 10 observations with a 90% rate from 1,000 by simple averaging gives 70%, while the correct weighted figure is close to 89.6%.
What should the weights be?
Group sizes when combining subgroup means, credit hours for grades, amount invested for portfolio returns, and inverse variance when combining measurements of differing precision. For composite scores the weights encode priorities and are arguments rather than measurements.
What is Simpson's paradox?
When an aggregate comparison contradicts every subgroup comparison, arising from differing group composition. The 1973 Berkeley admissions data is the classic case: the overall rate favoured men while most departments favoured women, because women applied to more competitive departments.
Can I average percentages?
Only if the underlying group sizes are equal. Percentages carry an implicit denominator that simple averaging discards, which is why combining rates across differently sized groups requires weighting by those sizes.
Does weighting affect uncertainty?
Yes. Unequal weights reduce the effective sample size below the raw count, so heavily weighted survey data carries more uncertainty than its number of respondents suggests. The design effect quantifies that loss of precision.
Why do stock indices differ with the same constituents?
Because of weighting. Price-weighted indices favour higher-priced shares regardless of company size, market-cap weighted ones favour larger companies, and equal-weighted ones treat all constituents alike. The same companies produce visibly different index behaviour.
Where else do weighted averages appear?
Exponential smoothing in forecasting, kernel methods in local regression, importance sampling in Monte Carlo, ensemble methods in machine learning, and attention mechanisms in neural networks, where the core operation is a learned weighted average of value vectors.
Related calculators
Complex Number · Compound Shape Area · Dot Product · Scientific Notation · Volume