CGPA Calculator
This CGPA calculator works out your semester GPA and CGPA from each course’s credit hours and grade, on a 4.0 scale you can edit to match your university. CGPA is the sum of credit hours × grade points over all courses, divided by the total credit hours.
Processed on your device. Nothing is uploaded.
Grade scale
Example scale. Edit it to match your university. Universities set their own grade points and marks ranges, so check your university’s grading policy before you rely on the result.
Edit the grade scale (11 grades, top 4)
Minimum marks are blank until you set them from your university’s policy. They are needed only if you enter marks instead of grades.
Repeated courses are matched by course name. Check your university’s repeat rule.
Previous CGPA (optional)
Semester 1
Semester GPA: –
Your CGPA
Enter credit hours and a grade for at least one course to see your GPA.
What GPA do I need next semester?
Work out your CGPA above first.
How to use the CGPA calculator
- Check the grade scale. The example is a 4.0 scale; open “Edit the grade scale” and change the letters and points to match your university’s policy.
- Choose whether you will enter letter grades or marks. For marks, first set the minimum marks for each grade in the scale.
- Enter each course with its credit hours and grade. Add semesters as you go; each semester shows its own GPA.
- If you already know your CGPA, tick “I already have a CGPA” and enter it with your credit hours so far, then add only the new semesters.
- Choose how a repeated course counts: the latest attempt, the best attempt, or every attempt.
- Use “What GPA do I need next semester?” to plan for a target CGPA.
How it works
GPA = Σ (credit hours × grade points) ÷ Σ credit hours
The same formula over every semester gives the CGPA. These are the formulas in HEC’s Policy Guidelines for the Uniform Semester System (section 14), which recommend a 0.00 to 4.00 scale for all universities.
Example: Calculus, 3 credit hours, A (4.0); Physics, 4 credit hours, B (3.0); Pakistan Studies, 2 credit hours, C (2.0). Grade points × credit hours: 12 + 12 + 4 = 28. Total credit hours: 9. GPA = 28 ÷ 9 = 3.11.
With a previous CGPA: new CGPA = (old CGPA × old credit hours + new grade points) ÷ (old + new credit hours). A CGPA of 3.20 over 60 credit hours, plus a 15-credit semester at 3.80, gives (192 + 57) ÷ 75 = 3.32.
GPA needed next semester: needed = (target × (credits so far + next credits) − CGPA × credits so far) ÷ next credits. With 3.00 over 60 credit hours, reaching 3.20 after an 18-credit semester needs (3.20 × 78 − 180) ÷ 18 = 3.87. If the answer is above the top of the scale, the target cannot be reached in one semester, and the calculator shows the best CGPA you could reach instead.
Courses with 0 credit hours, and courses with no grade yet, are left out.
Grade scales differ between universities
HEC’s guidelines give each letter grade a range of points rather than one number (for example A is 3.67 to 4.00, and B+ is 3.01 to 3.33), and universities choose their own exact points and marks ranges. Two universities can give the same marks different grades. That is why the scale here is only an example: copy your university’s grading table into it before you trust the result.
Repeated courses
When you retake a course, universities do not all count it the same way. HEC’s guidelines say only the better grade counts in the CGPA, although both stay on the transcript (section 9.2). Your university’s regulations may say otherwise, for example that the latest attempt counts even when it is worse. Enter the repeat under the same course name in a later semester, and the calculator applies the rule you choose. A course with no name is never matched, so it always counts.
Percentage and CGPA
There is no single formula that turns a CGPA into a percentage, or a percentage into a CGPA, for every university. Where a university has a conversion, it is in that university’s own grading policy or on its transcript. Use that, and quote it when an employer or a scholarship form asks for a percentage.
Frequently asked questions
How do I calculate CGPA from semester GPAs?
Weight each semester by its credit hours: multiply each semester GPA by that semester’s credit hours, add the results, and divide by the total credit hours. A plain average of the GPAs is only right when every semester has the same credit hours.
Is the 4.0 scale here my university’s official scale?
No. It is an example scale (A 4.0, A− 3.67, B+ 3.33 and so on). Universities set their own grade points and marks ranges, so open “Edit the grade scale” and copy your university’s values from its grading policy.
What happens to my CGPA when I repeat a course?
It depends on your university. HEC’s semester guidelines say that when an undergraduate repeats a course, both grades go on the transcript but only the better grade counts in the CGPA (section 9.2). Your university’s own rule may differ, so choose the one that matches it: latest, best, or every attempt.
Can I convert my CGPA to a percentage?
Only with the formula your university publishes. There is no single conversion that applies everywhere, so this calculator does not convert. Your university’s grading policy or transcript usually explains its own conversion.
Do 0-credit courses count?
No. A course with 0 credit hours adds nothing to the weighted average, so the calculator leaves it out. Pass/fail courses are usually left out too: enter them with 0 credit hours, or leave their grade blank.
What CGPA do I need to graduate?
Your university sets the minimum. HEC’s semester guidelines give a minimum CGPA of 2.00 to complete a BS degree and 2.50 for MS/MPhil (section 15.1). Check your own university’s rules.
Related tools
Sources and review
Last reviewed: .