
How FIFO decides which cost to use for each sale
Say you stock the same coffee grinder all year. In January it cost you $10, and by March your supplier charges $12. When one sells, which cost goes on your books? FIFO answers that with a simple rule: the first units bought are the first units sold. It also matches how most stores physically rotate goods.
Under FIFO, cost of goods sold (COGS) uses the oldest purchase prices. What remains on the shelf is valued at the most recent prices. When your costs are rising, COGS comes out lower and profit comes out higher than other methods would show.
The method is a cost assumption, not a physical rule. A hardware store can use FIFO on paper even if a worker sometimes grabs a box from the back. The IRS lets most small businesses use FIFO, and it is the default for many accounting programs.
Whichever method you choose, you generally must apply it consistently from year to year. Switching usually requires following IRS procedures, so talk to a tax professional first.
FIFO also works well with perishable or date-coded goods such as food, cosmetics and supplements, because the oldest stock really should leave first. For those products the books and the shelf tell the same story, which makes audits and inventory counts easier to reconcile.
Example: 150 units sold from two batches
This is an example with made-up numbers. A shop buys 100 units at $10 each in January and another 100 units at $12 each in March. It sells 150 units at $20 each, so revenue is 150 x $20 = $3,000.
Under FIFO, the first 100 units sold come from the $10 batch and the next 50 come from the $12 batch. COGS is (100 x $10) + (50 x $12) = $1,000 + $600 = $1,600. Gross profit is $3,000 minus $1,600, which is $1,400. The 50 units left are valued at 50 x $12 = $600 in ending inventory.
FIFO vs LIFO
LIFO, or last in, first out, assumes the newest purchases are sold first. Both methods use the same purchases and sales but assign costs in a different order, so they report different profit and inventory values.
| Item | FIFO | LIFO |
|---|---|---|
| COGS in the example | $1,600 | $1,700 |
| Gross profit | $1,400 | $1,300 |
| Ending inventory (50 units) | $600 | $500 |
| Costs assigned to sales | Oldest first | Newest first |
Most guides skip one point: over the life of a business, total costs are identical under both methods. Only the timing of when profit shows up changes. That is why FIFO can raise this year’s taxable income in a rising-price year without making you richer. The profit is real on paper, but the cash is sitting in higher-priced inventory.
Where people trip up with FIFO
- Mixing methods without a plan. Using FIFO for one product and another method for the same product muddies your books and may break IRS rules.
- Confusing FIFO with shelf rotation. The accounting method and the physical order of stock do not have to match.
- Skipping the inventory count. FIFO needs accurate quantities at year end, so count stock and record it.
- Ignoring the tax effect. Higher reported profit under FIFO in a rising-price year can raise your tax bill.
Questions
Is FIFO allowed for taxes?
Yes. The IRS generally accepts FIFO for businesses that keep inventory. Publication 538 explains the rules for inventory methods.
Does FIFO make your profit look bigger?
When your purchase costs are rising, usually yes, because older and cheaper costs go to COGS. When costs fall, the effect reverses.
Do you need FIFO if you sell services?
No. Inventory methods apply to businesses that hold goods for sale. A pure service business usually has no inventory to value.




