How Our Grade Calculators Work
This page explains the formulas, grading scales, and assumptions behind our final grade, weighted grade, semester grade, test grade, and GPA calculators, and lists the test cases every release must pass.
Final Grade Calculator
A course grade with a final exam is a weighted average of your grade before the final and your final exam score. With w as the final's weight written as a decimal (25% = 0.25):
Course grade = current × (1 − w) + final × wSolving for the final score gives the number the calculator shows:
Score needed = (target − current × (1 − w)) ÷ w- Not reachable: if the score needed is above 100%, we show the best possible course grade, current × (1 − w) + 100 × w.
- Guaranteed: if the score needed is 0 or less, we show the lowest possible course grade, current × (1 − w).
- Points classes: points needed = target × (points possible so far + final points) − points earned so far.
Weighted Grade Calculator
Weighted grade = Σ(grade × weight) ÷ Σ(weight)- Categories with a blank grade are skipped, so the result is your grade on the work entered so far.
- Weights don't have to add up to 100%. We divide by the weight you entered and show a note when the total isn't 100%.
- In points mode, each category's grade is points earned ÷ points possible × 100 before weighting.
- Average needed on the rest = (target × 100 − Σ(grade × weight)) ÷ (100 − Σ weight), shown only when the entered weights are under 100%.
Semester Grade Calculator
The semester grade calculator combines grading periods and a final exam by weight. Unlike the weighted grade calculator, every row's weight counts, including rows with no grade yet: semester grade = Σ(grade × weight) ÷ Σ(all weights), the grade so far uses only the graded rows, and the score needed on the blank rows = (target × Σ all weights − Σ(grade × weight)) ÷ Σ(weights of blank rows). Weights that don't add up to 100 are treated as relative (2, 2, 1 = 40%, 40%, 20%) with a note. Above 100 the needed score is reported as not possible, at 0 or below as any score. The setups offered (40/40/20, 45/45/10, 25/25/25/25) are examples, not a standard. Test cases: 88% and 92% at 40% each with an 85% final at 20% = 89% (B); the same quarters with the final blank and a 90% target need 90% on the final; weights 40/40/30 with the final blank need 90% (of 110); weights 2/2/1 with 88 and 92 need 65% for 85%; quarters of 92% and 84% need 98% on a 20% final for 90%, and 108% (not possible) on a 10% final; quarters averaging 85% with a 40% final at 20% = 76%.
Test Grade Calculator
Test grade (%) = points earned ÷ points possible × 100- With "number wrong," points earned = total − number wrong, so every question counts the same.
- Most you can miss for a letter with cutoff c = floor(total × (100 − c) ÷ 100). We compute this with whole-number arithmetic first to avoid rounding errors (40 × 10 ÷ 100 = exactly 4).
- The grading chart lists every number wrong from 0 to the total, in steps of 1 (or 0.5 in points mode), up to 401 rows (a 200-point test in half points).
Letter Grade Scales
A grade earns the highest letter whose cutoff it meets. Cutoffs are inclusive: 90.00% is an A, 89.99% is a B. We don't round before comparing, because schools round differently.
| Scale | Cutoffs |
|---|---|
| Standard (default) | A 90 · B 80 · C 70 · D 60 · F below 60 |
| Plus and minus | A+ 97 · A 93 · A− 90 · B+ 87 · B 83 · B− 80 · C+ 77 · C 73 · C− 70 · D+ 67 · D 63 · D− 60 · F below 60 |
| Plus and minus, A from 92 (letter grade converter only) | A 92 · A− 90 · B+ 87 · B 82 · B− 80 · C+ 77 · C 72 · C− 70 · D+ 67 · D 62 · D− 60 · F below 60 (Prince William County Public Schools, 2026-27) |
Schools set their own cutoffs; the College Board notes that conversions vary and its own table starts a D at 66% (BigFuture). That's why every calculator lets you edit the A, B, C, and D cutoffs.
Grade Points (Letter Grade Converter)
The letter grade converter maps each letter to points on a 4.0 scale using UC Berkeley's registrar values: A+ 4.0, A 4.0, A− 3.7, B+ 3.3, B 3.0, B− 2.7, C+ 2.3, C 2.0, C− 1.7, D+ 1.3, D 1.0, D− 0.7, F 0 (UC Berkeley, Grade Definitions). An A+ can be set to 4.3, as at Cornell (Cornell transcript key). Weighted points add 0.5 for honors and 1.0 for AP, IB, or dual enrollment, following North Carolina policy GRAD-009, and never to an F. Percentages from 0 to 150 are accepted; above 100 shows an extra-credit note.
GPA Calculator
GPA = Σ(grade points × credits) ÷ Σ(credits)- Quality points: each class's grade points times its credits; the GPA is total quality points over total credits (RPI Registrar). With every class at 1 credit this is the plain average of grade points (College Board BigFuture).
- Grade points: the same values as the letter grade converter above; A+ is 4.0 or 4.3, as the visitor chooses.
- Weighted GPA: honors +0.5 and AP, IB or dual enrollment +1.0, never added to an F (NC SBE policy GRAD-009). The unweighted GPA ignores the bonus.
- Cumulative GPA: the current GPA times its credits gives earlier quality points; those are added to this term's, and the total is divided by all credits (Mount Holyoke Registrar). Term GPAs are never averaged.
- Rounding: results are rounded to two decimals; when truncating would show a different second decimal, the calculator says so.
Test Cases
Every change to the calculation engine must pass these cases before release.
| # | Calculator | Inputs | Expected |
|---|---|---|---|
| 1 | Final | Current 84%, final 25%, target 80% | 68.00% |
| 2 | Final | Current 70%, final 50%, target 80% | 90.00% |
| 3 | Final | Current 92%, final 20%, target 90% | 82.00% |
| 4 | Final | Current 60%, final 20%, target 90% | 210% → not reachable; best possible 68.00% (D) |
| 5 | Final | Current 95%, final 10%, target 80% | −55% → guaranteed; lowest possible 85.50% (B) |
| 6 | Final (points) | 380 of 450, final 150 points, target 85% | 130 points (86.67%) |
| 7 | Final (after) | Current 84%, final score 72%, weight 25% | 81.00% (B) |
| 8 | Weighted | 92% × 20, 85% × 30, 78% × 50 | 82.90% (B); unweighted 85.00% |
| 9 | Weighted | 90% × 40, 70% × 40 | 80.00% with "weights add up to 80%" note |
| 10 | Weighted | Same as #9, target 85% | 105% needed on remaining 20% → not reachable |
| 11 | Weighted (points) | 45/50 × 25, 80/100 × 75 | 82.50% |
| 12 | Weighted | 100% × 10, 50% × 90 | 55.00% (F) |
| 13 | Test | 32 right of 40 | 80.0% (B) |
| 14 | Test | 17 right of 20 | 85.0% (B) |
| 15 | Test | 40 questions, 3 wrong | 92.5% (A) |
| 16 | Test (points) | 85.5 of 100 points | 85.5% (B) |
| 17 | Test | Most misses for an A on 25 questions | 2 (92.0%); 3 misses = 88.0% |
| 18 | Test (chart) | 50 questions, 5 wrong | 90.0% (A) |
| 19 | Letter grade | 92% on 10-point / plus-minus / A-from-92 | A 4.0 / A− 3.7 / A 4.0 |
| 20 | Letter grade | 97% plus-minus, A+ 4.0 or 4.3; 89.99% A-from-92 | A+ 4.0 or 4.3; B+ |
| 21 | Letter grade | 85% honors; 59% AP; 105% | B 3.0 → 3.5 weighted; F 0 (no bonus); A with extra-credit note |
| 22 | GPA | A, A, A, B, C at 1 credit (College Board example) | 3.40 |
| 23 | GPA | B 4, A 4, D 1, B 4 credits (RPI example) | 41 quality points ÷ 13 = 3.15 |
| 24 | Cumulative | 54.68 ÷ 17 and 29.32 ÷ 12 (Mount Holyoke example) | 84.00 ÷ 29 = 2.90 (2.89 truncated); averaging the terms would give 2.83 |
| 25 | Weighted GPA | A AP, B honors, C regular; F AP | 3.50 weighted, 3.00 unweighted; F stays 0 |
| 26 | GPA | A+ and B−, A+ as 4.0 or 4.3; current 3.22 over 17 plus the RPI term | 3.35 or 3.50; cumulative 3.19 over 30 credits |
| 27 | Score pages | 78%: letters; test of 50 and 20 questions; final worth 20% to reach 80% | C (10-point), C+ (plus/minus); 39 right exactly 78%, 16 right is 80.0%; 88.0% on the final |
| 28 | GPA pages | 3.5 from four equal-credit classes; 3.5 after 30 credits to reach 3.75 | 2 A's and 2 B's (or 3 A's and 1 C); 30 credits of straight A's |
The tests run automatically with Node's built-in test runner against the same engine file the calculators load in your browser.
Known Limits
- We don't model dropped scores, extra-credit caps, or rules that require passing the final. Adjust your inputs for those, or ask your teacher.
- Gradebooks may round category averages at each step; we keep full precision, so results can differ by a few hundredths of a point.
- The test grade chart uses a straight scale with no curve.
- The letter grade converter shows weighted points for one class; the GPA calculator averages a list of classes.
- The GPA calculator doesn't apply a school's repeat, withdrawal, pass/fail or transfer-credit rules; leave those classes out or follow your registrar.
Update Log
- November 16, 2026: Merged the one-score and one-GPA pages into letter pages (A, B, C, D, F) and three GPA range pages on the GPA scale, with every score from 50 to 100 and GPAs from 2.0 to 4.0. Old addresses redirect to the matching section. The rules and test cases are unchanged.
- November 6, 2026: Added a page for each common score (/letter-grade/60/ to /letter-grade/100/) and GPA (/gpa-scale/), built from the same rules, and test cases 27 and 28.
- November 4, 2026: Added the GPA calculator, its formulas, and test cases 22 to 26.
- November 2, 2026: Added the letter grade converter, grade points, the A-from-92 scale, and test cases 19 to 21.
- November 2, 2026: First release of the final grade, weighted grade, and test grade calculators and this methodology.
Found an error? Tell us through our contact page. Corrections are listed here with the date.