Students

How to calculate your GPA and CGPA

Your GPA covers one semester and your CGPA covers all of them. Here is the credit-hour maths behind both, with a worked example you can copy.

By Trivx Solutions · 30 November 2026 · 3 min read

To calculate your GPA, multiply each course's grade point by its credit hours, add the results, then divide by your total credit hours. Your CGPA uses the same idea across every semester you've finished. The maths is simple once you see it laid out, and it explains why some courses move your result far more than others.

GPA vs CGPA: what's the difference?

Your GPA (Grade Point Average) is your average for one semester. Your CGPA (Cumulative Grade Point Average) is your average for your whole degree so far. Both sit on a 4.0 scale at most Pakistani universities, so 4.00 is the top mark and 0.00 is a fail.

The key word in both is credit hours. A 4-credit lab course counts for more than a 2-credit seminar. That's why two students with the same letter grades can end up with different GPAs if their course loads differ.

How to calculate your semester GPA

  1. List your courses with the credit hours printed on your timetable or transcript.
  2. Turn each letter grade into grade points using your university's scale.
  3. Multiply each course's grade points by its credit hours. These are your quality points.
  4. Add up the quality points, then add up the credit hours.
  5. Divide total quality points by total credit hours. That's your GPA.

Here's a worked example for an 11-credit semester:

CourseCreditsGradeQuality points
Calculus3A− (3.67)11.01
Programming3B (3.00)9.00
English2A (4.00)8.00
Physics3C+ (2.33)6.99
Total35.00 ÷ 11 = 3.18 GPA

Notice that the A in English helps less than you'd expect, because it's only worth 2 credits. You can skip the sums and enter your courses in the GPA and CGPA calculator, which updates as you type.

How to calculate your CGPA

Your CGPA is total quality points from every semester divided by total credit hours from every semester. Don't average your semester GPAs, because that ignores credit hours.

Say you got a 2.80 GPA over 18 credits in semester 1 and a 3.60 GPA over 12 credits in semester 2:

  • Semester 1: 2.80 × 18 = 50.4 quality points
  • Semester 2: 3.60 × 12 = 43.2 quality points
  • CGPA: (50.4 + 43.2) ÷ 30 = 3.12

A plain average of 2.80 and 3.60 gives 3.20, which is wrong. The heavier first semester pulls your real CGPA down. In the calculator, enter your current CGPA and completed credit hours, add this semester's courses, and it gives you the new figure.

The more credits you've completed, the harder it gets to move your CGPA. In your final year, one great semester shifts it far less than it would have in year one. Plan early if you're aiming for a 3.0 or 3.5 cut-off.

Grading scales differ between universities

The calculator uses the HEC 4.0 scale, which most universities in Pakistan follow. On that scale A is 4.00, A− is 3.67, B+ is 3.33, B is 3.00 and F is 0.00. If you type marks instead of grades, it treats 85 and above as an A and below 50 as an F.

Your university may set different mark ranges, add an A+ or use another scale. Universities abroad often use their own systems too. Always check your student handbook, and when in doubt, use the letter grade printed on your transcript rather than your marks.

There's also no single official formula to turn a CGPA into a percentage. Each university publishes its own conversion, so use theirs for job forms and scholarship portals.

Common mistakes to avoid

  • Ignoring credit hours: every course must be weighted by its credits.
  • Rounding too soon: keep two decimals until the final step.
  • Counting non-credit courses: pass/fail courses usually don't count. Check your transcript.
  • Forgetting repeated courses: universities treat a repeated course differently, so read the rules.

Writing a scholarship essay with a word limit? Check it in the word counter. Thinking about what to do after your degree? The IT skills quiz suggests a skill that fits you. If you're still choosing a university, see how merit aggregates are worked out.

Questions

How do I calculate GPA with credit hours?
Multiply each course's grade points by its credit hours, add the results, then divide by your total credit hours. A 3-credit B (3.00) gives 9 quality points.
Is CGPA the average of all semester GPAs?
No. CGPA divides total quality points by total credit hours across all semesters. A plain average of GPAs ignores credit hours and gives the wrong result when semesters have different loads.
Which grading scale does the Trivx calculator use?
It uses the HEC 4.0 scale followed by most Pakistani universities, where A is 4.00 and F is 0.00. If your university's scale differs, enter the letter grades shown on your transcript.
What is the fastest way to raise my CGPA?
Focus on high-credit courses, since they carry the most weight. Your CGPA moves most in early semesters, because later semesters are a smaller share of your total credits.