Test Grade Calculator

Enter the score and the total. We show the percentage, the letter grade, and how many more you could have got wrong before dropping a grade.

Score to percentage and letter

Half marks are fine — partial credit is allowed.

Your test grade85%

a B — 6 wrong out of 40

Letter grade B
Questions wrong 6
Each question 2.5%

Score
34 of 40
Each question
2.5%
One more right
87.5% (B+)
One fewer
82.5% (B-)

This calculator needs JavaScript to recalculate. The answer shown above was worked out when the page was built and is correct for the date in the address bar.

Last checked

The easy part and the two hard parts

Score divided by total, times 100. That is the arithmetic, and it is not why anyone needs a page. The two things that actually cause trouble are partial credit and unequal question weights.

Partial credit means your score is not a whole number. Half marks on two questions of a 40-question test give you 34.5 out of 40 — 86.25%, which rounds to 86% and stays a B. Enter the decimal; do not round before dividing, because rounding twice is how a boundary gets crossed by accident.

Unequal weights break the model entirely. If a test has 20 questions but the last one is worth 10 points and the rest are worth 1, then "how many did I get wrong" tells you nothing on its own. Work in points, not in questions, whenever the questions are not equal.

Worked examples

34 out of 40. 34 ÷ 40 = 0.85 → 85%, a B on a standard scale. Six questions wrong. One more correct answer would have been 87.5% and a B+; one fewer would have been 82.5% and a B−. Each question on a 40-mark test is worth 2.5 percentage points, which is a useful thing to know before an appeal about a single disputed mark.

34.5 out of 40 with partial credit. 34.5 ÷ 40 = 0.8625 → 86.25%. Still a B, but only just: 87% is a B+ at most schools, so half a mark on one more question would have moved the letter. This is the situation where rounding convention decides a grade.

Rounding, and why we tell you what we do

We round half-up to one decimal place: 86.25% displays as 86.3%, and 89.5% displays as 89.5% and is not promoted to an A−. Different tools do different things here without saying so, which is why the same score produces different letters on different sites.

Whether your instructor rounds is a separate question and one no calculator can answer. Some round 89.5 to an A−, some do not, and almost none write it down. If your grade lands within half a point of a boundary, the calculator has done all it can and the rest is a conversation.

The formula

percentage = score ÷ total × 100

The letter grade uses the standard bands, which are set out with their grade points on the letter grade to GPA page. We do not repeat the table here; your school's bands may differ from the common convention and that page explains why.

Where this stops being reliable

Curved tests need the grade curve calculator — a curve changes the relationship between raw score and grade in a way this page cannot see. Bonus questions can push a score above 100%, which is legitimate and which we display rather than capping. Rubric-scored work marked out of 12 or 17 works fine here, but the letter-grade conversion is less meaningful when the total is small: on a test out of 12, each question is worth 8.3 percentage points and there is no such thing as a B+.

Common questions

What grade is 34 out of 40?

85%, which is a B on a standard scale. Each question on a 40-mark test is worth 2.5 percentage points, so 35 out of 40 would have been 87.5% and a B+.

How do I calculate a test percentage?

Divide your score by the total possible and multiply by 100. If questions carry different point values, work in points rather than in question counts — 18 questions right out of 20 is not 90% if the two you missed were worth five marks each.

How many can I get wrong and still get an A?

Divide the number of questions by 100 and multiply by the points you can afford to lose. On a 40-question test with an A at 90%, you can lose 10% — four questions. On a 25-question test the same 10% is 2.5 questions, so two wrong keeps the A and three does not.

How does partial credit work?

Enter the decimal score directly — 34.5 out of 40 is a valid entry and gives 86.25%. Do not round your score before dividing; rounding twice is how a grade crosses a boundary it should not have.

Do teachers round grades up?

Some do, some do not, and very few state their policy in advance. An 89.5% is an A− under one instructor and a B+ under another. If you are inside half a point of a boundary, the arithmetic has stopped being the deciding factor.

Can a test score be over 100%?

Yes, with bonus questions. 42 out of 40 is 105%, and we display it rather than capping at 100 — capping would hide the extra credit you actually earned. How your gradebook treats it is up to your school's system.