Skip to content
All posts

FIFO vs LIFO: what each means for a Shopify store

Three glass cards: a row of products leaving from the oldest end, a pile of the same products with the top one lifted out, and a product page with one highlighted cost field above a small bar chart.

By Hanz Sofyan Published 6 min read

Summarize with AI

FIFO means first in, first out: the oldest cost you paid counts as sold first. LIFO means last in, first out: the newest cost counts first. FIFO vs LIFO matters when a supplier raises its price: FIFO shows a lower cost of goods sold than LIFO. Shopify's reports read one "Cost per item" saved on each product or size.

Your supplier raises the price of a mug from $10 to $12. You open the product and type the new cost, then wonder what it did to the orders already shipped and the mugs still on your shelf. Accountants have names for the choices. Your Shopify admin has one box for the answer.

What do FIFO and LIFO mean?

FIFO and LIFO are two rules for deciding which purchase price counts as sold when you paid different prices for the same product.

FIFO assumes the oldest units leave first, so their price counts first. LIFO assumes the newest units leave first. The IRS defines both this way in Publication 538.

Both are bookkeeping assumptions about cost, not instructions for your packer. Shopify's own explainer notes that real sales do not usually follow the order, since you often sell newer and older stock together. A third rule, weighted average cost, gives every unit the same price, the average of what you paid. A fourth, specific identification, tracks the actual price of each item.

In job ads, FIFO means fly-in, fly-out, a work roster in remote mining regions. On a shelf, selling the oldest stock first is also a habit for goods that expire. That habit is separate from the cost rule, which sets the cost of goods sold your books show.

FIFO vs LIFO: what is the difference, with one example?

When a price rises, FIFO shows the lowest cost of goods sold and the highest stock value, and LIFO shows the reverse.

Say you buy 100 mugs at $10 and later 100 more at $12. Both deliveries are on your shelf before you sell 150 mugs at $20 each, so sales come to $3,000.

RuleWhich mugs it counts as soldCost of goods soldStock left, 50 mugsGross profit
FIFO100 at $10, then 50 at $12$1,600$600$1,400
LIFO100 at $12, then 50 at $10$1,700$500$1,300
Weighted averageAll 150 at $11$1,650$550$1,350

Every row splits the same $2,200 you paid. The rule only decides how much counts as cost of goods sold and how much stays on the shelf as stock. The IRS says the same of rising prices: LIFO gives a larger cost of goods sold and a lower closing stock. Weighted average is $2,200 divided by 200 mugs, which is $11 a mug.

Take each cost of goods sold off the $3,000 of sales and the rest is gross profit. In this table, the $100 gap between FIFO and LIFO is all the choice changes. Your sales and the $2,200 you paid stay the same.

What does Shopify do with the cost of your products?

Shopify keeps one "Cost per item" for each product or size, saves it on an order when the order is created, and builds its cost reports from it.

Open a product from Products and click "Cost per item" in its Price section. It opens a Cost box for what one unit cost you. Each size or color needs its own cost.

The Price section of a new Shopify product with a price of $60.00 and, below Additional display prices, a Cost of $30.00 with Profit $+30.00 and Margin +50%.
One Cost box for each product or size, on a test product.

Then open Analytics, then Reports, and pick Finances in the Category filter. The Cost of goods sold by order report there lists the cost saved on each order.

The Shopify Reports list filtered to Category is Finances, with Cost of goods sold by order, Gross profit breakdown and Finance summary among the reports created by Shopify.
Category is Finances on a test store: the cost report sits beside the profit reports.

In the Inventory category, "Month-end inventory value" multiplies each size's cost by the units On hand, the stock you hold including units promised to open orders. Shopify's costing guide says its monthly inventory reports give you the data to carry out your preferred method. With one cost per item, they match it only if you change the cost at the right moment.

Month-end inventory value in Shopify Reports with the columns Inventory item cost, Ending inventory units and Ending inventory value, a Summary row, and one cost on each size or color of a sunglasses frame and an ankle boot.
On a test store, each size or color has one Inventory item cost, and its value is that cost times the units on hand.

Shopify's help adds two limits. A change to the cost does not reach orders created before it. And profit reports count only sizes that had a cost when they sold, so sales from before you typed a cost never count toward profit.

Shopify's Help Center page on cost per item, with three points: each product size or color needs its own cost, the cost is recorded on an order when the order is created and a later change does not reach earlier orders, and gift cards are left out.
Shopify's Help Center on cost per item, read November 25, 2026.

So the number in the box is not tied to a delivery. It is whatever you last typed, and each new order saves it.

What happens to your reports when a supplier's price changes?

The day you change the cost decides which method your reports look like, and typing $12 as soon as the new mugs arrive makes the two reports add up to $200 more than you paid.

Take the mugs again: 150 sold, 50 left, $2,200 paid. Here is what two reports show at month end for four ways of handling the box.

What you do with "Cost per item"Cost of goods sold reportMonth-end inventory valueLooks like
Type $12 when the new mugs arrive$1,800$600None of the three
Keep $10 until the 100th old mug sells, then type $12$1,600$600FIFO
Type $12 when the new mugs arrive, then $10 once 100 have sold$1,700$500LIFO
Type $11 when the new mugs arrive$1,650$550Weighted average

The first row adds to $2,400, $200 more than you paid, because the 100 mugs bought at $10 now carry $12. The other rows add back to $2,200. They need a change at the right moment: row two when the 100th old mug sells, row three when the 100th mug sells, row four each time a delivery lands, with a new average. Shopify's help says orders already saved keep their cost, so a missed change stays in those orders.

None of this changes the 50 mugs on your shelf. It changes which cost the reports put on them. That month-end stock value is also the "Stock at cost" line in working capital.

Which inventory valuation method should your books use?

Which method your books should use is a question for your accountant and the tax authority where you file.

The IRS describes FIFO and LIFO in Publication 538. OpenStax, a university textbook, says IFRS, the international accounting standards, does not permit LIFO, a major difference from US accounting rules. The IFRS Foundation's page on IAS 2 names first-in, first-out and weighted average for interchangeable goods. Shopify's costing guide adds that regulators expect you to keep one method year after year.

How do you keep the cost of each delivery?

A purchase order lists the cost of its own delivery, so keep each delivery's cost there or in a sheet.

Shopify's help says a purchase order lists the products, quantities and costs of an order. It fills each line's Cost from your earlier purchase orders with that supplier, or from the product's Cost per item when there are none. Add the delivery's freight and duty to reach its landed cost per unit.

Then keep one row per delivery in a sheet: the date, the units, the cost per unit and the units left. The inventory spreadsheet template holds one row per size or color, so add deliveries on a second tab. For FIFO, list the oldest delivery first and sell down from the top row.

Shopify's help says the Cost per item field holds a fixed number, so its profit reports are only relevant to one point in time. For costs that change over time, the same page points to an accounting system, a reporting app or a manual calculation. A tool that tracks cost by delivery can do the sums for you.

FAQ

Questions, answered

  • 14-day free trial

    Explore Sledge on your store before you decide to commit.

  • No credit card required

    Start improving your store with no upfront commitment.

  • Setup in minutes

    Get Sledge running without a lengthy setup process.

  • Built to grow sales

    Turn shopper behavior into actions that help you sell more.

What does FIFO stand for?

FIFO stands for first in, first out. In stock accounting, the oldest cost you paid counts as sold first. The same letters also stand for fly-in, fly-out, a work roster in remote mining areas, and for a queue in computing. For a store, it is the rule that decides which cost your books count as sold.

Is FIFO or LIFO better?

Neither wins on its own. When prices rise, FIFO shows a lower cost of goods sold, so a higher profit, and LIFO shows the reverse. The IRS describes the cost difference in Publication 538. Which one your books use is a question for your accountant and the tax authority where you file.

Does Shopify use FIFO or LIFO?

Not in its reports. Shopify keeps one "Cost per item" for each product or size, saves it on an order when the order is created, and builds its cost reports from that number. The day you change that cost decides whether the same sales read nearer FIFO, LIFO or average cost.

Where does Shopify keep the cost of each delivery?

On the purchase order, which lists the products, quantities and costs of that order. A product's "Cost per item" is one number for each product or size, and the reports read that number. To value every delivery separately, keep a spreadsheet with one row per delivery, or use a tool that tracks cost by delivery.

What is weighted average cost?

Weighted average cost gives every unit the same price: the total you paid divided by the units you bought. Buy 100 mugs at $10 and 100 at $12, and each mug counts as $11, so 150 sold carry $1,650. Shopify's own costing guide says it is widely considered the easiest method.

Does Sledge value my stock or work out cost of goods sold?

No. Sledge does not value your stock or report cost of goods sold, so keep using Shopify's reports for both. In Sledge Analytics, the Signals tab can flag "Stock not selling", products that hold stock and sold nothing in 30 days, once 10 or more products qualify.

Shopify holds the cost. Sledge finds the slow stock.

Sledge does not value your stock or report cost of goods sold, so keep using Shopify's reports for both. In Sledge Analytics, the Signals tab lists "Stock not selling" once your store has sales and 10 or more products with stock have sold nothing in 30 days. The row shows their units, up to three of the largest and a "Create a bundle" button. Try it free for 14 days. Growth Intelligence turns on when you pick a paid plan, and its suggested fixes add up to one dollar figure, labeled Est. potential.