Menu
Advertisement

Test Grade Calculator with an Easy Grader Chart

Enter the number of questions on a test and how many were wrong. You get the score as a percent, a letter and a fraction, and a grading chart with the score for every number of wrong answers.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to grade a test or quiz

When every question counts the same, a test score is a fraction: the correct answers over the number of questions. Miss 3 of 20 and you have 17 correct, 17 / 20 is 0.85, and that is 85%. The calculator shows the percent, the letter grade, the fraction and what one question is worth, here 5% each.

Below the result is a grading chart, the table teachers call an easy grader. It has a row for every number of wrong answers from none to all of them, with the correct answers, the score and the letter for each. Set the number of questions once and you can grade a whole stack of papers by looking up each one's wrong answers. The chart opens on 20 questions and works for any test of 1 to 200 questions.

The letters follow the most common US scale with plus and minus: 93 and up is an A, 90 an A-, 87 a B+, down to a D- at 60 and an F below that. Schools and teachers set their own cutoffs, so treat the percent as the fact and the letter as a guide. Nothing you type leaves your browser.

What you will learn from grading a test

  • A percent is a fraction of 100. Dividing the correct answers by the number of questions and multiplying by 100 turns 17 / 20 into 85%.
  • The fewer the questions, the more each one costs. One question is 10% of a 10 question quiz and 2% of a 50 question test.
  • Scores on a test come in steps. On 20 questions every score is a multiple of 5, so no paper can get 93% and the best grade below 100% is 95%.
  • A grading chart is a loop. In Python, a for loop over range(questions + 1) prints the whole easy grader, as the example on this page shows.

How to use the test grade calculator

  1. Enter the number of questions

    Type how many questions the test has, from 1 to 200. The field starts at 20, and the grading chart below updates as you type.

  2. Enter the wrong answers

    Type how many questions were missed, as a whole number. If you counted the correct answers instead, subtract them from the number of questions first.

  3. Read the grade

    The result shows the score as a percent, the letter grade, the fraction of correct answers and what each question is worth.

  4. Grade a stack with the chart

    To grade many papers, leave Wrong answers alone and use the chart: find the row for a paper's wrong answers and read its score and letter.

How many questions you can miss

The most wrong answers that still earn each grade on the common scale, by the size of the test. Worked out with the same chart the calculator draws.

QuestionsEach is worthFor an A (93%)For an A- (90%)For a B- (80%)For a C- (70%)For a D- (60%)
1010%0 wrong1 wrong2 wrong3 wrong4 wrong
156.67%1 wrong1 wrong3 wrong4 wrong6 wrong
205%1 wrong2 wrong4 wrong6 wrong8 wrong
254%1 wrong2 wrong5 wrong7 wrong10 wrong
303.33%2 wrong3 wrong6 wrong9 wrong12 wrong
402.5%2 wrong4 wrong8 wrong12 wrong16 wrong
502%3 wrong5 wrong10 wrong15 wrong20 wrong
1001%7 wrong10 wrong20 wrong30 wrong40 wrong

Test grade calculator examples

A 20 question quiz

Paste a small example into the tool and change one part at a time.

17 of 20 answers are correct, so the grade is 85%, a B. Each question is worth 5%. In the chart, 2 wrong is 90%, an A-, and 4 wrong is 80%, a B-.

A test with an awkward number of questions

Copy the original value, run the tool, then compare the result.

31 / 35 is 88.57%, a B+. Each question is worth 2.86%, which is why mental arithmetic gets hard here and a chart saves time.

Grading a class set with the chart

Chart for 20 questions, first rows

Wrong Correct Score Letter 0 20 100% A 1 19 95% A 2 18 90% A- 3 17 85% B 4 16 80% B- 5 15 75% C 6 14 70% C- 7 13 65% D 8 12 60% D- 9 11 55% F

Set the number of questions to 20 and the chart lists every possible paper. Count the wrong answers on each test and read across. From 9 wrong down, every row is an F on this scale.

Print an easy grader in Python

A grading chart with a for loop
questions = 25
for wrong in range(6):    correct = questions - wrong    score = correct * 100 / questions    print(f"{wrong} wrong: {correct}/{questions} = {score:g}%")
Output

0 wrong: 25/25 = 100% 1 wrong: 24/25 = 96% 2 wrong: 23/25 = 92% 3 wrong: 22/25 = 88% 4 wrong: 21/25 = 84% 5 wrong: 20/25 = 80%

Each wrong answer on a 25 question test costs 4%. Change range(6) to range(questions + 1) to print every row, as the chart on this page does.

Common mistakes when grading a test

  • Typing the correct answers into Wrong answers. 17 right out of 20 is 3 wrong. Typing 17 gives 15%.
  • Dividing by the wrong total. Divide by the number of questions on the test, not by 100 and not by the number of questions the student attempted.
  • Using question counts when questions are worth different points. If an essay is worth 20 points and a short answer 2, count points instead, with the Points mode of the grade calculator.
  • Reading the letter as universal. A 90% is an A- on this scale and a plain A where the school has no minus grades. The percent is the same everywhere.
  • Rounding before looking up the letter. 31 of 35 is 88.57%, a B+, and stays a B+: the calculator does not round up to a whole number.

Test grade calculator FAQ

How do I calculate a test grade?

Divide the number of correct answers by the number of questions and multiply by 100. With 3 wrong out of 20 you have 17 correct, and 17 / 20 x 100 is 85%.

What is an easy grader?

A chart teachers use to grade without arithmetic. It lists the score for every possible number of wrong answers on a test of a given length. The chart on this page is one: set the number of questions and look up each paper.

What grade is 17 out of 20?

85%, which is a B on the common US scale used here. 18 out of 20 is 90%, an A-, and 16 out of 20 is 80%, a B-.

How many questions can I miss and still get an A?

It depends on the length of the test. For a grade of 93% or more you can miss 1 of 20 questions, 3 of 50 or 7 of 100, and none on a 10 question quiz. For an A-, at 90%, it is 2 of 20, 5 of 50 and 10 of 100.

How much is each question worth?

100 divided by the number of questions. That is 5% each on a 20 question test, 4% on 25 questions, 2.5% on 40 and 2% on 50. The result shows this number for your test.

Can I give half credit?

Not here. Wrong answers are whole numbers, so a half point cannot be typed. For partial credit, or questions worth different amounts, use the Points mode of the grade calculator and enter the points earned and possible.

How many questions can the chart handle?

From 1 to 200. With 200 questions the chart has 201 rows, one for every number of wrong answers from 0 to 200.

Is 60% a passing grade?

On the scale used here 60% is a D-, the lowest grade above an F. Whether that passes depends on the school and the class: many high schools pass at 60 or 65, and many college programs need a C, around 70 or more, for a course to count.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started