How to Calculate Ending Inventory Using LIFO | Complete Guide & Calculator


LIFO Ending Inventory Calculator

A professional tool to help you calculate ending inventory using LIFO (Last-In, First-Out). Understand its impact on COGS and profitability with our comprehensive guide.

LIFO Calculator

Add each batch of inventory you purchased, including the number of units and the cost per unit.



Enter the total number of units sold during the period.


Ending Inventory Value (LIFO)
$0.00

Cost of Goods Sold (COGS)
$0.00

Ending Inventory Units
0

Total Units Purchased
0

Formula Explanation: The LIFO method assumes the last items added to inventory are the first ones sold. Ending inventory is valued using the cost of the oldest purchases, while COGS is valued using the cost of the newest purchases.


Purchase Date (Layer) Units Cost/Unit Total Cost Status
Table: Breakdown of inventory layers showing which units are sold and which remain in ending inventory under the LIFO method.

Chart: Visual comparison of the Cost of Goods Sold (COGS) versus the Ending Inventory Value. This demonstrates how LIFO allocates costs, especially during periods of changing prices.

What is Calculating Ending Inventory Using LIFO?

To calculate ending inventory using LIFO (Last-In, First-Out) is to apply an accounting method for inventory valuation that assumes the most recently purchased or produced items are the first ones to be sold. This approach contrasts with other methods like FIFO (First-In, First-Out). Under the LIFO method, the cost of the newest inventory is matched against current revenues, which means the remaining inventory on the balance sheet is valued at the oldest costs. This is a crucial concept in inventory management and financial accounting.

Who Should Use LIFO?

LIFO is most commonly used by U.S.-based companies in industries where inventory costs are consistently rising (inflationary periods). By expensing the highest-cost items first, companies can report a higher Cost of Goods Sold (COGS), which in turn leads to lower reported profits and a lower tax liability. Industries like retail, auto dealerships, and natural resources often find this method advantageous for tax deferral. However, it’s important to note that LIFO is prohibited under International Financial Reporting Standards (IFRS), limiting its use for multinational corporations.

Common Misconceptions

A primary misconception about LIFO is that it must match the physical flow of goods. In reality, LIFO is a cost-flow assumption, not a physical-flow requirement. A grocery store, for example, physically sells its oldest stock first (FIFO) to prevent spoilage, but it could still use LIFO for its financial reporting. Another misconception is that it always provides a tax advantage. During periods of falling prices (deflation), LIFO would result in a lower COGS, higher profits, and a higher tax bill compared to FIFO.

LIFO Formula and Mathematical Explanation

There isn’t a single “formula” to calculate ending inventory using LIFO; it’s a step-by-step process of applying the Last-In, First-Out principle. The calculation method requires careful tracking of inventory layers.

Step-by-Step Derivation

  1. List All Inventory Purchases: Document every batch of inventory purchased during the accounting period, including the number of units and the cost per unit.
  2. Determine Total Units Sold: Sum up the total number of units sold during the same period.
  3. Calculate Cost of Goods Sold (COGS): Match the units sold against your purchases, starting with the most recent (last-in) purchase and working backward until all sold units are accounted for. The sum of the costs of these units is your COGS.
  4. Calculate Ending Inventory: The units that remain unsold are your ending inventory. To find their value, you use the cost of the oldest (first-in) purchases.

Variables Table

Variable Meaning Unit Typical Range
Beginning Inventory Units Number of units available at the start of the period. Units 0+
Purchased Units Number of units bought in a specific purchase layer. Units 1+
Unit Cost The cost to acquire one unit of inventory in a layer. Currency ($) $0.01+
Units Sold Total number of units sold during the period. Units 0 to Total Available Units
Ending Inventory Value The monetary value of unsold inventory based on the oldest costs. Currency ($) Depends on units and costs
Cost of Goods Sold (COGS) The expense of inventory sold, based on the newest costs. Currency ($) Depends on units sold and costs

Practical Examples

Example 1: Rising Prices

Imagine a company makes the following purchases in a month with rising costs and then sells 120 units:

  • Purchase 1 (Jan 5): 100 units @ $10/unit
  • Purchase 2 (Jan 15): 50 units @ $12/unit

To calculate ending inventory using LIFO, we first determine COGS. The 120 units sold are costed from the last purchase first:

  • From Purchase 2: 50 units @ $12 = $600
  • From Purchase 1: 70 units @ $10 = $700
  • Total COGS: $600 + $700 = $1,300

The ending inventory consists of the remaining 30 units from the oldest purchase: 30 units @ $10 = $300 (Ending Inventory Value).

Example 2: Multiple Layers

A company sells 350 units and has the following inventory:

  • Layer 1: 200 units @ $5
  • Layer 2: 150 units @ $7
  • Layer 3: 100 units @ $9

COGS is calculated by using the last layers first:

  • From Layer 3: 100 units @ $9 = $900
  • From Layer 2: 150 units @ $7 = $1,050
  • From Layer 1: 100 units @ $5 = $500
  • Total COGS: $900 + $1,050 + $500 = $2,450

The ending inventory is the 150 units remaining from the first layer: 150 units @ $5 = $750 (Ending Inventory Value). This process shows how to correctly calculate ending inventory using LIFO with multiple cost layers.

How to Use This LIFO Calculator

Our tool simplifies the process to calculate ending inventory using LIFO. Follow these steps for an accurate calculation:

  1. Add Purchase Layers: For each batch of inventory purchased, click “Add Purchase Layer”. Enter the number of units and the cost per unit for that specific batch. Add as many layers as you need to represent your purchases for the period.
  2. Enter Total Units Sold: In the “Total Units Sold” field, input the total quantity of items sold during the accounting period.
  3. Read the Results: The calculator automatically updates in real time. The primary result is the “Ending Inventory Value”. You can also see key intermediate values like “Cost of Goods Sold (COGS)” and “Ending Inventory Units”.
  4. Analyze the Table and Chart: The table below the calculator breaks down each inventory layer, showing which units were sold and which remain. The chart provides a quick visual comparison between your COGS and the value of your remaining inventory.

Key Factors That Affect LIFO Results

Several factors can significantly influence the outcome when you calculate ending inventory using LIFO. Understanding them is crucial for financial planning.

  • Inflation and Price Changes: This is the most significant factor. During periods of inflation, LIFO leads to a higher COGS and lower reported profit, which reduces tax liability. Conversely, in deflationary times, it results in higher taxable income.
  • LIFO Liquidation: This occurs when a company sells more inventory than it purchases in a period, forcing it to dip into older, lower-cost inventory layers. This can artificially inflate profits and create an unexpectedly large tax bill.
  • Tax Regulations: LIFO is permitted under U.S. GAAP but banned by IFRS. The LIFO conformity rule in the U.S. requires that if a company uses LIFO for tax purposes, it must also use it for its financial statements.
  • Record-Keeping Complexity: LIFO requires meticulous tracking of distinct inventory layers, each with its own cost basis. This can be more complex to manage than FIFO or the weighted-average method.
  • Inventory Purchase Patterns: The timing and volume of inventory purchases can manipulate LIFO results. For example, a large year-end purchase during a period of rising prices can increase COGS and lower the current year’s tax bill.
  • Industry Norms: The choice between LIFO and FIFO can be influenced by industry standards. Using a method different from competitors can make financial comparisons difficult for investors and analysts. For more on this, see our inventory management techniques guide.

Frequently Asked Questions (FAQ)

1. Is LIFO or FIFO better for taxes?

During periods of rising prices (inflation), LIFO is generally better for taxes because it results in a higher COGS, which lowers your taxable income. However, if prices are falling, FIFO would be more advantageous.

2. Why is LIFO not allowed under IFRS?

IFRS prohibits LIFO because it can distort earnings and comparability between companies. The inventory value on the balance sheet can be significantly outdated and understated, which IFRS considers to be misleading for investors. For more details, you can read about understanding GAAP and IFRS.

3. What is a ‘LIFO liquidation’?

A LIFO liquidation happens when a company sells more units than it purchases, forcing it to expense older, lower-cost inventory. This leads to an abnormally low COGS, a spike in reported net income, and a higher tax liability for that period.

4. Does LIFO reflect the physical flow of inventory?

Not necessarily. LIFO is a cost flow assumption used for accounting. A business can physically sell its oldest products first (physical FIFO) but still use the LIFO method for financial reporting. The two are independent concepts.

5. How does LIFO affect the balance sheet?

Under LIFO, the balance sheet reports inventory at its oldest costs. During inflationary times, this means the inventory value is understated compared to its current market value, which can make the company’s asset base appear smaller. Our guide on how to read a balance sheet provides more context.

6. Which inventory method do most businesses use?

Most businesses, especially those operating globally or dealing with perishable goods, use the FIFO method. It is simpler to manage, reflects the physical flow of goods for many industries, and is permitted by both U.S. GAAP and IFRS.

7. How do I correctly calculate ending inventory using LIFO if I have multiple product types?

For complex inventories, companies often use the dollar-value LIFO method. This approach groups inventory into pools of similar items rather than tracking individual units. The value of these pools is then adjusted for inflation using price indexes.

8. Can a company switch from FIFO to LIFO?

Yes, a company can switch inventory methods, but it requires reporting the change to the IRS and including a disclosure in its financial statements explaining the impact of the change. This is considered a change in accounting principle.

© 2026 Your Company Name. All Rights Reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *