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.

I will enter

The default follows HEC’s Semester Guidelines for Pakistan (section 9.2): only the better grade counts. Other institutions may use a different rule. Repeats are matched by course name.

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

  1. 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 institution’s policy.
  2. Choose whether you will enter letter grades or marks. For marks, first set the minimum marks for each grade in the scale.
  3. Enter each course with its credit hours and grade. Add semesters as you go; each semester shows its own GPA.
  4. 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.
  5. Choose how a repeated course counts: the best grade (the default), the latest attempt, or every attempt.
  6. 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 (cumulative GPA). This credit-weighted average is how GPA and CGPA are worked out on credit-hour systems; only the grade points and the top of the scale change between institutions.

Example: Calculus, 3 credit hours, A (4.0); Physics, 4 credit hours, B (3.0); English Composition, 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 institutions

The grade points and the marks needed for each letter are set by each university or college, and by each country’s system. Many use a 4.0 scale like the example here; others use a different top grade, such as 10 points, or no letter grades at all. Two institutions can give the same marks different grades. That is why the scale here is only an example: copy your institution’s grading table into it before you trust the result. Grade-scale presets for other countries, each with an official source, are planned.

Repeated courses

When you retake a course, institutions do not all count it the same way. Some count only the better grade, some only the latest attempt even when it is worse, and some count every attempt. 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 institution. 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.

In Pakistan (HEC)

This section applies to universities in Pakistan. The Higher Education Commission’s Policy Guidelines for the Uniform Semester System set the common rules:

  • GPA and CGPA formula (section 14): credit hours × grade points, summed and divided by the total credit hours, as above, on a 0.00 to 4.00 scale recommended for all universities.
  • Grade ranges: each letter grade has 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, so each university chooses its exact points and marks ranges.
  • Repeated courses (section 9.2): when an undergraduate repeats a course, both grades go on the transcript but only the better grade counts in the CGPA. This is the calculator’s default. Your university’s own regulations may differ, so check them.
  • Minimum CGPA to graduate (section 15.1): 2.00 for a BS degree and 2.50 for MS/MPhil.

Calculators for individual Pakistani universities, with their official scales, are planned.

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 institution. Many count only one attempt, either the better grade or the latest one; some count every attempt. This calculator counts the better grade by default, following HEC’s guideline for Pakistan (see “In Pakistan (HEC)” on this page), and you can switch to the latest attempt 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 institution sets the minimum, so check its degree regulations. In Pakistan, HEC’s semester guidelines give 2.00 for a BS degree and 2.50 for MS/MPhil (section 15.1).

See all Student Tools →

Sources and review

Last reviewed: .