Home / Guides / How to Calculate GPA in Excel or Google Sheets
THE STUDENT NOTEBOOK

How to Calculate GPA in Excel or Google Sheets

Create a credit-weighted GPA worksheet with SUMPRODUCT, check excluded grades and prevent divide-by-zero or mismatched-range errors.

Create a credit-weighted GPA worksheet with SUMPRODUCT, check excluded grades and prevent divide-by-zero or mismatched-range errors.

Create a small, auditable worksheet

Use one row per included course. Put the course name in column A, credits in B and numeric grade points in C. Keep the school’s grade-point table on a separate sheet so the conversion from letter grades can be checked.

For a first example, enter three courses with credits 3, 4 and 2 and points 4, 3 and 2. You should get 28 quality points across 9 credits, giving approximately 3.1111. Verify this example before using a longer real course list.

Use SUMPRODUCT for the weighted average

For rows 2 through 4, use =SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4). SUMPRODUCT multiplies each pair of credits and grade points, then adds those products. The denominator adds the included credits.

To prevent a blank worksheet from showing a division error, a simple version is =IF(SUM(B2:B4)=0,"",SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4)). Depending on locale, your spreadsheet may use semicolons instead of commas as argument separators.

Exclude grades consistently

Do not leave the grade-point cell blank for an excluded course while retaining its credits in the denominator. The numerator may effectively treat that row as zero, which can lower the result incorrectly. Remove the excluded row from both sides of the calculation or use an explicit inclusion column.

An F is different: enter numeric 0 grade points and keep its GPA credits. Store numbers as numeric values rather than text labels such as “4 points,” and verify any lookup formula against the official grading table.

Keep formula ranges aligned

The two SUMPRODUCT ranges must cover matching course rows, and the SUM denominator must refer to those same included credits. Adding a new course below the final formula range can silently leave it out. A structured table or carefully extended ranges can help.

Do not include subtotal rows alongside the original course rows, which double-counts the same work. Check each displayed total against the worksheet’s included records after adding, deleting or filtering courses.

Display precision without changing the underlying values

Use number formatting to show the desired decimals while retaining the full calculation internally. Rounding each course or semester before combining them can introduce avoidable differences. If official reporting requires truncation, apply that only as instructed.

You can compare the worksheet with the online semester tool using the same inputs. A match confirms the arithmetic under those assumptions; it does not prove the selected courses and grading policy match your institution’s official record.

Quick comparison

Question Use this approach
One term of course grades Semester GPA calculator
Earlier GPA plus new work Cumulative GPA calculator
Required future average Target GPA calculator

Frequently asked questions

Does this formula work in Google Sheets?

SUMPRODUCT and SUM are available there as well. Verify locale separators and numeric inputs.

Should I average the GPA column for semesters?

Only if every semester has equal included credits. Otherwise use a credit-weighted SUMPRODUCT calculation.

Put the method into practice

Write down the inputs and the rule you are using before calculating. Check the result with a small example, preserve intermediate precision and label future grades as estimates. For official decisions, use the transcript and the institution’s current instructions.

Keep learning: GPA formula guide · weighted and unweighted GPA · GPA credit hours · all student guides.