How To Calculate Ending Inventory Using Lifo






LIFO Ending Inventory Calculator: How to Calculate Ending Inventory Using LIFO


LIFO Ending Inventory Calculator

Calculate Ending Inventory Using LIFO

Enter your beginning inventory, purchases throughout the period, and the total units sold to find the ending inventory value using the LIFO (Last-In, First-Out) method.


Units you started with.


Cost for each unit in beginning inventory.

Purchases During the Period:




# Units Cost/Unit Total Cost Action
Table of inventory purchases made during the period.


Total units sold during the period.



Layer Units Remaining Cost/Unit Value
Ending inventory layers and their values based on LIFO.

Chart visualizing the value of different inventory layers in the ending inventory.

How to Calculate Ending Inventory Using LIFO: A Comprehensive Guide

Understanding how to calculate ending inventory using LIFO (Last-In, First-Out) is crucial for businesses that need to value their inventory and determine the cost of goods sold (COGS). This method assumes that the most recently acquired inventory items are the first ones to be sold. This guide will walk you through the process, formula, and implications of using LIFO.

What is Ending Inventory using LIFO?

Ending inventory, when calculated using the LIFO method, represents the value of goods remaining at the end of an accounting period, assuming that the last units purchased were the first ones sold. This means the ending inventory is composed of the oldest units, including the beginning inventory and the earliest purchases made during the period.

The LIFO method is one of several inventory valuation methods (others include FIFO and weighted-average) used to determine the cost of goods sold and the value of the remaining inventory. The choice of method can significantly impact the reported COGS and net income, especially during periods of changing costs.

Who Should Use LIFO?

Companies might choose LIFO, where permitted by accounting standards (like US GAAP, though not IFRS), if they want to match their most recent costs with their most recent revenues, especially in inflationary environments. This typically results in a higher COGS and lower taxable income during periods of rising prices. However, it also means the inventory value on the balance sheet might be understated compared to current market values. Understanding how to calculate ending inventory using LIFO is vital for these firms.

Common Misconceptions

A common misconception is that LIFO reflects the actual physical flow of goods. In most cases, it doesn’t. Businesses usually sell their oldest goods first to avoid obsolescence, but LIFO is an accounting assumption about cost flow, not necessarily physical flow. Another point is that using LIFO can lead to an outdated inventory valuation on the balance sheet because it’s based on older costs.

LIFO Ending Inventory Formula and Mathematical Explanation

To calculate ending inventory using LIFO, you first determine the total number of units available for sale and then subtract the units sold, assuming the sales came from the most recent purchases first.

The steps are:

  1. Calculate Total Units Available for Sale: Add beginning inventory units to all units purchased during the period.
  2. Determine Units in Ending Inventory: Subtract total units sold from total units available for sale.
  3. Value Ending Inventory: Assign costs to the ending inventory units starting from the oldest costs (beginning inventory first, then the earliest purchases) until all units in the ending inventory are valued.
  4. Calculate Cost of Goods Sold (COGS): The total cost of units available for sale minus the value of the ending inventory gives you COGS. Alternatively, COGS is the sum of the costs of the most recent purchases and beginning inventory that make up the units sold.

There isn’t a single neat “formula” for LIFO ending inventory value; it’s a process. You identify which cost layers remain after assuming the last ones were sold.

Variables Table

Variable Meaning Unit Typical Range
Beginning Inventory Units Number of units at the start Units 0 to thousands+
Beginning Inventory Cost/Unit Cost per unit of beginning inventory Currency 0.01 to thousands+
Purchase Units Number of units in a purchase batch Units 1 to thousands+
Purchase Cost/Unit Cost per unit in a purchase batch Currency 0.01 to thousands+
Units Sold Total units sold during the period Units 0 to total available
Ending Inventory Units Units remaining at the end Units 0 to total available
Ending Inventory Value Total cost of ending inventory Currency Calculated
COGS Cost of Goods Sold Currency Calculated
Variables used in LIFO calculations.

Practical Examples (Real-World Use Cases)

Example 1: Rising Costs

A company has:

  • Beginning Inventory: 100 units @ $10/unit = $1000
  • Purchase 1: 50 units @ $12/unit = $600
  • Purchase 2: 70 units @ $15/unit = $1050
  • Units Sold: 130 units

Total available: 100 + 50 + 70 = 220 units.

Units sold (130) come from:

  • 70 units @ $15 (from Purchase 2) = $1050
  • 60 units @ $12 (from Purchase 1) = $720

So, COGS = $1050 + $720 = $1770.

Ending Inventory units: 220 – 130 = 90 units.
These 90 units are composed of:

  • 100 – 60 = 40 units remaining from beginning inventory (sold 60 from purchase 1, used all of purchase 2, so 0 from beginning inv sold) wait, units sold come from LATEST first.
    130 units sold: 70 @ $15, 50 @ $12, 10 @ $10.
    COGS = 70*15 + 50*12 + 10*10 = 1050 + 600 + 100 = $1750.
    Ending Inventory: 90 units from beginning @ $10 = $900.
    Let’s re-do. 130 sold: 70 from P2, 50 from P1, 10 from Beg Inv.
    COGS = 70*15 + 50*12 + 10*10 = 1050 + 600 + 100 = 1750.
    Remaining: 90 units from Beginning Inventory @ $10 = $900.

Ending Inventory = 90 units @ $10 = $900.

Example 2: Multiple Purchases

A retailer has:

  • Beginning Inventory: 20 units @ $5
  • Purchase 1: 30 units @ $6
  • Purchase 2: 25 units @ $7
  • Purchase 3: 15 units @ $8
  • Units Sold: 50 units

Total available: 20 + 30 + 25 + 15 = 90 units.

Units sold (50) under LIFO:

  • 15 units @ $8 (from Purchase 3) = $120
  • 25 units @ $7 (from Purchase 2) = $175
  • 10 units @ $6 (from Purchase 1) = $60

COGS = $120 + $175 + $60 = $355.

Ending Inventory units: 90 – 50 = 40 units.
These 40 units consist of:

  • 20 units @ $5 (from Beginning Inventory) = $100
  • 20 units @ $6 (30-10 from Purchase 1) = $120

Ending Inventory Value = $100 + $120 = $220.

How to Use This LIFO Ending Inventory Calculator

  1. Enter Beginning Inventory: Input the number of units and cost per unit you started with.
  2. Add Purchases: For each purchase made during the period, enter the units and cost per unit, then click “Add Purchase”. Add all purchases chronologically (though LIFO uses the last ones first, order helps tracking).
  3. Enter Units Sold: Input the total number of units sold during the period.
  4. Calculate: Click “Calculate LIFO” (or results update automatically).
  5. Review Results: The calculator will show the Ending Inventory Value (LIFO), Ending Inventory Units, COGS (LIFO), and details of the inventory layers remaining. The table and chart will also update.

Understanding how to calculate ending inventory using LIFO helps in financial reporting and tax planning, especially when costs are changing. The calculator simplifies this process.

Key Factors That Affect LIFO Results

  1. Inflation/Deflation: During inflation (rising costs), LIFO results in higher COGS and lower ending inventory value compared to FIFO. In deflation, the opposite occurs. Knowing how to calculate ending inventory using LIFO is key here.
  2. Number of Purchases: More frequent purchases at varying costs can make LIFO calculations more complex and can result in different ending inventory values depending on the timing and cost of these purchases.
  3. Quantity of Units Sold: The more units sold, the more layers of inventory are “used up” from the most recent purchases, potentially dipping into older, cheaper layers if sales are very high.
  4. Inventory Layers: The existence of multiple inventory layers with different costs is fundamental to how LIFO works. If all inventory was purchased at the same cost, LIFO, FIFO, and average cost would yield similar results.
  5. Accounting Standards: LIFO is permitted under US GAAP but not under IFRS. The choice is constrained by the applicable accounting framework.
  6. LIFO Liquidation: If a company sells significantly more units than it purchases, it may “liquidate” old LIFO layers, bringing very old, lower costs into COGS, which can distort net income and tax liabilities. This highlights the importance of understanding how to calculate ending inventory using LIFO accurately.

Frequently Asked Questions (FAQ)

Q1: What does LIFO stand for?
A1: LIFO stands for Last-In, First-Out. It’s an inventory costing method.
Q2: How does LIFO compare to FIFO in rising prices?
A2: In rising prices, LIFO generally results in a higher Cost of Goods Sold (COGS) and lower net income (and thus lower taxes) compared to FIFO (First-In, First-Out). Ending inventory under LIFO will be valued at older, lower costs.
Q3: Is LIFO allowed under IFRS?
A3: No, LIFO is not permitted under International Financial Reporting Standards (IFRS). It is allowed under U.S. Generally Accepted Accounting Principles (US GAAP).
Q4: Does LIFO reflect the actual flow of goods?
A4: Not usually. Most businesses try to sell their oldest stock first to avoid spoilage or obsolescence. LIFO is primarily a cost flow assumption for accounting purposes.
Q5: What is a LIFO reserve?
A5: A LIFO reserve is the difference between the inventory value calculated using FIFO (or current cost) and the inventory value calculated using LIFO. It shows how much lower the inventory value is under LIFO compared to FIFO.
Q6: What is LIFO liquidation?
A6: LIFO liquidation occurs when a company using LIFO sells more inventory than it purchases during a period, causing it to dip into older, lower-cost inventory layers. This can result in unusually low COGS and high taxable income for that period.
Q7: Why would a company choose LIFO?
A7: During periods of rising costs, LIFO can lead to lower taxable income by matching higher, more recent costs with revenues. This is a primary driver for using LIFO where permitted.
Q8: Can I switch between LIFO and FIFO?
A8: Switching between inventory methods is generally discouraged as it can distort financial statement comparability. If a change is made, it usually requires justification and retrospective adjustments or specific disclosures.

© 2023 Your Company. All rights reserved.



Leave a Reply

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