Weighted Mean Calculator

Enter your values with the weight each one carries. The weighted mean, the normalized weights, and the regular mean update as you type — and the solver works backwards to find a missing value or weight.

Mode

Every calculation runs in this browser. No dataset is uploaded, stored on a server, or shared.

What Is a Weighted Mean?

A weighted mean is an average in which each observation carries its own multiplier, so values backed by more evidence or importance influence the result more.

Statistics calls it the weighted arithmetic mean, written x̄w. It sums every value multiplied by its weight, then divides by the total weight. A regular mean is the special case where every weight is 1. See the general weighted average calculator for the same method applied to grades, GPA, and finance.

Weights carry meaning from the data itself. In a lab, the weight is the number of measurements behind each reading. In a survey, it is the size of the group. In a price index, it is the quantity purchased. The unit does not matter, because the division by total weight removes the scale.

One property matters more than any other: with non-negative weights, the weighted mean always lands between the smallest and largest value in the set. A result outside that range means a weight went negative.

How to Calculate a Weighted Mean

To calculate a weighted mean, multiply every value by its weight, add the products, and divide by the sum of the weights.

Weighted Mean Formula

xi — the i-th observation in the dataset wi — the weight carried by that observation ∑ wi xi — the weighted sum of every observation ∑ wi — the total weight in the dataset

Weights that already sum to 1 simplify the formula: the denominator disappears and the weighted sum alone is the mean. That is why probability weights are convenient — they are normalized in advance.

Step-by-Step Weighted Mean Calculation

  1. Pair every value with its weight. One pair per observation, with weights in a single consistent unit.
  2. Multiply each pair. Value × weight gives that observation's contribution.
  3. Add the products. The total is the weighted sum, ∑ wi xi.
  4. Add the weights. The total is ∑ wi.
  5. Divide. Weighted sum ÷ total weight is the weighted mean.

Weighted Mean Calculation Example

Three laboratories report the same measurement, each from a different number of trials. The trial counts are the weights, because a reading from 30 trials carries more evidence than one from 8.

Weighted mean of three laboratory readings
LaboratoryReadingTrials (weight)w × xShare of weight
Lab A4.101249.224%
Lab B4.3530130.560%
Lab C4.20833.616%
Total50213.3100%
213.3 ÷ 50 = 4.27   vs   regular mean (4.10 + 4.35 + 4.20) ÷ 3 = 4.22

The weighted mean is 4.27 against a regular mean of 4.22. Lab B holds 60% of the trials, so its higher reading pulls the combined result upward — which is the point of weighting by evidence.

How to Use the Weighted Mean Calculator

Type one value-weight pair per row and the weighted mean appears immediately, beside the regular mean and the normalized weights.

Enter Your Values

Put each observation in the value column. Values accept decimals, negatives, percentages, and both separator styles, so 1,250.5 and 1.250,5 both read as the same number.

  • Item names the row — Lab A, Segment 2, Q3. Names are optional and appear in the breakdown.
  • Add value creates another row, and the Enter key on the last row does the same.
  • Decimals sets the rounding of the displayed result between 0 and 6 digits.

Enter the Weights

Put the multiplier for each observation in the weight column: trial counts, sample sizes, quantities, probabilities, or percentages. Keep one unit across the whole dataset.

The share column shows each weight rescaled to a percentage of the total, so an unnormalized set of weights becomes readable without any conversion on your part.

Calculate the Weighted Mean

No button is needed. The result panel reports 4 supporting figures beside the mean:

  • Sum of w · x — the numerator of the formula.
  • Sum of weights — the denominator.
  • Value range — the smallest and largest observation, which the mean should fall between.
  • Regular mean — the same values with every weight set to 1.

The mode selector at the top switches from calculating to solving. Solve for a value and solve for a weight both work backwards from a target mean, which is covered further down this page.

When to Use a Weighted Mean

Use a weighted mean when the observations are not equally informative — different sample sizes, quantities, probabilities, or importance.

  • Combining samples of different sizes into one estimate.
  • Repeated measurements where some readings come from more trials than others.
  • Expected values, where each outcome is weighted by its probability.
  • Price and quantity data, where the units sold weight each price.
  • Survey results corrected so each segment matches its share of the population.
  • Composite scores where components are deliberately given different importance.

How to Choose the Weights

Choose the quantity that makes one observation count more than another, then apply it consistently. Four schemes cover most datasets:

Common weighting schemes and their weights
SchemeWeight usedTypical setting
Frequency weightingHow many times the value occurredGrouped data, repeated readings
Sample-size weightingNumber of observations behind each valueCombining studies or segments
Probability weightingChance of each outcome, summing to 1Expected value
Importance weightingA judgement of relative significanceComposite scores and indices

Two rules keep the result honest. Weights must come from outside the values themselves — deriving weights from the values you are averaging builds in circularity. And a weight of 0 is a deliberate exclusion, not a missing entry.

Weighted Mean vs. Regular Mean

A regular mean gives every value the same weight of 1. A weighted mean lets those weights differ, so the two agree only under one condition.

The same three readings, averaged both ways
MethodCalculationResult
Weighted mean213.3 ÷ 50 trials4.27
Regular mean12.65 ÷ 3 readings4.22

The regular mean answers what the typical reading was. The weighted mean answers what the combined evidence says. Neither is a better formula; they answer different questions about the same numbers.

When Weighted Mean and Regular Mean Are the Same

The two are identical when every weight is equal, whatever that shared value is. Weights of 7, 7, and 7 give the same answer as weights of 1, 1, and 1, because the common factor cancels in the division.

(4×7 + 9×7 + 12×7) ÷ 21 = 175 ÷ 21 = 8.333 = (4 + 9 + 12) ÷ 3

The calculator prints a note whenever the two coincide, so equal weighting never passes unnoticed.

What Happens When Weights Don't Add Up to 100%?

Nothing breaks. The division by the total weight normalizes any scale, so weights of 2, 3, and 5 give exactly the same mean as 20%, 30%, and 50%.

Weights only need to be proportional to each other. Multiply every weight by 10 and the numerator and denominator both grow by 10, leaving the mean unchanged.

One dataset, three weight scales, one mean
Weights enteredSum of weightsWeighted mean
2, 3, 51078.50
20, 30, 5010078.50
0.2, 0.3, 0.5178.50

The share column in the calculator shows the normalized version of whatever you typed, so you can read proportions without rescaling anything by hand.

Only one total is fatal: weights summing to 0 make the division undefined, and the calculator reports that instead of printing a number. Probability weights are the one case where the total genuinely must be 1, since the result is only an expected value under that condition.

Weighted Mean With Negative Numbers

Negative values are ordinary and calculate normally. Negative weights are the risky case, because they break the guarantee that the mean sits inside the value range.

Values below zero are common: temperature readings, investment losses, or deviations from a baseline. Returns of −4% and +10% with weights of 3 and 2 give (−12 + 20) ÷ 5, a weighted mean of 1.60.

(−4 × 3) + (10 × 2) = 8  →  8 ÷ 5 = 1.60

Negative weights behave differently. Values of 10 and 20 with weights of 3 and −1 produce (30 − 20) ÷ 2 = 5.00, which sits below both values. The result is arithmetically correct and statistically meaningless as an average.

Negative weights appear legitimately in offsetting positions, such as a short holding in a portfolio. Outside those cases, a negative weight is usually a typed minus sign. The calculator flags every negative weight and says so explicitly when the mean falls outside the value range.

Solving for a Missing Value or Weight

The formula rearranges in both directions, so a target mean plus everything else determines the one missing term. Switch modes at the top of the calculator.

Finding a Missing Value

Leave one value blank, keep its weight, and enter the mean you are aiming for. The unknown value equals the target multiplied by the total weight, minus the weighted sum of the known rows, divided by the unknown weight.

xk = (x̄w × ∑w − ∑ wi xi) ÷ wk

Values of 78 and 85 carrying weights of 2 and 3, with a third row weighted 5 and a target mean of 84, need that third value to be 85.80. The known rows contribute 411 of the 840 required, leaving 429 to be earned across a weight of 5.

Finding a Missing Weight

Leave one weight blank, keep its value, and enter the target mean. The unknown weight equals the target times the known weight, minus the known weighted sum, divided by the difference between the unknown value and the target.

wk = (x̄w × ∑w − ∑ wi xi) ÷ (xk − x̄w)

A value of 90 weighted 3, plus a value of 70 with an unknown weight, reaches a mean of 82 when that weight is 2. Checking it: (270 + 140) ÷ 5 = 82.

Two cases have no answer, and the calculator names both. A value equal to the target can never move the mean, so no weight solves it. A target outside the range of your values would require a negative weight, which the solver reports rather than returning quietly.

Common Weighted Mean Calculation Mistakes

Six mistakes account for most incorrect weighted means, and four of them are visible in the calculator's own output.

  1. Dividing by the count instead of the total weight. The denominator is ∑w, not n. This is the single most common error.
  2. Averaging the weights. Weights scale the values; they are not observations themselves.
  3. Mixing weight units. Sample sizes in one row and percentages in another distort the total.
  4. Treating a blank as a zero. A missing observation is not a value of 0, and entering it as one drags the mean down.
  5. Averaging averages without weights. Group means must be re-weighted by group size, or the small group counts as much as the large one.
  6. Rounding each product before summing. Round once, at the end.

The calculator surfaces the visible ones: it prints ∑ w · x and ∑ w separately so a wrong denominator stands out, flags entries that are not numbers, marks rows missing one half of the pair, and warns when negative weights push the mean outside the value range.

CALCULATOR SUITE

Specialized Weighted Calculators

Explore our dedicated calculation tools tailored for academic grading, GPA, statistical datasets, inventory costing, and finance.

Academics & Courses

Weighted Grade Calculator

Calculate your overall course grade from assignments, quizzes, and midterm weights, plus find the exact score needed on your final exam.

Syllabus WeightingLetter Grades (A–F)Final Target Solver
High School & College

Weighted GPA Calculator

Compute semester and cumulative GPA with standard AP (+1.0), Honors (+0.5), and IB grade point weighting on 4.0 and 5.0 scales.

AP, IB & HonorsQuality PointsSemester & Cumulative
Percentages & Math

Weighted Percentage Calculator

Calculate weighted percentage totals from percentage or raw score components, and calculate exact percentage contribution per item.

Percentages & Raw ScoresWeight Shares100% Normalization
Statistics & Datasets Active Tool

Weighted Mean Calculator

Compute the arithmetic weighted mean for any dataset or frequency distribution, and solve for any missing value or weight.

Missing Value SolverFrequency WeightsFull Step Breakdown
University Grading

Weighted Average Mark (WAM)

Work out your university WAM across course units with credit-point and year-level weighting schemes and Honours classifications.

Credit-Point WeightingYear Level MultipliersHonours Bands
Loans & Consolidation

Weighted Average Interest Rate

Calculate the effective blended interest rate and annual/monthly finance charges across mortgages, student loans, or credit cards.

Blended Rate APRLoan ConsolidationMonthly Interest Cost

Frequently Asked Questions

When Should I Use a Weighted Mean Instead of a Regular Mean?

Use a weighted mean when the observations are not equally informative — different sample sizes, trial counts, quantities, or probabilities. Use a regular mean when every observation carries the same evidence and importance.

How Do I Choose Weights for a Weighted Mean?

Choose the quantity that makes one observation count more than another: frequency, sample size, probability, or a stated importance. Apply one unit across the whole dataset, and take the weights from outside the values being averaged.

Can Weights Be Decimals?

Yes, weights can be decimals. Probabilities of 0.25 and 0.75, credit values of 1.5, and shares of 33.33% all work, because dividing by the total weight normalizes any scale.

Can a Weighted Mean Handle Negative Numbers?

Yes for negative values, which calculate normally — readings of −4 and 10 at weights 3 and 2 give 1.60. Negative weights are different: they can push the mean outside the range of your values, so the calculator flags them.

What Happens If All Weights Are Equal?

The weighted mean equals the regular mean. Weights of 7, 7, and 7 give the same result as weights of 1, 1, and 1, because the shared factor cancels in the division.

Do Weights Have to Add Up to 100%?

No. Weights of 2, 3, and 5 give the same mean as 20%, 30%, and 50%, since only their ratio matters. The one exception is probability weighting, where the total must equal 1 for the result to read as an expected value.

Is Weighted Mean the Same as Weighted Average?

Yes, they name the same calculation. Statistics prefers weighted mean or weighted arithmetic mean, everyday use prefers weighted average, and both equal the sum of weighted values divided by the total weight.

How Do You Calculate a Weighted Mean?

Multiply every value by its weight, add the products, then divide by the sum of the weights. Readings of 4.10, 4.35, and 4.20 weighted 12, 30, and 8 give 213.3 ÷ 50, a weighted mean of 4.27.

Calculate Weighted Average Online

Every value-weight pair, one weighted average.

The weighted average calculator multiplies each value by its weight, adds the weighted sum, divides by the total of weights, and prints the weighted average beside the standard arithmetic mean. Course grades, GPA, portfolio returns, and probability distributions all run through the same 4 steps.

Open the Weighted Average Calculator