Why does stock cost depend on the method?
When you buy the same product at different prices, the cost of goods sold depends on which purchase it is counted from. This choice affects profit, stock value and in some cases the tax base; the ERP calculates it automatically but you decide which method it uses.
The legal framework differs by country and purpose. In Turkey, for tax purposes stock is valued at cost under Article 274 of the Tax Procedure Law; according to a Denet circular, the methods commonly used in the literature are first-in first-out (FIFO), weighted average and moving weighted average. In financial reporting, under IAS 2 the FIFO and weighted average cost formulas are permitted and last-in first-out (LIFO) is prohibited. Which method is valid and changeable for you depends on legislation and your accountant's opinion; this post describes how the methods behave in an ERP and is not tax advice.
Four methods, one example
A numerical example prepared by the author (hypothetical figures): 100 units are bought at 10 TL, 60 are sold, then 100 are bought at 12 TL and 90 more are sold. Total purchases are 2,200 TL, 150 units are sold and 50 remain in stock.
| Method | Cost of goods sold | Remaining stock value | Logic |
|---|---|---|---|
| FIFO (first in, first out) | 1,600.00 TL | 600.00 TL | Sales come off the oldest purchase |
| Moving weighted average | 1,628.57 TL | 571.43 TL | The average is recalculated after each purchase |
| Period-end weighted average | 1,650.00 TL | 550.00 TL | One average of all purchases (2,200 / 200 units = 11 TL) |
| By batch (specific identification) | By the batch sold | By the batch left | Each batch is tracked at its own cost |
In every row, cost of goods sold plus remaining stock value equals 2,200 TL; the difference is only which period the cost is charged to. When prices rise, FIFO shows a lower cost of sales and therefore higher profit; when prices fall, the reverse.
How is a method applied in an ERP?
- The method is stored on the stock card or in a general parameter. Some ERPs set one method for the whole company, others by item group.
- Moving average needs continuous inventory. Every stock receipt and issue must be posted immediately; if a receipt is posted late, the average drifts.
- Period-end average needs a calculation run. Until the month- or year-end costing run is executed, issue cost may be provisional.
- FIFO needs batch and date tracking. The ERP finds which purchase an issue comes off from the stock movement order.
- Batch/serial tracking is independent of the method: it is used for traceability (for example food, pharma) or high-value items.
Which method in which situation?
The following is the author's general assessment; decide with your accountant.
| Situation | Common choice | Why |
|---|---|---|
| Identical items, frequent price changes | Moving average | Smooths cost fluctuations |
| Shelf-life products | FIFO | Matches the physical flow (oldest out first) |
| High-value items tracked one by one | By batch/serial | The real cost of each piece is known |
| Raw materials in production | FIFO or average | Consistent recipe costing |
Traps when switching and using
- Changing the method often breaks comparison between periods; if a change is needed, plan it with your accountant.
- Negative stock breaks the average and FIFO calculation: if a sale is made before the receipt is posted, cost is calculated wrongly. Turn on the negative stock warning.
- For foreign-currency purchases, how exchange differences affect cost depends on an ERP parameter; test the setting.
- Landed costs (freight, customs) leave stock value understated if they are not allocated; define the allocation rule.
- Period closing: Do not close a period without running the costing calculation.
Frequently Asked Questions
What is the main difference between FIFO and moving average?
FIFO values each issue at the price of the oldest purchase, moving average at the average price at that moment. If prices fluctuate, profit and stock value differ between the two; total cost is the same but its distribution changes.
Can the method be changed later in an ERP?
Technically most ERPs allow it, but past movements may need re-costing. Ask your accountant first whether the change is valid for tax and financial reporting.
Are batch tracking and the costing method the same thing?
No. Batch tracking follows which purchase batch a product came from; the costing method decides how issue cost is calculated. Batch-based costing combines the two.
For ERP stock and costing setup, see our accounting software page or the contact form. Our post on ERP for manufacturers: BOM, work orders and inventory costing may also be relevant for recipe costing.
Sources: Reminders on stock valuation methods (Denet Circular, in Turkish), IAS 2 Inventories (IAS Plus)