Omni Calculator logo

Weighted Average Calculator

Created by Mateusz Mucha and Hanna Pamuła, PhD
Reviewed by Bogna Szyk and Jack Bowater
Last updated: Jan 18, 2024


To understand how a weighted average calculator works, you must first understand what a weighted average is. Weighted average has nothing to do with weight conversion, but people sometimes confuse these two concepts. The typical average, or mean, is when all values are added and divided by the total number of values. We can compute this using our average calculator, by hand, or by using a hand-held calculator since all the values have equal weights.

But what happens when values have different weights, which means that they're not equally important? Below you will see how to calculate the weighted mean using the weighted average formula. Also, you'll find examples where the weighted average method may be used - like e.g. calculation of the GPA, average grade, or your final grade.

Prefer watching over reading? Learn all you need in 90 seconds with this video we made for you:

Let's start from the beginning: what is a weighted average?

Weighted average (weighted arithmetic mean) is a concept similar to standard arithmetic mean (called simply the average), but in the weighted average, not all elements contribute equally to the final result. We can say that some values are more important than others, so they are multiplied by a coefficient called the weight.

For example, during your studies, you may encounter a situation where the grade from an exam is two times more important than the grade from a quiz - and that's exactly what we call the weighted average method. To define it in a more mathematical way, we can write the weighted average formula as:

xˉ=w1x1+w2x2++wnxnw1+w2++wn\scriptsize \bar{x} \!=\! \frac{w_1x_1 + w_2x_2 + \ldots + w_nx_n}{w_1 + w_2 + \ldots + w_n}

where x1x_1, x2x_2,…, xnx_n are our numbers, and w1w_1, w2w_2,…, wnw_n are our weights - the importance of the numbers in averaging.

So, having an A from an exam and a C from a quiz, you'd get a B as a standard average, but assuming that the exam is two times more important, you should get a B+.

🙋 If you're running a business, you may be interested in checking our WACC calculator, which concerns the Weighted Average Cost of Capital.

How to calculate a weighted average

One type of average which is typically weighted is a grade point average. As the calculation of GPA may sometimes be tricky, we've created two dedicated tools: the high school GPA and the college GPA calculator — have you checked them yet?

Let's find out how to calculate a weighted average - the easiest way is to look at the simple example:

Suppose a student has two four-credit classes, a three-credit class, and a two-credit class. Assume that the grades of the courses are as follows:

  • A for a four-credit class;
  • B for the other four credit class;
  • A for the three credit class; and
  • C+ for the two credit class.

Then, we need to translate the letter grades into numerical values. Most schools in the US use a so-called 4.0 GPA scale, which is a 4-point grading scale. The table below shows a typical letter grade/GPA conversion system:

Letter Grade

Percentile

4.0 scale

+4.0 scale

A+

97-100

4

4.3

A

93-96

4

4

A-

90-92

3.7

3.7

B+

87-89

3.3

3.3

B

83-86

3

3

B-

80-82

2.7

2.7

C+

77-79

2.3

2.3

C

73-76

2

2

C-

70-72

1.7

1.7

D+

67-69

1.3

1.3

D

65-66

1

1

F

Below 65

0

0

So from the table, we know that A = 4.0, B = 3.0, and C+ = 2.3. Now that we have all the information, we can have a look at how to calculate the GPA using a weighted average method:

  1. Sum the number of credits. 4 + 4 + 3 + 2 = 13, that was a really easy step.
  2. Take the value assigned to the grade and multiply it by the number of credits. In our case, it will be:
  • A · 4 credits = 4.0 · 4 = 16;
  • B · 4 credits = 3.0 · 4 = 12;
  • A · 3 credits = 4.0 · 3 = 12;
  • C · 2 credits = 2.3 · 2 = 4.6.
  1. Add all the values. 16 + 12 + 12 + 4.6 = 44.6.
  2. Divide the sum by the total number of credits. So, for our example, it's equal to 44.6/13 = 3.43

We may write the whole weighted average formula as:

(4 · 4 + 4 · 3 + 3 · 4 + 2.3 · 2) / (4 + 4 + 3 + 2) = 3.43

Let's compare this result to an average that is not weighted. Then we don't take the credits into account, and we divide the sum of grades by its total number.

(4 + 3 + 4 + 2.3) / 4 = 3.33

Notice how the weighted average changed. Sometimes it may be a really significant difference - like a grade difference or even whether you pass or fail your course.

Weighted average formula

Let's repeat what the weighted average formula looks like:

xˉ=w1x1+w2x2++wnxnw1+w2++wn\scriptsize \bar{x} \!=\! \frac{w_1x_1 + w_2x_2 + \ldots + w_nx_n}{w_1 + w_2 + \ldots + w_n}

But what does it mean? To figure out how to calculate a weighted average, we need to know the weight of each value. Typically, we present the weights in the form of a percentage or (in statistics) a probability of occurrence.

For example, let's suppose that exams, quizzes, and homework assignments all contribute to a class's grade. Each of the three exams is worth 25 percent of the grade, the quizzes are worth 15 percent, and the homework assignments are worth 10 percent. To calculate the average, you multiply the percentage by the grades and add them together. If the test scores are 75, 90, and 88, the quiz average is 70, and the homework grade is 86, the weighted average is as follows:

(0.25 · 75 + 0.25 · 90 + 0.25 · 88 + 0.15 · 70 + 0.10 · 86) / 1 = 82.35

Compare this to a non-weighted average of (75 + 90 + 88 + 70 + 86) / 5 = 81.8

In statistics, you will often encounter a discrete probability distribution that has values for x and their associated probabilities. Since the probabilities for each value of x will likely not all be the same, we can apply the weighted average formula. Simply multiply each x value by its probability of occurring and sum the values.

🙋 In case you need to estimate the geometric mean, Omni's geometric mean calculator will come in handy.

Weighted vs. unweighted GPA for high school

We often use a weighted average to calculate the so-called weighted GPA. It's a term that rarely appears in the context of college GPA (although college GPA is computed using a weighted average method, with courses credits as weights) but is usually used for high school GPA. Let's have a closer look at this topic.

The first thing we need to emphasize: you need to be precise about what you want to take into account during weighting - credits, course difficulty, or maybe both these factors?

Course difficulty is taken into account in most weighted GPA calculations. It rewards you for taking classes of a higher level by adding extra points to your grade. There are a couple of types of more demanding courses which influence your weighted GPA score:

  • AP Courses (Advanced Placement Courses) usually give you an additional 1 point to your standard GPA score;
  • IB Courses (International Baccalaureate Courses) are also rewarded with 1 extra point;
  • College Prep classes can also add 1 point to your grade; and
  • Honors Courses most often give you an additional 0.5 points (although you can find examples of schools where it's awarded with 1 point).

So, what are the options for weighing in High school GPA calculations? Let's define:

  1. Unweighted GPA, as the GPA where we DON'T care about course difficulty:

    a) and we DON'T care about course credits:

    High School GPA = Σ grade value / Σ courses

    b) and we DO care about course credits:

    High School GPA = Σ (grade value · credits) / Σ credits

  2. Weighted GPA, as the GPA where we DO care about course difficulty:

    a) and we DON'T care about course credits:

    High School GPA = Σ (weighted grade value) / Σ courses

    b) and we DO care about course credits:

    High School GPA = Σ (weighted grade value · credits)/ Σ credits

It may look a bit overwhelming, but let's have a look at a hypothetical results sheet, and everything should be clear:

Course

Grade

Maths

A

Physics

B+

Physics lab

C+

English

A-

  • 1 a) Unweighted GPA: we DON'T care about course difficulty and credits.

All the courses have the same grade scale and credits, no matter the course difficulty. So we may convert our grades into numbers:

Course

Grade

Scale

Maths

A

4.0

Physics

B+

3.3

Physics lab

C+

2.3

English

A-

3.7

Then, we can calculate the unweighted GPA as follows:

Unweighted High School GPA = Σ grade value / Σ courses

= (4.0 + 3.3 + 2.3 + 3.7) / 4 = 13.3 / 4 = 3.325 ≈ 3.33

Did you notice that it's a standard average? It's just summing all scores and dividing the result by the total number of observations (4 courses).

  • 1 b) Unweighted GPA: we DON'T care about course difficulty, but we DO care about credits.

Things are getting more complicated when we consider the course credits. Some sources ignore the course's credits for unweighted GPA scores, but others keep them. So, if your classes have some credits/points, you can calculate the weighted average of grades and credits (but still, it's not the thing we usually name the weighted GPA):

Course

Credits

Grade

Scale

Maths

0.5

A

4.0

Physics

1

B+

3.3

Physics lab

0.5

C+

2.3

English

1

A-

3.7

Then, the GPA will be equal to:

High School GPA = Σ (grade value · credits) / Σ credits

= (4.0 · 0.5 + 3.3 · 1 + 2.3 · 0.5 + 3.7 · 1) / (0.5 + 1 + 0.5 + 1)

= 10.15 / 3 = 3.38333… ≈ 3.38

The courses with higher credits value have better marks in our example, so the overall GPA is also higher.

  • 2 a) Weighted GPA: we DO care about course difficulty and DON'T care about course credits.

Depending on the course type, the letter grades are translated to different numerical values:

Letter Grade

Percentile

Regular GPA

Honors GPA

AP / IB / College Prep GPA

A+

97-100

4

4.5

5

A

93-96

4

4.5

5

A-

90-92

3.7

4.2

4.7

B+

87-89

3.3

3.8

4.3

B

83-86

3

3.5

4

B-

80-82

2.7

3.2

3.7

C+

77-79

2.3

2.8

3.3

C

73-76

2

2.5

3

C-

70-72

1.7

2.2

2.7

D+

67-69

1.3

1.8

2.3

D

65-66

1

1.5

2

F

Below 65

0

0

0

Continuing with our example, now our four classes have the course type assigned:

Course

Credits

Grade

Course Type

GPA Scale

Maths

0.5

A

Honors

4.5

Physics

1

B+

Regular

3.3

Physics lab

0.5

C+

Regular

2.3

English

1

A-

AP

4.7

As two courses are not standard classes, they get extra points (A from Maths - 4.5 instead of 4.0, as it's an Honors course, A- from English - 4.7 instead of 3.7, as it's an AP course).

The formula for the calculation of weighted GPA is:

Weighted High School GPA = Σ (weighted grade value) / Σ courses

= (4.5 + 3.3 + 2.3 + 4.7) / 4 = 14.8 / 4 = 3.7 ,

where weighted grade value is a:

  • grade value + 0 for Regular courses;
  • grade value + 0.5 for Honors courses; and
  • grade value + 1 for AP/IB/College Prep courses.

So we omitted the courses' credits, but we've considered the course's difficulty. And finally, we have

  • 2 b) Weighted GPA: we DO care about course difficulty and DO care about course credits.

So if you're taking into account both credits and course difficulty, then the result is:

Weighted High School GPA = Σ (weighted grade value · credits) / Σ credits

= (4.5 · 0.5 + 3.3 · 1 + 2.3 · 0.5 + 4.7 · 1) / (0.5 + 1 + 0.5 + 1) = 11.4 / 3 = 3.8

That wasn't so hard, was it?

Different averages: arithmetic, geometric, harmonic

Now that you understood what a weighted average is let's compare different averages. We've prepared for you a table that sums up all the important information about four different means:

Arithmetic Mean

Geometric Mean

Harmonic Mean

Weighted Mean (Weighted Arithmetic Mean)

Definition

Sum of observations divided by the total number of observations.

The 'n'th root product of 'n' observations.

The reciprocal of the arithmetic mean of the reciprocals of the given set of observations.

Numbers multiplied by a weight (based on relative importance), summed, divided by the sum of weights.

Examples: 4, 9

A=4+92=6.5A = \frac{4+9}{2} = 6.5

G=49=36=6G = \sqrt{4\cdot9} \\=\sqrt{36}=6

H=214+195.54H = \frac{2}{\frac{1}{4}+\frac{1}{9}} \approx 5.54

Additional info - weights. w1=3\small{w_1 = 3}, w2=1\small{w_2 = 1}: W=43+914=5.25W = \frac{4\cdot3 + 9\cdot1}{4}\\ = 5.25

Applications

Many different fields, e.g. economics, physics (e.g. mean free path), biology, history, everyday life, and health (e.g., mean arterial pressure).

"Business (investment, CAGR), math (rectangle area in terms of square side, analogically volume), signal processing (spectral flatness, choosing an aspect ratio)".

Many situations involving rates and ratios in physics (e.g., average speed), averaging multiples in finance (such as the price–earnings ratio)), geometry, chemistry, and computer science.

Education (GPA, final grades, average grades), finances (e.g., WACC - Weighted Average Cost of Capital).

Relationship

Arithmetic mean ≥ Geometric mean ≥ Harmonic mean (for non-negative data)

General formulas for means look as follows:

  • Arithmetic mean:
A=a1+a2++ann=1ni=1nai\scriptsize \qquad A = \frac{a_1+a_2+\ldots+a_n}{n} = \frac{1}{n}\sum^n_{i=1}a_i
  • Geometric mean:
G=x1x2xnn=(i=1nxi)1n\scriptsize \qquad G \!=\! \sqrt[n]{x_1\cdot x_2\cdot\ldots\cdot x_n} \!=\! \left(\prod^n_{i=1}x_i \right)^\frac{1}{n}
  • Harmonic mean:
H=n1x1+1x2++1xn= ni=1n1xi=(i=1nxi1n)1\scriptsize \qquad \begin{split} H \!&=\! \frac{n}{\frac{1}{x_1} + \frac{1}{x_2} + \ldots + \frac{1}{x_n}} \!=\!\ \frac{n}{\sum\limits^n_{i=1}\frac{1}{x_i}} \\&=\! \left(\frac{\sum\limits^n_{i=1}x_i^{-1}}{n} \right)^{\!\!\!-1} \end{split}
  • Weighted mean
xˉ=w1x1+w2x2++wnxnw1+w2++wn=i=1nwixii=1nwi\scriptsize \bar{x} \!=\! \frac{w_1x_1 + w_2x_2 + \ldots + w_nx_n}{w_1 + w_2 + \ldots + w_n} \!=\! \frac{\sum\limits^n_{i=1}w_ix_i}{\sum\limits^n_{i=1}w_i}

FAQ

How to calculate my weighted average if my course work is worth 40%?

Assuming that your test score is worth 60%, and the coursework and test scores are expressed as fractions of 100, follow these steps to calculate the weighted average:

  1. Multiply the coursework score by 2 and the test score by 3.
  2. Add the results together and divide by the total of the weights: 5.

How do I calculate weighted average?

To calculate the weighted average, follow these steps:

  1. Get the weight of each number.
  2. Multiply each number by its weight.
  3. Add all of the results from Step 2 together.
  4. Add all of the weights together.
  5. Divide the answer from Step 3 by the answer in Step 4.

How do I calculate the weighted average of my purchases?

If you purchased three products of different quantities:

  • 5 packs of acrylic paint at $19.99;
  • 3 packs of paint brushes at $13.99; and
  • 2 art canvases at $25.00.

Use the following steps to calculate the weighted average of your spending:

  1. Multiplying the price by the quantity:
    5 × 19.99 = $99.95
    3 × 13.99 = $41.97
    2 × 25.00 = $50
  2. Find the total spent:
    99.95 + 41.97 + 50 = $191.92
  3. Find the number of products sold:
    5 + 3 + 2 = 10
  4. Find the weighted average:
    191.92/10 = $19.19

What is the weighted averages of the cost of my stationary?

Assuming that you purchased:

  • 3 packs of pencils at $5 each;
  • 2 packs of paper at $10.00 each; and
  • 5 packs of pens at $15.00.

Your weighted average is $11.

To calculate this, we find the total amount of money spent by following these steps:

  1. Find the amount of money spent.
  2. Find the total amount of items purchased.
  3. Divide the answer in Step 1 by the answer in Step 2.

Mateusz Mucha and Hanna Pamuła, PhD
Values
#1
#2
#3
#4
#5
#6
#7
#8
Weights
#1
#2
#3
#4
#5
#6
#7
#8
Check out 75 similar arithmetic calculators ➗
Absolute changeAbsolute valueAdding and subtracting fractions… 72 more
People also viewed…

Matrix power

The matrix power calculator will quickly give you the desired exponent of your 2×2, 3×3, or 4×4 matrix. If you need it, it will even tell you what its diagonalization is (if it exists).

Modulo of negative numbers

Master the modulo of negative numbers with our calculator – simplify complex calculations instantly!

Schwarzschild radius

Calculate the gravitational acceleration at the event horizon of a black hole of a given mass using the Schwarzschild radius calculator.

Significant figures

The significant figures calculator performs operations on sig figs and shows you a step-by-step solution!