Weighted Mean

The weighted mean adjusts an average by giving different importance to each value, used when some data points matter more than others.

xˉw=wixiwi\bar{x}_w = \frac{\sum w_i x_i}{\sum w_i}

Solve a problem with Weighted Mean

Type the problem. The solver will use Weighted Mean where Weighted Mean is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Weighted Mean takes
xˉw\bar{x}_w
wiw_i
xix_i
Weighted Mean
SymbolMeaning
xˉw\bar{x}_wThe weighted mean itself — the answer you are solving for, a single number that represents the center of your data when different values have different weights.
wiw_iThe weight assigned to each value, a non-negative number showing how many times that value appears or how important it is; if weights are forgotten, the formula treats them all as 1.
xix_iEach individual data value you are averaging; the subscript ii just labels them as the 1st, 2nd, 3rd value, and so on.

When to use it

When different data points have different levels of importance or frequency, and a simple average would not represent your data fairly.

Level

Usually taught in: Algebra I · Appears on: SAT

Worked examples

1. Find the weighted mean of test scores

Problem

A student has three test scores: 85, 92, and 78. The tests are weighted as 2, 3, and 1 respectively. Find the weighted mean score.
  1. 2(85)+3(92)+1(78)=170+276+782(85) + 3(92) + 1(78) = 170 + 276 + 78

    Multiply each value by its weight.

  2. =524= 524

    Sum the weighted values.

  3. 2+3+1=62 + 3 + 1 = 6

    Sum the weights in the denominator.

  4. xˉw=5246=2623=8713\bar{x}_w = \frac{524}{6} = \frac{262}{3} = 87\frac{1}{3}

    Divide by the sum of weights to get the final answer.

Answer: xˉw=8713 or 87.33\bar{x}_w = 87\frac{1}{3} \text{ or } 87.33\ldots

The weight of 3 on the score 92 pulls the weighted mean higher than a simple average would. If all weights were equal, the mean would be (85+92+78)/3=85(85 + 92 + 78) / 3 = 85, but the emphasis on the higher score 92 raises the weighted mean to approximately 87.33.

2. Weighted mean with negative values

Problem

Find the weighted mean of the values 5,10,7-5, 10, 7 with weights 2,1,32, 1, 3 respectively.
  1. 2(5)+1(10)+3(7)=10+10+212(-5) + 1(10) + 3(7) = -10 + 10 + 21

    Multiply each value, including the negative one, by its weight.

  2. =21= 21

    Sum all the weighted values: 10+10=0-10 + 10 = 0 and 0+21=210 + 21 = 21.

  3. 2+1+3=62 + 1 + 3 = 6

    Sum the weights.

  4. xˉw=216=72=3.5\bar{x}_w = \frac{21}{6} = \frac{7}{2} = 3.5

    Divide the sum of weighted values by the sum of weights.

Answer: xˉw=72 or 3.5\bar{x}_w = \frac{7}{2} \text{ or } 3.5

Even with a negative value included, the weighted mean stays positive because the positive values carry larger weights. The weight of 3 on the value 7 pulls the answer strongly toward 7, resulting in a final weighted mean of 3.5.

3. Weighted mean cost per foot for fencing a garden

Problem

A rectangular garden plot is being fenced. The north side is 30 feet long and costs $8 per foot. The south side is 10 feet long and costs $12 per foot. The east side is 20 feet long and costs $6 per foot. The west side is 20 feet long and costs $6 per foot. Find the weighted mean cost per foot for the entire garden, weighted by the length of each side.
  1. 30(8)+10(12)+20(6)+20(6)=240+120+120+12030(8) + 10(12) + 20(6) + 20(6) = 240 + 120 + 120 + 120

    Multiply each cost per foot by the length of that side.

  2. =600= 600

    Sum the weighted values: 240+120+120+120=600240 + 120 + 120 + 120 = 600.

  3. 30+10+20+20=8030 + 10 + 20 + 20 = 80

    Sum the weights, which are the lengths of all four sides.

  4. xˉw=60080=152=7.5\bar{x}_w = \frac{600}{80} = \frac{15}{2} = 7.5

    Divide total weighted cost by total length to find the cost per foot.

Answer: xˉw=152 or $7.50 per foot\bar{x}_w = \frac{15}{2} \text{ or } \$7.50 \text{ per foot}

The weighted mean accounts for the fact that the longest section (30 feet, the north side) has the lowest cost per foot ($8), pulling the average down from the simple mean of (8+12+6+6)/4=$8.00(8 + 12 + 6 + 6) / 4 = \$8.00 to $7.50\$7.50. This shows why weighting matters: the most-fenced section is also the cheapest.

Common mistakes

Where Weighted Mean usually goes wrong
Answer came out wrong
Writing xˉw=x1+x2+x3w1+w2+w3\bar{x}_w = \frac{x_1 + x_2 + x_3}{w_1 + w_2 + w_3} instead of multiplying each value by its weight in the numerator.
Always multiply each value by its weight in the numerator: xˉw=w1x1+w2x2+w3x3w1+w2+w3\bar{x}_w = \frac{w_1 x_1 + w_2 x_2 + w_3 x_3}{w_1 + w_2 + w_3}.
Using the number of values (like 3 or 4) in the denominator instead of the sum of the weights wi\sum w_i.
The denominator is always the sum of the weights, not the number of values: use wi\sum w_i in the denominator, not nn or a count.
Treating the weights as if they are data values and including them in the average, like computing (2+3+1+85+92+78)(2 + 3 + 1 + 85 + 92 + 78) as if weights are part of what is being averaged.
Keep weights and values separate: weights multiply values in the numerator and are summed in the denominator, but weights themselves are never added to the data values.
The mistakeWhy it is wrongThe fix
Writing xˉw=x1+x2+x3w1+w2+w3\bar{x}_w = \frac{x_1 + x_2 + x_3}{w_1 + w_2 + w_3} instead of multiplying each value by its weight in the numerator.This formula drops the weights from the numerator, forgetting the whole point of weighting and producing a meaningless result that is neither a proper weighted nor simple mean.Always multiply each value by its weight in the numerator: xˉw=w1x1+w2x2+w3x3w1+w2+w3\bar{x}_w = \frac{w_1 x_1 + w_2 x_2 + w_3 x_3}{w_1 + w_2 + w_3}.
Using the number of values (like 3 or 4) in the denominator instead of the sum of the weights wi\sum w_i.The count of data points and the sum of weights are equal only when all weights equal 1; if weights vary, dividing by the count gives the wrong average.The denominator is always the sum of the weights, not the number of values: use wi\sum w_i in the denominator, not nn or a count.
Treating the weights as if they are data values and including them in the average, like computing (2+3+1+85+92+78)(2 + 3 + 1 + 85 + 92 + 78) as if weights are part of what is being averaged.Weights define importance or frequency and belong in both the numerator (as multipliers) and denominator (as a sum), while values belong only in the numerator and are multiplied by weights.Keep weights and values separate: weights multiply values in the numerator and are summed in the denominator, but weights themselves are never added to the data values.

Tips and when to use something else

  • When all weights equal 1, the weighted mean reduces to the simple arithmetic mean xˉ=xin\bar{x} = \frac{\sum x_i}{n} — use the simpler formula if every value has equal importance.
  • If a weight represents how many times a value appears in your dataset, you can skip the weighted formula and instead list that value multiple times, then compute the simple arithmetic mean.
  • The weighted mean will always fall between your smallest and largest data values — if your answer is outside this range, check your arithmetic for a calculation error.
  • All weights must be non-negative (zero or positive); negative weights have no meaningful interpretation in the context of averages and usually signal a problem with how the weights were set up.

Frequently asked questions

Can I use weighted mean if my weights do not add up to 1?
Yes, absolutely. The formula xˉw=wixiwi\bar{x}_w = \frac{\sum w_i x_i}{\sum w_i} works with any positive weights, regardless of their sum. You do not need to rescale weights to sum to 1 unless the problem specifically asks for it.
What if all my weights are equal?
If all weights are the same, the weighted mean equals the simple arithmetic mean. For example, xˉw=w(x1+x2+x3)3w=x1+x2+x33\bar{x}_w = \frac{w(x_1 + x_2 + x_3)}{3w} = \frac{x_1 + x_2 + x_3}{3} when w1=w2=w3=ww_1 = w_2 = w_3 = w. You can use either formula.
Does the weighted mean have to be a whole number?
No. Even if all values and weights are integers, the weighted mean is often a fraction or decimal. You may need to simplify your fraction or round to a decimal depending on the context of your problem.
How is weighted mean different from arithmetic mean?
The arithmetic mean treats all values as equally important and is xˉ=x1+x2+x33\bar{x} = \frac{x_1 + x_2 + x_3}{3}. The weighted mean lets different values have different importance or frequency, pulling the result more strongly toward the values with larger weights.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18