Skip to content
Jellykit

Weighted Average Calculator

Work out a weighted mean from values and their weights, such as grades with credit hours or scores with percentages.

  • Runs on your device
Loading tool

About Weighted Average Calculator

A plain average counts every value once. A weighted average lets some values count for more: a four-credit course more than a one-credit one, a final exam worth 40% more than a quiz worth 10%. Put each item on its own line as an optional name, the value and its weight, and this tool divides the sum of value × weight by the total weight.

The result comes with the working, a table showing how much of the total weight each item carries, and the unweighted mean for comparison. Weights can be credits, percentages, counts or any other non-negative numbers, and they do not need to add up to 100.

How it works

  1. Each line is read from the end: the last number is the weight, the one before it is the value, and any words in front are the item’s name. A first line with no digits, such as a header copied from a spreadsheet, is skipped.
  2. The weighted average is the sum of each value multiplied by its weight, divided by the sum of the weights.
  3. Sums are worked out to the decimal places of your numbers and results are kept to fifteen significant digits, so floating-point noise such as 0.30000000000000004 does not appear.
  4. Everything runs in your browser, and the list is kept in the page address so a calculation can be bookmarked or shared as a link.

Questions

Do my weights need to add up to 100?

No. The tool divides by whatever the weights add up to, so credits (4, 3, 3), percentages (40%, 60%) and fractions (0.4, 0.6) all give the same answer when they are in the same proportion.

How do I work out a GPA with this?

Enter each course’s grade points as the value and its credit hours as the weight, for example “Biology 3.7 4”. The weighted average is the GPA. Converting letter grades to points depends on your school’s scale, so do that first.

Can a weight be zero or negative?

A weight of zero is allowed and leaves that item out of the result. Negative weights are refused, because a weighted average with them can fall outside the range of the values and stops meaning an average.

Can I use commas for decimals or thousands?

No. Commas separate the parts of a line, so write 2.5 rather than 2,5 and 1200 rather than 1,200. A trailing percent sign is fine and simply ignored.

How many items can I enter?

Up to 50,000 lines, or 200,000 characters of text. The table lists the first 100 items, but the result always uses all of them, and the tool warns you if a paste reached the character limit and was cut off.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.