Weighted Mean Calculator

Find a weighted average: type value:weight pairs or paste two columns from a spreadsheet. The weighted mean and its working update as you type. A weighted average and a weighted mean are the same thing: the first is the everyday name, the second the statistical one.

Type value:weight pairs like 85:4

What you can type:

  • Pairs: 85:4, 90:3, 70 is 85 with weight 4, 90 with weight 3 and 70 with weight 1. A missing weight counts as 1.
  • Two pasted columns: 85 ⇥ 4 ↵ 90 ⇥ 3 pasted from Excel or Google Sheets (values, then weights) is two pairs.
  • CSV: 85,4 ↵ 90,3 from a CSV file is two pairs, one per line.
  • Labels: Math ⇥ 85 ⇥ 4 with a column of labels in front reads the value and weight after the label.
  • Labels in a CSV file: Art history,70,2 ↵ Math,85,4 is 70 with weight 2 and 85 with weight 4, each after its label.
  • Fractions: 17/20:1, 3/4:2 is 0.85 with weight 1 and 0.75 with weight 2.
  • Decimal commas: 1,5:2 is 1.5 with weight 2.
  • Anything else: Score:Credits, 85:4 reads 85 with weight 4 and names “Score:Credits” as ignored. Nothing is dropped silently: the line under the field names everything that was ignored.

↵ is a new line and ⇥ a tab.

Values used (value × weight): 85 × 4, 90 × 3, 70 × 2
Values used
#ValueWeight
1854
2903
3702

Weighted mean 83.3333, 3 values.

Worked example for 85:4, 90:3, 70:2.

Weighted mean 83.3333

Sum of value × weight
750
Sum of weights
9
Unweighted mean
81.6667
Count
3
85, weight 490, weight 370, weight 2709080Weighted mean 83.3385, weight 490, weight 370, weight 2709080▲ 83.33
Each dot is a value, sized by its weight. The line balances at the ▲.
Show the steps

In the steps, “=” marks a result that is exact for the numbers shown, “≈” a rounded one.

  1. Multiply each value by its weight and add them up: 85×4 + 90×3 + 70×2 = 750
  2. Add the weights: 4 + 3 + 2 = 9
  3. Divide the first sum by the second: 750 ÷ 9 ≈ 83.3333

Report a problem

Weighted mean formula

x̄w = Σ(wᵢ × xᵢ) ÷ Σwᵢ = (w₁x₁ + w₂x₂ + … + wₙxₙ) ÷ (w₁ + w₂ + … + wₙ)

Here xᵢ is a value, wᵢ is its weight, and Σ means “add up over all the values”: multiply each value by its weight, add the results, and divide by the sum of the weights.

How to calculate a weighted mean, for scores of 85, 90 and 70 in courses worth 4, 3 and 2 credits:

  1. Multiply each value by its weight: 85 × 4 = 340, 90 × 3 = 270, 70 × 2 = 140.
  2. Add the products: 340 + 270 + 140 = 750.
  3. Add the weights: 4 + 3 + 2 = 9.
  4. Divide the first total by the second: 750 ÷ 9 ≈ 83.33.

The weights only matter relative to each other: weights of 4, 3 and 2 give the same answer as 40%, 30% and 20%, or 0.4, 0.3 and 0.2.

How to enter values and weights

Type each value with its weight after a colon, like 85:4, separated by commas, spaces or new lines, or paste two columns from a spreadsheet: values first, weights second, with an optional column of labels in front. The line under the box confirms how many values were read and their total weight, and names anything that could not be read; Clean up there writes the box out in a standard form without it. Values used reads your input back in the order you typed it, each value with its weight, so a misread number or swapped columns stand out.

Example: grades with percentage weights

A course grade is 20% homework, 30% midterm and 50% final exam. With 85 for homework, 78 for the midterm and 92 for the final:

(85×20 + 78×30 + 92×50) ÷ 100 = 8640 ÷ 100 = 86.4

Enter it as 85:20, 78:30, 92:50. If the final is not marked yet, leave it out: 85:20, 78:30 gives 80.8, your average so far. The weights then add up to 50 rather than 100, which is fine: the calculator always divides by the total weight. To see what the final must be for each grade, open the final grade calculator with that grade.

Example: grade point average

For a GPA on a 4-point scale, the grade points are the values and the credits the weights. Grades of A (4.0), A− (3.7), B (3.0) and C+ (2.3) in courses worth 4, 3, 3 and 2 credits:

(4×4 + 3.7×3 + 3×3 + 2.3×2) ÷ (4 + 3 + 3 + 2) = 40.7 ÷ 12 ≈ 3.39

In the calculator, enter it as 4:4, 3.7:3, 3:3, 2.3:2.

Calculating a GPA from letter grades? The GPA calculator turns A− or B+ into grade points for you, and adds honors and AP weighting and your cumulative GPA.

Weighted mean for a Likert scale

For a survey question answered on a 1-to-5 agreement scale, the scale points are the values and the number of people who chose each point are the weights. Open Read as a Likert scale under the field and choose a 4-, 5- or 7-point scale: the calculator then shows the share of answers at each point and the range the mean falls in.

Example: Likert scale survey

To summarise a survey question answered on a 5-point scale, enter the scale points as values and the number of people who chose each point as weights. If 12 people answered 5, 20 answered 4, 9 answered 3, 6 answered 2 and 3 answered 1:

(5×12 + 4×20 + 3×9 + 2×6 + 1×3) ÷ 50 = 182 ÷ 50 = 3.64

Enter it as 5:12, 4:20, 3:9, 2:6, 1:3, or open this Likert example in the calculator.

Report it with the number of answers and the spread across the scale, for example: “Mean agreement was 3.64 on a 5-point scale (n = 50); 64% agreed or strongly agreed.” A common convention reads 3.41 to 4.20 on a 5-point scale as “Agree”: the range from 1 to 5 split into five equal intervals of width (5 − 1) ÷ 5 = 0.8. Treat such labels as a convention and say which one you used.

Weighted mean formula in research

In research reports the weighted mean is written x̄w = Σwᵢxᵢ ÷ Σwᵢ. For survey data, xᵢ is each response option’s score and wᵢ the number of respondents who chose it, so Σwᵢ is the number of respondents, n. State the scale (for example 1 = strongly disagree to 5 = strongly agree), n, the weighted mean to two decimals, and the percentage choosing each option; for a set of questions, give each question’s weighted mean before any overall average.

Example: mean of a frequency table

The same method gives the mean of any frequency table: the values are the values and the frequencies are the weights. Copy the two columns from your spreadsheet (values first, frequencies second) and paste them into the box; each row becomes one value and its weight.

Example: portfolio return

You invest $5,000 in a fund that returns 12%, $3,000 in one that returns 8% and $2,000 in one that returns 15%. Weight each return by the amount invested:

(12×5000 + 8×3000 + 15×2000) ÷ 10000 = 114000 ÷ 10000 = 11.4%

In the calculator: 12:5000, 8:3000, 15:2000.

Weighted mean vs arithmetic mean

The arithmetic mean counts every value once; the weighted mean lets some count more. In the worked example under the formula, the arithmetic mean of the three scores is 81.67 against the weighted 83.33: the lowest score came in the course worth the fewest credits. With equal weights the two are the same.

When to use a weighted mean

If every value counts equally, use the mean calculator instead.

Common questions

Do the weights have to add up to 1 or 100%?

No. The calculator divides by the sum of the weights, so credits, percentages, counts or any other positive numbers all work.

How do I choose the weights?

Use whatever says how much each value should count: the credits or hours of each course, the percentage each part of a grade is worth, the number of people who gave each answer in a survey, or the amount invested in each holding. If no value should count more than another, use the plain mean.

How do I calculate this in Excel or Google Sheets?

With the values in A1:A10 and their weights in B1:B10, use =SUMPRODUCT(A1:A10, B1:B10) / SUM(B1:B10); it works the same in Google Sheets. Keep both ranges the same size and fill every value cell: SUMPRODUCT counts an empty or text cell as 0 while SUM still counts its weight, which pulls the result down without warning.

How do I calculate a weighted mean for a Likert scale?

Use the scale points as the values (for example 5, 4, 3, 2, 1) and the number of respondents who chose each point as the weights. The weighted mean is the average response.

Can values or weights be negative or decimal?

Values can be any numbers, including negatives and decimals. Weights can be decimals or percentages but not negative, and at least one must be greater than zero. A weight of 0 leaves that value out.

What happens if I leave a weight out?

A value without a weight, such as 70 or 70:, counts with weight 1. If every weight is 1, the weighted mean equals the ordinary mean.

Can I use decimal commas?

Yes, inside a value:weight pair (1,5:2 is 1.5 with weight 2) and in a table pasted with tabs or semicolons between the columns. In those two cases a comma followed by groups of three digits, as in 1,234, is read as a thousands separator (in a pasted table, only when every number with a comma looks like that), so write 1.234 for a decimal. Anywhere else a comma separates entries. The “Values used” line under the box shows exactly how your input was read.

Cite this page

Weighted Mean Calculator. https://meancalculator.com/weighted-mean.html