GPA Calculator Formula

Understand the math behind the gpa calculator. Each variable explained with a worked example.

Formulas Used

Grade Point Average

gpa = total_quality_points / total_credits

Total Quality Points

total_quality_points_out = total_quality_points

Total Credit Hours

total_credits_out = total_credits

Variables

VariableDescriptionDefault
grade1Course 1 Grade Points3.5
credits1Course 1 Credits3
grade2Course 2 Grade Points3
credits2Course 2 Credits4
grade3Course 3 Grade Points4
credits3Course 3 Credits3
grade4Course 4 Grade Points2.5
credits4Course 4 Credits3
total_quality_pointsDerived value= grade1 * credits1 + grade2 * credits2 + grade3 * credits3 + grade4 * credits4calculated
total_creditsDerived value= credits1 + credits2 + credits3 + credits4calculated

How It Works

How GPA Is Calculated

GPA is a weighted average of your grades across all courses. Each letter grade gets a number (A=4.0, B=3.0, C=2.0, D=1.0, F=0). Multiply each grade point by the course's credit hours, add them up, then divide by total credit hours. A 3-credit A and a 4-credit B gives you (12 + 12) / 7 = 3.43 GPA.

The Formula

GPA = Sum of (Grade Points x Credit Hours) / Total Credit Hours

Plus/minus grading shifts the scale: A+ stays at 4.0 (most schools cap it there), A- = 3.7, B+ = 3.3, B- = 2.7, and so on in 0.3 increments.

When to Use This

Checking your semester GPA before grades are finalized. Planning what grades you need in remaining courses to hit a target GPA. Estimating whether you qualify for dean's list (usually 3.5+), academic probation (usually below 2.0), or a specific program's GPA requirement.

Cumulative vs. Semester GPA

Semester GPA covers one term. Cumulative GPA covers your entire academic career. A bad semester hurts your cumulative GPA, but the damage gets diluted as you complete more credit hours. A freshman who gets a 2.0 in a 15-credit semester then earns 3.5 for seven straight semesters ends up with a 3.31 cumulative.

Weighted vs. Unweighted (High School)

High schools sometimes use weighted GPAs where honors courses are on a 5.0 scale and AP courses on a 5.0 or 6.0 scale. This calculator uses the standard unweighted 4.0 scale. If your school uses weighted grades, check if they have their own weighting table.

Common Mistakes

  • Treating all courses as equal weight. A 4-credit course has twice the impact on your GPA as a 2-credit course. Bombing a high-credit course hurts more than bombing a low-credit one.
  • Not counting retaken courses correctly. Most schools replace the old grade in GPA calculation, but some average both attempts. Check your school's policy.
  • Confusing percentage grades with GPA. A 92% might be an A or an A- depending on the grading scale. Convert to letter grades first, then to grade points.
  • Worked Example

    A student takes 4 courses: Course 1 (3.5 grade, 3 credits), Course 2 (3.0 grade, 4 credits), Course 3 (4.0 grade, 3 credits), Course 4 (2.5 grade, 3 credits).

    grade1 = 3.5credits1 = 3grade2 = 3credits2 = 4grade3 = 4credits3 = 3grade4 = 2.5credits4 = 3
    1. 01Course 1 quality points: 3.5 x 3 = 10.5
    2. 02Course 2 quality points: 3.0 x 4 = 12.0
    3. 03Course 3 quality points: 4.0 x 3 = 12.0
    4. 04Course 4 quality points: 2.5 x 3 = 7.5
    5. 05Total quality points: 10.5 + 12.0 + 12.0 + 7.5 = 42.0
    6. 06Total credits: 3 + 4 + 3 + 3 = 13
    7. 07GPA = 42.0 / 13 = 3.23

    Frequently Asked Questions

    What is a good GPA?

    A GPA of 3.0 or above is generally considered good for college. A 3.5+ is very good and qualifies for many honors programs. A 3.7+ is excellent and competitive for graduate school. Requirements vary significantly by institution and program.

    How is GPA different from a simple average?

    GPA is a weighted average. A 4-credit course contributes more to your GPA than a 1-credit course. A simple average would treat all courses equally regardless of credit hours.

    Can my GPA be higher than 4.0?

    On a standard unweighted 4.0 scale, 4.0 is the maximum. However, weighted GPAs used in some high schools can exceed 4.0 by awarding bonus points for honors (+0.5) or AP/IB (+1.0) courses.

    How much does one bad grade affect my GPA?

    It depends on how many credit hours you have completed. Early in your studies with fewer total credits, one low grade has a bigger impact. Later, with many credits accumulated, a single bad grade is diluted by all previous coursework. Use our GPA calculator to model specific scenarios.

    Ready to run the numbers?

    Open GPA Calculator