Skip to content
DoItJag

Weighted Average Cost Calculator

Enter opening stock and each purchase and sale to get the average cost per unit. Choose a moving average, recalculated after every purchase, or one average for the whole period, and see how it compares with FIFO.

Units on hand at the start. Leave empty for 0.

What each opening unit cost you.

Purchases and sales, in date order

One line per purchase or sale, oldest first. Empty lines are skipped. Use the same currency throughout.

Paste rows from a spreadsheet

Copy the cells from Excel, Google Sheets or a CSV file in this column order: Type, Quantity, Cost per unit (purchases), Selling price per unit (sales, optional). A header row is skipped. Up to 500 rows; the pasted rows replace the rows above.

Cost the sales

Enter at least one purchase or sale to see the result.

Spreading cost evenly across identical units

When the units in a bin are identical and you cannot tell one batch from another, weighted average cost is often the most natural way to value them. Every unit takes the same cost: the total spent on the units divided by how many there are. Many accounting packages use it by default, and IAS 2 and Ind AS 2 both permit it.

Moving average versus periodic average

There are two ways to apply the idea, and the calculator lets you switch between them.

A moving average, also called perpetual, is refreshed every time a purchase arrives. Sales that follow are charged at the new average until the next purchase changes it again. This suits businesses whose software updates stock with every invoice.

A periodic average is a single rate for the whole month, quarter or year. Add the cost of opening stock to the cost of all purchases, divide by the units available, and apply that one rate to every unit sold and every unit left.

Example with both

Opening stock is 100 units at 10. You sell 80, buy 100 at 12 and sell 50. Under the moving method the first sale costs 800. The 20 units left join the new 100, giving 120 units worth 1,400, an average of about 11.67. The second sale then costs about 583.33, so total cost of sales is about 1,383.33.

Under the periodic method, 200 units cost 2,200 over the period, an average of exactly 11. The 130 units sold cost 1,430 and the 70 left are worth 770.

Tips

  • Averages often run to many decimals. The tool keeps full precision and only rounds what it displays, so small rounding gaps do not build up.
  • Choose one approach and stay with it. Switching between moving and periodic from one year to the next makes results hard to compare.
  • The comparison table shows the same entries under FIFO and LIFO, which helps explain the effect to a lender or partner.

How to use Weighted Average Cost Calculator

  1. Enter the opening stock quantity and its cost per unit, if any.
  2. Add each purchase with quantity and cost per unit, and each sale with its quantity, in date order.
  3. Pick moving (perpetual) or periodic average and read the cost per unit, COGS and closing stock.

Privacy: how it works

Calculations run in your browser. The amounts you enter are not sent anywhere.

Frequently asked questions

How is weighted average cost calculated?

Total cost of the units ÷ number of units. With 100 units at 10 and 100 at 12, the average is 2,200 ÷ 200 = 11, so selling 150 costs 1,650 and the 50 left are worth 550.

What is the difference between moving and periodic average?

A moving average is worked out again after each purchase and used for the sales that follow. A periodic average is one figure for the whole period: cost of goods available ÷ units available.

Is weighted average allowed under IFRS and Ind AS?

Yes. IAS 2 and Ind AS 2 allow FIFO or weighted average cost for items that are ordinarily interchangeable.