How to Find Ending Inventory Using LIFO: Periodic and Perpetual

To find ending inventory using LIFO, total the cost of goods available for sale, subtract cost of goods sold, and the remainder is your ending inventory. LIFO assigns the newest purchase costs to cost of goods sold first, so the units left on hand carry the oldest costs on your books. The mechanics differ depending on whether you run a periodic system (one calculation at period-end) or a perpetual system (updated after every sale), and the same purchase and sales data will usually produce two different dollar values.

How LIFO Assigns Costs

LIFO assumes the items you bought most recently are the first ones sold. It is a cost-flow convention for accounting; it does not have to match the physical movement of goods. The practical effect is that the oldest purchase costs accumulate as your ending inventory value on the balance sheet, while the most recent (and often higher) costs flow through the income statement as cost of goods sold.

Federal tax law codifies this in 26 U.S.C. § 472(b)(1), which requires items remaining on hand at year-end to be treated as coming first from opening inventory and then from the current year’s purchases in order of acquisition. The same statute requires LIFO inventory to be valued at cost, so you cannot write it down to market value the way FIFO users can.1Office of the Law Revision Counsel. 26 USC 472 – Last-in, First-out Inventories

Records You Need Before You Start

You cannot run a LIFO calculation without organizing your purchase history into distinct cost layers. Each layer is a batch of inventory acquired at a specific cost, and for every layer you need four things: the date it arrived, the number of units, the per-unit cost, and whether any of those units have already been sold. Pull this from purchase orders, receiving reports, and vendor invoices.

The IRS requires businesses using LIFO to keep a current-cost detail listing for every year the method is in use. That listing must show the quantity on hand at the end of the tax year and the unit cost of each item, and the records must be kept for the entire time you remain on LIFO. Invoice documentation supporting those unit costs must be retained for the duration of the statute of limitations, plus any extensions.2IRS.gov. LIFO Records

You also need an accurate count of total units sold during the period, pulled from your sales journal or point-of-sale system. For periodic LIFO, you need a confirmed physical count at period-end. For perpetual LIFO, you need the date and quantity of every individual sale, because the timing of each sale determines which cost layers get consumed.

Periodic LIFO Calculation

Under periodic LIFO, you ignore the timing of individual sales. You count what is left at the end of the period, then assign costs starting from the oldest layer and working forward. The calculation happens once, at period-end.

Take this year of activity:

  • Beginning inventory: 200 units at $10 each ($2,000)
  • March purchase: 300 units at $12 each ($3,600)
  • July purchase: 250 units at $14 each ($3,500)
  • October purchase: 150 units at $15 each ($2,250)

Total goods available for sale: 900 units costing $11,350. During the year, 600 units were sold, leaving 300 units in ending inventory.

To value those 300 remaining units, start with the oldest layer and work forward:

  • All 200 units from beginning inventory at $10 = $2,000
  • 100 units from the March purchase at $12 = $1,200

Ending inventory is $3,200. Cost of goods sold is $11,350 minus $3,200, or $8,150. The October and July layers, the most expensive, were entirely consumed by COGS, even though some sales physically happened before those purchases were made. Periodic LIFO does not care about that timing.

Perpetual LIFO Calculation

Perpetual LIFO updates the inventory balance after every sale, and each sale draws its cost from the most recent layer available at that moment. A December purchase cannot supply the cost of a June sale, because the system processes each transaction in real time.

Using the same purchase data, assume two sales: 400 units sold on May 15 and 200 units sold on September 20.

May 15 sale of 400 units. At this point, only beginning inventory (200 units at $10) and the March purchase (300 units at $12) exist. LIFO pulls from the newest available layer first:

  • 300 units from March at $12 = $3,600
  • 100 units from beginning inventory at $10 = $1,000

COGS for this sale: $4,600. After the sale, 100 units remain at $10.

July purchase arrives. 250 units at $14 are added. Inventory now holds 100 units at $10 plus 250 units at $14.

September 20 sale of 200 units. LIFO pulls from the newest available layer, the July purchase:

  • 200 units from July at $14 = $2,800

After this sale, inventory holds 100 units at $10 plus 50 units at $14.

October purchase arrives. 150 units at $15 are added. No further sales occur.

Ending inventory: 100 units at $10 ($1,000) plus 50 units at $14 ($700) plus 150 units at $15 ($2,250), totaling $3,950. Total COGS is $4,600 plus $2,800, or $7,400.

Why the Two Methods Give Different Numbers

The same purchase and sales data produced ending inventory of $3,200 under periodic LIFO and $3,950 under perpetual LIFO. The $750 gap is not a rounding error. It is a structural difference in how each method defines “last in.”

Periodic LIFO looks backward from year-end and treats every purchase made during the period as available to be consumed by any sale. The October purchase at $15 gets assigned to sales that happened in May, even though the goods did not exist yet. This pushes the most expensive costs into COGS and leaves the cheapest layers in ending inventory.

Perpetual LIFO respects chronology. The May sale can only draw from layers that existed on May 15, so the October purchase at $15 stays in ending inventory untouched. During periods of rising prices, perpetual LIFO ending inventory tends to be higher than periodic LIFO ending inventory because expensive later layers survive as unsold rather than being retroactively assigned to earlier sales.

This difference affects reported gross profit, net income, and tax liability. Most businesses using perpetual tracking rely on inventory software to handle these transaction-by-transaction calculations, since running them by hand across hundreds or thousands of sales is impractical.

Dollar-Value LIFO for Wide-SKU Inventories

Companies that stock a wide variety of products sometimes find it impractical to track individual cost layers for every SKU. Dollar-value LIFO groups inventory into pools and measures changes in total dollar value instead of tracking individual units. Rather than asking how many units you have at what cost, you ask whether the total dollar value of the pool increased or decreased after adjusting for inflation.

Small businesses with average annual gross receipts of $5 million or less over the three preceding tax years qualify for a simplified version under 26 U.S.C. § 474. You maintain separate pools based on major categories in a government price index and adjust each pool using the index’s published inflation rate rather than computing your own price changes. The year you switch becomes a new base year, and opening inventory carries over at the same dollar value as the prior year’s closing balance.3Office of the Law Revision Counsel. 26 USC 474 – Simplified Dollar-Value LIFO Method for Certain Small Businesses

Watch for LIFO Liquidation

The ending inventory number itself is straightforward once you have your layers organized. What can surprise you is what happens when the layers shrink. A LIFO liquidation occurs when you sell more inventory than you replace during a period, forcing the calculation to reach into old, low-cost layers that have been sitting on your books for years. When those cheap layers flow into cost of goods sold, reported COGS drops, gross profit jumps, and the resulting tax bill can unwind years of deferral in a single period.

A company that built up layers at $5 per unit over a decade and suddenly liquidates down to those layers will report COGS at $5 per unit while selling at current market prices. The profit spike has nothing to do with actual business performance, but the tax on it is real.

Limited relief exists under 26 U.S.C. § 473 if the liquidation results from a qualified interruption, specifically a Department of Energy regulation affecting supply or a major foreign trade disruption such as an embargo. The Secretary of the Treasury must formally determine that the interruption qualifies, and the determination is published in the Federal Register. If you qualify and elect relief, you generally have three taxable years following the liquidation year to replace the inventory, and the election is irrevocable.4Office of the Law Revision Counsel. 26 USC 473 – Qualified Liquidations of LIFO Inventories Ordinary liquidations get no special relief; the tax hit lands in full. If you can see a period of declining inventory coming, model the tax impact before year-end rather than discovering it after.