LIFO, short for last in, first out, is an inventory costing method that assumes the most recently acquired units are the first ones sold, so the newest purchase costs flow into cost of goods sold (COGS) while the oldest costs remain on the balance sheet as ending inventory. In e-commerce inventory accounting, LIFO is a cost-flow assumption, not a rule about which physical box leaves the warehouse first.
The method matters most when purchase prices change over time. During rising prices, LIFO reports higher COGS, lower gross profit and, where tax law permits, lower taxable income than FIFO. It is permitted under US GAAP but prohibited under IFRS, which limits its use to businesses reporting in the United States.
How LIFO assigns costs to sold inventory
LIFO assigns costs by matching each sale with the latest cost layers still on hand. Every purchase creates a cost layer with a quantity and a unit cost. When units are sold, the accounting system consumes the most recent layer first, then the next most recent, until the sold quantity is covered.
Consider a seller that buys 100 units at 10 dollars, then 100 at 12 dollars, then 100 at 14 dollars, and sells 150 units. The table below shows how LIFO allocates those costs.
| Cost layer | Units purchased | Unit cost | Units charged to COGS | Units left in inventory |
|---|---|---|---|---|
| Layer 3 (newest) | 100 | 14 dollars | 100 | 0 |
| Layer 2 | 100 | 12 dollars | 50 | 50 |
| Layer 1 (oldest) | 100 | 10 dollars | 0 | 100 |
COGS is therefore 1,400 plus 600, or 2,000 dollars, and ending inventory is 600 plus 1,000, or 1,600 dollars. Under FIFO, the same sale would produce COGS of 1,600 dollars and ending inventory of 2,000 dollars, showing how the method choice shifts 400 dollars of cost between the income statement and the balance sheet.
Periodic and perpetual LIFO
LIFO can be applied under a periodic or a perpetual inventory system, and the two can give different results. Periodic LIFO calculates COGS once at period end using all purchases of the period, while perpetual LIFO assigns cost at the moment of each sale using only the layers that existed at that time.
Many US companies also use dollar-value LIFO, which groups items into pools and measures layers in base-year dollars with price indexes. This approach avoids tracking thousands of individual items and is common for retailers with large, changing assortments.
The table below compares the main LIFO variants.
| Variant | How layers are measured | Typical user |
|---|---|---|
| Specific-goods periodic LIFO | Units per item, calculated at period end | Small catalogs with stable items |
| Perpetual LIFO | Units per item, calculated at each sale | Businesses with real-time inventory systems |
| Dollar-value LIFO | Pools valued with internal price indexes | Manufacturers and wholesalers |
| Retail LIFO | Retail prices converted with cost ratios | Department stores and large retailers |
LIFO compared with FIFO and weighted average cost
LIFO is one of three common cost-flow methods, and the choice changes reported margins and inventory values without changing actual cash spent on goods. FIFO assumes the oldest costs leave first, while the weighted average cost method blends all costs into one unit cost.
The following table shows how each method behaves when supplier prices are rising.
| Method | Cost of goods sold | Ending inventory value | Reported profit | Allowed under IFRS |
|---|---|---|---|---|
| LIFO | Highest | Lowest, may be outdated | Lowest | No |
| FIFO | Lowest | Close to current cost | Highest | Yes |
| Weighted average | In between | In between | In between | Yes |
When prices are falling, the effects reverse: LIFO then reports lower COGS and higher profit than FIFO. In a period of stable prices, the three methods produce nearly identical results.
Tax rules and reporting requirements for LIFO
In the United States, the main reason to adopt LIFO is tax deferral during inflation, because higher COGS reduces taxable income. Adoption requires filing IRS Form 970, and the LIFO conformity rule requires a company that uses LIFO for tax purposes to use it in its financial statements to shareholders and creditors as well.
Companies using LIFO usually disclose a LIFO reserve, the difference between inventory valued at FIFO or current cost and inventory valued at LIFO. Analysts add this reserve back to compare a LIFO company with peers that report under FIFO or IFRS.
Because IFRS prohibits LIFO, an online retailer selling internationally that consolidates into a group reporting under IFRS cannot use LIFO for group statements. Many jurisdictions outside the United States also disallow it for tax purposes.
Risks and practical drawbacks of LIFO
The biggest risk is LIFO liquidation, which occurs when sales exceed purchases and the company consumes old, low-cost layers. Those old costs then flow into COGS, inflating profit and creating a sudden tax bill that can erase years of deferral. Stockouts, supply disruptions or a deliberate inventory reduction can all trigger it.
The table below summarizes common problems and how practitioners address them.
| Problem | Cause | Typical remedy |
|---|---|---|
| LIFO liquidation | Old layers consumed when stock falls | Plan purchases before period end |
| Outdated balance sheet values | Oldest costs remain in inventory for years | Disclose and analyze the LIFO reserve |
| Confusion with physical flow | Staff assume newest stock must ship first | Separate warehouse rules from cost accounting |
| Unsupported in e-commerce tools | Many platforms offer only FIFO or average cost | Calculate LIFO in the accounting system |
Physical inventory practice should not follow LIFO for perishable or dated goods. A warehouse can ship the oldest stock first to avoid spoilage while the books still apply LIFO, because the method concerns cost assignment rather than picking order.
A non-technical view
LIFO is a way of deciding which purchase price to count when you sell something. Imagine a store that bought the same item several times at different prices. When it sells one, LIFO says to use the price of the most recent purchase.
When prices keep going up, this makes the cost of what was sold look higher and the profit look smaller, which can mean paying less tax for now. The key point is that LIFO changes the numbers in the books, not the boxes on the shelf. The store can still send out its oldest items first.
A concrete example
A US-based online seller of bicycle components carries about 1,200 items, and its supplier prices rise by roughly 8 percent a year. Its accountant recommends dollar-value LIFO for tax reporting, with items grouped into three pools: drivetrain, brakes and accessories.
In the first year, LIFO raises cost of goods sold by about 60,000 dollars compared with FIFO, which lowers taxable income by the same amount and defers the related tax. The company records a LIFO reserve of 60,000 dollars in its financial statement notes, as the conformity rule requires LIFO in its reports as well.
In the third year, a supply shortage forces the seller to run inventory down sharply. Old, cheaper layers enter cost of goods sold, and reported profit jumps. The accountant had warned about this LIFO liquidation, so the company had budgeted for the higher tax payment and planned larger purchases before the next year end.