Sgpa Calculator

#sgpa-calculator-wrapper { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; background-color: #ffffff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); color: #333; line-height: 1.6; } #sgpa-calculator-wrapper h2 { color: #2c3e50; text-align: center; margin-bottom: 25px; font-size: 28px; } .subject-row { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; } .subject-row input { padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .subject-name { flex: 2; } .grade-points { flex: 1; } .credit-hours { flex: 1; } .calc-btn { background-color: #3498db; color: white; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: background 0.3s; font-size: 16px; margin-top: 10px; } .calc-btn:hover { background-color: #2980b9; } .add-btn { background-color: #2ecc71; margin-right: 10px; } .add-btn:hover { background-color: #27ae60; } #result-container { margin-top: 30px; padding: 20px; background-color: #f8f9fa; border-left: 5px solid #3498db; border-radius: 6px; display: none; } #result-value { font-size: 32px; font-weight: bold; color: #2c3e50; } .remove-btn { background: #e74c3c; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; } .article-section { margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; } .article-section h3 { color: #2c3e50; margin-top: 25px; } .example-box { background-color: #fff9db; padding: 15px; border-left: 4px solid #f1c40f; margin: 15px 0; } @media (max-width: 600px) { .subject-row { flex-direction: column; } .subject-row input { width: 100%; } }

Semester Grade Point Average (SGPA) Calculator

Your Semester SGPA is:
0.00

What is SGPA?

SGPA stands for Semester Grade Point Average. It is a metric used by universities to measure a student's academic performance in a single semester. Unlike a simple average, SGPA is a weighted average where the "weight" of a grade is determined by the credit value of the course.

How to Calculate SGPA

The calculation follows a specific mathematical formula:

Formula: SGPA = Σ (Grade Points × Course Credits) / Σ (Total Credits)
  1. Multiply the grade point earned in each subject by the credits assigned to that subject.
  2. Sum all these weighted products (Total Quality Points).
  3. Divide the total quality points by the sum of all credits attempted during the semester.

Calculation Example

Suppose you took 3 subjects in a semester:

  • Mathematics: 9 Grade Points, 4 Credits (9 × 4 = 36)
  • Physics: 8 Grade Points, 3 Credits (8 × 3 = 24)
  • English: 10 Grade Points, 2 Credits (10 × 2 = 20)

Total Quality Points: 36 + 24 + 20 = 80

Total Credits: 4 + 3 + 2 = 9

SGPA: 80 / 9 = 8.89

Difference Between SGPA and CGPA

While SGPA focuses solely on one semester, CGPA (Cumulative Grade Point Average) accounts for the performance across all semesters completed so far. To find your CGPA, you typically average your SGPAs or calculate the weighted average of all credits earned throughout your entire degree program.

function addSubjectRow() { var container = document.getElementById('subjects-container'); var newRow = document.createElement('div'); newRow.className = 'subject-row'; newRow.innerHTML = ` `; container.appendChild(newRow); } function removeRow(btn) { var row = btn.parentNode; row.parentNode.removeChild(row); } function calculateSGPA() { var gradeInputs = document.getElementsByClassName('grade-points'); var creditInputs = document.getElementsByClassName('credit-hours'); var totalWeightedPoints = 0; var totalCredits = 0; var validInputs = 0; for (var i = 0; i 0 && totalCredits > 0) { var sgpa = totalWeightedPoints / totalCredits; resultValue.innerText = sgpa.toFixed(2); statsDiv.innerText = "Total Credits: " + totalCredits + " | Total Quality Points: " + totalWeightedPoints.toFixed(2); resultDiv.style.display = 'block'; // Scroll to result resultDiv.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); } else { alert("Please enter valid Grade Points and Credits for at least one subject."); resultDiv.style.display = 'none'; } }

Leave a Reply

Your email address will not be published. Required fields are marked *