Grade Calculator
Calculate your course grade from weighted assignments, tests, and final exams. Essential for students tracking academic progress.
Grade Scale
| Letter | Percentage | GPA |
|---|---|---|
| A | 90-100% | 4.0 |
| B | 80-89% | 3.0 |
| C | 70-79% | 2.0 |
| D | 60-69% | 1.0 |
| F | Below 60% | 0.0 |
Weighted Grade Example
| Component | Weight | Score | Weighted |
|---|---|---|---|
| Homework | 20% | 95% | 19% |
| Midterm | 30% | 82% | 24.6% |
| Final | 50% | 88% | 44% |
| Total | 100% | - | 87.6% (B+) |
Implementation
``javascript
function calculateWeightedGrade(grades) {
// grades = [{score: 95, weight: 20}, ...]
const totalWeight = grades.reduce((sum, g) => sum + g.weight, 0);
const weightedSum = grades.reduce((sum, g) => sum + (g.score * g.weight / 100), 0);
return (weightedSum / totalWeight) * 100;
}
``
What Grade Do I Need?
Calculate the minimum final exam score needed: Required = (Target - Current × (1 - FinalWeight)) / FinalWeight