Every semester ends the same way. Results come out, everyone asks 'what is your GPA?', and half the class is not sure how it was calculated. Your transcript shows letters and numbers, a friend says her CGPA went up even though one grade dropped, and a scholarship form asks for a percentage that appears nowhere on your documents.
The maths behind GPA is simple. Once you understand one idea, credit hours, everything else falls into place: SGPA, CGPA and even planning your next semester. This guide explains it step by step with worked examples, and you can check every number with our free GPA calculator.
The short answer: the GPA formula
GPA = Σ(Grade Point × Credit Hours) ÷ Σ(Credit Hours)
Multiply each course's grade point by its credit hours, add everything up, then divide by the total credit hours. That is the whole formula.
GPA, SGPA and CGPA: what is the difference?
Term | Full form | What it covers |
|---|---|---|
GPA | Grade Point Average | A set of courses, often one semester |
SGPA | Semester Grade Point Average | One semester only |
CGPA | Cumulative Grade Point Average | All completed semesters together |
Many Pakistani universities say GPA for the semester result and CGPA for the overall result. Some use SGPA instead. The formula is the same; only the number of courses included changes.
Step 1: Know your grade points
Every university sets its own scale, so check your handbook or result portal first. Here is a commonly used 4.0 scale:
Marks | Grade | Grade point |
|---|---|---|
85–100 | A | 4.0 |
80–84 | A− | 3.7 |
75–79 | B+ | 3.3 |
70–74 | B | 3.0 |
65–69 | C+ | 2.7 |
60–64 | C | 2.3 |
50–59 | D | 1.0 |
Below 50 | F | 0.0 |
Important: this is an example of a widely used HEC-style table, not a rule for every institution. Some universities have extra steps such as B−, C− or D+, treat A+ separately, grade on a curve (relative grading), or use a 4.33 or 5.0 scale. Always use your own university's table. Our calculator lets you choose the grading system.
Step 2: Worked example for one semester (SGPA)
Course | Credit hours | Grade | Grade point | Quality points (GP × CH) |
|---|---|---|---|---|
Calculus | 3 | A | 4.0 | 12.0 |
Programming Fundamentals | 4 | B+ | 3.3 | 13.2 |
English Composition | 3 | A− | 3.7 | 11.1 |
Applied Physics | 3 | B | 3.0 | 9.0 |
Islamic Studies | 2 | A | 4.0 | 8.0 |
Total | 15 | 53.3 |
SGPA = 53.3 ÷ 15 = 3.55
Notice that a 4-credit course moves your SGPA twice as much as a 2-credit course. That is why one weak grade in a heavy course hurts more than the same grade in a light one.
Step 3: Calculate your CGPA
CGPA works the same way, but across all semesters: total quality points of all semesters divided by total credit hours of all semesters.
If you only remember your SGPAs, multiply each SGPA by that semester's credit hours, add them up, and divide by the total credit hours.
Semester | SGPA | Credit hours | Quality points |
|---|---|---|---|
1 | 2.80 | 18 | 50.4 |
2 | 3.60 | 12 | 43.2 |
3 | 3.40 | 15 | 51.0 |
Total | 45 | 144.6 |
CGPA = 144.6 ÷ 45 = 3.21
Common mistake: taking a simple average of the three SGPAs gives (2.80 + 3.60 + 3.40) ÷ 3 = 3.27. That is wrong, because the semesters carry different credit loads. A gap of 0.06 may not look like much, but it can decide whether you clear a scholarship or admission cut-off.
Can you convert CGPA to percentage?
The honest answer is: it depends on who is asking.
- Rough estimate: many students and online converters use CGPA ÷ 4 × 100 on a 4.0 scale. By that estimate 3.5 is about 87.5%, 3.0 is about 75% and 2.5 is about 62.5%. This is fine for getting a quick idea.
- Not official: each university or agency decides its own conversion. HEC's scholarship merit criteria, for example, use a range-based table rather than one formula, and foreign credential evaluators such as WES use their own methods.
- What to do: for any application, ask your university's examination office for an official grading-scale letter or conversion instead of guessing.
What is a good CGPA?
It depends on your goal. Many universities require around 2.0 to graduate (check your own rules). A CGPA near 3.0 is a common minimum for scholarships, exchange programmes and many master's admissions. A CGPA of 3.5 or higher keeps you competitive for merit scholarships and academic honours. Every programme sets its own cut-off, so read the requirement before you decide whether your number is good enough.
How to raise your CGPA (what the maths says)
The more credit hours you have completed, the slower your CGPA moves. Take a student with 60 completed credits and a CGPA of 2.80 (168 quality points). Next semester has 15 credits:
- Score a 3.5 SGPA: (168 + 52.5) ÷ 75 = 2.94
- Score a perfect 4.0 SGPA: (168 + 60) ÷ 75 = 3.04
Even a perfect semester only just clears 3.0, so plan across several semesters instead of expecting one big jump. Practical tips:
- Start early. The fewer credits already completed, the faster your CGPA responds to good results.
- Protect high-credit courses. Put your extra study hours into 3- and 4-credit courses, where each grade carries more weight.
- Check your repeat or grade-improvement policy. Some universities replace the old grade, others count both. Know the rule before you repeat a course.
- Work backwards from a target. Decide the CGPA you want and calculate the SGPA you need with our Target CGPA calculator.
Common GPA calculation mistakes
- Averaging SGPAs without weighting them by credit hours.
- Using the wrong grading scale (4.0, 4.33 or 5.0).
- Including non-credit or zero-credit courses that your university does not count.
- Rounding every course before adding. Round only the final answer to two decimals.
- Ignoring your university's rule for repeated courses.
Frequently asked questions
How do I calculate GPA from marks? First convert your marks into a letter grade using your university's table, then into grade points. After that, apply the formula: sum of (grade point × credit hours) divided by total credit hours.
Is CGPA × 25 the same as percentage? On a 4.0 scale, CGPA × 25 equals CGPA ÷ 4 × 100, which is a common rough estimate. It is not an official conversion at every university, so confirm with your institution for formal use.
What is the difference between GPA and CGPA? GPA usually covers one semester or a set of courses, while CGPA covers all completed semesters together.
Do credit hours really matter? Yes. The same grade in a 4-credit course changes your GPA twice as much as in a 2-credit course.
Can I calculate CGPA without every subject grade? Yes. If you know each semester's SGPA and credit hours, multiply and add them as shown in Step 3.
Does an F count in GPA? In most systems an F counts as 0.0 grade points and its credit hours stay in the total. Repeat policies differ, so check yours.
Is a 3.0 CGPA good? It meets the minimum for many scholarships and programmes, but competitive ones often ask for 3.5 or above. Check the specific requirement.
Which grading scale should I choose in the calculator? Pick the preset that matches your university. If your scale differs, use the closest one and compare against your official result.
Ready to check your own result? Use the free GPA, SGPA and CGPA calculator, or plan your next semester with the Target CGPA calculator.