ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. How to Make a GPA Calculator in Excel

How to Make a GPA Calculator in Excel

By ExcelReady Team·Updated November 3, 2026·7 min read

The short answer

To make a GPA calculator in Excel, list each course with its credits and letter grade, turn each grade into grade points with XLOOKUP from a small scale table, then divide the credit-weighted points by the total credits: =SUMPRODUCT(B2:B6,D2:D6)/SUM(B2:B6). Wrap it in ROUND(...,2) to show a GPA such as 3.52.

Key takeaways

  • GPA is a weighted average: each course's grade points count in proportion to its credits.
  • Keep the grade scale in its own table and look points up with XLOOKUP, so you can change the scale in one place.
  • =SUMPRODUCT(credits, points)/SUM(credits) gives the GPA in one formula.
  • A plain AVERAGE of the grade points ignores credits and usually gives the wrong GPA.
  • For a cumulative GPA, add up quality points and credits across terms; don't average the term GPAs.
On this page+
  1. How GPA is calculated
  2. Step 1: Set up the course list and grade scale
  3. Step 2: Look up grade points with XLOOKUP
  4. Step 3: Calculate the GPA with SUMPRODUCT
  5. Why a simple AVERAGE gives the wrong GPA
  6. How to calculate a cumulative GPA
  7. Make the GPA calculator easier to use
  8. Practise it

A GPA calculator in Excel needs three things: a list of courses with credits and letter grades, a grade scale, and one formula that weights each grade by its credits. GPA (grade point average) is a weighted average, so a 4-credit course counts more than a 2-credit one. This guide builds the calculator with XLOOKUP for the grade points and SUMPRODUCT for the GPA, then shows how to combine terms into a cumulative GPA. It works for students, parents and school staff.

How GPA is calculated#

Each letter grade is worth a number of grade points, and each course is worth a number of credits. Multiply them to get quality points for each course, add up the quality points, and divide by the total credits:

Excel formula
GPA = (credits × grade points, added up) / total credits

Many schools use a 4.0 scale. The scale below is an example; the points for plus and minus grades vary, so always use the one your school publishes.

GradePointsGradePoints
A4.0C+2.3
A-3.7C2.0
B+3.3C-1.7
B3.0D1.0
B-2.7F0.0

Some schools also report a weighted GPA, which adds extra points for harder courses, such as honours classes. The rules differ from school to school. If yours uses one, add a column for the bonus points and include it in the points before you multiply by credits; the rest of the calculator stays the same. A GPA without bonus points is called unweighted, and it is what this guide calculates.

Step 1: Set up the course list and grade scale#

Put one course per row, and keep the grade scale in its own two columns to the side. That way, if the scale changes, you edit it once.

ABCD
1CourseCreditsGradePoints
2Calculus4B+
3English3A
4Chemistry4B
5History3A-
6Art2A

Type the scale into G1:H11: the heading Grade in G1 and Points in H1, then the ten grades in G2:G11 and their points in H2:H11.

Step 2: Look up grade points with XLOOKUP#

XLOOKUP finds a value in one column and returns the matching value from another. In D2:

Excel formula
=XLOOKUP(C2,$G$2:$G$11,$H$2:$H$11)

It finds B+ in the grade list and returns 3.3. Fill it down to D6 (Windows: Ctrl+D; Mac: ⌘D). The $ signs keep the scale fixed while C2 changes to C3, C4 and so on. XLOOKUP looks for an exact match by default, so "A-" won't be mistaken for "A".

XLOOKUP needs Excel 2021 or Microsoft 365. In older versions, use:

Excel formula
=VLOOKUP(C2,$G$2:$H$11,2,FALSE)

The XLOOKUP function guide covers the optional arguments, and the article on how to use XLOOKUP has more worked examples. If you start from percentage marks instead of letters, the guide to the Excel grade formula turns marks into letters first.

Step 3: Calculate the GPA with SUMPRODUCT#

SUMPRODUCT multiplies two ranges row by row and adds the results. That is exactly the "credits × points, added up" part of the GPA. In F2:

Excel formula
=SUMPRODUCT(B2:B6,D2:D6)/SUM(B2:B6)
CourseCreditsPointsQuality points
Calculus43.313.2
English34.012.0
Chemistry43.012.0
History33.711.1
Art24.08.0
Total1656.3

The GPA is 56.3 ÷ 16 = 3.51875. Most schools report two decimals, so wrap it in ROUND:

Excel formula
=ROUND(SUMPRODUCT(B2:B6,D2:D6)/SUM(B2:B6),2)

The result is 3.52. The SUMPRODUCT function guide explains the syntax, and the SUMPRODUCT article shows other uses, such as conditional totals.

Why a simple AVERAGE gives the wrong GPA#

=AVERAGE(D2:D6) returns 3.6, not 3.52. AVERAGE gives every course the same weight, so the 2-credit Art class counts as much as the 4-credit Calculus class. Because Art was an A and Calculus a B+, the plain average comes out too high.

This is the same idea as any weighted average: a grade, price or score that covers more units should count more. The guide to weighted averages in Excel explains it with other examples.

If you'd rather not use SUMPRODUCT, add a helper column E with =B2*D2, fill it down, and divide: =SUM(E2:E6)/SUM(B2:B6). It gives the same 3.51875, and the SUM lesson covers adding up a range.

How to calculate a cumulative GPA#

A cumulative GPA covers every term so far. Add the quality points from all terms and divide by all the credits. Don't average the term GPAs, unless every term had exactly the same credits.

TermCreditsQuality pointsTerm GPA
Fall1236.03.00
Spring1656.33.52

With credits in B2:B3 and quality points in C2:C3:

Excel formula
=ROUND(SUM(C2:C3)/SUM(B2:B3),2)

The cumulative GPA is 92.3 ÷ 28 = 3.30. Averaging the two term GPAs would give 3.26, which is wrong because Spring had more credits.

Make the GPA calculator easier to use#

A few small touches make the sheet reliable for a whole year:

  • Drop-down grades. Use Data > Data Validation > List with the scale range as the source, so nobody types "B +" with a space. A typo makes XLOOKUP return #N/A.
  • Room to grow. Point the formulas at more rows than you need, such as B2:B20. Empty rows add nothing to SUMPRODUCT or SUM. If you fill the points column into empty rows too, use =IF(C2="","",XLOOKUP(C2,$G$2:$G$11,$H$2:$H$11)) so blank grades don't return #N/A.
  • Pass/fail courses. These usually don't count towards GPA. Leave them off the list, or exclude their credits with SUMIF.
  • Show the inputs. Keep the scale visible so anyone checking the GPA can see the points used.

Teachers who track many students can build on the same ideas in a gradebook in Excel.

Practise it#

A GPA calculator uses two everyday skills: looking up a value and adding up a range. Practise XLOOKUP in a live spreadsheet to turn grades into points, then practise the SUM function to total credits and quality points. Each lesson checks your formula instantly, and the exercise on this page calculates a real GPA.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Credits are in B2:B6 and grade points in D2:D6. In F2, work out the GPA: SUMPRODUCT of credits and points, divided by the SUM of credits, rounded to 2 decimal places.

fx
ABCDEFG
1
Course
Credits
Grade
Points
2
Calculus
4
B+
3.3
GPA
3
English
3
A
4
4
Chemistry
4
B
3
5
History
3
A-
3.7
6
Art
2
A
4
7
8
9

Tip: SUMPRODUCT(B2:B6,D2:D6) multiplies each credit by its points and adds them up. Divide by SUM(B2:B6), then wrap it all in ROUND(...,2).

Practise this in a lesson

LessonXLOOKUPLook up in any direction with XLOOKUP and show a friendly message when nothing matches.LessonSUM and AutoSumAdd up a column of numbers with SUM, then let AutoSum write the formula for you.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.Function guideXLOOKUPXLOOKUP explained with real examples: exact matches, looking left and custom not-found messages, plus a live exercise to try now.

Frequently asked questions

How do you calculate GPA in Excel?

+

Multiply each course's grade points by its credits, add those up, and divide by the total credits. In one formula: =SUMPRODUCT(B2:B6,D2:D6)/SUM(B2:B6), where B holds credits and D holds grade points.

How do I convert letter grades to grade points in Excel?

+

Make a two-column scale table with each letter and its points, then use =XLOOKUP(C2,$G$2:$G$11,$H$2:$H$11). In older Excel, use =VLOOKUP(C2,$G$2:$H$11,2,FALSE).

Why is my Excel GPA different from a simple average?

+

A simple AVERAGE treats every course as equal. GPA weights each course by its credits, so a 4-credit course counts twice as much as a 2-credit one. Use SUMPRODUCT divided by SUM instead.

How do I calculate cumulative GPA in Excel?

+

Add the quality points (credits × grade points) from every term and divide by the total credits from every term. Averaging the term GPAs is only right when every term has the same number of credits.

What grading scale should I use?

+

Use the scale your school publishes. Many use a 4.0 scale where A is 4.0 and B is 3.0, but the points for plus and minus grades differ between schools, which is why the scale belongs in its own table.

Sources

  • SUMPRODUCT function - Microsoft Support
  • XLOOKUP function - Microsoft Support
  • ROUND function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How GPA is calculated
  2. Step 1: Set up the course list and grade scale
  3. Step 2: Look up grade points with XLOOKUP
  4. Step 3: Calculate the GPA with SUMPRODUCT
  5. Why a simple AVERAGE gives the wrong GPA
  6. How to calculate a cumulative GPA
  7. Make the GPA calculator easier to use
  8. Practise it

Keep reading

Math· 6 min read

How to Calculate a Weighted Average in Excel

To calculate a weighted average in Excel, multiply each value by its weight, add the results, and divide by the total of the weights: =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5). B2:B5 holds the values and C2:C5 the weights. Dividing by SUM keeps the answer right even when the weights don't add up to 100%.

Projects· 7 min read

Build a Gradebook in Excel

To build a gradebook in Excel, list students in column A and one assignment per column. AVERAGE gives each student's mean score, or SUMPRODUCT with a row of weights gives a weighted mark. IFS turns the mark into a letter grade, for example 90 or more is an A. AVERAGE, MIN and MAX under each column summarise the class.

Logic· 6 min read

Letter Grade Formula in Excel: IFS or a Lookup Table

To turn scores into letter grades in Excel, use IFS and test the highest grade first: =IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F"). For a scale you may change, put the minimum score for each grade in a sorted table and use VLOOKUP with TRUE: =VLOOKUP(B2,$E$2:$F$6,2,TRUE).

More on projects

  • Build a Habit Tracker in Excel With Checkmarks and Streaks
  • Make an Inventory Tracker in Excel
  • Create an Invoice in Excel With Formulas
  • How to Build an Issue Log in Excel With Status and Aging
  • Build a Job Application Tracker in Excel
  • Build a Simple KPI Summary Sheet in Excel
All projects articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free