Calculate your cumulative grade point average based on course grades and credit hours.
Course Name (Optional)
Grade
Credits
Action
A
A-
B+
B
B-
C+
C
C-
D+
D
F
Your Overall GPA
0.00
How to Calculate Overall GPA
Your Grade Point Average (GPA) is a crucial metric that summarizes your academic performance. Calculating your overall GPA manually involves a weighted average calculation where the number of credits for each course acts as the "weight."
The GPA Calculation Formula
To find your cumulative or semester GPA, you follow this standard mathematical formula:
Assign Point Values: Convert your letter grades into numerical values. On a standard 4.0 scale, an A is 4.0, a B is 3.0, etc.
Calculate Quality Points: Multiply the numerical value of each grade by the number of credits for that class. For example, an A (4.0) in a 3-credit class equals 12 quality points.
Sum the Totals: Add up all the quality points from all your courses. Then, add up the total number of credit hours you attempted.
Divide: Divide the total quality points by the total credit hours to get your overall GPA.
Example Calculation
Course
Grade (Points)
Credits
Total Points
Biology
A (4.0)
4
16.0
English
B (3.0)
3
9.0
Total
–
7
25.0
Result: 25.0 / 7 = 3.57 GPA
function addRow() {
var table = document.getElementById("course-list");
var row = document.createElement("tr");
row.className = "course-row";
row.innerHTML = '
' +
'
' +
'AA-B+B' +
'B-C+CC-' +
'D+DF
' +
'
' +
'
';
table.appendChild(row);
}
function removeRow(btn) {
var row = btn.parentNode.parentNode;
var table = document.getElementById("course-list");
if (table.rows.length > 1) {
row.parentNode.removeChild(row);
} else {
alert("At least one course is required.");
}
}
function calculateGPA() {
var gradeSelects = document.getElementsByClassName("grade-select");
var creditInputs = document.getElementsByClassName("credit-input");
var totalQualityPoints = 0;
var totalCredits = 0;
for (var i = 0; i 0) {
totalQualityPoints += (gradeValue * credits);
totalCredits += credits;
}
}
var gpaResult = document.getElementById("gpa-score");
var resultContainer = document.getElementById("result-container");
var statsSummary = document.getElementById("stats-summary");
if (totalCredits > 0) {
var finalGPA = (totalQualityPoints / totalCredits).toFixed(2);
gpaResult.innerText = finalGPA;
statsSummary.innerText = "Based on " + totalCredits + " total credits and " + totalQualityPoints.toFixed(1) + " quality points.";
resultContainer.style.display = "block";
// Scroll to result for mobile users
resultContainer.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
} else {
alert("Please enter valid credit hours for your courses.");
}
}