FIFO and LIFO are not just accounting terms — they affect your reported profit, your tax bill, and how you think about product costs. Here is what every Shopify merchant needs to know.
When you sell a product, which unit did you just sell?
You know the answer physically — it is the one you picked from the shelf. But for accounting and tax purposes, the answer is not obvious. Your 200 units of that product may have been purchased at three different prices over the past year. Which cost do you use to calculate your profit margin?
This is the FIFO vs LIFO question. And the method you choose has real consequences for your reported profit, your tax liability, and how you understand your margins.
Imagine you buy 100 units of a product in January at £10 each, then 100 more in March at £12 each. You now have 200 units: 100 at £10 and 100 at £12.
In April, you sell 80 units. What is your cost of goods sold (COGS)?
The physical stock does not change. But your reported profit changes by £160 depending on the method. Your gross margin changes. Your tax bill changes. Same business, same operations, different numbers on paper.
Under FIFO, the cost assigned to goods sold is the cost of the oldest inventory first.
The intuition: You are assuming you sell your oldest stock first — which is also what most well-run ecommerce businesses actually do physically. FIFO accounting matches physical reality in most cases.
When supplier costs are rising (which is most of the time), FIFO produces: - Lower COGS (older, cheaper inventory is expensed first) - Higher reported gross profit - Higher taxable income - Higher balance sheet inventory value (remaining stock is valued at more recent, higher prices)
When costs are falling: - Higher COGS (older, more expensive stock expensed first) - Lower reported gross profit - Lower taxable income
Under LIFO, the cost assigned to goods sold is the cost of the most recently purchased inventory first.
The intuition: You are assuming you sell your newest stock first. Physically unusual for most ecommerce operations.
When costs are rising, LIFO produces: - Higher COGS (recent, more expensive purchases expensed first) - Lower reported gross profit - Lower taxable income — this is the primary reason LIFO exists as a method - Lower balance sheet inventory value (remaining stock is valued at older, lower prices)
If you use LIFO for a long time in an inflationary environment, your balance sheet inventory value becomes increasingly understated relative to replacement cost. The gap between LIFO value and FIFO value is called the LIFO reserve — and sophisticated analysts always add it back when assessing a business.
LIFO is only permitted under US GAAP. If you are based in the UK, EU, or any country using IFRS, you cannot use LIFO. If you are a US-based business and your primary goal is to minimise current-period tax liability in an inflationary environment, LIFO may be worth discussing with your accountant.
A third method worth understanding: WAC calculates a new average cost every time you receive inventory, and assigns that average to all units sold.
Formula: (Total inventory value) / (Total units on hand) = average cost per unit
In the earlier example: ((100 × £10) + (100 × £12)) / 200 = £11 per unit
WAC is more administratively simple than FIFO or LIFO for businesses with frequent small replenishments, and it is permitted under both IFRS and US GAAP.
Scenario: You start with 100 units bought at £10, receive 100 more at £14, then sell 150 units at £20 each.
| Metric | FIFO | LIFO | WAC |
|---|---|---|---|
| Revenue | £3,000 | £3,000 | £3,000 |
| COGS | £1,700 | £1,900 | £1,800 |
| Gross profit | £1,300 | £1,100 | £1,200 |
| Gross margin | 43.3% | 36.7% | 40.0% |
| Remaining stock value | £700 | £500 | £600 |
FIFO: reports £200 more profit, £200 more in inventory. Higher tax liability. LIFO: reports £200 less profit, £200 less in inventory. Lower tax liability (US only). WAC: splits the difference.
Shopify tracks inventory quantities but does not natively calculate COGS using a specific cost method. The cost you enter per product in Shopify is the cost used in Shopify's margin reports — it does not automatically update when you receive new inventory at different prices.
For accurate COGS calculation under FIFO, WAC, or any other method, you need either:
CoreCaptain maintains cost per SKU and allows you to configure your cost calculation method — including using actual cost data imported via CSV or a percentage-of-price estimate — so margin calculations in your analytics reflect your real economics rather than a rough approximation.
If you are in the UK, EU, or an IFRS country: FIFO or WAC. LIFO is not permitted.
If you are in the US: FIFO is simpler and more intuitive. LIFO provides a tax deferral benefit in inflationary periods but adds administrative complexity and is banned under international standards.
If you have frequent, small replenishments: WAC reduces volatility in your reported margins.
If you have products with significant cost fluctuation: FIFO reflects the most current replacement cost on your balance sheet.
If you are just starting out: Use FIFO. It matches physical reality, is internationally accepted, and is what your accountant will expect.
FIFO, LIFO, and WAC are three answers to the same question: which cost do I assign to the units I just sold? They produce different profit figures, different tax outcomes, and different balance sheet inventory values from identical underlying operations.
FIFO is the most widely used, internationally accepted, and operationally intuitive. For most Shopify merchants, it is the right default.
Whichever method you choose: be consistent. Changing cost methods mid-year requires a restatement and creates comparability problems in your financials. Pick one, document it, and stick with it.
CoreCaptain detects phantom stock, sync errors, and inventory discrepancies automatically. 14-day free trial, no credit card required.
Start Free Trial