What is LIFO inventory accounting?
Last-In, First-Out (LIFO) is an inventory valuation and cost-flow assumption that assigns the cost of the most recently acquired goods to Cost of Goods Sold (COGS) first. Under this method, the oldest purchase costs remain on the balance sheet as ending inventory.
In periods of rising prices or inflation, LIFO matches current, higher purchase costs against current revenue. This results in higher reported COGS, lower reported net income, and lower income tax payments compared to First-In, First-Out. To see how the alternative assumption affects your books, compare these numbers directly with the FIFO inventory calculator. For general stock valuation without batch tracking, use the ending inventory calculator.
LIFO formulas and cost flow
LIFO does not rely on a single algebraic formula; it works by consuming inventory layers in reverse chronological order. COGS is calculated by depleting the latest purchased batches first:
Where batch n represents the newest batch acquired, working backward to batch k. Ending inventory represents the remaining unconsumed units from the earliest layers:
The total cost of goods available for sale equals the sum of all batch quantities multiplied by their unit purchase prices:
Worked example: LIFO in action
Suppose an electronics distributor has two inventory purchases and sells 120 units during the quarter:
| Batch | Units | Unit cost | Units sold (LIFO) | COGS contribution |
|---|---|---|---|---|
| Batch 1 (oldest) | 100 | $2.00 | 70 | $140.00 |
| Batch 2 (newest) | 50 | $3.00 | 50 | $150.00 |
| Total | 150 | 120 | $290.00 COGS |
The 120 units sold consume all 50 units of Batch 2 at $3.00 each ($150.00) plus 70 units of Batch 1 at $2.00 each ($140.00), yielding a total COGS of $290.00. The remaining 30 units stay in ending inventory at Batch 1 cost ($2.00 each = $60.00).
Notice the contrast with FIFO for this exact dataset: FIFO would consume Batch 1 first, producing a lower COGS of $260.00 and a higher ending inventory of $90.00. LIFO increases COGS by $30.00, reducing pre-tax profit by that exact amount.
LIFO vs. FIFO vs. weighted average
Choosing an inventory cost flow assumption directly impacts gross margin, balance sheet asset values, and corporate tax liability when purchase costs change over time:
| Accounting method | COGS during inflation | Ending inventory value | Regulatory status |
|---|---|---|---|
| LIFO | Highest (reflects newest prices) | Lowest (based on older costs) | Allowed under U.S. GAAP; banned by IFRS |
| FIFO | Lowest (reflects oldest prices) | Highest (reflects current replacement) | Accepted globally under both GAAP and IFRS |
| Weighted Average | Intermediate (blended average) | Intermediate (blended average) | Accepted globally under both GAAP and IFRS |
Key regulatory and practical considerations
- IFRS prohibition: International Financial Reporting Standards (IAS 2) specifically prohibit LIFO because ending inventory on the balance sheet reflects outdated historical costs that may severely understate company assets.
- The LIFO conformity rule: Under U.S. Internal Revenue Code Section 472(c), if a company uses LIFO for federal income tax purposes to lower taxes, it must also use LIFO in its financial statements and reports to shareholders.
- LIFO reserve disclosures: Public companies using LIFO must report a LIFO Reserve footnote, documenting the dollar difference between inventory valued under FIFO versus LIFO so investors can compare companies on an equal footing.
- Inventory management metrics: If you evaluate working capital and supply chain speed, check the inventory turnover calculator and the days inventory outstanding calculator to track how quickly stock converts to sales.
Frequently asked questions
Why do companies adopt the LIFO method?
Why does IFRS ban LIFO?
What is a LIFO liquidation?
What is the LIFO conformity rule?
How does LIFO affect inventory turnover and working capital ratios?
Does LIFO match physical inventory movement?
Which currency does this calculator use?
Resources and references
The formulas and methods in this calculator were checked against these independent sources.