Sellevate

Inventory

FIFO inventory method explained (and FIFO vs LIFO)

FIFO (first in, first out) is an inventory method that treats the oldest stock as sold first. In accounting, it means the costs of your earliest purchases go into cost of goods sold first, and your newest costs stay in inventory. In the warehouse, it means shipping your oldest units before newer ones.

FIFO as valuation vs FIFO as stock rotation

The term means two different things:

FIFO for valuation (accounting)FIFO for stock rotation (warehouse)
What it decidesWhich purchase costs go into COGSWhich physical units get picked
Why it mattersProfit, margins and inventory value on the balance sheetFreshness, expiry and avoiding old stock piling up
Applies toEvery business that holds stockEspecially perishable, dated or seasonal products

They're independent: you can value inventory with FIFO and pick in any order, or vice versa. Most stores benefit from both.

Worked example with cost layers

Each purchase at a different cost creates a cost layer.

Worked example: three purchases, 150 units soldExample numbers

PurchaseUnitsCost per unitLayer cost
January100$10$1,000
February100$12$1,200
March100$14$1,400
Total available300$3,600

150 units are sold. Under FIFO, the oldest layers are used first:

  1. All 100 January units: 100 × $10 = $1,000
  2. 50 of the February units: 50 × $12 = $600
  3. COGS = $1,600
  4. Ending inventory = 50 × $12 + 100 × $14 = $2,000

COGS plus ending inventory always equals the $3,600 available.

FIFO vs LIFO vs weighted average cost

The same 150 units sold, valued three ways:

MethodHow it worksCOGSEnding inventory
FIFOOldest costs sold first$1,600$2,000
LIFONewest costs sold first: 100 × $14 + 50 × $12$2,000$1,600
Weighted averageEvery unit at the average: $3,600 ÷ 300 = $12.00$1,800$1,800
Weighted average cost

Weighted average cost = Total cost of goods available ÷ Total units available

With rising costs, as here:

Cash Tied Up in Inventory CalculatorHow many days your cash sits as inventory before it becomes cash again.

Which method should an online store use?

Whichever you choose, use it consistently. Your method affects COGS, so it affects gross margin and inventory turnover.

Inventory Turnover Rate CalculatorHow many times a year your inventory turns over, and how many days that takes. Want this handled automatically?Forecast demand and know exactly when to reorder, before you stock out or tie cash up in overstock.Try Verve AI

Physical FIFO: rotating stock

For the warehouse side of FIFO:

For how valuation feeds into the cost of what you sold, see how to calculate COGS.

FAQ

What does FIFO mean?

First in, first out. In accounting, it means the oldest stock costs are counted as sold first. In the warehouse, it means shipping the oldest units first.

Is LIFO allowed?

LIFO is allowed under US GAAP but not permitted under IFRS, the international accounting standards. Most small online stores use FIFO or weighted average cost. Ask your accountant which fits your situation.

Which method gives higher profit?

When purchase costs are rising, FIFO gives the lowest COGS and the highest reported profit, because the cheaper, older costs are expensed first. LIFO gives the opposite. Over the long run, total COGS is the same; only the timing differs.

Can I switch inventory methods?

Changing valuation methods usually has accounting and tax consequences, so don't switch without advice. Pick one method and use it consistently.

Do I have to rotate stock physically if I use FIFO accounting?

No, the accounting method and the physical flow are separate. But physically rotating stock first-in, first-out is good practice for anything that ages, expires or goes out of style.