Student Life

How to Calculate CGPA in Pakistan (Step by Step)

By Sabila Akram · Published

To calculate CGPA, multiply each course’s grade points by its credit hours, add these up for every course you have taken, and divide by the total credit hours. A semester GPA is the same sum for one semester only. These are the formulas in HEC’s semester guidelines; each university sets its own grade points.

Step 1: Find your university’s grade scale

Every letter grade has grade points, such as A = 4.0 or B+ = 3.33. HEC’s Policy Guidelines for the Uniform Semester System recommend a 0.00 to 4.00 scale for all universities and give each letter a range (A is 3.67 to 4.00, for example), so universities choose their own exact points and marks ranges. Look up your university’s table in its grading policy, student handbook or on the back of your transcript. This guide uses this example scale:

Grade A A− B+ B B− C+ C C− D+ D F
Points 4.0 3.67 3.33 3.0 2.67 2.33 2.0 1.67 1.33 1.0 0

Step 2: Work out a semester GPA

GPA = Σ (credit hours × grade points) ÷ Σ credit hours

Ayesha’s first semester:

Course Credit hours Grade Points Credit hours × points
Calculus I 3 A 4.0 12.0
Applied Physics 4 B 3.0 12.0
Programming Fundamentals 4 B+ 3.33 13.32
Functional English 3 A− 3.67 11.01
Islamic Studies 2 C 2.0 4.0
Total 16 52.33

Semester GPA = 52.33 ÷ 16 = 3.27.

The 4-credit courses pull harder than the 2-credit one. That is why a plain average of the five grade points (3.2) gives the wrong answer.

Step 3: Work out the CGPA

In her second semester Ayesha takes 17 credit hours and earns 59.5 credit hours × points, a GPA of 3.50. Her CGPA adds both semesters together:

CGPA = (52.33 + 59.5) ÷ (16 + 17) = 111.83 ÷ 33 = 3.39.

Averaging the two semester GPAs, (3.27 + 3.50) ÷ 2 = 3.39, gives the same answer here only because the credit hours are close. With 12 and 18 credit hours the two methods would differ.

If you already know your CGPA, you do not need every old course. Multiply your CGPA by your credit hours so far, add the new semester’s credit hours × points, and divide by the new total. A CGPA of 3.20 over 60 credit hours plus a 15-credit semester at 3.80 gives (192 + 57) ÷ 75 = 3.32.

The CGPA calculator does these sums for you, semester by semester, and its scale can be edited to match your university.

Step 4: Repeated courses and courses that do not count

  • Repeated courses: HEC’s guidelines say that when an undergraduate repeats a course, both grades go on the transcript but only the better one counts in the CGPA (section 9.2). The CGPA calculator uses this rule by default. Check your own university’s rule, because regulations differ, and count only the attempt your university counts.
  • 0-credit and pass/fail courses: they add nothing to the weighted average. HEC’s guidelines say pass/fail grades are not used in the GPA or CGPA.
  • F grades: an F counts with its credit hours and 0 points, so it pulls the CGPA down until the course is repeated.

Step 5: Plan the GPA you need next semester

needed GPA = (target × (credits so far + next credits) − CGPA × credits so far) ÷ next credits

Ayesha wants a CGPA of 3.50 after her third semester of 18 credit hours. She needs (3.50 × 51 − 111.83) ÷ 18 = (178.5 − 111.83) ÷ 18 = 3.70, using her exact credit hours × points so far rather than the rounded CGPA. If the answer comes out above 4.0, the target cannot be reached in one semester, and spreading it over two is the realistic plan.

For one course at a time, the final grade calculator shows the score you need in the final exam to reach a target mark, and the attendance calculator checks that you are still allowed to sit it.

A note on percentages

There is no single formula that turns a CGPA into a percentage for every university, so be careful with conversions you find online. If an employer or a scholarship form asks for a percentage, use the conversion in your university’s own policy, if it publishes one, and say which one you used.

Frequently asked questions

Is CGPA the average of my semester GPAs?

Only when every semester has the same credit hours. Otherwise weight each semester GPA by its credit hours, or add up credit hours × grade points over all courses and divide by all credit hours.

Which grade scale should I use?

Your own university’s. Grade points and marks ranges differ between universities, so copy them from your university’s grading policy or the back of your transcript.

Can I convert CGPA to percentage with one formula?

No single formula applies to every university. Use the conversion your university publishes, if it has one.

Tools mentioned in this guide

About the author

Sabila Akram. Sabila Akram is an AI engineer and full-stack web developer and the founder of IlmToolkit, where Sabila builds the tools and writes the guides.