Menu
Advertisement

Grade Calculator for Weighted Grades and Points

Enter each assignment's grade and its weight, or the points you earned and the points possible. You get your class grade as a percent and a letter, and the average you need on the work that is left.

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 calculate your grade in a class

Most syllabuses split a class into weighted parts: homework 15%, quizzes 25%, a midterm 30%, a final 30%. Your class grade is a weighted average. Multiply each grade by its weight, add the results, then divide by the total of the weights. With 95 on homework, 88 on quizzes, 82 on the midterm and 90 on the final, that is 14.25 + 22 + 24.6 + 27, which is 87.85%, a B+.

The weights do not have to add up to 100. In the middle of a term only part of the class is graded, so the calculator divides by the weight you entered and shows that total as Weight entered. Add the grade you want and it also shows the average you need on the remaining weight. If your teacher counts points instead, switch to Points: the grade is all the points you earned divided by all the points possible.

The letter grade follows the most common US scale with plus and minus: 93 and up is an A, 90 an A-, 87 a B+, and so on down to a D- at 60. Schools and teachers do set their own cutoffs, so check your syllabus before you rely on the letter. Nothing you type is sent or saved.

What you will learn while working out a grade

  • A weighted average multiplies every grade by its weight before adding, then divides by the total weight. A plain average is the same sum with every weight equal.
  • A big weight moves the grade more than a big score. Ten points more on a 30% midterm add 3 points to your class grade, while ten points more on a 5% quiz add half a point.
  • With points, every point counts the same. An assignment out of 100 points weighs five times as much as one out of 20, with no weights to set.
  • In Python the whole sum is one line: sum(g * w for g, w in grades) divided by the total weight. The example below runs the same numbers as the calculator.

How to use the grade calculator

  1. Pick how your class is graded

    Leave Percent and weight selected if your syllabus gives each category a percentage of the grade. Choose Points if every assignment is worth a number of points and the grade is the points earned out of the points possible. Each mode keeps its own numbers when you switch.

  2. Fill in a row for each assignment

    Type the grade as a percent and the weight as a percent of the class, or the points earned and the points possible. The name is optional and only helps you keep track. A row counts once both of its numbers are filled in, and decimals such as 87.5 work.

  3. Add or remove rows

    The calculator starts with four rows. Press Add an assignment for more, up to 30, or remove a row with its cross. Empty rows are ignored.

  4. Read your grade

    The result shows your grade from the rows that count, the letter grade and, in Percent and weight, the total weight you entered. In Points it shows the points earned and the points possible.

  5. Ask what you still need

    In Percent and weight, type the grade you want. While the weights add up to less than 100, the result shows the average you need on the remaining weight to finish with that grade.

Letter grade scale used by the calculator

The common US scale with plus and minus. The letter is read from your grade rounded to two decimals and is never rounded up to a whole number, so 89.99% is a B+. Your school may use other cutoffs.

Letter gradeLowest percentUp to
A93%100% and above
A-90%92.99%
B+87%89.99%
B83%86.99%
B-80%82.99%
C+77%79.99%
C73%76.99%
C-70%72.99%
D+67%69.99%
D63%66.99%
D-60%62.99%
F0%59.99%

Grade calculator examples

A finished class with four weighted parts

Percent and weight

Homework grade 95 weight 15 Quizzes grade 88 weight 25 Midterm grade 82 weight 30 Final grade 90 weight 30

14.25 + 22 + 24.6 + 27 is 87.85, and the weights add up to 100, so the result reads 87.85%, a B+, with 100% as the weight entered.

Halfway through the term

Percent and weight

Homework grade 92 weight 20 Quizzes grade 85 weight 30 Midterm grade 78 weight 25 Grade you want: 85

Only 75% of the class is graded, so the sum 6,340 is divided by 75: your grade so far is 84.53%, a B. To finish with 85% you need an average of 86.4% on the remaining 25%. Change the grade you want to 90 and the answer is 106.4%, which the result flags as more than 100%.

A class graded on points

Points

Lab report 18 of 20 Quiz 45 of 50 Exam 76 of 100

You earned 139 of 170 points, which is 81.76%, a B-. The exam is out of 100 points, so it moves the grade five times as much as the lab report.

The same weighted grade in Python

Weighted average
grades = [(92, 20), (85, 30), (78, 25)]  # (grade, weight)
weight_total = sum(weight for _, weight in grades)grade = sum(g * weight for g, weight in grades) / weight_totalprint(round(grade, 2), weight_total)
target = 85needed = (target * 100 - grade * weight_total) / (100 - weight_total)print(round(needed, 2))
Output

84.53 75 86.4

The first line printed is the grade so far and the weight entered. The second is the average needed on the remaining 25% to finish with 85, the same numbers the calculator shows.

Common mistakes when calculating a grade

  • Averaging the grades without their weights. 95 on homework worth 15% and 82 on a midterm worth 30% do not average to 88.5: the midterm counts twice as much.
  • Typing points into the Grade field. In Percent and weight, the grade is a percent, so 45 out of 50 goes in as 90. To type the points themselves, switch to Points.
  • Leaving the weight empty. A row counts only when both of its numbers are filled in, so a grade without a weight is left out of the result.
  • Entering a category you have no grade for yet. Leave that row empty: a 0 counts as a zero and pulls the grade down.
  • Trusting the letter without checking the syllabus. Some schools put an A at 90 or 94, or use no plus and minus, and some teachers round 89.5 up. The calculator does not round up.

Grade calculator FAQ

How do I calculate my grade with weights?

Multiply each grade by its weight, add the results and divide by the total of the weights. Grades of 95, 88, 82 and 90 with weights of 15, 25, 30 and 30 give 87.85%. The calculator does this as you type.

What if my weights do not add up to 100?

The grade is the average over the weight you entered, and the result shows that total. With 75% of the class graded you see your grade so far. If the weights add up to more than 100, the result says so and still gives the weighted average.

How do I calculate a grade from points?

Choose Points and type the points earned and the points possible for each assignment. The grade is the total earned divided by the total possible: 139 of 170 points is 81.76%.

What letter grade is my percentage?

On the scale used here an A starts at 93, an A- at 90, a B+ at 87, a B at 83, a B- at 80, a C+ at 77, a C at 73, a C- at 70, a D+ at 67, a D at 63 and a D- at 60. Below 60 is an F. Schools differ, so your syllabus has the final word.

Does the calculator round my grade up?

No. The percent is shown to two decimals and the letter is read from that number, so 89.99% is a B+ and 90% is an A-. Whether 89.5 becomes an A- is your teacher's decision.

What grade do I need on the rest of the class?

In Percent and weight, type the grade you want. While your weights add up to less than 100, the result shows the average you need on the remaining weight. It says so when that average is above 100% or when you already have the grade.

Can I enter extra credit?

Yes. A grade can be above 100 in Percent and weight, and in Points you can earn more points than are possible. The class grade can then come out above 100%.

How many assignments can I add?

Up to 30 rows. Most classes need fewer, because one row can stand for a whole category such as homework, with the category's average as its grade.

Are my grades saved or sent anywhere?

No. The calculator runs in your browser, sends nothing and saves nothing, so the rows are empty again when you reload the page.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started