Last in, first out, or LIFO, is an inventory accounting method that assigns the most recently acquired inventory costs to goods sold first. Earlier costs can remain in the closing inventory balance. The accounting assumption does not require a business to ship its newest physical stock first.
Inventory is stock held for sale or used in production. When goods are sold, their assigned cost moves from inventory, an asset, into cost of goods sold, an expense. LIFO determines which cost layers are assigned to that expense.

Cost flow and physical flow
A food retailer may physically sell older stock first to limit spoilage. Where its accounting framework permits LIFO, it can still assign the latest acquisition costs to sales. The stock-handling policy and the accounting cost formula answer separate questions.
By comparison, first in, first out, or FIFO, assigns earlier costs to sales first. Weighted average uses an average unit cost. Specific identification matches an individual item with its own cost, where that method is appropriate.
OpenStax explains these inventory cost-flow assumptions and their treatment under US generally accepted accounting principles, or US GAAP.
A LIFO and FIFO calculation
Suppose a business buys 100 identical units at $10 each and then another 100 at $14. Total cost is $2,400. After both purchases, it sells 150 units for $20 each, generating $3,000 of revenue. Assume no returns, write-downs or other inventory movements.
Under LIFO, cost of goods sold is 100 × $14 + 50 × $10 = $1,900. The remaining 50 units carry the older $10 cost, leaving $500 of ending inventory. Gross profit is $3,000 − $1,900 = $1,100.
Under FIFO, cost of goods sold is 100 × $10 + 50 × $14 = $1,700. Ending inventory is 50 × $14 = $700, and gross profit is $1,300.

Neither method changes the example’s customer payments, purchase payments or number of units sold. Each allocates the same total inventory cost differently between the period’s expense and the closing asset. Gross profit is not a capital gain; it is revenue less cost of goods sold before other expenses.
Which accounting rules permit LIFO?
US GAAP permits LIFO. International Financial Reporting Standards, or IFRS, do not. The IFRS Foundation’s IAS 2 summary specifies FIFO or weighted average for ordinarily interchangeable inventory, and specific identification for inventory meeting the relevant conditions.
That rule does not mean every company worldwide must use IFRS. The applicable reporting framework determines the permitted financial-accounting methods. A company’s US tax treatment and its consolidated reporting requirements also need separate consideration.
The IRS provides Form 970 to elect LIFO for US tax purposes. US tax use is subject to conditions, including a financial-reporting conformity requirement. The IRS conformity overview explains that reporting requirement. A business cannot assume it may freely switch methods each year to obtain a preferred result.
Rising costs, falling costs and older layers
With rising unit costs and otherwise comparable inventory activity, LIFO generally assigns higher costs to sales and reports lower ending inventory than FIFO. Lower taxable profit can reduce current tax under applicable rules. Falling unit costs can reverse those effects, as IRS Publication 538 explains.
If quantities fall enough to use older LIFO layers, low historical costs may enter cost of goods sold. During a period of rising costs, that can increase reported profit compared with replacing those units at current prices. This effect is called a LIFO liquidation.
Timing also matters. Periodic LIFO applies the method over a reporting period, while perpetual LIFO applies it as sales occur. Purchases made between sales can make their results differ. The simple example above puts all purchases before the sale, so that timing issue does not arise.
Last checked and updated on November 11, 2026 by the MBN editorial team.