Audited 25 May 2026·Last updated 26 Jul 2026·5 citations·Tier 1·0 uses

Weighted Average Calculator

Calculate weighted averages from values and weights. Essential for grades, portfolio returns, and survey analysis.

Weighted Average Calculator

Comma-separated numbers to be averaged
Comma-separated weights corresponding to each value
Weighted Average
93.3333
Sum of weighted values divided by sum of weights
Total Weight
6
Weighted Sum
560

Background.

A weighted average calculator computes the mean of a data set in which each observation contributes unequally to the final result. Unlike a simple arithmetic mean, which treats every value as equally important, the weighted average multiplies each value by a corresponding weight and divides by the sum of those weights. This adjustment is essential whenever the data points represent measurements of unequal reliability, frequency, or importance. Students use weighted averages to compute course grades where exams count more than quizzes. Portfolio managers use them to calculate time-weighted and money-weighted returns. Survey statisticians use them to correct for oversampling of certain demographic groups.

The practical necessity of weighting arises because raw data are rarely generated under perfectly uniform conditions. In educational assessment, a final examination typically carries more weight than a homework assignment because it covers more material and is administered under standardized conditions. In finance, a portfolio's overall return is the weighted average of individual asset returns, where the weights are the proportions of total capital allocated to each position. A portfolio with 90 percent in bonds and 10 percent in equities will have a return close to the bond return regardless of how strongly the equity market performs. The simple average of the two returns would mislead investors into believing their portfolio performed at the midpoint. In official statistics, weighted averages correct for sampling design. The U.S. Consumer Price Index is a weighted average of price changes across thousands of goods and services, where the weights reflect actual consumer expenditure patterns from the Consumer Expenditure Survey. Without weighting, a 10 percent increase in the price of caviar would exert the same influence as a 10 percent increase in the price of gasoline, even though gasoline accounts for a far larger share of household budgets. The Bureau of Labor Statistics updates these weights every two years to keep the index representative of current spending patterns.

The mathematical foundation of weighted averaging is straightforward but easily misapplied. The formula is a ratio: the numerator is the sum of each value multiplied by its weight, and the denominator is the sum of the weights. This structure ensures that values with larger weights pull the average toward themselves. A value with weight 3 exerts three times the influence of a value with weight 1. When all weights are equal, the formula collapses to the arithmetic mean, confirming that the simple mean is a special case of the weighted mean.

The weighted average is also the expected value of a discrete random variable when the weights are interpreted as probabilities, linking descriptive statistics to probability theory. In regression analysis, weighted least squares generalizes ordinary least squares by assigning a weight to each residual. Observations with lower variance receive higher weights, improving efficiency when heteroscedasticity is present. In time-series analysis, exponentially weighted moving averages assign geometrically decreasing weights to past observations, making recent data more influential than distant data. These advanced applications share the same fundamental principle as the calculator: not all data points deserve equal attention, and the analyst must specify the relative importance explicitly.

What is weighted average calculator?

The weighted average is a measure of central tendency that assigns a non-negative weight to each observation before computing the mean. The formula is WA = Σ (w_i × x_i) / Σ w_i, where x_i are the values and w_i are their corresponding weights. When the weights sum to 1, the denominator is unity and the weighted average is simply the sum of the weighted values. When the weights are frequencies or counts, the weighted average is identical to the arithmetic mean of the raw, ungrouped data. The weighted average generalizes the arithmetic mean and shares its units. It is defined for any real values provided the weights are non-negative and their sum is positive. Negative weights are mathematically permissible in some contexts such as leveraged portfolio optimization, but they violate the standard definition of a weighted average as a convex combination of values. The calculator therefore rejects negative weights. Zero weights are valid and simply exclude the corresponding values from the computation, a feature useful for sensitivity analysis and what-if scenarios. Because the weighted average is a convex combination when weights are non-negative and sum to one, it always lies between the minimum and maximum input values. This boundedness guarantees interpretability and makes the weighted average the natural choice whenever observations deserve unequal influence.

How to use this calculator.

  1. Enter the values to be averaged as comma-separated numbers in the first text area.
  2. Enter the corresponding weights as comma-separated numbers in the second text area.
  3. Ensure the number of values exactly matches the number of weights.
  4. Ensure all weights are non-negative and at least one weight is positive.
  5. Click calculate to display the weighted average.
  6. Review the total weight and weighted sum shown for verification.
  7. Adjust weights and recalculate to explore sensitivity scenarios.

The formula.

WA = Σ(wᵢ × xᵢ) ⁄ Σwᵢ

The weighted average formula minimizes the weighted sum of squared deviations: Σ w_i (x_i − μ)². Taking the derivative with respect to μ and setting it to zero yields 2 Σ w_i (x_i − μ) = 0, which simplifies to μ = Σ w_i x_i / Σ w_i. This optimization property explains why the weighted average is the best predictor of the data under a squared-error loss function that penalizes errors in proportion to their weights. In ordinary least squares regression, the weights are implicit and equal; in weighted least squares, they are explicit and typically inversely proportional to the variance of each observation. The connection to expected value in probability theory is direct. If the weights are normalized so that Σ w_i = 1, the weighted average is exactly the expectation E[X] = Σ x_i P(X = x_i), where the weights serve as probabilities. This identity bridges descriptive statistics and probability: a weighted average of observed data is the sample analogue of a population expected value. In Bayesian statistics, the posterior mean is a weighted average of the prior mean and the sample mean, with weights determined by the relative precision (inverse variance) of each source of information. The effect of extreme weights can be dramatic. A single value with a weight orders of magnitude larger than the others will dominate the weighted average, pulling it arbitrarily close to that value regardless of the other data. This sensitivity is both a strength and a weakness. It is a strength when the large weight correctly reflects higher reliability or larger sample size; it is a weakness when the weight is misspecified or manipulated. Survey researchers therefore impose bounds on design weights to prevent a few oversampled units from distorting population estimates. The calculator reports the total weight so users can verify that no single weight dominates unexpectedly. Dimensional analysis confirms consistency. Each term w_i x_i has units of weight times value. If weights are dimensionless importance scores, the weighted average has the same units as the values. If weights are frequencies or counts, the numerator has units of value and the denominator is dimensionless, again yielding the original units. The formula is homogeneous of degree zero in the weights: multiplying all weights by the same positive constant leaves the average unchanged. This invariance is important because it means the weights can be expressed in any convenient scale—percentages, raw counts, or normalized scores—without affecting the result.

A worked example.

Example

A university course assigns weights of 1 to quizzes, 2 to the midterm examination, and 3 to the final examination. A student scores 80 on quizzes, 90 on the midterm, and 100 on the final. The weighted average is computed as (1 × 80 + 2 × 90 + 3 × 100) divided by (1 + 2 + 3). The weighted sum equals 80 + 180 + 300 = 560. The total weight is 6. Dividing yields 560 / 6 = 93.33. The simple arithmetic mean of the three scores is (80 + 90 + 100) / 3 = 90.00. The weighted average is higher because the student performed best on the most heavily weighted component. This method of grade computation is standard in higher education because it rewards strong performance on comprehensive assessments more than on minor assignments. If the instructor had used equal weights, the student's final grade would be 3.33 points lower, demonstrating how weighting policy directly affects academic outcomes.

values80, 90, 100
weights1, 2, 3

Frequently asked questions.

What is the difference between weighted average and simple average?
A simple average, or arithmetic mean, treats every value as equally important by summing all values and dividing by their count. A weighted average assigns a non-negative weight to each value, reflecting its relative importance, reliability, or frequency, before computing the mean. The simple average is a special case of the weighted average in which all weights are equal. In educational grading, the simple average of 80, 90, and 100 is 90. If the weights are 1, 2, and 3, the weighted average is 93.33. The choice between the two depends on whether the values were generated under equivalent conditions or whether some values deserve greater influence on the summary.
Can weights be negative?
The calculator rejects negative weights because they violate the standard definition of a weighted average as a convex combination. Negative weights can produce averages outside the range of the input values and eliminate the interpretation of the weights as importance measures or probabilities. In specialized financial applications such as leveraged portfolios, negative weights represent short positions, but the resulting metric is a net exposure rather than a conventional weighted average. Users requiring negative weights should use algebraic summation or linear combination tools rather than this calculator. The validation rule ensures that all outputs lie between the minimum and maximum input values, a property guaranteed only for non-negative weights.
How are weighted averages used in stock indices?
Major stock indices use weighted averages to aggregate individual stock performance into a single benchmark. The S&P 500 is a capitalization-weighted index: each stock's return is weighted by its total market value, so large companies such as Apple and Microsoft dominate the index. The Dow Jones Industrial Average is price-weighted, giving higher weights to stocks with higher per-share prices regardless of company size. Equal-weighted indices assign the same weight to every constituent. Each weighting scheme produces different risk-return profiles and sector exposures. The calculator can model any of these by entering the constituent returns as values and the chosen weights—market caps, prices, or equal constants—as weights.
What happens if all weights are equal?
When all weights are equal to the same positive constant c, the weighted average formula becomes (c Σ x_i) / (n c) = (Σ x_i) / n, which is the simple arithmetic mean. The constant c cancels from numerator and denominator, confirming that the scale of the weights does not matter when they are uniform. This invariance is a useful sanity check: if you enter weights of 1, 1, 1 or 100, 100, 100, the weighted average will be identical. The calculator leverages this property by allowing any positive uniform weights, though users seeking simple means may find the dedicated mean-median-mode calculator more convenient.
Can I use percentages as weights?
Yes, provided they are non-negative and at least one is positive. Percentage weights such as 20, 30, and 50 are common in portfolio allocation and grading rubrics. The calculator normalizes them automatically through the denominator Σ w_i, so there is no need to convert percentages to decimals before entry. A weight of 20 and a weight of 0.20 will produce different averages only if the other weights are not scaled proportionally. For clarity, users should enter weights in a consistent scale—either all percentages summing to 100 or all raw importance scores. Mixing scales within the same input list distorts the relative influence of each value.
How does weighted average relate to expected value?
The expected value of a discrete random variable is a probability-weighted average: E[X] = Σ x_i P(x_i). If the weights in the calculator are normalized to sum to 1, the weighted average is exactly the expected value with respect to the empirical distribution defined by those weights. In Bayesian inference, the posterior expected value of a parameter is the weighted average of the prior mean and the data mean, with weights equal to their respective precisions. In survey sampling, the Horvitz-Thompson estimator is a weighted average where the weights are the inverse selection probabilities. These connections make the weighted average one of the most fundamental operations in theoretical and applied statistics.
What is a weighted moving average?
A weighted moving average is a time-series smoothing technique that applies declining weights to past observations before computing the average. In a simple moving average, all observations within the window receive equal weight. In an exponential moving average, the weights decrease geometrically with age, so recent data dominate. The weighted average calculator can compute a single weighted average for any set of values and weights, but it does not iterate across a time series. Users seeking moving averages should apply the calculator repeatedly to successive windows or use a dedicated time-series tool. The principle—unequal weighting—is identical in both cases.
How do I handle missing values in weighted averages?
The calculator does not handle missing values automatically. If a value is missing, the user must either omit both the value and its corresponding weight or impute a replacement value. Omitting the pair is the most common approach and is valid when missingness is random. If weights represent sample sizes and some groups have no observations, those groups should be excluded by setting their weights to zero. Imputation methods—mean imputation, regression imputation, or multiple imputation—are beyond the scope of this calculator. Users should ensure that the remaining values and weights still align index-for-index after any omissions.
Are weights required to sum to 1?
No. The weighted average formula divides by the sum of weights, so any positive scale factor cancels. Weights of 2, 3, and 5 produce the same result as weights of 0.2, 0.3, and 0.5 because both sets are proportional. Summing to 1 is convenient for probability interpretation but not required for computation. The calculator reports the total weight as secondary output so users can verify the denominator. If you have raw frequencies—such as 15 respondents in category A and 25 in category B—entering those frequencies directly as weights is both valid and easier than converting to percentages.
What is the difference between weighted average and weighted median?
The weighted average uses all values and their weights in a single algebraic formula, making it sensitive to extreme values. The weighted median is the value at which the cumulative weight reaches half the total weight; it depends only on rank and cumulative weights, not on the exact magnitude of outliers. In income distribution analysis, the weighted mean is pulled upward by billionaires, while the weighted median better represents the typical household. The calculator computes only the weighted average. Users seeking robust central tendency measures that resist outlier influence should compute the weighted median by sorting the values and finding the cumulative weight midpoint.

References& sources.

  1. [1]Cochran, W.G. (1977). Sampling Techniques, 3rd ed. New York: John Wiley & Sons.
  2. [2]NIST SP 811 (2008). Guide for the Use of the International System of Units (SI). https://www.nist.gov/pml/special-publication-811
  3. [3]Montgomery, D.C. (2017). Design and Analysis of Experiments, 10th ed. Hoboken, NJ: John Wiley & Sons.
  4. [4]Tukey, J.W. (1977). Exploratory Data Analysis. Reading, MA: Addison-Wesley.
  5. [5]NIST/SEMATECH (2012). e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook/

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon