Gpakit

Every December and every May, "what do I need on my final to get a B" becomes one of the most-searched grade questions in the United States. It is also one of the few academic questions with a single clean answer. The math is a one-line weighted-average rearrangement that takes about a minute to derive once, and then applies to every class you take for the rest of your life. This post walks through the derivation, three worked examples, and the edge cases that trip students up.

The formula, first

Let C be your current grade (as a percentage) coming into the final, w be the weight of the final as a decimal (so a 30% final is w = 0.30), and T be the target overall grade you want at the end of the term. The score you need on the final, call it R, is:

R = (T − C × (1 − w)) / w

That single expression answers the question. Our final exam grade needed calculator runs exactly this formula. The rest of this post is about where it comes from, so you can reproduce it on a napkin during office hours without needing a tool at all.

Where the formula comes from

Your final course grade is a weighted average of two things: everything before the final (call that C, with weight 1 − w) and the final itself (R, with weight w). Writing the weighted average:

Final grade = C × (1 − w) + R × w

You want that quantity to equal your target T. Substituting and solving for R:

T = C × (1 − w) + R × w
R × w = T − C × (1 − w)
R = (T − C × (1 − w)) / w

That is the entire derivation. No calculus, no statistics, just a weighted average rearranged. It is the same shape of formula that shows up in finance (required rate of return on a remaining asset), in physics (final velocity given an average), and in any other context where you know the overall average and some but not all of the components.

Worked example 1: the realistic case

You have an 84 going into a final worth 25% of the course grade, and you want to finish with a 90 to lock in the A-minus cutoff at your school. Plugging in: C = 84, w = 0.25, T = 90.

R = (90 − 84 × 0.75) / 0.25 = (90 − 63) / 0.25 = 27 / 0.25 = 108.

You need a 108 on the final. Which, unless your professor offers generous curving or extra credit on the exam itself, is out of reach. The math is telling you something useful here: an 84 with only 25% of the course left is too low a floor for a 90 target. The reachable target from an 84 with a 25% final is anything up to 0.75 × 84 + 0.25 × 100 = 88, so an 88 is the ceiling, and a 90 simply is not on the table.

Worked example 2: the stretch-but-reachable case

You have a 78 going into a final worth 30%, and you want a B (80 at most schools). Plugging in: C = 78, w = 0.30, T = 80.

R = (80 − 78 × 0.70) / 0.30 = (80 − 54.6) / 0.30 = 25.4 / 0.30 ≈ 84.7.

You need about an 85 on the final for a B overall. That is a realistic target — a few points above your course average — and it tells you how hard to prepare. If a 75 on the final is what you honestly expect, your overall grade lands at 0.70 × 78 + 0.30 × 75 = 77.1, which is a C-plus. The formula lets you see both outcomes before you open the study guide.

Worked example 3: the "already passed" case

You have a 95 going into a final worth 20%, and the course passes at 70. Plugging in: C = 95, w = 0.20, T = 70.

R = (70 − 95 × 0.80) / 0.20 = (70 − 76) / 0.20 = −6 / 0.20 = −30.

A negative number means you are already past the target regardless of what happens on the final. Even if you score zero, your overall grade is 0.80 × 95 + 0.20 × 0 = 76 — still a passing C. This is the math behind the "I could skip the final and still pass" calculation that instructors sometimes warn students about. Our grade-needed-to-pass calculator handles this lower-bound question directly.

When the required score is above 100

If the formula returns a number greater than 100, your target is mathematically unreachable by the final alone. Three practical responses:

  • Talk to the instructor. Many syllabi have a final-grade replacement policy (the final replaces the lowest midterm, or the final counts double if it helps) that was disclosed on day one and forgotten by week twelve. Check before assuming you're stuck.
  • Ask about extra credit. Some instructors allow end-of-term extra credit, a reflection paper, or a regrade on an earlier assignment. These are rarely advertised but often available if requested politely and early.
  • Adjust the target. If the A is unreachable, a solid B-plus may still be. Rerun the formula with a lower T to see what you can realistically aim for, and plan accordingly.

Partial weighting: when the "final" is really two things

Many syllabi end with a final exam plus a final project or presentation, each with its own weight. The formula still works, but w becomes the combined weight of everything still outstanding, and R becomes the average score you need across those remaining components. For instance, if you have a 20% final exam and a 10% final project still ahead, then w = 0.30 and R is your required average score across the two.

If you want to know the score you need on just one of them — assuming a specific score on the other — rearrange again. Suppose you expect a 90 on the project. Set R_combined = (20 × R_exam + 10 × 90) / 30, then solve for R_exam. Our weighted average calculator does this cleanly if you have several assignments still to go.

Sanity checks before you trust the answer

Two quick checks will catch almost every arithmetic mistake. First, the required score should always be greater than the target if your current grade is below the target, and less than the target if you're already above it. Second, if you plug your required score back into the weighted-average formula, you should get exactly the target grade. If either check fails, the most likely culprit is a confused weight — using 25 where you meant 0.25, or forgetting that "the final is 25%" means everything else is 75%.

The formula is deliberately boring. That is its strength. Once you've used it twice you'll never need to search for "what do I need on my final" again — you'll just run the arithmetic on the margin of your notebook in about thirty seconds.

Related calculators