CGPA Calculator
Please fill all fields correctly!
How to Use the CGPA Calculator
- Add Courses
- Start with the default course row
- Enter:
- ๐ Subject Name (any text)
- ๐ ฐ๏ธ Grade (select from dropdown: A/B/C/D/F)
- โฒ๏ธ Credit Hours (minimum 1)
- Click “Add Course” button to add more courses
- Calculate CGPA
- After entering all courses:
- Click “Calculate CGPA” button
- Result will appear below with your CGPA to 2 decimal places
- Reset Calculator
- Click “Reset” button to:
- Clear all courses
- Reset to initial single course row
- Clear results
- Click “Reset” button to:
- Important Features
- โ Input Validation:
- All fields are mandatory
- Credit hours must be โฅ1
- Shows error message if any field is missing/invalid
- ๐ฑ Responsive Design:
- Works perfectly on desktop, tablets, and mobile
- Inputs stack vertically on smaller screens
- โ Dynamic Course Addition:
- Add unlimited courses
- Each new course has same input fields
- โ Input Validation:
- Grade Points System
- A = 4 points
- B = 3 points
- C = 2 points
- D = 1 point
- F = 0 points
Example Calculation:
- Course 1: A (4) ร 3 credits = 12
- Course 2: B (3) ร 4 credits = 12
- Total Grade Points = 24
- Total Credits = 7
- CGPA = 24 รท 7 = 3.43
Tips:
- You can add courses even after calculation
- Error message automatically disappears when valid input is entered
- The calculator automatically validates all inputs before calculation
- Result box shows with a light blue background when calculation is successful