Learn how first in, first out assigns older inventory costs to cost of goods sold, with a worked example and comparison with LIFO and weighted average.
FIFO, short for first in, first out, is an inventory cost formula that assigns the earliest acquired or produced costs to cost of goods sold first. The costs left in ending inventory therefore come from the most recent purchases or production layers.
FIFO describes accounting cost flow. It does not require each physical item to leave the warehouse in that order, although it often resembles the physical rotation of perishable or time-sensitive goods.
Assume a retailer has these units available:
| Inventory layer | Units | Unit cost | Total cost |
|---|---|---|---|
| Beginning inventory | 100 | $10 | $1,000 |
| New purchase | 100 | $12 | $1,200 |
| Available | 200 | $2,200 |
The retailer sells 120 units for $18 each. Under FIFO, the oldest costs are assigned first:
FIFO cost of goods sold = (100 x $10) + (20 x $12) = $1,240
FIFO ending inventory = 80 x $12 = $960
Sales = 120 x $18 = $2,160
Gross profit = $2,160 - $1,240 = $920
The physical goods sold could be different units. FIFO determines which costs are expensed and which remain on the balance sheet.
Using the same example, the weighted-average unit cost is $11 ($2,200 / 200 units).
| Method | Cost of goods sold | Ending inventory | Gross profit |
|---|---|---|---|
| FIFO | $1,240 | $960 | $920 |
| Weighted average | $1,320 | $880 | $840 |
| LIFO | $1,400 | $800 | $760 |
The difference is entirely caused by cost assignment. All three methods use 200 available units, sell 120, and leave 80. When costs are rising, FIFO moves the cheaper layer to expense first.
In a sustained rising-cost environment, FIFO tends to produce:
These are tendencies, not guarantees. Purchase timing, sales volume, price volatility, write-downs, product mix, and inventory reductions can change the observed relationship.
FIFO does not make the business economically more profitable. It changes the timing and location of cost recognition under the accounting model.
FIFO is an accepted cost formula under both major frameworks for appropriate inventory. Under IAS 2, specific identification is used for noninterchangeable items, while FIFO or weighted average is used for ordinarily interchangeable items. U.S. GAAP also permits FIFO.
For subsequent measurement:
Method permission does not eliminate the need to test obsolescence, damage, price declines, and completion or selling costs.
Under a perpetual system, each sale removes the oldest costs available at that transaction date. Under a periodic system, FIFO is applied to the period’s goods available after period-end quantities are known.
FIFO generally reaches the same ending layers under either system because the newest units remain after the total period sales. The systems can still differ operationally through cutoff errors, returns, transfers, shrinkage, and item-level records.
This page is educational and is not accounting, tax, or investment advice.