CGPA & SGPA Calculator

Calculate your exact Semester and Cumulative GPA. Track grades across multiple semesters and use the Target Predictor to plan your academic goals.

Academic Record

Results

Cumulative GPA (CGPA)
0.00
Percentage: 0.00%
Total Credits
0
Total Grade Pts
0

Target Predictor

100% Client-Side Privacy

This academic calculator strictly operates inside your browser. Your courses, credits, and grades are securely saved in your browser's local memory for your convenience but are never uploaded to any server. Complete privacy guaranteed.

How do I calculate my CGPA?

Calculating your Cumulative Grade Point Average (CGPA) is not as simple as taking an average of your semester grades. You must calculate a weighted average using the credit hours of each course.

The Core Mathematical Formula

CGPA = Total Earned Grade Points ÷ Total Attempted Credits
(Where Grade Points for a course = Course Grade Point Value × Course Credits)

Developer Snippet: Programmatic CGPA Calculation

For developers building educational platforms, here is a clean, copy-pasteable JavaScript utility to iterate over semesters and calculate accurate SGPAs and CGPAs:

function calculateCGPA(semesters) {
  let totalGradePoints = 0;
  let totalCredits = 0;

  semesters.forEach(semester => {
    let semesterPoints = 0;
    let semesterCredits = 0;
    
    semester.courses.forEach(course => {
      if (!course.isPassFail) { // Pass/Fail doesn't affect GPA math
        semesterPoints += (course.gradePoint * course.credits);
        semesterCredits += course.credits;
      }
    });
    
    // SGPA for the semester
    semester.sgpa = semesterCredits > 0 ? (semesterPoints / semesterCredits) : 0;
    
    totalGradePoints += semesterPoints;
    totalCredits += semesterCredits;
  });

  return totalCredits > 0 ? (totalGradePoints / totalCredits).toFixed(2) : 0.00;
}

Why Basic Averages Fail for GPAs

Premise: A common mistake students make when predicting their graduation GPA is taking a simple mathematical average of all their individual Semester GPAs (SGPAs).

Evidence: If you score a 4.0 SGPA in a light summer semester (6 credits), and a 2.0 SGPA in a heavy engineering semester (18 credits), a simple average suggests your overall CGPA is 3.0. However, because the heavy semester carries 3x the weight, your true mathematical CGPA is exactly 2.5.

Conclusion: To accurately track academic standing, a calculator must map individual course grades to credit weights rather than averaging existing SGPAs. Our tool natively tracks granular credit assignments to ensure 100% mathematical accuracy.

Frequently Asked Questions

What is the difference between SGPA and CGPA?

SGPA (Semester Grade Point Average) is your performance for a single semester, calculated by dividing the total grade points earned by the total credits attempted in that semester. CGPA (Cumulative Grade Point Average) is your overall performance across all completed semesters.

How do I calculate what I need to score to hit a target CGPA?

To find your required future average, take your (Target CGPA × Total Expected Credits) and subtract (Current CGPA × Current Earned Credits). Divide that result by the number of credits you have left to take. Our Target Predictor tool does this automatically for you.

Do Pass/Fail courses affect my GPA?

Generally, no. A 'Pass' gives you the credits toward graduation but does not factor into the GPA math (neither the grade points nor the attempted credits divisor). A 'Fail' usually impacts the GPA as 0 points but counts toward attempted credits. Check your university policy, but our tool allows you to exclude specific courses from the calculation by assigning them 0 credits.

Related Educational & Utility Tools

Scientific Calculator

A powerful online calculator for complex math operations and engineering assignments.

Date Difference Calculator

Plan out semester schedules by calculating the exact number of days until exams.