Menu
Advertisement

GPA Calculator for College and Semester Grades

Pick a letter grade and type the credits for each course. You get your GPA on the 4.0 scale, and your cumulative GPA when you add the GPA you had before.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to calculate your GPA

A grade point average is a weighted average, and the weights are credits. Every letter grade is worth a number of points on the 4.0 scale: an A is 4.0, a B is 3.0, a C is 2.0, and a plus or minus moves the grade by about a third of a point. Multiply each course's points by its credit hours to get its grade points, add the grade points of all courses, then divide by the total credits. That is why a 4-credit course moves your GPA twice as much as a 2-credit one.

This works as a college GPA calculator for one semester or for any list of courses. Each row shows the grade points it contributes, and the result gives the GPA to two decimals with the total credits and total grade points. Courses marked Pass/fail or Withdrawn are left out, as most registrars do. To see a cumulative GPA, type the GPA you had before and the credits it covers, and the answer combines it with the courses in the rows.

Schools differ in the details. Some count an A+ as 4.3, some have no plus and minus grades, and each registrar decides which courses count, so the number on your transcript is the official one and this is an estimate on the most common scale. Your grades stay in your browser: nothing is sent and nothing is saved.

What you will learn while working out a GPA

  • A GPA is a weighted average. Each grade counts in proportion to its credits, so an A in a 1-credit lab and a C in a 4-credit course average 2.40, not 3.00.
  • An F still counts. It adds its credits to the total and no grade points, which is why one F pulls an average down further than any other grade.
  • Pass/fail and withdrawn courses add nothing to either side of the division, so they leave the GPA where it was.
  • In Python, a GPA is two sums and a division: sum(points * credits) over sum(credits), with a dictionary that maps each letter to its points.

How to use the GPA calculator

  1. Choose a grade for each course

    The calculator starts with four rows. Pick the letter grade from A+ to F in the Grade menu. The course name is optional and is only there to help you keep track of the rows.

  2. Enter the credits

    Each row starts at 3 credits. Type the credit hours your school gives the course, such as 4 for a course with a lab or 1.5 for a short one. The row then shows the grade points it adds: an A- in 3 credits is 11.1.

  3. Add or remove courses

    Press Add a course for another row, up to 30. The new row copies the credits of the row above it. Remove a row with its cross. For a course you took pass/fail or dropped, choose Pass/fail or Withdrawn and the row is marked Not counted.

  4. Read your GPA

    The result shows the GPA to two decimals, with the credits and grade points behind it. To turn it into a cumulative GPA, fill in GPA so far and Credits so far under the rows.

Letter grade to GPA points chart

The grade points this calculator uses for each letter, on the standard 4.0 scale. The percentages are a common cutoff set, shown for reference only: the calculator takes letter grades, and your syllabus decides which percentage earns which letter.

Letter gradeGrade pointsCommon percentage
A+4.097 to 100
A4.093 to 96
A-3.790 to 92
B+3.387 to 89
B3.083 to 86
B-2.780 to 82
C+2.377 to 79
C2.073 to 76
C-1.770 to 72
D+1.367 to 69
D1.063 to 66
D-0.760 to 62
F0.0Below 60

GPA examples to try

A 15-credit semester

Rows

A- 3 credits B+ 3 credits A 4 credits B 3 credits C+ 2 credits

The rows show 11.1, 9.9, 16, 9 and 4.6 grade points. That is 50.6 grade points over 15 credits, so the result reads 3.37.

A pass/fail course and a withdrawal

Rows

A 3 credits B 3 credits Pass/fail 3 credits Withdrawn 4 credits

The last two rows are marked Not counted. The GPA comes from the first two only: 21 grade points over 6 credits is 3.50, and the label says GPA for 2 courses.

Add a semester to the GPA you already have

Rows

A, A-, B+, A, B 3 credits each GPA so far: 3.2 Credits so far: 45

The label changes to Cumulative GPA and the result reads 3.30. Below it: 60 total credits, 198 total grade points, and this term on its own at 3.60 over 15 credits.

The same sum in Python

A dictionary and two sums
POINTS = {"A+": 4.0, "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}
courses = [("A-", 3), ("B+", 3), ("A", 4), ("B", 3), ("C+", 2), ("P", 3)]graded = [(g, c) for g, c in courses if g in POINTS]  # pass/fail is left out
credits = sum(c for g, c in graded)points = sum(POINTS[g] * c for g, c in graded)
print(credits)                     # 15print(round(points, 1))            # 50.6print(f"{points / credits:.2f}")   # 3.37

The same rule as the calculator: a dictionary turns each letter into points, the pass/fail course is filtered out because it has no entry, and the GPA is the grade points divided by the credits.

Common GPA mistakes

  • Averaging the grade points without the credits. An A in a 1-credit lab and a C in a 4-credit course are not a 3.00. Weighted by credits they are 12 grade points over 5 credits, a 2.40.
  • Leaving out a failed course. An F counts: an A and an F in two 3-credit courses make a 2.00, not a 4.00.
  • Entering a pass/fail course as an A. A pass earns credit toward your degree but no grade points, so choose Pass/fail and let the row stay out.
  • Typing a high school weighted GPA as the GPA so far. This page works on the 4.0 scale, and a weighted 4.4 mixed with unweighted courses gives a number that means nothing. Use the high school page for weighted grades.
  • Treating the result as official. Your school may count an A+ as 4.3, replace the grade of a repeated course or drop the last decimal instead of rounding, so check the transcript before you put a GPA on an application.

GPA calculator FAQ

How do I calculate my GPA?

Turn each letter grade into points (A is 4.0, B is 3.0, and so on), multiply by the course's credits, add those grade points up and divide by the total credits. Three 3-credit courses with an A, a B and a C are 27 grade points over 9 credits, a 3.00.

Is an A+ worth 4.0 or 4.3?

On this calculator an A+ is 4.0, the same as an A, a common rule at US colleges. Some schools give 4.3 for an A+. If yours does, your official GPA can be a little higher than the result here.

Do pass/fail classes affect my GPA?

At most schools they do not: a pass gives you the credits but no grade points. Choose Pass/fail in the Grade menu and the row is left out of the GPA. Some schools count a failed pass/fail course as an F, and in that case choose F for it.

Does a W count in my GPA?

A withdrawal usually appears on the transcript as a W and stays out of the GPA. Choose Withdrawn and the row is not counted. A late withdrawal recorded as a failing grade is different: enter it as an F.

How do credit hours change the GPA?

Each grade is multiplied by its credits, so a course with more credits moves the average more. An A in 4 credits and a C in 1 credit give a 3.60. Swap the credits and the same two grades give a 2.40.

What is the difference between a semester GPA and a cumulative GPA?

A semester GPA covers the courses of one term. A cumulative GPA covers every graded course so far. Fill in GPA so far and Credits so far, and the result becomes the cumulative GPA while the term on its own is shown below it.

What is a good GPA in college?

A 3.0 is a B average and a 3.7 is an A- average. What counts as good depends on the school, the major and what you are applying for, so look up the cutoff that applies to you, such as the minimum for a scholarship or a program.

Why is the GPA on my transcript different?

Schools set their own rules. Yours may use a different value for A+ or for minus grades, leave out some courses, replace the grade of a repeated course, or cut the GPA off after two decimals where this calculator rounds. The transcript is the official number.

Are my grades saved or sent anywhere?

No. The calculator runs in your browser and sends nothing. It saves nothing either, so the rows are gone when you reload or close the page.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started