Eren Labs JOURNAL TR
Store Operations

FIFO vs LIFO: How Each Works, With the Same Example Both Ways

FIFO assumes the oldest stock sells first, LIFO the newest. The same purchases and sales worked both ways, what that does to profit and stock value when prices rise, where LIFO is not allowed, and which method describes how you actually pick.

In this article19 sections

FIFO vs LIFO is about which cost leaves your books first. FIFO (first in, first out) assumes the oldest units are sold first, so cost of goods sold uses older prices and the stock left is valued at recent prices. LIFO (last in, first out) assumes the newest units are sold first. When prices rise, LIFO shows higher cost of goods sold and lower profit than FIFO. This guide works one example both ways, adds weighted average for comparison, and explains the rules.

FIFO vs LIFO in one table#

Illustration: FIFO takes the oldest stock first, LIFO takes the newest first
FIFO is a queue, LIFO is a stack: they decide which cost leaves first.
FIFOLIFO
Sold first (for accounting)Oldest unitsNewest units
Rising prices: cost of goods soldLowerHigher
Rising prices: profitHigherLower
Rising prices: ending stock valueClose to current pricesBased on old prices
Matches physical flow of perishablesYesRarely
Allowed under IFRSYesNo

The worked example#

A shop buys jars of honey: 100 at 4.00 in January, then 100 at 4.50 in February, then 100 at 5.20 in March. In March it sells 180 jars at 8.00 each, so revenue is 1,440.00. Goods available cost 400 + 450 + 520 = 1,370.00 for 300 jars, and 120 jars remain.

FIFO calculation#

The 180 jars come from the oldest batches first: all 100 January jars at 4.00 (400.00), then 80 February jars at 4.50 (360.00). Cost of goods sold = 760.00. Remaining stock is 20 February jars (90.00) and 100 March jars (520.00): 610.00. Gross profit = 1,440 − 760 = 680.00.

LIFO calculation#

Now the newest go first: all 100 March jars at 5.20 (520.00), then 80 February jars at 4.50 (360.00). Cost of goods sold = 880.00. Remaining stock is 20 February jars (90.00) and 100 January jars (400.00): 490.00. Gross profit = 1,440 − 880 = 560.00.

Weighted average, same numbers#

With a periodic weighted average, every jar costs 1,370 ÷ 300 = 4.5667. The 180 sold cost 822.00, the 120 left are worth 548.00, and gross profit is 618.00. It lands between the two. Our guide to weighted average cost works the moving version through several deliveries.

FIFOWeighted averageLIFO
Cost of goods sold760.00822.00880.00
Ending stock610.00548.00490.00
Gross profit680.00618.00560.00

In each column, cost of goods sold plus ending stock equals the 1,370.00 spent. The method doesn’t change what you paid; it changes how much of it counts as this period’s cost and how much waits on the shelf.

Rules: where LIFO is allowed#

IAS 2, used in most countries, permits FIFO and weighted average but not LIFO. In the United States, US GAAP allows LIFO, and tax rules link its use for tax to its use in financial reports. Your accountant decides what applies to you, and changing method later usually needs a formal process, so choose with them.

When prices fall#

The pattern flips. If each batch is cheaper than the last, FIFO releases the expensive old cost first, so cost of goods sold is higher and profit lower, while LIFO does the opposite. With steady prices, all three methods give almost identical results, which is why the choice matters mostly when costs move, such as with commodities, imports affected by exchange rates or seasonal goods.

Accounting method vs picking order#

The accounting method and the way you physically pick stock are separate things. A shop can pick oldest first on the shelf and still value its stock with weighted average. For anything with an expiry date, pick first in, first out (or first expiry, first out) regardless of the books: put new deliveries behind old stock, label delivery dates, and check short dates during counts. That habit prevents waste whatever your accountant calculates.

What FIFO needs from your records#

FIFO works with “layers”: each delivery’s remaining quantity and cost. To calculate it, you need the date, quantity and unit cost of every delivery and the quantity sold. With a few products you can track layers in a spreadsheet; with many, you need software built for it. Returns, adjustments and stock counts add complications, because you must decide which layer they belong to. Many small shops choose weighted average precisely because it needs no layers.

A FIFO spreadsheet for a few products#

Keep a layer table with delivery date, quantity received, unit cost and remaining quantity. When you record sales for a period, reduce the oldest layer first until the quantity sold is used up, moving to the next layer when one reaches zero. Cost of goods sold for the period is the sum of units taken from each layer times that layer’s cost. The remaining quantities times their costs give ending stock. Check each period that cost of goods sold plus ending stock equals opening stock plus purchases.

Which method should a small shop use?#

Ask your accountant first. In practice, weighted average suits shops with interchangeable stock and changing prices, FIFO suits dated or batch-tracked goods, and LIFO is only an option where local rules allow it and an adviser recommends it. Whatever you pick, apply it consistently and write it down. If your margins look odd, first check that costs are recorded at all, as our guide to cost of goods explains, and include freight where it belongs, as in landed cost. For the wider system question, see perpetual vs periodic inventory.

Common mistakes#

  • Mixing methods between periods without saying so
  • Valuing all stock at the latest price and calling it FIFO
  • Forgetting freight and duty in unit costs
  • Ignoring damaged or obsolete stock that should be written down
  • Assuming the accounting method tells staff which box to pick

Returns and adjustments under each method#

A customer return puts goods back on the shelf. Under FIFO you usually return it to the layer it came from, or to the oldest layer if you can’t tell; under LIFO, similar judgement applies. Under weighted average, it goes back at the current average. Damaged goods written off come out of whichever cost the method says they carry. Whatever rule you adopt, apply it the same way every time and note it with your accounting policy.

How method choice affects decisions#

The method changes reported profit, but not the cash you have. A higher reported profit can mean more tax now, even though no extra money arrived. It also changes the stock value on your balance sheet, which lenders and investors may look at. For daily pricing decisions, many owners look at the latest replacement cost as well, because what matters for tomorrow’s price is what it will cost to buy the goods again, not what they cost months ago.

Specific identification#

A fourth method, specific identification, tracks the actual cost of each individual item. It suits unique or high-value goods, such as cars, jewellery or artwork, where each piece has its own cost and you can tell them apart. It’s impractical for identical jars of honey, which is why FIFO and weighted average exist: they give a consistent rule when individual units can’t be told apart.

Checking your numbers#

Whatever the method, two checks catch most errors. First, cost of goods sold plus ending stock should equal opening stock plus purchases. Second, the units in your ending stock should match a physical count. If the money balances but the units don’t, the problem is in your records of what arrived or left, not in the costing method.

Explaining the method to your team#

Staff don’t need the accounting, but they do need the picking rule. Write one line near the receiving area, such as ‘new stock goes behind old stock’, and check it during counts. If goods carry expiry dates, add the check to the receiving routine so short-dated deliveries are noticed on arrival rather than months later on the shelf.

The data behind any method: PurchaseDesk#

PurchaseDesk records the delivery data that cost methods depend on. In the free version on WordPress.org, each receipt against a purchase order keeps the date, quantity and unit cost, exports as CSV, and writes the latest cost to the product. PurchaseDesk doesn’t keep FIFO or LIFO layers; Pro, from $79 a year, offers weighted-average costing. If your accountant needs FIFO, the exported receipts give them the history to calculate it.

PurchaseDesk receipt history with quantity, unit cost and stock before and after each delivery
PurchaseDesk (free): every receipt keeps its date, quantity and unit cost, the raw data any cost method needs.

FIFO vs LIFO: frequently asked questions#


What is the main difference between FIFO and LIFO?

FIFO charges the oldest costs to cost of goods sold first, while LIFO charges the newest. That changes profit and the value of remaining stock whenever purchase prices change over time.


Which gives higher profit, FIFO or LIFO?

When prices rise, FIFO gives higher reported profit because it charges older, cheaper costs first. When prices fall, the effect reverses and LIFO shows the higher profit.


Is LIFO allowed?

Not under IFRS, which most countries use. US GAAP allows it, with tax rules linking its tax use to financial reporting. Ask an accountant before choosing any method.


Does FIFO mean I must sell the oldest items first?

No. FIFO in accounting is a cost assumption. Picking the oldest stock first is a warehouse practice, which is sensible for dated goods whatever valuation method you use.


Is weighted average better than FIFO?

It depends on the goods. Weighted average is simpler for interchangeable stock bought at changing prices, while FIFO suits dated or batch-tracked items where age matters.


More in Store Operations

Keep exploring

All articles
Before you go Let PurchaseDesk do this in WooCommerce

Keep suppliers, purchase orders and goods received next to your WooCommerce stock. Record what arrived, what it cost and what is still on order.

Explore PurchaseDesk Get the free version

Free version on WordPress.org · Pro from $79/year