Ending inventory under LIFO comes from pricing the newest units sold first, then valuing what remains at older costs.
If you freeze on LIFO problems, you’re not alone. The math can look messy once purchases stack up at different prices. Still, the core idea is simple: the last units you bought are treated as the first units sold. What stays on the shelf is usually the older, cheaper stock.
That single rule changes everything. It affects cost of goods sold, gross profit, taxable income, and the ending inventory balance on the balance sheet. Once you can separate sold units from leftover units, the rest turns into a clean counting job.
This article shows the full method step by step. You’ll see the formula, the layer logic, a worked example, a second check method, and the mistakes that throw off the final number. By the end, you should be able to solve textbook questions, test prep questions, and many real bookkeeping cases without guessing.
What Ending Inventory Means Under LIFO
Ending inventory is the dollar value of goods still on hand at the end of the period. Under LIFO, those leftover goods are valued from the oldest cost layers that remain after sales are matched against the newest purchases.
That creates a pattern many students miss at first. In a period with rising costs, LIFO usually pushes newer, higher costs into cost of goods sold. The inventory left behind often carries older, lower costs. That’s why ending inventory under LIFO can look lower than it would under FIFO in the same period.
For tax accounting in the United States, the IRS Publication 538 explains that businesses may use LIFO when they meet the method rules and apply them consistently. If you work with IFRS instead of U.S. tax and GAAP practice, the rulebook changes. IAS 2 Inventories does not permit LIFO, so this method is mainly a U.S.-centered topic in practice.
How To Calculate Ending Inventory Using LIFO In 5 Clear Steps
Step 1: List beginning inventory and every purchase layer
Start with a timeline. Write down beginning inventory first, then each purchase during the period with its unit count and unit cost. Each purchase creates a separate layer. Don’t merge layers unless your class or system tells you to use a pooled method.
Say a company has these units available for sale:
- Beginning inventory: 100 units at $10
- Purchase 1: 80 units at $12
- Purchase 2: 70 units at $13
- Purchase 3: 50 units at $15
Total units available = 300. Total cost available = $3,620.
Step 2: Find units sold or units left
You need one of these numbers. If the problem gives units sold, use that. If it gives ending units, that works too. You can always find the missing piece with this relationship:
Beginning units + Purchased units − Units sold = Ending units
In this example, assume the company sold 190 units. That leaves 110 units in ending inventory.
Step 3: Apply LIFO to the units sold first
Now start from the newest layer and work backward. Under LIFO, the last units purchased are treated as sold first.
For 190 units sold:
- Sell 50 units from the $15 layer = $750
- Sell 70 units from the $13 layer = $910
- Sell 70 units from the $12 layer = $840
Cost of goods sold under LIFO = $2,500.
Step 4: Value what remains
After removing the sold units from the newest layers, count what is left. That leftover stock is ending inventory.
From the example above, the remaining inventory is:
- 10 units from the $12 layer = $120
- 100 units from beginning inventory at $10 = $1,000
Ending inventory under LIFO = $1,120.
Step 5: Check the answer with the control formula
A fast way to catch mistakes is to tie the pieces back together:
Goods available for sale − Cost of goods sold = Ending inventory
$3,620 − $2,500 = $1,120. The number matches, so the layer work holds up.
Calculating LIFO Ending Inventory When Costs Rise
Most LIFO questions are built around rising prices because that’s where the method stands out. Newer inventory costs more, so LIFO puts those higher costs into cost of goods sold first. That lowers ending inventory and often lowers reported profit for the period.
There’s a second effect too. The older layers can stay in ending inventory for a long time. If a business rarely sells deep enough into those layers, the balance sheet may hold inventory costs that are years old. The IRS materials on dollar-value LIFO explain how firms track layers and preserve that history over time.
That’s why many class problems feel like layer peeling. You strip off the newest costs for sales. What survives becomes ending inventory. Once you see LIFO as a stack, the method gets much easier.
| Layer | Units And Cost | Status After 190 Units Sold |
|---|---|---|
| Beginning inventory | 100 units × $10 = $1,000 | All 100 units remain |
| Purchase 1 | 80 units × $12 = $960 | 70 units sold, 10 remain |
| Purchase 2 | 70 units × $13 = $910 | All 70 units sold |
| Purchase 3 | 50 units × $15 = $750 | All 50 units sold |
| Total available | 300 units = $3,620 | 110 units remain |
| LIFO cost of goods sold | 50×$15 + 70×$13 + 70×$12 | $2,500 |
| LIFO ending inventory | 100×$10 + 10×$12 | $1,120 |
One Faster Way To Solve LIFO Problems
You don’t always need to price the sold units first. In many questions, it’s cleaner to value the ending units straight from the oldest layers. Since LIFO leaves older units behind, you can count the ending inventory from the bottom of the stack up.
Using the same example, ending units are 110. Start with the oldest layer first:
- Take 100 units from beginning inventory at $10 = $1,000
- You still need 10 units, so take 10 from the next oldest layer at $12 = $120
Ending inventory = $1,120. Same answer, fewer moving parts.
This shortcut works best when the question asks only for ending inventory. If the problem also asks for cost of goods sold, gross profit, or layer liquidation effects, the full sold-units method is still the cleaner path.
What Changes When Units Sold Cut Into Old Layers
Some periods bring heavy sales and lighter purchases. When that happens, the business may sell through recent layers and dip into older ones. That’s called a LIFO liquidation. It can lift income because those older costs are often lower.
The SEC’s guidance on LIFO liquidations shows why this matters in financial reporting. If a material amount of income comes from liquidating old LIFO layers, companies may need clear disclosure so statements are not misleading.
For ending inventory, the math rule stays the same. You keep removing units from the newest layers first. The twist is that the leftover inventory may shrink to a thin set of old layers, and that can make the final number look unusually low.
Common Mistakes That Throw Off Ending Inventory
Mixing periodic and perpetual logic
Some courses teach periodic LIFO and perpetual LIFO as separate methods. In periodic LIFO, you apply the method at period end using all purchases from the period. In perpetual LIFO, you apply it after each sale. The numbers can differ. Don’t blend the two.
Using FIFO by accident
This happens all the time under pressure. If you start assigning ending inventory from the newest purchases, you’ve drifted into FIFO-style thinking. Under LIFO, ending inventory usually comes from the oldest surviving layers.
Forgetting beginning inventory is a layer
Beginning inventory is not background detail. It is one of the layers in the stack. If sales do not eat through all later purchases, some or all of beginning inventory remains in ending inventory.
Dropping partial layers
Many answers go wrong when only part of a purchase layer is sold or left over. Don’t round the layer away. Keep the split exact. A leftover of 10 units from an 80-unit layer still carries that layer’s unit cost.
Skipping the control check
The best backstop is still the accounting identity: goods available for sale minus cost of goods sold equals ending inventory. A ten-second check can save a missed exam point or a spreadsheet clean-up later.
| Problem | What It Looks Like | Fix |
|---|---|---|
| Periodic vs perpetual mix-up | Answer does not tie to the method named in the question | Use one method all the way through |
| FIFO drift | Ending inventory priced from newest purchases | Start ending units from the oldest remaining layers |
| Ignored beginning inventory | Old stock never appears in the final count | Treat beginning inventory as the first layer in the stack |
| Partial layer error | Whole layer removed when only part was sold | Split the layer by exact units |
| No tie-out | Cost of goods sold plus ending inventory does not equal goods available | Run the control formula before you stop |
A Compact Formula You Can Reuse
When the pressure is on, use this compact sequence:
- Compute total units available.
- Find ending units.
- Count ending units from the oldest cost layers still on hand.
- Multiply units by unit cost layer by layer.
- Add the remaining layer values.
That is the cleanest route for many ending inventory questions. It matches the logic of LIFO without dragging you through extra arithmetic.
When LIFO Makes Sense In Real Records
LIFO is not about the physical flow of boxes on a warehouse floor. It is a cost-flow assumption. A store can still sell older physical items first while using LIFO in the accounting records. The method is about how costs are assigned, not which carton leaves the shelf.
In the United States, firms that use LIFO need disciplined records because those old layers stay alive year after year. The IRS has also published material on recordkeeping for LIFO pools and layers. That record trail matters because ending inventory today can still contain pieces of costs from past periods.
For students, that means one thing: respect the layers. Don’t rush past them. Each layer carries its own unit cost, and the ending inventory answer is nothing more than the value of the layers left standing after LIFO does its work.
The Working Rule To Hold In Your Head
If you want one rule that sticks, use this: under LIFO, sell the newest units on paper first and price the leftovers from the oldest costs. Once that clicks, ending inventory problems stop feeling slippery.
Write the layers, count the units, value the leftovers, then tie the answer back to goods available for sale. That’s the whole play. Clean, direct, and easy to repeat when the numbers change.
References & Sources
- Internal Revenue Service (IRS).“Publication 538, Accounting Periods and Methods.”Explains IRS rules for accounting methods, including inventory method use and consistency requirements.
- IFRS Foundation.“IAS 2 Inventories.”States how inventories are measured under IFRS and notes that LIFO is not an accepted cost formula.
- Internal Revenue Service (IRS).“Introduction to Dollar Value LIFO.”Shows how LIFO layers are tracked and maintained in practice under dollar-value LIFO rules.
- U.S. Securities and Exchange Commission (SEC).“Codification of Staff Accounting Bulletins, Topic 11.”Explains disclosure expectations when LIFO liquidations create material income effects.