Skip to content

How to Calculate CGPA in Pakistan: HEC Grading Scale

By Ashna BashirReviewed by Muhammad Azeem14 min readUpdated 30 September 2026

How to calculate CGPA in Pakistan step by step: the HEC-style grading scale, quality points, the SGPA and CGPA formulas, and a fully worked semester example.

Your CGPA in Pakistan is the credit-hour weighted average of the grade points you have earned across every course you have completed. Knowing how to calculate CGPA in Pakistan comes down to multiplying each course's credit hours by its grade point to get quality points, adding all the quality points together, and dividing by the total credit hours. Most Pakistani universities score this on a 4.00 scale using a grading plan that follows a common HEC-style pattern, but the exact marks-to-grade boundaries are published by each university, not by one national table.

That last sentence is where most students go wrong: they find a grading table online, plug in their marks, and get a number that does not match the card their examination department issued. The free CGPA calculator runs every step below for you, but understanding the mechanics once lets you sanity-check any number a portal shows you.

The vocabulary on a Pakistani result card

These four terms get used interchangeably and they are not the same thing.

  • Grade point. One course's marks converted to a point value on the 4.00 scale. 85 marks might become an A worth 4.00.
  • Quality points. Grade point multiplied by credit hours. This is the unit that actually gets averaged.
  • SGPA. Semester Grade Point Average, one semester only. Some universities print it as GPA or TGPA.
  • CGPA. Cumulative Grade Point Average, every semester you have completed so far.

Result cards also print a percentage, computed from raw marks on a completely separate track from the GPA arithmetic.

The HEC-style grading scale most Pakistani universities use

Below is the grading plan printed on a real Superior University Lahore BS Computer Science result card. Many Pakistani universities use this mapping or something within a mark or two of it.

Marks obtained (out of 100)Letter gradeGrade point
85-100A4.00
80-84A-3.67
75-79B+3.33
71-74B3.00
68-70B-2.67
64-67C+2.33
Marks obtained (out of 100)Letter gradeGrade point
61-63C2.00
58-60C-1.67
54-57D+1.33
50-53D1.00
0-49F0.00

Treat this as a widely used convention, not a national standard. No institution is required to reproduce it, and the differences you will run into are real:

  • Some universities award an A+ and reserve 4.00 for it, pushing plain A down to 3.70 or 3.75.
  • Some set the pass mark at 50, others at 40, which moves the bottom of the table.
  • Some use relative grading, where your letter depends on the class distribution rather than a fixed marks band, so the same marks can produce different letters in different sections.
  • Repeat-course rules differ everywhere: some universities replace the old grade on a retake, some average both attempts, some keep both in the denominator.

Your grading plan is printed on the reverse of your transcript or in the student handbook, and that document beats anything you read on a blog, including this one. Our per-university pages, such as the Superior University Lahore CGPA calculator, pre-load each institution's own scale. With the scale in hand, the next step in how to calculate CGPA in Pakistan is turning marks into quality points, shown below with the three formulas and a fully worked example.

How to calculate CGPA in Pakistan: the three formulas, written plainly

Quality points for one course = credit hours multiplied by grade point

SGPA = total quality points earned in the semester, divided by total credit hours in that semester

CGPA = total quality points earned across all semesters, divided by total credit hours across all semesters

One consequence deserves its own line because it is the most common mistake: your CGPA is not the average of your SGPAs. The two are equal only when every semester carries identical credit hours. Take a student who completes 18 credit hours at a 3.00 SGPA and then 6 credit hours at 4.00. The plain average is 3.50, but the real CGPA is 54 plus 24 quality points over 24 credit hours, which is 3.25. The bigger semester pulls harder, and that is what weighted means.

A fully worked example: one real semester

Here is the Fall 2023 semester from that result card, with the quality-point arithmetic laid out course by course. The starred course is a deficiency course, covered further down.

CourseCredit hoursMarksGradeGrade pointQuality points
Pre-Calculus *381A-3.6711.01
Applied Physics390A4.0012.00
English Composition & Comprehension380A-3.6711.01
Introduction to ICT (Theory)385A4.0012.00
Introduction to ICT (Lab)185A4.004.00
Programming Fundamentals (Theory)380A-3.6711.01
Programming Fundamentals (Lab)182A-3.673.67
Introduction to Logic396A4.0012.00
Total2076.70

Adding the last column: 11.01 + 12.00 + 11.01 + 12.00 + 4.00 + 11.01 + 3.67 + 12.00 = 76.70 quality points over 20 credit hours attempted.

SGPA = 76.70 divided by 20 = 3.835, which the result card prints as 3.83.

Two details are worth pausing on. First, 3.835 became 3.83 and not 3.84, so this card truncates at two decimals rather than rounding up, and universities differ on that choice. Second, note how little the labs moved things: Introduction to Logic scored 96 marks and contributed 12.00 quality points, while the 82-mark Programming Fundamentals lab contributed 3.67, purely because of credit hours. Marks matter, but credit hours decide how much they matter.

This was the first semester, so the CGPA equals the SGPA at 3.83.

Carrying it forward to the next semester

The following term, Spring 2024, produced 77.00 quality points over 20 credit hours, an SGPA of 3.85. The CGPA is not the average of 3.83 and 3.85. You go back to the raw totals:

  • Cumulative quality points: 76.70 + 77.00 = 153.70
  • Cumulative credit hours: 20 + 20 = 40
  • CGPA = 153.70 divided by 40 = 3.8425, printed as 3.84

Notice that a semester above the running average lifted the CGPA by only 0.01. That inertia is the defining behaviour of a cumulative average and it strengthens every term. We take it apart across five real semesters in the guide on the difference between SGPA and CGPA.

How to calculate total CGPA of all semesters: a running-total table

How to calculate cgpa of 4 semesters is the same job as any other length: keep two running totals and divide. Real degrees rarely have identical credit loads, so take four semesters that differ. The table shows the quality points (credit hours times SGPA) for each term and the cumulative figures after it.

SemesterCredit hoursSGPAQuality pointsCumulative credit hoursCumulative quality pointsCGPA so far
1183.3059.401859.403.30
2183.5063.0036122.403.40
3153.0045.0051167.403.28
4183.8068.4069235.803.42

The final CGPA is 235.80 divided by 69, which is 3.4174, or 3.42 rounded (3.41 on a card that truncates). The plain average of the four SGPAs is 3.40, and the gap is the credit-hour weighting at work: the light 15-credit semester counted for less. Whenever someone asks how to calculate aggregate CGPA or how to find aggregate CGPA, this is the answer, because aggregate and cumulative mean the same thing here. To calculate overall CGPA after semester five, add the new row's quality points and credit hours to the last cumulative figures; nothing earlier needs re-entering.

The same method for 2, 6 or 8 semesters

There is no separate formula for a different number of semesters. How to calculate cgpa of 2 semesters is the first two quality-point totals added and divided by the first two credit-hour totals, and how to calculate total cgpa of 6 semesters just adds six terms to each total. A typical eight-semester BS degree at 17 credit hours a term closes on 136 credit hours. Readers who ask how to calculate average cgpa of all semesters usually mean this weighted figure, not the plain mean of their SGPAs, and the two match only when every semester carries the same credit hours. The wording varies between how to calculate cgpa for all semesters, how to calculate cgpa of all semesters and how to calculate overall cgpa of all semesters, but the arithmetic never does. How to calculate cgpa in university terms is also the question on most result portals, and the answer there is identical. If your university asks for CGPA out of 4, as Pakistani universities do, nothing further is needed; a 10-point CGPA from another system needs that system's own conversion.

Checking your own result card against the arithmetic

Before trusting a printed CGPA, rebuild it. Recompute each course's quality points from its printed grade point and credit hours, total them for the semester, and compare the SGPA with the card. Then rebuild the running totals and compare the CGPA. If the numbers differ by a few hundredths, the card is probably truncating rather than rounding. If they differ more, look at deficiency courses, repeats and credit-hour totals, which is where universities' treatments diverge. Some students like to count CGPA by hand once per semester as a habit, and that simple cgpa calculation formula, total quality points over total credit hours, is also how to count cgpa in a spreadsheet: one column for quality points, one for credit hours, and a single division at the bottom.

Converting CGPA to percentage: why no single formula exists

Pakistan has no single official CGPA-to-percentage conversion, and no better formula closes that gap. Institutions set their own equivalence, so the same 3.86 CGPA legitimately maps to different percentages at different universities. Three approaches are in circulation.

1. Percentage from actual marks. This is what most Pakistani result cards already print: obtained marks divided by total marks. On the Fall 2023 semester above the card shows 84.88%, which is 679 out of 800, and across the full five-semester record 3,023 out of 3,500 works out to 86.37%. It is defensible because it is not a conversion at all, it is your actual performance.

2. The multiply-by-20 rule of thumb. On a 3.86 CGPA this gives 77.2%, roughly nine points below the 86.37% the same student's marks actually produce. The gap exists because a 4.00 scale compresses everything from 85 to 100 marks into one value. Treat it as a rough mental estimate and nothing more.

3. Your university's published conversion. Many publish a conversion table in the student handbook, and many will issue a formal equivalence certificate on request from the examination department.

For anything official, a foreign university application, an HEC degree attestation file, a scholarship form or a credential evaluation, do not use a rule of thumb from the internet. Request your university's own written equivalence and quote that, because a self-calculated figure that disagrees with the official one is yours to explain.

Deficiency courses and the asterisk

A deficiency course is one you must take to make up a shortfall in your admission background, most often a maths or English course for students whose intermediate stream did not cover it. Result cards usually flag these with an asterisk.

Whether they count is genuinely inconsistent, and the card above illustrates it neatly. The starred Pre-Calculus course was included in the GPA arithmetic, which is why the divisor is 20 credit hours and not 17. But the card's own credit-hour total reads 17.00 for that semester, and the grand total across five semesters reads 86.00 rather than the 92 the GPA arithmetic used. The same course counted towards the average but not towards degree progress, while the printed 84.88% percentage did include its marks.

Other universities exclude starred courses from the GPA entirely. Both treatments are normal, so read the footnotes on your own result card and email the examination department rather than guessing if the arithmetic does not reconcile. If you are rebuilding a full record semester by semester, the transcript generator lets you flag deficiency courses explicitly so you can see both figures side by side.

How retaking a course changes your CGPA

Failing a course, or simply wanting a better grade than the one you got, raises a question the formulas above do not answer on their own: what happens to your CGPA once you sit the same course again. The honest answer is that it depends entirely on your university's repeat-course policy, and the three policies in common use produce three different numbers from the exact same two attempts.

Take a hypothetical student with a 3.40 CGPA over 40 completed credit hours, so 3.40 multiplied by 40 gives 136.00 cumulative quality points. One of those courses was a 3 credit hour class where they scored a D, worth 1.00 grade point, contributing 3.00 quality points to that total. They retake it the following semester and score an A, worth 4.00 grade point, worth 12.00 quality points on its own.

Grade replacement. Many Pakistani universities let a retake fully replace the original grade, both in the GPA calculation and in the credit-hour count, as if the D had never happened. The old course's 3.00 quality points come out, the new course's 12.00 quality points go in, and the credit-hour total is unchanged because one 3-credit entry replaced another: 136.00 minus 3.00 plus 12.00 equals 145.00 quality points over the same 40 credit hours, for a CGPA of 145.00 divided by 40, which is 3.625.

Grade averaging. Some universities instead average the two attempts into a single blended grade point for that course, rather than letting the better attempt fully erase the worse one. The average of 1.00 and 4.00 is 2.50, so the course contributes 2.50 multiplied by 3 credit hours, which is 7.50 quality points, replacing the original 3.00: 136.00 minus 3.00 plus 7.50 equals 140.50, over the same 40 credit hours, for a CGPA of 140.50 divided by 40, which is 3.5125.

Keeping both attempts in the denominator. A third approach, common where a retake is not officially "forgiven," leaves the original attempt exactly as it was and simply adds the new attempt on top, so both the credit hours and the quality points from the retake stack onto the existing total: 136.00 plus 12.00 equals 148.00 quality points, over 40 plus 3 equals 43 credit hours, for a CGPA of 148.00 divided by 43, which is 3.4419, or about 3.44.

Three legitimate policies, three different results, 3.625, 3.5125 and roughly 3.44, from identical grades in identical courses. None of them is a mistake; they are simply different rules for the same two data points. Before you plan a retake around a specific CGPA target, confirm which of the three your own university's academic regulations actually use, since assuming the wrong one can leave your own projection off by several hundredths.

Frequently asked questions

How do I calculate my CGPA in Pakistan?

Multiply each course's credit hours by its grade point to get quality points, add the quality points for every course you have completed, then divide by the total credit hours those courses carry. That is your CGPA. SGPA uses the same arithmetic over one semester's courses.

Is the HEC grading scale the same at every Pakistani university?

No. The 4.00 scale with A starting at 85 marks is a common convention that many HEC-recognised universities follow closely, but each publishes its own grading plan and can set different boundaries. The value of A-, the number of bands, the failing threshold and whether grading is absolute or relative all vary, so read the plan on your own result card first.

What is the formula to convert CGPA to percentage in Pakistan?

There is no single official formula. Your result card usually already prints a percentage taken from obtained marks divided by total marks, and that is the most defensible number to quote. Multiplying CGPA by 20 is a rough shortcut that can land several points away from it, so use your university's published conversion for anything official.

Do deficiency courses count towards CGPA?

It depends on the university, and sometimes on which line of the result card you are reading. Some feed the starred course into the GPA arithmetic but leave its credit hours out of the degree total, others exclude it from both. Check the notes on your own card or ask the examination department, because the two treatments can shift your CGPA by a few hundredths.

How are lab courses counted in GPA?

Labs are normally separate one credit hour courses with their own letter grade, and they enter the average like any other course: credit hours multiplied by grade point. A perfect lab grade therefore lifts your SGPA far less than the same grade in a three credit hour theory course.

How to calculate overall CGPA of all semesters without the calculator?

Keep two running totals, cumulative quality points and cumulative credit hours, and divide one by the other after each semester. Here is how to calculate all semester CGPA for eight terms: add the eighth semester's quality points and credit hours to the running totals and divide again, with no need to re-enter earlier courses.

How is CGPA calculated if some semesters have different credit hours?

It is weighted by credit hours, so a 12-credit semester counts less than an 18-credit one. That is how total CGPA is calculated on a result card, and how we calculate CGPA in the examples above: total quality points divided by total credit hours, never the plain average of SGPAs.

How to find CGPA and how to check CGPA on a university portal?

To find CGPA yourself, use the running totals above. To check CGPA on a portal, open the latest result card or transcript, where the cumulative figure is printed beside the SGPA. If the portal and your arithmetic disagree, compare the credit hours first, because deficiency courses and repeats are the usual cause.

How to calculate CGPA of 6 semesters or 8 semesters?

Use the same method: add the quality points of all six or eight semesters, add their credit hours, and divide. A typical BS degree of 8 semesters at 17 credit hours each has 136 credit hours. How to calculate total CGPA of 8 semesters is therefore no harder than for 2, because the running totals do the work.

Put this into practice with the free CGPA Calculator.