Sub topic 6
LIFO: newest costs go to COGS first
This chapter assumes you know how COGS and ending inventory relate (beginning inventory plus purchases equals goods available for sale). It also assumes you have read the FIFO chapter, and you should be comfortable with cost layers of units and unit costs. Last-in, first-out (LIFO) is a cost flow assumption. It assigns the cost of the most recently purchased units to COGS first, and it leaves the oldest costs in ending inventory.
The core idea
LIFO is about cost flow, not physical flow. A company using LIFO does not have to sell its newest items first. A grain merchant may ship the oldest stock, and a hardware store may rotate shelves to sell old stock first. Under LIFO, the accounting still matches the latest purchase prices against current sales revenue.
Our running example has these cost layers, oldest first:
| Layer | Units | Unit cost | Cost |
|---|---|---|---|
| Beginning inventory | 100 | $10 | $1,000 |
| Purchase 1 | 200 | $12 | $2,400 |
| Purchase 2 | 100 | $14 | $1,400 |
| Goods available for sale | 400 | $4,800 |
The company sells 250 units. LIFO takes costs from the bottom of the pile (the newest layer) and works upward.
The arithmetic for the periodic case:
- Take all 100 units at $14: $1,400.
- Take the remaining 150 units from the $12 layer: 150 × $12 = $1,800.
- COGS = $1,400 + $1,800 = $3,200.
- Ending inventory = $4,800 − $3,200 = $1,600. This is 100 × $10 plus 50 × $12.
For comparison, FIFO gives COGS of $2,800 and ending inventory of $2,000 on the same data.
LIFO under a periodic system
Under a periodic system, the company counts inventory at period end and then applies the LIFO layers to the whole period at once. Sales during the period do not matter for the calculation. Only the total units sold matters. The purchases made on the last day of the period are treated as sold first, even if they arrived after the sale happened.
The code below reproduces this by walking the layers from newest to oldest.
# Periodic LIFO: layers are (units, unit_cost), oldest first.
layers = [(100, 10), (200, 12), (100, 14)]
units_sold = 250
remaining = units_sold
cogs = 0
for units, cost in reversed(layers): # newest layer first
take = min(units, remaining)
cogs += take * cost
remaining -= take
if remaining == 0:
break
if remaining:
raise ValueError("sold more units than available")
goods_available = sum(u * c for u, c in layers)
print("COGS =", cogs, "Ending inventory =", goods_available - cogs)
# COGS = 3200 Ending inventory = 1600LIFO under a perpetual system
Under a perpetual system, the company updates the inventory records at every sale, so each sale takes the newest layers that exist at that moment. A purchase made after a sale cannot be charged to that sale. This is why periodic and perpetual LIFO can give different answers.
Take the sequence from the chapter on periodic and perpetual systems: a purchase of 200 units at $12 on day 5, a sale of 150 units on day 10, a purchase of 100 units at $14 on day 15, and a sale of 100 units on day 20.
- Day 10: the newest layer is the $12 layer, so COGS is 150 × $12 = $1,800. Remaining: 100 at $10 and 50 at $12.
- Day 20: the newest layer is the $14 layer, so COGS is 100 × $14 = $1,400.
- Total COGS is $3,200 and ending inventory is $1,600.
Here the periodic and perpetual answers are the same, but only by coincidence of timing. The next example shows the difference. Suppose all 250 units were sold on day 10, before the $14 purchase arrived. The following code uses a stack, where the last layer pushed is the first one popped.
def lifo_perpetual(opening, events):
stack = list(opening) # (units, unit_cost), oldest first
cogs = 0
for kind, qty, cost in events:
if kind == "buy":
stack.append((qty, cost))
else:
remaining = qty
while remaining:
if not stack:
raise ValueError("sold more units than on hand")
units, layer_cost = stack.pop() # newest layer
take = min(units, remaining)
cogs += take * layer_cost
remaining -= take
if units > take:
stack.append((units - take, layer_cost))
ending = sum(u * c for u, c in stack)
return cogs, ending
opening = [(100, 10)]
# Sales on days 10 and 20, as in the worked sequence.
a = [("buy", 200, 12), ("sell", 150, None),
("buy", 100, 14), ("sell", 100, None)]
print(lifo_perpetual(opening, a)) # (3200, 1600)
# All 250 units sold before the $14 purchase arrives.
b = [("buy", 200, 12), ("sell", 250, None), ("buy", 100, 14)]
print(lifo_perpetual(opening, b)) # (2900, 1900)In the second scenario the sale takes 200 units at $12 and 50 units at $10, so COGS is $2,900. The $14 layer arrives too late to be sold. A periodic count would still report $3,200, because it treats the $14 units as sold first.
What LIFO does to the financial statements
LIFO matters most when purchase costs are changing. When prices rise, the newest costs are the highest, so LIFO charges the most to COGS. Assume the 250 units sell for $20 each, which is $5,000 of revenue, and a 25% tax rate.
| Measure | FIFO | LIFO | Weighted average |
|---|---|---|---|
| COGS | $2,800 | $3,200 | $3,000 |
| Gross profit | $2,200 | $1,800 | $2,000 |
| Ending inventory | $2,000 | $1,600 | $1,800 |
| Tax at 25% (no other expenses) | $550 | $450 | $500 |
Under rising prices LIFO has these effects:
- COGS is higher and gross profit is lower. The income statement matches current costs with current revenue, which many analysts see as a better picture of sustainable margins.
- Ending inventory is lower and carried at old costs. A balance sheet that shows $1,600 of inventory whose replacement cost is closer to $2,000 or more understates working capital.
- Taxable income is lower, so cash taxes are lower. Here LIFO saves 25% × $400 = $100 compared with FIFO. The savings are a deferral, and they continue as long as the company keeps its older layers.
- The current ratio and inventory turnover shift. Inventory is lower, so the current ratio is lower. COGS divided by a smaller average inventory gives higher turnover.
When prices fall, the pattern reverses. LIFO then charges the lowest costs to COGS, so it shows higher income and higher taxes than FIFO. This is one reason LIFO is attractive mostly in industries where costs trend upward.
LIFO reserve
Companies that use LIFO often also report what inventory would be under FIFO or current cost. The difference is the LIFO reserve:
LIFO reserve = FIFO inventory − LIFO inventory
In our example the reserve is $2,000 − $1,600 = $400. The change in the reserve during the year equals the difference in COGS between the two methods, which is $400 here from a reserve that started at zero. Analysts use the reserve to restate a LIFO company to FIFO:
- FIFO inventory = LIFO inventory + LIFO reserve.
- FIFO COGS = LIFO COGS − increase in the LIFO reserve.
This makes LIFO and FIFO companies comparable.
LIFO liquidation
A LIFO layer stays on the books until sales exceed purchases enough to reach it. If the company sells more units than it buys in a period, it dips into old layers. This is a LIFO liquidation.
Suppose the company sells 350 units against only 300 units purchased. COGS includes the 300 units bought this period plus 50 units from the $10 beginning layer. If those units cost $14 to replace, the old layer lowers COGS by 50 × ($14 − $10) = $200. Gross profit rises by $200 even though nothing improved operationally, and the tax bill rises with it. Analysts watch for this in the footnotes, where companies must disclose material liquidations.
Rules and constraints
- US GAAP permits LIFO. IFRS (IAS 2) prohibits it. A company that reports under IFRS must use FIFO, weighted average, or specific identification, so LIFO is mostly a US phenomenon.
- The LIFO conformity rule is a US federal tax rule. A company that uses LIFO on its tax return must also use LIFO in the financial statements it gives to shareholders and creditors. A company cannot claim the tax savings while reporting higher FIFO income to investors. Disclosing the LIFO reserve in the notes is allowed.
- Consistency requires a company to keep the same method from period to period. A change is allowed only when justified, and it must be disclosed with its effects.
- Lower of cost and market: under US GAAP, inventory measured with LIFO is tested at the lower of cost or market. Inventory measured with FIFO or average cost is tested at the lower of cost and net realizable value.
- Dollar-value LIFO groups items into pools and measures layers in dollars adjusted by a price index. Companies with thousands of products use it, because tracking unit layers would be impractical.
When to choose LIFO
LIFO fits when these hold together:
- The company is a US taxpayer and does not report under IFRS.
- Costs of inventory generally rise.
- The company can accept lower reported income and stable inventory levels, so layers are not liquidated.
- Lower current taxes matter more than a higher balance sheet value.
If the company expects falling costs, reports under IFRS, or has inventory that turns over quickly, FIFO or weighted average usually works better.
Exercise
Using the layers in this chapter (100 units at $10, 200 at $12, 100 at $14) and a periodic system, the company sells 320 units. What are COGS and ending inventory under LIFO, and is any old layer liquidated?
Show answer
Take 100 units at $14 = $1,400, then 200 units at $12 = $2,400, then 20 units at $10 = $200. COGS is $4,000. Ending inventory is $4,800 − $4,000 = $800, which is 80 units at $10. Only 300 units were purchased this period, so 20 units from the $10 beginning layer were liquidated.
Exercise
A company reports LIFO inventory of $1,600 and a LIFO reserve of $400. Its LIFO reserve at the start of the year was $250. COGS under LIFO was $3,200. What are its inventory and COGS if it used FIFO?
Show answer
FIFO inventory = $1,600 + $400 = $2,000. The reserve rose by $400 − $250 = $150, so FIFO COGS = $3,200 − $150 = $3,050.