Enter your course grades and credit hours to calculate your semester GPA.
Course Name (Optional)
Grade
Credits
Select Grade
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)
F (0.0)
Select Grade
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)
F (0.0)
Select Grade
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)
F (0.0)
Select Grade
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)
F (0.0)
Select Grade
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)
F (0.0)
Your Semester GPA:0.00
Total Credits: 0Grade Points: 0
How to Calculate GPA: The Formula
GPA, or Grade Point Average, is a standardized measurement of your academic achievement. To calculate your GPA, you multiply the numerical value of your grade by the credit hours of the course to get "Quality Points." Then, divide the sum of all quality points by the total number of credit hours attempted.
function calculateGPA() {
var gradeSelects = document.getElementsByClassName('grade-input');
var creditInputs = document.getElementsByClassName('credit-input');
var totalPoints = 0;
var totalCredits = 0;
var validEntries = 0;
for (var i = 0; i 0) {
totalPoints += (gradeValue * creditValue);
totalCredits += creditValue;
validEntries++;
}
}
var resultBox = document.getElementById('gpa-result-box');
var gpaOutput = document.getElementById('gpa-output');
var creditsOutput = document.getElementById('total-credits-output');
var pointsOutput = document.getElementById('total-points-output');
if (totalCredits > 0) {
var finalGPA = totalPoints / totalCredits;
gpaOutput.innerText = finalGPA.toFixed(2);
creditsOutput.innerText = totalCredits;
pointsOutput.innerText = totalPoints.toFixed(1);
resultBox.style.display = 'block';
} else {
alert('Please enter valid grades and credit hours for at least one course.');
resultBox.style.display = 'none';
}
}