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.

Last updated November 11, 2026

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 × w

Solving for the final score gives the number the calculator shows:

Score needed = (target − current × (1 − w)) ÷ w

Weighted Grade Calculator

Weighted grade = Σ(grade × weight) ÷ Σ(weight)

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

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.

ScaleCutoffs
Standard (default)A 90 · B 80 · C 70 · D 60 · F below 60
Plus and minusA+ 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)

Test Cases

Every change to the calculation engine must pass these cases before release.

#CalculatorInputsExpected
1FinalCurrent 84%, final 25%, target 80%68.00%
2FinalCurrent 70%, final 50%, target 80%90.00%
3FinalCurrent 92%, final 20%, target 90%82.00%
4FinalCurrent 60%, final 20%, target 90%210% → not reachable; best possible 68.00% (D)
5FinalCurrent 95%, final 10%, target 80%−55% → guaranteed; lowest possible 85.50% (B)
6Final (points)380 of 450, final 150 points, target 85%130 points (86.67%)
7Final (after)Current 84%, final score 72%, weight 25%81.00% (B)
8Weighted92% × 20, 85% × 30, 78% × 5082.90% (B); unweighted 85.00%
9Weighted90% × 40, 70% × 4080.00% with "weights add up to 80%" note
10WeightedSame as #9, target 85%105% needed on remaining 20% → not reachable
11Weighted (points)45/50 × 25, 80/100 × 7582.50%
12Weighted100% × 10, 50% × 9055.00% (F)
13Test32 right of 4080.0% (B)
14Test17 right of 2085.0% (B)
15Test40 questions, 3 wrong92.5% (A)
16Test (points)85.5 of 100 points85.5% (B)
17TestMost misses for an A on 25 questions2 (92.0%); 3 misses = 88.0%
18Test (chart)50 questions, 5 wrong90.0% (A)
19Letter grade92% on 10-point / plus-minus / A-from-92A 4.0 / A− 3.7 / A 4.0
20Letter grade97% plus-minus, A+ 4.0 or 4.3; 89.99% A-from-92A+ 4.0 or 4.3; B+
21Letter grade85% honors; 59% AP; 105%B 3.0 → 3.5 weighted; F 0 (no bonus); A with extra-credit note
22GPAA, A, A, B, C at 1 credit (College Board example)3.40
23GPAB 4, A 4, D 1, B 4 credits (RPI example)41 quality points ÷ 13 = 3.15
24Cumulative54.68 ÷ 17 and 29.32 ÷ 12 (Mount Holyoke example)84.00 ÷ 29 = 2.90 (2.89 truncated); averaging the terms would give 2.83
25Weighted GPAA AP, B honors, C regular; F AP3.50 weighted, 3.00 unweighted; F stays 0
26GPAA+ and B−, A+ as 4.0 or 4.3; current 3.22 over 17 plus the RPI term3.35 or 3.50; cumulative 3.19 over 30 credits
27Score pages78%: 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
28GPA pages3.5 from four equal-credit classes; 3.5 after 30 credits to reach 3.752 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

Update Log

Found an error? Tell us through our contact page. Corrections are listed here with the date.