How can I calculate GPA in Excel?

Calculating GPA in Excel is a simple and efficient method for determining academic performance. To calculate GPA, one must first convert the letter grades into their numerical equivalents using the standard grading scale (i.e. A=4, B=3, C=2, D=1, F=0). Next, multiply the numerical grade by the corresponding credit hours for each course. Then, add all the resulting values together and divide by the total number of credit hours. The resulting number is the GPA. By utilizing the mathematical functions and formulas in Excel, this process can be easily automated and provide accurate results. This feature makes Excel a useful tool for students, educators, and administrators in tracking and analyzing academic progress.

Calculate GPA in Excel (With Example)


Often you may want to calculate your GPA in Excel based on the grades you received in various classes and the number of credits that each class was worth.

For example, suppose you would like to calculate your GPA based on the following information:

Fortunately this is easy to do using the SWITCH and SUMPRODUCT functions in Excel and the following step-by-step example shows how to do so.

Step 1: Enter Your Grades

First, enter the grades you received along with the number of credits that each class was worth:

Step 2: Calculate Points Received for Each Class

Next, we need to assign the number of points received for each class based on the letter grade by using the following logic:

  • A = 4 points
  • B = 3 points
  • C = 2 points
  • D = 1 point
  • F = 0 points

We can type the following formula into cell D2 to do so:

=SWITCH(B2,"A",4,"B",3,"C",2,"D",1,"F",0)

We can then click and drag this formula down to each remaining cell in column D:

Step 3: Calculate GPA

Lastly, we can type the following formula into cell B7 to calculate the overall GPA:

=SUMPRODUCT(D2:D5,C2:C5)/SUM(C2:C5)

calculate GPA in Excel

The overall GPA for this particular student turns out to be 3.25.

Note: In this particular example we calculated the GPA based on four different classes, but these same formulas will work with any number of classes you’d like to use.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

x