E-Commerce8 min read2026-07-14

FIFO vs LIFO Inventory: How Your Choice Quietly Changes COGS and Taxes

FIFO vs LIFO Inventory: How Your Choice Quietly Changes COGS and Taxes

Most sellers pick an inventory costing method once, then never think about it again. That's a mistake. The fifo vs lifo inventory choice quietly decides how much profit you report and how much tax you pay. When your unit costs rise — which they have — the gap between the two methods stops being academic. It becomes real money.

Here's the short version. FIFO assumes you sell your oldest stock first. LIFO assumes you sell your newest stock first. That single assumption changes your cost of goods sold, your gross margin, and your taxable income. Let's make it concrete.

FIFO and LIFO change one thing: which cost hits your COGS

The physical goods don't care about your accounting. FIFO and LIFO are cost-flow assumptions, not warehouse rules. You can ship the newest box and still use FIFO on paper.

What changes is which purchase cost lands in your cost of goods sold when a sale happens.

Say you buy the same widget three times as your supplier raises prices:

  • January: 100 units at $10 = $1,000
  • April: 100 units at $12 = $1,200
  • July: 100 units at $14 = $1,400

You sell 100 units in August for $20 each — $2,000 in revenue.

Under FIFO, you expense the oldest cost first: $1,000. Gross profit is $1,000.

Under LIFO, you expense the newest cost first: $1,400. Gross profit is $600.

Same sale. Same cash in the door. A $400 difference in reported profit. Shopify's inventory valuation guide walks through the same mechanics — the method you choose sets the number, not the market.

Rising costs are where the gap gets expensive

The example above isn't a coincidence. FIFO and LIFO only diverge when your costs move. In a flat-cost environment, they land in the same place.

When costs rise, the pattern is consistent:

  • FIFO reports higher profit — because it expenses your cheaper, older stock.
  • LIFO reports lower profit — because it expenses your pricier, newer stock.

Higher reported profit means a higher tax bill. That's why LIFO exists at all — NerdWallet's comparison frames it plainly: LIFO can lower taxable income when prices climb. It's a tax-timing tool, not a truth-telling one.

But there's a catch that matters for your balance sheet. FIFO leaves your newest, most expensive inventory sitting as an asset — so your inventory value on the balance sheet looks healthy. LIFO leaves the old, cheap costs on the books, understating what your stock is actually worth today. Lenders and buyers notice.

Why LIFO rarely fits an ecommerce seller

LIFO looks tempting on a tax spreadsheet. In practice, it's a poor fit for how most online sellers operate. Three reasons.

First, the compliance cost. LIFO is a US-only method for tax purposes. It isn't permitted under international accounting standards (IFRS). If you ever raise money, sell the business, or expand cross-border, LIFO creates friction. The IRS also imposes specific rules and a formal election — see Publication 538 before you go near it.

Second, the LIFO conformity rule. If you use LIFO for taxes, the IRS generally requires you to use it in your financial statements too. So the lower profit you report to the tax authority is the same lower profit you show investors and lenders. You can't have it both ways.

Third, it distorts your unit economics. Ecommerce lives and dies on per-SKU margin. LIFO muddies that. Your reported true margins drift from the economic reality of what you paid for the goods you actually shipped. When you're trying to price a product or read a contribution margin, you want the cost that matches the sale — not the newest invoice on file.

For most sellers, FIFO wins on all three counts. It matches physical flow, it's accepted everywhere, and it keeps your margins honest.

What this looks like inside a real ecommerce P&L

Costing method flows straight into your Shopify profit margin and every downstream decision. Get it wrong and you'll either overpay tax or overstate profit — both dangerous.

A few practical notes as you set this up:

  • Include the full landed cost. Your COGS isn't just the invoice. Freight-in belongs in COGS, and so do duties and inbound handling. FIFO or LIFO only works if the cost per unit is complete.
  • Watch your marketplace layer. If you sell on Amazon, FBA storage and fulfillment fees sit outside COGS but crush margin. Keep marketplace fees in a separate line so your costing method stays clean.
  • Account for returns. Returned goods re-enter inventory at a cost. Your returns analysis should reconcile with how you're layering costs, or your COGS drifts.

BigCommerce's accounting primer and Shopify's ecommerce accounting guide both make the same point: consistency beats cleverness. Pick a method, apply it everywhere, and don't switch to chase a quarter's tax bill.

Pick once, apply consistently, and know your real number

The decision is simpler than the tax literature makes it sound. If you're a US ecommerce seller with rising costs and any ambition to raise capital or exit, use FIFO. It reports honest margins, satisfies every accounting standard, and reflects how you actually move stock. Reserve LIFO for the narrow case where a US-only business wants to defer tax and accepts lower reported profit everywhere — and only after talking to a tax professional.

The bigger risk isn't the method. It's not knowing your live COGS at all. Sound retail financial management means your cost layers are current, not reconstructed at year-end. That's where a real-time view earns its keep — tracking COGS as invoices land, not four weeks later.

CentSight is the intelligence layer on top of QuickBooks and your bank. It reads your live ledger, watches your margins, and answers in plain English — so the profit you report matches the profit you earned. Start at the ecommerce finance hub, or go deeper on inventory costing.

The takeaway: FIFO vs LIFO isn't paperwork. It sets your COGS, your profit, and your tax bill. For most ecommerce sellers, FIFO is the straightforward, defensible choice — pick it, apply it consistently, and keep your unit costs current.

Free Download

The E-Commerce Truth Bundle

Find your real margin after COGS, fees, and returns — the number your storefront dashboard never shows you.

Inside: True contribution-margin calculator, COGS & margin template, and a refund-leak audit checklist.

ZIP · 3 files
Gerald Hetrick
Gerald Hetrick

Founder, CentSight

Gerald writes about financial intelligence, cash flow strategy, and how AI is changing the way growing businesses understand their numbers.

Get Financial Clarity for Your Business

AI-powered financial intelligence with real-time visibility — built for growing businesses.

Start Free Trial

Stop Guessing. Start Knowing.

CentSight gives growing businesses real-time financial intelligence.