Quick Answer
How to calculate GPA: multiply each course’s grade points by its credit hours, add all those quality points together, then divide by your total credit hours.
The formula: GPA = Total Quality Points รท Total Credit Hours.
Retakes, failures, transfer credits, and excluded grades can all change the result โ your institution’s policies decide which. This guide walks through the calculation, the edge cases, and the fastest ways to do it.
Jump to a Section
Not sure which method fits your situation? One semester with a handful of courses โ use the 5-step method or just plug numbers into the calculator. A full transcript or many semesters โ the SUMPRODUCT method in a spreadsheet is faster and less error-prone. Trying to figure out what grades you need going forward โ the Target GPA Planner works backward from your goal.
Free Interactive GPA Calculator
Enter your grades and credit hours for an instant result. Results update as you type โ no page refresh.
๐ GPA Calculator
Enter your courses, grades, and credit hours. Your GPA updates as you type.
Your GPA
โ
Choose a grade for each course to see your GPA.
Uses the standard 4.0 scale with plus/minus grades: A = 4.0, Aโ = 3.7, B+ = 3.3, B = 3.0, Bโ = 2.7, C+ = 2.3, C = 2.0, Cโ = 1.7, D+ = 1.3, D = 1.0, Dโ = 0.7, F = 0.0. P/S, W, I and AU grades are not counted. Some schools use different scales (for example A+ = 4.3, or no plus/minus grades), so always verify your institution's policy. See other GPA scales.
Once you have your GPA:
Prefer a spreadsheet? We have a free template that uses the SUMPRODUCT method below: Download the Excel GPA Calculator โ
GPA Calculation Formula
GPA = Total Quality Points รท Total Credit Hours
Where:
- Quality Points = Grade Points ร Credit Hours (for each course)
- Total Quality Points = the sum of every course’s quality points
- Total Credit Hours = the sum of every course’s credits
This is the standard formula used by US colleges and universities for semester GPA and cumulative GPA โ the registrars at the University of Montana and the University of Southern Indiana, for example, both document it this way. Some sources also call the cumulative figure total GPA โ the two terms mean the same thing.
How to Calculate GPA: The 5-Step Method
This is the process most US institutions use. It works whether you are calculating one semester or your entire academic career.
Step 1: List all courses and their credit hours
Write down every course you are including and its credit value. A 4-credit course affects your GPA more than a 1-credit course โ credit hours are the weights in the calculation.
Step 2: Convert each letter grade to grade points
Use your institution’s grade-point scale. On the standard US 4.0 scale with plus/minus grades:
| Letter Grade | Grade Points |
|---|---|
| A | 4.0 |
| Aโ | 3.7 |
| B+ | 3.3 |
| B | 3.0 |
| Bโ | 2.7 |
| C+ | 2.3 |
| C | 2.0 |
| Cโ | 1.7 |
| D+ | 1.3 |
| D | 1.0 |
| Dโ | 0.7 |
| F | 0.0 |
This is one common pattern, not a universal one. The University of Southern Indiana, for instance, uses no minus grades at all and different plus values: A = 4.0, B+ = 3.5, B = 3.0, C+ = 2.5, C = 2.0, D+ = 1.5, D = 1.0. Some schools use a 5.0 weighted scale for AP/IB/Honors, and A+ is sometimes 4.0, sometimes 4.3. Always check your institution’s official grading scale before calculating. For the full range of scales, see GPA Scales Explained.
Step 3: Multiply grade points by credit hours
This gives you the quality points for that course. For example, an A in a 3-credit course = 4.0 ร 3 = 12.0 quality points.
Step 4: Add all quality points and all credit hours
Sum the quality points from every course. Separately, sum the credit hours from every course.
Step 5: Divide total quality points by total credit hours
The result is your GPA. Round to two or three decimals unless your institution specifies otherwise.
Worked Example: A Full Transcript
A student took four courses in one semester. Here is the calculation:
| Course | Credits | Grade | Grade Points | Quality Points |
|---|---|---|---|---|
| Mathematics | 3 | A | 4.0 | 4.0 ร 3 = 12.0 |
| English Composition | 3 | B+ | 3.3 | 3.3 ร 3 = 9.9 |
| Chemistry (with lab) | 4 | B | 3.0 | 3.0 ร 4 = 12.0 |
| History | 2 | Aโ | 3.7 | 3.7 ร 2 = 7.4 |
| Totals | 12 | 41.3 |
Semester GPA
41.3 รท 12 = 3.44
This student’s semester GPA is 3.44.
Two-Semester Example: Cumulative GPA
To calculate a cumulative GPA across multiple semesters, combine all quality points and all credit hours from every term, then divide once. Suppose the student above also completed a second semester:
| Semester | Quality Points | Credit Hours |
|---|---|---|
| Fall | 41.3 | 12 |
| Spring | 36.8 | 14 |
| Total | 78.1 | 26 |
Cumulative GPA = 78.1 รท 26 = 3.00.
Common mistake: do not average the two semester GPAs โ (3.44 + 2.63) รท 2 = 3.04 gives a different, wrong answer because the semesters carry different credit hours. Combine quality points and credits first, then divide once.
How to Calculate GPA from Percentage or Marks
If your school reports grades as percentages or marks rather than letters, convert them to letter grades first using your school’s scale, then apply the standard GPA formula. The table below shows one common pattern used by many US high schools.
| Percentage | Letter Grade | Grade Points |
|---|---|---|
| 90โ100% | A | 4.0 |
| 80โ89% | B | 3.0 |
| 70โ79% | C | 2.0 |
| 60โ69% | D | 1.0 |
| Below 60% | F | 0.0 |
Example: a 75% in a 3-credit course is a C, worth 2.0 grade points. 2.0 ร 3 = 6.0 quality points.
Important: percentage bands are not universal. The College Board’s own example table for US high schools sets the cut-offs differently โ D is 66โ69%, and anything below 65% is an F โ and it explicitly says its chart is only one commonly used system, not a formula for your true GPA. A 75% in the UK may be a First Class Honours while a 75% on a US scale is typically a C. Use your institution’s official scale. For more detail, see Percentage to GPA Conversion โ
Faster Method: SUMPRODUCT in Excel or Google Sheets
If you have many courses, doing the arithmetic by hand is slow and error-prone. Excel and Google Sheets have a function that does the whole thing in one formula โ SUMPRODUCT. It multiplies grade points by credit hours for every row at once, sums the results, then divides by the total credits.
Excel / Google Sheets
=SUMPRODUCT(grade_points_range, credit_hours_range) / SUM(credit_hours_range)
Replace both ranges with your actual cell references.
Using the worked example above โ grade points in column D, credits in column B (headers in row 1):
Formula using the sample data
=SUMPRODUCT(D2:D5, B2:B5) / SUM(B2:B5)
This returns 3.44 โ the same answer as the manual calculation.
Important for excluded courses: SUMPRODUCT treats non-numeric cells (such as a text grade code) as zero, but SUM still adds up their credits. If your transcript includes W (withdrawal), P (pass), AU (audit), or NG (no grade reported) courses, exclude those rows from both ranges โ or set their credit hours to 0 โ so their credits do not inflate the denominator. Only graded courses belong in a GPA calculation.
For a full walkthrough of the Excel method, including formulas and pitfalls, see: How to Calculate GPA in Excel โ
What Ifโฆ? Scenarios That Change the Calculation
Knowing the formula is not enough. Real transcripts contain retakes, failures, transfers, and excluded grades โ and each institution handles them differently. Here is what to check.
What if I retake a course?
Three policies are common. Your institution’s catalog will state which one applies:
| Policy | How It Affects GPA |
|---|---|
| Grade replacement | Only the new grade counts. The old grade may remain on the transcript but is excluded from the calculation. |
| Grade averaging | Both attempts count. Credits are counted twice, and both grades are included. |
| Highest grade | Only the higher of the two grades counts toward the GPA. |
Action: search your institution’s catalog for “repeat policy” or “grade replacement.” The University of Montana, for example, only counts the most recent grade earned toward the cumulative GPA when a course is repeated โ a grade-replacement policy, not averaging.
What if I fail a class?
An F earns 0 grade points, but the credit hours still count in the denominator (the University of Southern Indiana registrar states this explicitly). This means the F pulls your GPA down more sharply than a low but passing grade would.
Example: 12 credits, one 3-credit F (0.0). If the other 9 credits produced 33 quality points, the calculation is 33 รท 12 = 2.75. If the F course were excluded entirely, the same 33 quality points would divide by 9 credits = 3.67. The F costs over 0.9 GPA points.
Action: check whether your institution has a grade-forgiveness or academic-forgiveness policy that allows you to retake the course and replace the F.
What if I transfer schools?
At most institutions, transfer credits appear on your transcript as credit earned, but they do not carry the original grades and do not affect your new institution’s GPA โ the University of Southern Indiana, for example, counts accepted transfer courses in earned hours but excludes them from GPA hours, quality points, and GPA. The University of Montana follows the same principle. Your new GPA is calculated only from coursework completed at the new school. Graduate programs may request all transcripts and recalculate a combined GPA of their own.
Which grades are excluded, and how do pass/fail and incompletes work?
Non-graded course codes are normally excluded from GPA calculation. The University of Southern Indiana registrar, for example, records no points and no attempted hours for P, NP, S, U, IN, and W, while an F counts. The University of Montana likewise excludes pass/fail courses from cumulative GPA. Common examples:
| Code | Meaning | Effect on GPA |
|---|---|---|
| P / S | Pass / Satisfactory | Usually excluded; credits count toward graduation |
| W | Withdrawal | Excluded |
| I | Incomplete | Temporarily excluded; converts to a final grade if unresolved |
| AU | Audit | Excluded |
| NG | No Grade Reported | Excluded until resolved |
Two important exceptions to check: some institutions do count a failing grade in a pass/fail course as an F. And an incomplete that is not resolved by the deadline typically converts to a failing grade. Confirm both with your registrar.
How to Calculate GPA in Your Country
Grading systems differ by country and institution. If your transcript uses a scale other than the US 4.0, use the country-specific guide below.
How to calculate GPA โ
Nepal
How to calculate GPA โ
South Africa
How to calculate GPA โ
Pakistan
How to calculate GPA โ
India
How to calculate GPA โ
Bangladesh
How to calculate GPA โ
Kenya
How to calculate GPA โ
Nigeria
How to calculate GPA โ
Ghana
How to calculate GPA โ
Papua New Guinea
How to calculate GPA โ
For a full comparison of grading systems across 22 countries โ including conversion tables and how to compare international grades โ see GPA Around the World โ
Planning a Target GPA
If you know where you want your cumulative GPA to end up, you can work backward to see what grades you need in future courses. Use the calculator below:
The math behind it:
(Current GPA ร Current Credits) + (Future GPA ร Future Credits) = Target GPA ร Total Credits
Solve for the “Future GPA” you need across the remaining credits.
Example: current GPA 3.2, 60 credits completed, target 3.5 with 60 credits remaining.
- Target quality points = 3.5 ร 120 = 420
- Current quality points = 3.2 ร 60 = 192
- Future quality points needed = 420 โ 192 = 228
- Future GPA needed = 228 รท 60 = 3.80
The larger your existing credit count, the harder a target becomes. A single C moves a GPA built on 30 credits much more than one built on 120. This is why planning early matters.
When the target is impossible: if the required future GPA is higher than the maximum on your scale (typically 4.0, or 5.0 on a weighted scale), the target cannot be reached by earning new grades alone. In that case, options include retaking past courses under a grade-replacement policy (if your school has one), or adjusting the goal to something attainable. Talk to your academic advisor.
Common GPA Calculation Mistakes
These are the errors that most often produce a wrong number.
- Forgetting credit hours entirely. The single biggest mistake. GPA is a weighted average โ a 4-credit course affects it four times as much as a 1-credit course.
- Using the wrong grade-point mapping. Some schools assign Aโ = 3.7, others don’t use plus/minus at all, and some use a 4.3 scale for A+. Confirm the mapping before calculating.
- Choosing the wrong scale. Applying 4.0 values to a 5.0 weighted scale produces a meaningless number. Know which scale you are on.
- Averaging semester GPAs directly. If your two semester GPAs are 3.44 and 2.63, the cumulative is not their average unless the credit hours were identical. Combine all quality points and all credits, then divide once.
- Ignoring the school’s repeat policy. Whether your school replaces or averages the grade can shift your GPA by several tenths of a point.
- Mixing weighted and unweighted values in the same calculation. Weighted and unweighted GPAs measure different things and cannot be averaged together.
Quick checklist
- โ List every course and its credit hours
- โ Confirm which grade-point scale your institution uses
- โ Convert every letter grade to grade points
- โ Multiply each grade point by its credit hours
- โ Sum all quality points and all credit hours separately
- โ Divide quality points by credit hours
- โ Cross-check with the GPA calculator above
โFrequently Asked Questions
Does a failed class count toward my GPA? โผ
Yes. An F earns 0 grade points but the credit hours still count in the denominator, so it lowers your GPA. Some institutions allow you to retake the course and replace the F โ check your school’s grade-forgiveness policy.
If I retake a class, does the old grade disappear? โผ
Depends on your school’s policy. Some replace the old grade in the GPA calculation; some average both; some count only the higher grade. The old grade typically remains on your transcript either way, even when excluded from the GPA.
Is cumulative GPA different from semester GPA? โผ
Yes. Semester GPA covers one term. Cumulative GPA covers every term. To calculate cumulative GPA, combine all quality points and all credit hours from every semester, then divide once. Do not average the semester GPAs themselves. (Some sources call this the total GPA โ same thing.)
How do I calculate a weighted GPA? โผ
Assign extra grade points for advanced courses (e.g., A in AP = 5.0, A in Honors = 4.5, A in regular = 4.0), then use the same formula: total quality points รท total credit hours. Weighted and unweighted GPAs should never be averaged together.
Do transfer credits affect my new school’s GPA? โผ
At most institutions, no. Transfer credits appear on the transcript as credit earned but the original grades do not enter the new school’s GPA. Graduate programs may request all transcripts and recalculate their own combined GPA.
Are Pass/Fail courses included in my GPA? โผ
Usually not โ a passing P/S grade is excluded from GPA calculation. But a failing grade in a pass/fail course often still counts as an F. Check your institution’s specific policy.
Can GPA be rounded? โผ
Most institutions round to two or three decimal places, but a few truncate. Never assume โ check your registrar’s policy, because rounding can affect honors eligibility and scholarship thresholds.
Can I calculate GPA without a calculator? โผ
Yes โ the five-step method above works with pen and paper. For anything larger than four or five courses, the SUMPRODUCT method in Excel or Google Sheets is faster and less error-prone.
How is GPA calculated in university vs. high school? โผ
The formula is the same. High schools often use a weighted 5.0 scale for AP/IB/Honors; most universities use the unweighted 4.0 scale for the GPA that appears on your transcript. Universities also have more complex policies on retakes, transfers, and excluded grades. For level-specific walkthroughs, see our guides to calculating high school GPA, college GPA, and graduate school GPA.
Is total GPA the same as cumulative GPA? โผ
Yes. “Total GPA” and “cumulative GPA” both refer to the GPA across every graded course you have taken, calculated by dividing total quality points by total credit hours. Some institutions use one term, some use the other.
Next Steps
Calculating GPA comes down to one formula: multiply grade points by credit hours, sum, divide. What makes the calculation accurate is knowing your institution’s policies on retakes, failures, transfers, and excluded grades.
Verify the calculation with your registrar before using it for anything official โ applications, scholarship forms, or graduation audits.

Christian Chinonso is the founder of LearnViaHub, with 6+ years of research experience in international education โ including GPA systems, scholarships, student financing, and study-abroad guidance โ for students worldwide.