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.
Result
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
| Movement | Quantity | Unit cost | Stock | Stock value | Average cost |
|---|---|---|---|---|---|
| Opening stock | 100 units | 10.00 | 100 units | 1,000.00 | 10.00 |
| Purchase | 200 units | 12.00 | 300 units | 3,400.00 | 11.3333 |
| Sale | 150 units | 11.3333 | 150 units | 1,700.00 | 11.3333 |
| Purchase | 100 units | 13.00 | 250 units | 3,000.00 | 12.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.