Skip to content

Weighted Average Calculator

A weighted average calculator is for data where some values count more than others. Enter each value alongside its weight, for example the price per kilo and the kilos bought, or a score and the hours it represents, and the tool multiplies, sums and divides for you. It is the right tool for average purchase cost, average share price across several buys and average rating across different sample sizes.

FreeNo signupNothing uploaded or stored

Mode

Values and weights

Weighted average

-

Enter values and weights

How to use the weighted average calculator

  1. Add a row for each item and type the value in the first column, for example the unit price you paid on one delivery.
  2. Type the weight in the second column, such as the quantity, hours, credits or number of responses that value represents.
  3. Keep adding rows until every item is in. The running total of weights is shown so you can confirm it matches what you expect.
  4. Read the weighted average in the results panel, together with the plain average for comparison, and copy it where you need it.

What to include

  • One value per row, in the same unit throughout
  • A weight for every row, never left blank
  • Weights in a single consistent unit, such as all kilos or all hours
  • Quantities as positive numbers, since a negative weight makes no sense
  • Returns or reversals entered as a separate correction rather than a negative weight
  • The rounding you want for the final figure

How a weighted average is worked out

Each value is multiplied by its weight, those products are added together, and the total is divided by the sum of the weights. Suppose a shop buys 40 kg of rice at 180 per kg, then 60 kg at 200 per kg. The products are 7,200 and 12,000, which sum to 19,200. The weights sum to 100 kg. Dividing gives a weighted average cost of 192 per kg. The simple average of the two prices would be 190, which understates what the stock actually cost because more was bought at the higher price.

The same method gives an average share price across several purchases, an average customer rating when different products received different numbers of reviews, and an average hourly rate across several jobs of different lengths. Whenever you find yourself thinking that some of these entries are bigger than others, you need a weighted average.

Weights that add up to 100 versus raw quantities

You do not need to convert weights into percentages first. The calculator divides by the total weight, so raw quantities such as 40 kg and 60 kg produce exactly the same answer as 40 and 60 out of 100. If you already have percentage weights that add to 100, enter them as they are. If your weights are supposed to add to 100 but do not, the result is still mathematically valid, but it may mean a line is missing, which is why the total weight is displayed.

Frequently asked questions

What is the difference between a weighted and a simple average?

A simple average treats every value equally. A weighted average lets each value count in proportion to its weight, so a large order influences the result more than a small one.

Can I use this to find my average cost per share?

Yes. Enter the price paid as the value and the number of shares as the weight for each purchase. The result is your average cost per share before fees.

Do the weights have to add up to 100 or 1?

No. Use raw quantities, hours or counts. The tool divides by the total of whatever weights you enter, so the scale does not matter.

What if one of my weights is zero?

A zero weight simply means that row contributes nothing to the result. The row is kept in the list but has no effect on the average.

Do I need an account to save my rows?

No account is needed and nothing is saved on our side. If you want to keep a set of rows, copy them into a spreadsheet before closing the tab.