FIFO (First In, First Out) means that the goods that come in first go out first. In the warehouse, it is the rule of shipping or using the oldest stock before newer stock. In accounting, it is the inventory valuation method in which the oldest purchase costs are the first to be charged to cost of goods sold (COGS). This guide explains both meanings, how to set up a FIFO system, how to calculate FIFO, and how it compares with LIFO and weighted average cost.
What Is the FIFO Method?
FIFO has two uses that share the same logic:
- Physical FIFO is a stock rotation principle: units received earlier are picked, shipped or used before units received later, so nothing stays on the shelf long enough to expire, spoil or become obsolete.
- Accounting FIFO is a cost flow assumption: when goods are sold, their cost is taken from the oldest purchases first, and the stock that remains is valued at the most recent costs.
The two often go together, but they are independent. A company can value inventory with FIFO in its accounts and still pick stock in a different order, and vice versa.
FIFO in the Warehouse
Physical FIFO matters wherever stock loses value with time: food and beverages, pharmaceuticals, cosmetics, chemicals, products sold in lots or batches, and goods that go out of fashion or are replaced by new models. Without FIFO, new deliveries are placed in front of older ones, the older units stay behind, and they end up expired, damaged or unsellable, as deadstock.

FIFO vs FEFO
FEFO (First Expired, First Out) ships the units with the nearest expiry date first, whatever their arrival date. It is the stricter rule for perishables and medicines, because a later delivery can expire earlier than an older one. FIFO works well when expiry follows arrival order or when goods do not expire but age in other ways. See also how to manage perishable inventory.
How to Set Up a FIFO System
- Record the date or lot at receiving, on the label and in the inventory system, so every unit can be traced to its arrival.
- Store so the oldest stock is the easiest to reach: load from the back and pick from the front, or use flow racks in which cases roll forward by gravity.
- Pick by date or lot, not by the nearest location, and make the picking list show which lot to take.
- Check regularly with cycle counts and by looking for old lots still in stock.
FIFO is the core of stock rotation, and it works best when purchases follow demand: the less stock you hold beyond what you sell, the less there is to rotate.
FIFO in Accounting
Under FIFO, cost of goods sold uses the costs of the oldest purchase layers, and ending inventory is valued at the most recent ones.
- List the purchase layers in date order, with quantity and unit cost.
- Assign the units sold to the oldest layers first: COGS = units taken from each layer × that layer’s unit cost.
- Ending inventory = total cost of goods available for sale − COGS.
FIFO Example
A distributor buys 100 units in January at $10, 100 in February at $12 and 100 in March at $14, for a total cost of $3,600, then sells 150 units at $20 each.
With FIFO, the 150 units sold come from the oldest layers: 100 units at $10 and 50 units at $12. COGS = $1,000 + $600 = $1,600. Ending inventory is the remaining 50 units at $12 and 100 units at $14 = $2,000. Gross profit is $3,000 − $1,600 = $1,400.

The same purchases under LIFO give COGS of $2,000 and gross profit of $1,000, because the newest, more expensive units are counted as sold first.
Advantages and Disadvantages of FIFO
| Advantages | Disadvantages |
|---|---|
| Ending inventory is close to current prices, so the balance sheet is realistic. | When prices rise, COGS uses older, lower costs, so margins look better than today’s costs justify. |
| Easy to understand and to apply, and it usually matches how goods physically move. | Higher reported profit with rising prices also means higher income taxes. |
| Allowed under both IFRS and US GAAP. | Results can swing when purchase prices change quickly. |
FIFO vs LIFO vs Weighted Average
| FIFO | LIFO | Weighted average | |
|---|---|---|---|
| Costs charged to COGS first | Oldest | Newest | Average of all units |
| COGS when prices rise | Lowest | Highest | In between |
| Ending inventory value | Close to current prices | At old costs | In between |
| Allowed under IFRS | Yes | No | Yes |
Our guide to inventory valuation covers these and other methods in more detail.
First In, First Out: Oldest Stock and Oldest Costs Go First
In the warehouse, FIFO keeps stock moving so that nothing ages on the shelf: record the date or lot, store the oldest units where they are picked first, and check that old lots do not pile up. In the accounts, FIFO charges the oldest costs to COGS and leaves inventory valued at recent prices, which is why it is widely used under IFRS.
FIFO (First In, First Out) means that what comes in first goes out first. In a warehouse, the oldest stock is shipped or used before newer stock; in accounting, the oldest purchase costs are counted first in cost of goods sold.
FIFO ships stock in order of arrival. FEFO (First Expired, First Out) ships the units with the nearest expiry date first, even if they arrived later. FEFO is the safer rule for food, medicines and other products with expiry dates.
Yes. FIFO is allowed under IFRS and under US GAAP, and it is one of the most widely used inventory valuation methods. LIFO, by contrast, is not allowed under IFRS.
Assign the units sold to the oldest purchases first and multiply each by its purchase cost to get cost of goods sold. The stock that remains is valued at the most recent purchase costs. For example, selling 150 units from purchases of 100 at $10 and 100 at $12 gives a COGS of $1,600.