Toolvito

Works on this device

Weighted Average Inventory Calculator

The weighted average cost method values every unit at the average cost of the stock. Enter your opening stock and purchases with the units sold, or a stock card of purchases and sales, and the calculator shows the average step by step with the cost of goods sold and the ending inventory.

Enter your values

Enter the opening stock and the purchases, and the units sold or the units counted at the end. One average cost for the period values both the units sold and the units left.

Your values

In a periodic system the units sold are often found from a count of the stock at the end.

Money from the units sold. Fill it in to see the gross profit. At most 2 decimal places.

Opening stock and purchases, oldest first

One row for the opening stock (if any) and one for each purchase, in the order they came in. Units and unit costs may have up to 4 decimal places.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Weighted average cost of the period if you know the purchases of the period and the units sold, or the units counted at the end.
  2. Add one row for the opening stock and one for each purchase: the units and the cost of one unit.
  3. Choose what you know: the units sold, or the units on hand at the end. Add the sales for the period if you want the gross profit.
  4. Choose Calculate. The table shows the units and the cost added up row by row.
  5. Choose Moving average after each purchase to enter purchases and sales by date. You then see the new average after every purchase.

The formulas

  • Cost of goods available = opening inventory + purchases.
  • Weighted average cost (periodic) = cost of goods available ÷ units available. Cost of goods sold = units sold × average cost. Ending inventory = cost of goods available − cost of goods sold.
  • Moving average (perpetual): after each purchase, new average = (value on hand + cost of the purchase) ÷ (units on hand + units bought). A sale is costed at the average of that moment.
  • The periodic average is also called AVCO. It is worked out once, at the end of the period, so the dates of the sales do not matter. The moving average changes with every purchase.

Worked example

Opening stock: 100 units at 10. Purchases: 200 units at 11, then 150 units at 12. The cost of goods available is 1,000 + 2,200 + 1,800 = 5,000 for 450 units, so the weighted average cost is 5,000 ÷ 450 = 11.1111 a unit.

330 units were sold (or 120 were counted at the end). The cost of goods sold is 330 × 11.1111 = 3,666.67, and the ending inventory is 5,000 − 3,666.67 = 1,333.33.

Moving average: after the purchase of 200 at 11, the average is (1,000 + 2,200) ÷ 300 = 10.6667. A sale of 250 units costs 2,666.67 and leaves 50 units worth 533.33. After the purchase of 150 at 12, the average is (533.33 + 1,800) ÷ 200 = 11.6667. A sale of 80 units costs 933.33, so the cost of goods sold is 3,600.00 and 120 units worth 1,400.00 are left.

How amounts are rounded

Every amount is worked in whole cents, rounded half away from zero. Units taken out at an average cost cost units × (value on hand ÷ units on hand), and the last units on hand take all the cents that are left. So the cost of goods sold and the ending inventory always add up to the cost of goods available. The figures are the same as the averages in the Inventory Valuation Calculator.

Limits you should know

  • To compare the averages with FIFO and LIFO on the same rows, use the Inventory Valuation Calculator. For FIFO step by step, use the Fifo Calculator.
  • This is the average cost of inventory. The average inventory of a period (for turnover) is in the Inventory Turnover Calculator.
  • Purchase returns, sales returns, freight costs, discounts and write-downs to a lower value are not part of the calculation.
  • Units and unit costs may have up to 4 decimal places. Sales for the period may have 2. All amounts are taken as one currency.
  • The result is arithmetic on the rows you type. It is not accounting, tax or legal advice.

Related tools