Meet Edi AI

AI agents that work with your business data.

CalculatorsInventory

Average cost calculator

Enter the opening stock, then your purchases and sales in the order they happened; see the unit cost, the cost of goods sold and the stock value by the moving or the weighted average method.

Your figures

Method
Purchases and sales, in order
  1. 1.
  2. 2.
  3. 3.

A sale needs only its quantity: it leaves at the stock's cost.

Everything is calculated in your browser. The figures you enter are not sent anywhere or stored.

Result

Unit cost12.00

The 250 units left are worth 3,000.00, 12.00 each; the goods sold cost 1,700.00. The moving average re-prices the stock after each purchase, so the order of movements matters; the weighted average would put the goods sold at 1,762.50.

Cost of goods sold
1,700.00
Ending quantity
250 units
Ending stock value
3,000.00

Movement by movement

MovementQuantityUnit costStockStock valueAverage cost
Opening stock100 units10.00100 units1,000.0010.00
Purchase200 units12.00300 units3,400.0011.3333
Sale150 units11.3333150 units1,700.0011.3333
Purchase100 units13.00250 units3,000.0012.00

How it is calculated

The moving average recalculates the unit cost at every receipt, so a sale goes out at the cost of that moment. The weighted average prices the whole period at one cost: the opening stock and all purchases divided by the total quantity.

Because the moving average follows the order of movements, the two methods give different costs of goods sold and ending values when prices change during the period.

  • Moving average after a receipt = (stock value + received quantity × unit cost) ÷ (stock quantity + received quantity)
  • Weighted average = (opening value + all purchases) ÷ (opening quantity + all purchased quantities)

Example

You start with 100 units at 10, buy 200 at 12, sell 150 and buy 100 at 13. By the moving average the sale costs 1,700 at 11.33 each, and 250 units remain at 12.00. By the weighted average every unit costs 11.75: the sale costs 1,762.50 and the ending stock 2,937.50.

Questions

Which method should I use?

Follow your accounting rules and stay consistent. Businesses that record every movement usually use the moving average; the weighted average suits costing done at the end of a period.

Is this the same as FIFO?

No. FIFO assumes the oldest units leave first and values them at their own cost. Average methods blend the costs together.

Results are estimates based on the figures you enter. They are not financial, tax or legal advice. Checked on:

Do it on real records in Enter ERP

Enter ERP runs this calculation on your own transactions and keeps the result up to date.

Cost Accounting