Sub topic 8
What happens when prices rise or fall
This chapter assumes you can compute goods available for sale, COGS, and ending inventory. It also assumes you know how FIFO, LIFO, and weighted average assign costs to units. The goal here is to predict which method gives the higher or lower number when unit costs move, and to explain why.
The one rule behind every result
Goods available for sale is the same under every method. Each method only decides how that fixed pool of cost is split between COGS (an expense on the income statement) and ending inventory (an asset on the balance sheet).
- A dollar assigned to COGS lowers gross profit and taxable income now.
- A dollar left in ending inventory raises assets now and reaches the income statement only when those units are sold later.
So when two methods give different COGS, they give opposite differences in ending inventory. The two amounts always add up to the same goods available for sale.
Rising prices
Use the running example: 100 units at $10, then 200 at $12, then 100 at $14. The unit cost rose with each purchase. The company sells 250 units at $20 each, so revenue is $5,000. Goods available for sale is $4,800.
| Method | COGS | Ending inventory | Gross profit | Tax at 25% |
|---|---|---|---|---|
| FIFO | 2,800 | 2,000 | 2,200 | 550 |
| Weighted average | 3,000 | 1,800 | 2,000 | 500 |
| LIFO | 3,200 | 1,600 | 1,800 | 450 |
The pattern is consistent:
- FIFO sends the oldest, cheapest costs to COGS. COGS is lowest and profit is highest.
- LIFO sends the newest, most expensive costs to COGS. COGS is lowest in neither column: it is the highest, so profit is lowest.
- Weighted average blends all costs into one $12 unit cost, so it lands between the other two.
The table above ignores operating expenses. Taxes here are computed on gross profit only, to isolate the effect of the method.
Falling prices
Now reverse the purchase order: 100 units at $14, then 200 at $12, then 100 at $10. Goods available for sale is still $4,800 and 250 units are sold.
| Method | COGS | Ending inventory | Gross profit | Tax at 25% |
|---|---|---|---|---|
| FIFO | 3,200 | 1,600 | 1,800 | 450 |
| Weighted average | 3,000 | 1,800 | 2,000 | 500 |
| LIFO | 2,800 | 2,000 | 2,200 | 550 |
The ranking flips. FIFO now expenses the old, expensive units, so it reports the lowest profit. LIFO expenses the newest, cheapest units, so it reports the highest profit. Weighted average gives the same $3,000 in both scenarios because the average of the same three layers is still $12.
Checking it in code
This script runs both scenarios and prints the results for each method. It uses the periodic system with one sale at period end.
def cogs_from_layers(layers, units_sold):
remaining = units_sold
cogs = 0
for units, cost in layers:
take = min(units, remaining)
cogs += take * cost
remaining -= take
if remaining == 0:
break
if remaining:
raise ValueError("sold more units than available")
return cogs
units_sold = 250
price = 20
tax_rate = 0.25
revenue = units_sold * price
scenarios = [
("Rising", [(100, 10), (200, 12), (100, 14)]),
("Falling", [(100, 14), (200, 12), (100, 10)]),
]
for label, layers in scenarios:
available = sum(u * c for u, c in layers)
total_units = sum(u for u, _ in layers)
results = {
"FIFO": cogs_from_layers(layers, units_sold),
"LIFO": cogs_from_layers(list(reversed(layers)), units_sold),
"Average": available / total_units * units_sold,
}
print(label)
for name, cogs in results.items():
gross_profit = revenue - cogs
print(f" {name}: COGS={cogs:.0f} ending inventory={available - cogs:.0f} "
f"gross profit={gross_profit:.0f} tax={gross_profit * tax_rate:.0f}")Expected output:
Rising
FIFO: COGS=2800 ending inventory=2000 gross profit=2200 tax=550
LIFO: COGS=3200 ending inventory=1600 gross profit=1800 tax=450
Average: COGS=3000 ending inventory=1800 gross profit=2000 tax=500
Falling
FIFO: COGS=3200 ending inventory=1600 gross profit=1800 tax=450
LIFO: COGS=2800 ending inventory=2000 gross profit=2200 tax=550
Average: COGS=3000 ending inventory=1800 gross profit=2000 tax=500A decision map
The diagram summarizes how the price direction sets the ordering of the methods.
Why the inventory number differs
Under rising prices, FIFO leaves the newest costs in inventory. The balance sheet figure ($2,000) is close to what it would cost to replace those units today. LIFO leaves the oldest costs there. With a long history of LIFO, the balance sheet can show costs from many years ago, far below current replacement cost.
The income statement has the opposite problem. LIFO matches recent costs against current revenue, which is a closer picture of the cost of staying in business. FIFO under rising prices matches old, cheap costs against new, high selling prices. Part of FIFO's extra profit is an inventory holding gain: you bought at $10, the replacement now costs $14, and the gap shows up as profit even though you must spend more to restock.
Tax and cash effects
In the rising-price example LIFO cuts the tax bill from $550 to $450, a $100 saving. That equals the $400 difference in COGS times the 25% rate. Taxes are a real cash payment, so LIFO under rising prices leaves more cash in the business even though it reports lower profit.
Under falling prices the tax result reverses. LIFO would report higher profit and a higher tax bill, so a company with falling costs gains no tax benefit from LIFO.
Edge cases and common errors
- Flat prices. If every unit costs the same, all three methods give identical numbers. Differences require changing costs.
- Mixed movements. Prices that rise and then fall within a period do not follow a clean ranking. Compute the layers instead of assuming. FIFO is not always the highest-profit method.
- Cost direction, not selling price. The ranking depends on purchase cost trends. A rise in selling price with flat purchase costs changes revenue for all methods equally and does not separate them.
- Periodic versus perpetual. The tables above use the periodic system. Under a perpetual system, LIFO and weighted average can give different numbers because costs are matched at the time of each sale rather than at period end. FIFO gives the same answer in both systems.
- Sign mistakes. A common error is to say that a method that reports lower profit "loses" money. The units and total cost are the same. Only timing differs.
- Ignoring other costs. Real tax bills depend on operating expenses and other items, so the exact saving is smaller or larger than the gross-profit illustration, but its direction holds.
Summary of the predictions
| Condition | Highest profit | Lowest profit | Highest ending inventory |
|---|---|---|---|
| Rising costs | FIFO | LIFO | FIFO |
| Falling costs | LIFO | FIFO | LIFO |
| Flat costs | All equal | All equal | All equal |
Weighted average is in the middle for both rising and falling costs.
Exercise
A company has goods available for sale of 100 units at $5 and then 100 units at $8, and it sells 120 units for $15 each. Costs rose during the period. Using the periodic system, compute COGS, ending inventory, and gross profit under FIFO and LIFO. Which method gives the lower tax bill, and by how much at a 20% tax rate?
Show answer
Goods available for sale = 100 x 5 + 100 x 8 = 1,300. Revenue = 120 x 15 = 1,800. FIFO: COGS = 100 x 5 + 20 x 8 = 660, ending inventory = 640, gross profit = 1,140. LIFO: COGS = 100 x 8 + 20 x 5 = 900, ending inventory = 400, gross profit = 900. LIFO gives the lower tax bill. The profit difference is 240, so the tax difference is 240 x 20% = 48 (FIFO tax 228, LIFO tax 180).
Exercise
Under rising prices, a manager says, "LIFO shows lower inventory, so we must have bought fewer units." Explain what is wrong with this claim.
Show answer
The number of units on hand is the same under every method. LIFO shows a lower dollar amount because the units remaining are assigned the oldest, cheapest costs, while the newest, higher costs went to COGS. The cost flow assumption changes the dollar value, not the physical quantity.
Exercise
Prices fall during the year. Without calculating, rank FIFO, LIFO, and weighted average by reported gross profit, from highest to lowest, and state which has the highest ending inventory.
Show answer
LIFO is highest, weighted average is in the middle, and FIFO is lowest. LIFO has the highest ending inventory because it expenses the newest, cheapest costs first and leaves the older, more expensive costs on the balance sheet.