Skip to main content
Back to the library

GPA Guides

How to Calculate GPA: Formula, Steps and Examples

The GPA formula, a step-by-step worked example with credit hours, and how to handle weighted classes, cumulative GPA and rounding.

Published January 1, 2025Reviewed October 26, 2026 6 min readBy The GPA Calculator Editorial Team
How to Calculate GPA: Formula, Steps and Examples

To calculate GPA, turn each letter grade into grade points (A = 4.0, B = 3.0, C = 2.0, D = 1.0, F = 0.0 on the usual 4.0 scale), multiply each by the class's credit hours, add those results, and divide by your total credit hours. For example, an A in a 3-credit class (12 points) and a B in a 4-credit class (12 points) give 24 ÷ 7 = 3.43.

That is the whole method. The rest of this guide walks through a full semester, shows what changes for weighted classes and cumulative GPA, and covers the mistakes that most often throw the number off.

The GPA formula

Quality points for a class = grade points × credit hours
GPA = total quality points ÷ total credit hours

"Quality points" is the name most registrars use for grade points multiplied by credits. The University of Notre Dame, for example, publishes exactly this method: grade value times credit hours for each class, then the sum of quality points divided by the credit hours attempted.

One thing to know up front: every school publishes its own grade-point table and its own rules for which classes count. Your school's catalog or student handbook has the final word. The values below are the most common ones, and the method works the same way no matter which table you use.

Step-by-step example: one semester

Here is a fictional student, Maya, with five classes:

ClassGradeGrade pointsCreditsQuality points
EnglishA4.034.0 × 3 = 12.0
BiologyB+3.343.3 × 4 = 13.2
CalculusB3.043.0 × 4 = 12.0
HistoryA−3.733.7 × 3 = 11.1
PEA4.014.0 × 1 = 4.0
Total1552.3

Step 1: Convert each letter to grade points. Use your school's scale. Maya's school uses the common plus/minus table (A− = 3.7, B+ = 3.3).

Step 2: Multiply by credits. Biology is a 4-credit class, so its B+ is worth 3.3 × 4 = 13.2 quality points.

Step 3: Add the quality points. 12.0 + 13.2 + 12.0 + 11.1 + 4.0 = 52.3.

Step 4: Add the credits. 3 + 4 + 4 + 3 + 1 = 15.

Step 5: Divide. 52.3 ÷ 15 = 3.4867, which rounds to 3.49.

Notice that the 1-credit PE class barely moves the result, while the two 4-credit classes pull hardest. That is exactly what credit weighting is meant to do. For more on why, see how credit hours weight your GPA.

The common 4.0 grade-point table

LetterPointsLetterPoints
A+ / A4.0C2.0
A−3.7C−1.7
B+3.3D+1.3
B3.0D1.0
B−2.7D−0.7
C+2.3F0.0

UC Davis uses exactly these values, with A+ capped at 4.0. Notre Dame uses thirds instead (A− = 3.667, B+ = 3.333) and does not list a D+ or D−. Small differences like these explain many "why is my GPA slightly off" questions. The full table, plus the percentage ranges many schools attach to each letter, is in our letter grade to GPA conversion guide.

When every class has the same credits

Many high schools give every semester class the same credit. In that case, credits cancel out and GPA is a plain average of the grade points.

Example: A, B, B, C, A → (4 + 3 + 3 + 2 + 4) ÷ 5 = 16 ÷ 5 = 3.20.

If your classes carry different credits, do not use the shortcut. Averaging Maya's five grade points without credits gives (4.0 + 3.3 + 3.0 + 3.7 + 4.0) ÷ 5 = 3.60, which overstates her real 3.49 because her strongest grade (PE) carries the fewest credits.

Weighted classes (Honors, AP, IB)

A weighted GPA adds bonus points for harder classes before you multiply by credits. A common system adds +0.5 for Honors and +1.0 for AP, IB or dual-enrollment classes, which lets a weighted GPA go above 4.0.

If Maya's Biology class were Honors, her B+ would count as 3.3 + 0.5 = 3.8:

  • New Biology quality points: 3.8 × 4 = 15.2
  • New total: 52.3 − 13.2 + 15.2 = 54.3
  • Weighted GPA: 54.3 ÷ 15 = 3.62

Bonus sizes and eligible classes vary by school, so check your handbook. The weighted vs. unweighted GPA guide explains how colleges read each one.

Cumulative GPA: adding a new term

Your cumulative GPA covers every term so far. Do not average your term GPAs; combine the totals instead.

Suppose Maya already had 30 credits with a 3.20 GPA before this semester:

  1. Past quality points: 3.20 × 30 = 96.0
  2. Add this term: 96.0 + 52.3 = 148.3 quality points
  3. Add credits: 30 + 15 = 45
  4. Cumulative GPA: 148.3 ÷ 45 = 3.30

A simple average of 3.20 and 3.49 would give 3.35, which is too high because the earlier, lower GPA covers twice as many credits. The semester to cumulative GPA guide covers this in depth, including how to work out the GPA you need next term.

Grades that usually don't count

These marks normally earn no grade points and add no credits to the GPA calculation, so leave them out of both totals:

  • Pass/fail (P, S, CR): credit toward graduation, but no effect on GPA. A failing grade under pass/fail is treated differently at some schools. See how pass/fail grades affect GPA.
  • Withdrawals (W): usually shown on the transcript with no GPA effect.
  • Incompletes (I): left out until the final grade is posted.
  • Audits: no credit, no grade points.

An F, by contrast, counts: 0 quality points, but its credits still go into the total. That is why one F hurts so much.

Repeated classes depend on your school's policy. Some replace the old grade, some average both, and some count both attempts.

Rounding

Keep full decimals until the last step, then round once. Most schools report two decimals; some, such as Georgia Tech, truncate instead of rounding. If you round each class or each term along the way, small errors pile up.

Common mistakes

  • Averaging letter grades without credits when credits differ.
  • Averaging semester GPAs instead of combining quality points and credits.
  • Leaving out an F's credits. The F's credits belong in the total even though it earns zero points.
  • Counting pass/fail or withdrawn classes in the credit total.
  • Using the wrong scale, such as 3.67 vs. 3.7 for an A−, or adding AP bonuses your school does not use.

If your number still doesn't match your transcript, our guide to GPA mismatches walks through the usual causes in order.

Let a calculator do the arithmetic

The GPA Calculator takes your grades and credits and applies the standard 4.0 table, with optional Honors and AP/IB bonuses. For a single term, use the Semester GPA Calculator; for several terms combined, the Cumulative GPA Calculator keeps a per-term breakdown. Working through one example by hand first, like Maya's above, makes it easy to spot a typo in the calculator later.

Frequently asked questions

What is the basic formula for GPA?

GPA = total quality points ÷ total credit hours, where quality points for each class are grade points × credits.

Can I calculate GPA without credit hours?

Yes, if all your classes carry the same credit. Then GPA is just the average of your grade points. If credits differ, you need them for an accurate result.

Is a 3.5 GPA the same at every school?

The arithmetic is the same, but the inputs differ: grade-point tables, weighting and which classes count all vary. Compare GPAs from different schools with care.

How many decimal places should I use?

Keep full precision while calculating and report two decimals, unless your school says it truncates or uses a different number of places.

Do failed classes count in GPA?

Usually yes. An F adds 0 quality points but its credits stay in the total, which lowers your GPA. Some schools let a retake replace the F; check your repeat policy.

Sources and method references

These first-party or official references support the method and policy context. Institution rules remain authoritative for an individual transcript.

  1. GradesUniversity of Notre Dame Registrar
  2. Calculate GPAUniversity of Notre Dame Registrar
  3. Grades and GradingUC Davis General Catalog
  4. Scholastic AverageGeorgia Tech Catalog