How to calculate your CGPA
- Select your grading scale (or edit the boundaries to match your university).
- Rename “Semester 1” and enter its courses, credits and grades. Add a course code if you may repeat the course.
- Press “Add semester” for every further term. Collapse finished semesters to keep the page short.
- Choose how repeated courses count: best grade, latest grade, or every attempt.
- Optionally add an earlier GPA from your transcript and a target CGPA to draw on the chart.
- Read the CGPA, the semester table and the GPA progression chart; copy or download the results.
CGPA is not the average of your semester GPAs
A common mistake is to add up semester GPAs and divide by the number of semesters. That only works when every semester has the same credits. The correct CGPA adds the quality points of every course and divides by every credit hour that counts, so heavier semesters carry more weight.
In the example above, averaging 3.21, 3.45 and 3.32 gives 3.33, while the credit-weighted CGPA is 3.32. The gap grows when semester loads differ more.
Repeated courses and grade replacement
Universities treat a repeated course in one of three ways, and the choice can move a CGPA by a tenth of a point or more.
- Best grade counts: only the higher of the attempts enters the CGPA. Pakistan's HEC guidelines use this rule for improvement courses.
- Latest grade replaces: the newest attempt counts even if it is lower (often called grade replacement or forgiveness at US colleges).
- All attempts count: both grades stay in the average, so a retake helps less.
Reading the GPA progression chart
Bars show each semester on its own; the line is your cumulative GPA after that semester. A bar above the line pulls the CGPA up. As credits accumulate the line moves less each term, which is why early semesters matter and why late improvements need several strong terms. A table with the same numbers sits under the chart for screen readers and printing.
Worked examples
Three semesters, all attempts counted
Semester 1: 51.3 quality points over 16 credits (3.21). Semester 2: 44.8 over 13 (3.45). Semester 3: 43.2 over 13 (3.32). CGPA = (51.3 + 44.8 + 43.2) ÷ 42 = 139.3 ÷ 42 = 3.32.
The same record with a replaced grade
Calculus I (3 credits) was a C (2.0) in semester 1 and a B+ (3.3) when repeated in semester 3. With best-grade or latest-grade rules the first attempt's 6 quality points and 3 credits drop out: 133.3 ÷ 39 = 3.42.
Frequently asked questions
What is the difference between SGPA and CGPA?
SGPA (semester GPA) covers one semester. CGPA (cumulative GPA) covers all semesters so far, weighted by credit hours. Each semester card here shows its SGPA; the headline result is the CGPA.
How do I calculate CGPA from SGPA?
Multiply each SGPA by that semester's credits, add the results, and divide by the total credits. With 3.2 over 18 credits and 3.6 over 15 credits: (57.6 + 54) ÷ 33 = 3.38. Entering the courses gives the same answer and handles repeats correctly.
Does a repeated course replace the old grade?
That depends on your university. Choose “Best grade counts”, “Latest grade replaces earlier” or “All attempts count” to match its policy. Give both attempts the same course code so the calculator can match them.
Can I add my previous CGPA instead of every old course?
Yes. Turn on “Include an earlier GPA” and enter your transcript CGPA and the credits it covers, then add only the new semesters. Repeats of courses inside that earlier record cannot be matched, so use the retake calculator for those.
What CGPA do I need to graduate?
Many universities require at least 2.00 on a 4.0 scale for an undergraduate degree (HEC Pakistan sets 2.00 for BS and 2.50 for MS/MPhil). Honours, scholarships and graduate programmes often require more, so check your handbook.