DEV Community

EZ Grader
EZ Grader

Posted on

How to Calculate a Test Score With a Simple Percentage Formula

Calculating a test score is one of the most common tasks for students, teachers, and anyone working with quizzes or exams.

Fortunately, the basic calculation is very simple. You only need to know the number of correct answers and the total number of questions.

The Test Score Formula

The standard formula is:

Percentage = (Correct Answers ÷ Total Questions) × 100
Enter fullscreen mode Exit fullscreen mode

For example, imagine a test has 20 questions and a student answers 17 correctly.

We can calculate the score like this:

(17 ÷ 20) × 100 = 85%
Enter fullscreen mode Exit fullscreen mode

The student's test score is 85%.

How to Calculate the Number of Correct Answers

Sometimes you are given the number of wrong answers instead of the number of correct answers.

In that case, use:

Correct Answers = Total Questions - Wrong Answers
Enter fullscreen mode Exit fullscreen mode

For example:

Total Questions = 50
Wrong Answers = 6
Enter fullscreen mode Exit fullscreen mode

First:

50 - 6 = 44
Enter fullscreen mode Exit fullscreen mode

So the student answered 44 questions correctly.

Now calculate the percentage:

(44 ÷ 50) × 100 = 88%
Enter fullscreen mode Exit fullscreen mode

The final test score is 88%.

Another Example

Suppose a quiz contains 30 questions and a student gets 24 correct.

The calculation is:

(24 ÷ 30) × 100
Enter fullscreen mode Exit fullscreen mode

First divide:

24 ÷ 30 = 0.8
Enter fullscreen mode Exit fullscreen mode

Then multiply by 100:

0.8 × 100 = 80%
Enter fullscreen mode Exit fullscreen mode

The student's score is 80%.

What If the Test Has 100 Questions?

A 100-question test is particularly easy to calculate.

If a student gets 92 questions correct:

(92 ÷ 100) × 100 = 92%
Enter fullscreen mode Exit fullscreen mode

So the score is simply 92%.

Similarly, if the student gets 75 correct answers:

(75 ÷ 100) × 100 = 75%
Enter fullscreen mode Exit fullscreen mode

Calculating a Score From Wrong Answers

Let's say an exam has 40 questions and a student gets 9 wrong.

First find the correct answers:

40 - 9 = 31
Enter fullscreen mode Exit fullscreen mode

Then calculate the percentage:

(31 ÷ 40) × 100 = 77.5%
Enter fullscreen mode Exit fullscreen mode

The test score is 77.5%.

Converting a Percentage Into a Grade

The percentage itself does not always determine the letter grade.

Different schools, teachers, colleges, and universities can use different grading scales.

For example, one grading scale might use:

Percentage Grade
90–100% A
80–89% B
70–79% C
60–69% D
Below 60% F

Using this example, a score of 85% would be a B.

However, this is only an example. Always check the grading scale used by your school or institution.

What About Weighted Grades?

The simple percentage formula works when every question or assignment has the same value.

Some courses use weighted grades.

For example:

  • Homework: 20%
  • Quizzes: 20%
  • Midterm: 25%
  • Final exam: 35%

In this situation, you cannot simply average all percentages. Each category needs to be multiplied by its assigned weight.

For example:

Homework: 90% × 20% = 18%
Quizzes: 80% × 20% = 16%
Midterm: 85% × 25% = 21.25%
Final: 90% × 35% = 31.5%
Enter fullscreen mode Exit fullscreen mode

Then add the weighted results:

18 + 16 + 21.25 + 31.5 = 86.75%
Enter fullscreen mode Exit fullscreen mode

The overall grade would therefore be 86.75%.

Quick Reference

Here is the basic formula to remember:

Percentage = (Correct Answers ÷ Total Questions) × 100
Enter fullscreen mode Exit fullscreen mode

If you know the number of wrong answers:

Correct Answers = Total Questions - Wrong Answers
Enter fullscreen mode Exit fullscreen mode

Then:

Percentage = (Correct Answers ÷ Total Questions) × 100
Enter fullscreen mode Exit fullscreen mode

Final Example

A test has 25 questions and a student gets 4 wrong.

Step 1:

25 - 4 = 21 correct
Enter fullscreen mode Exit fullscreen mode

Step 2:

(21 ÷ 25) × 100 = 84%
Enter fullscreen mode Exit fullscreen mode

The student's final test score is 84%.

Conclusion

Calculating a test score does not have to be complicated. For a test where every question has the same value, you only need two numbers: the number of correct answers and the total number of questions.

The key formula is:

(Correct Answers ÷ Total Questions) × 100
Enter fullscreen mode Exit fullscreen mode

Once you know this formula, you can quickly calculate percentages for quizzes, tests, exams, and other simple assessments.

Top comments (0)