LIFO Ending Inventory Calculator – Calculate Ending Inventory Using LIFO


LIFO Ending Inventory Calculator

Easily calculate ending inventory using LIFO

Calculate Ending Inventory Using LIFO



Number of units at the start of the period.



Cost per unit for beginning inventory.

Purchase 1



Units bought in purchase 1.



Cost per unit for purchase 1.

Purchase 2



Units bought in purchase 2 (0 if none).



Cost per unit for purchase 2 (0 if none).

Purchase 3



Units bought in purchase 3 (0 if none).



Cost per unit for purchase 3 (0 if none).

Purchase 4



Units bought in purchase 4 (0 if none).



Cost per unit for purchase 4 (0 if none).



Total number of units sold.


LIFO Results:

Ending Inventory Value: $0.00

Total Units Available for Sale: 0

Cost of Goods Available for Sale (COGAS): $0.00

Cost of Goods Sold (COGS): $0.00

Ending Inventory (Units): 0

LIFO (Last-In, First-Out) assumes the last units purchased are the first ones sold. Ending inventory is valued at the cost of the earliest purchases (or beginning inventory). COGS is based on the cost of the most recent purchases.


Inventory Layer Initial Units Cost/Unit ($) Initial Value ($) Units Remaining Ending Value ($)

Table showing inventory layers and their contribution to ending inventory.

Chart comparing inventory values.

What is Calculate Ending Inventory Using LIFO?

To calculate ending inventory using LIFO (Last-In, First-Out) means you are using an inventory valuation method that assumes the most recently acquired items (last-in) are the first ones to be sold (first-out). Consequently, the ending inventory is valued based on the cost of the oldest items remaining in stock. This method is one of several allowed under U.S. GAAP (Generally Accepted Accounting Principles), although it is not permitted under IFRS (International Financial Reporting Standards).

When you calculate ending inventory using LIFO, especially during periods of rising costs (inflation), it typically results in a higher cost of goods sold (COGS) and a lower ending inventory value compared to other methods like FIFO (First-In, First-Out). This is because the higher costs of the most recent purchases are matched against revenues.

Who should use it? Companies in the U.S. that wish to report lower taxable income during inflationary periods might choose to calculate ending inventory using LIFO. It can better match current costs with current revenues. However, it can also present a less accurate picture of the current value of inventory on the balance sheet.

Common misconceptions: A key misconception is that LIFO reflects the actual physical flow of goods. In most businesses, the oldest goods are sold first to avoid obsolescence or spoilage. LIFO is an accounting assumption about cost flow, not necessarily physical flow.

Calculate Ending Inventory Using LIFO Formula and Mathematical Explanation

The process to calculate ending inventory using LIFO involves the following steps:

  1. Determine Total Units Available for Sale: Add the beginning inventory units to all units purchased during the period.
  2. Determine Cost of Goods Available for Sale (COGAS): Sum the value of the beginning inventory and all purchases.
  3. Identify Units Sold: Know the total number of units sold during the period.
  4. Allocate Costs to Units Sold (LIFO): Assume the units sold are from the most recent purchases first, working backward until all sold units are accounted for. Calculate the Cost of Goods Sold (COGS) by summing the costs of these units.
  5. Calculate Ending Inventory: The remaining units (those not sold) constitute the ending inventory. Their value is calculated based on the cost of the oldest units (beginning inventory and earliest purchases).

Formulaically:

  • Total Units Available = Beginning Units + Purchased Units
  • COGAS = (Beginning Units * Beginning Cost) + Sum(Purchased Units * Purchase Cost)
  • COGS (LIFO) = Cost of last units purchased until total sold units are accounted for.
  • Ending Inventory Value (LIFO) = COGAS – COGS (LIFO) OR Value of remaining oldest units.

Variables Table

Variable Meaning Unit Typical Range
Beginning Inventory Units Units on hand at the start Units 0+
Beginning Inventory Cost/Unit Cost of each beginning unit $ 0+
Purchased Units Units acquired during the period (per purchase) Units 0+
Purchase Cost/Unit Cost of each purchased unit (per purchase) $ 0+
Units Sold Total units sold during the period Units 0 – Total Units Available

Practical Examples (Real-World Use Cases)

Example 1: Rising Costs

A company starts with 50 units at $10 each. They make two purchases: 100 units at $12 and 80 units at $15. They sell 180 units.

  • Beginning: 50 units @ $10 = $500
  • Purchase 1: 100 units @ $12 = $1200
  • Purchase 2: 80 units @ $15 = $1200
  • Total Available: 230 units, COGAS = $2900
  • Units Sold: 180

To calculate ending inventory using LIFO, we assume the 180 sold units came from:
80 units @ $15 (from Purchase 2) = $1200
100 units @ $12 (from Purchase 1) = $1200
Total COGS = $2400.
Ending Inventory: 50 units remaining from beginning inventory (230 total – 180 sold = 50).
Ending Inventory Value = 50 units @ $10 = $500.

Example 2: Stable Costs

Beginning: 100 units @ $5. Purchases: 50 units @ $5, 50 units @ $5. Sold: 120 units.

  • Beginning: 100 @ $5 = $500
  • Purchase 1: 50 @ $5 = $250
  • Purchase 2: 50 @ $5 = $250
  • Total Available: 200 units, COGAS = $1000
  • Units Sold: 120

Sold units (LIFO): 50 @ $5 (P2), 50 @ $5 (P1), 20 @ $5 (Beginning).
COGS = (50*5) + (50*5) + (20*5) = $250 + $250 + $100 = $600.
Ending Inventory: 80 units @ $5 = $400. (200 – 120 = 80 remaining from beginning). When costs are stable, LIFO, FIFO, and weighted average yield similar results.

How to Use This Calculate Ending Inventory Using LIFO Calculator

  1. Enter Beginning Inventory: Input the number of units and cost per unit at the start of your accounting period.
  2. Enter Purchases: Fill in the units and cost per unit for each purchase made during the period. Use 0 for units and cost if you have fewer than 4 purchases.
  3. Enter Units Sold: Input the total number of units sold during the period.
  4. View Results: The calculator will automatically calculate ending inventory using LIFO and display the Ending Inventory Value, COGS, Total Units Available, COGAS, and Ending Inventory Units.
  5. Analyze Table and Chart: The table shows how ending inventory is composed, and the chart visualizes the key values.
  6. Copy or Reset: Use the “Copy Results” button to save the output or “Reset” to start over with default values.

The results help you understand your inventory valuation under LIFO and its impact on COGS and profitability, especially when comparing to FIFO method accounting.

Key Factors That Affect Calculate Ending Inventory Using LIFO Results

  • Inflation/Deflation: Rising prices (inflation) make LIFO result in higher COGS and lower ending inventory value compared to FIFO. Deflation has the opposite effect.
  • Purchase Timing and Costs: The cost of the most recent purchases significantly impacts COGS under LIFO. Large purchases at high prices near the end of the period will increase COGS if sales occur afterward.
  • Inventory Layers: The number and size of inventory layers (beginning inventory and various purchases) and their costs determine which costs are assigned to COGS and ending inventory.
  • Number of Units Sold: The more units sold, the further back into older inventory layers the costs will be drawn from for COGS, after exhausting recent layers.
  • LIFO Liquidation: If a company sells more units than it purchases during a period, it may “liquidate” older, lower-cost LIFO layers, leading to unusually low COGS and high taxable income. Understanding inventory management is key.
  • Tax Regulations: The IRS has specific rules for using LIFO for tax purposes (LIFO conformity rule), which can influence a company’s decision to use it. Knowing accounting basics is helpful.

Frequently Asked Questions (FAQ)

Q1: What is LIFO?
A1: LIFO (Last-In, First-Out) is an inventory costing method assuming the last items added to inventory are the first ones sold. We calculate ending inventory using LIFO based on the cost of the oldest items.
Q2: How does LIFO compare to FIFO?
A2: FIFO (First-In, First-Out) assumes the oldest items are sold first. During inflation, LIFO gives higher COGS and lower ending inventory than FIFO. See our FIFO calculator for comparison.
Q3: Why would a company use LIFO?
A3: Primarily for tax benefits during inflationary periods, as it results in lower taxable income by reporting a higher Cost of Goods Sold (COGS).
Q4: Is LIFO allowed under IFRS?
A4: No, LIFO is not permitted under International Financial Reporting Standards (IFRS) due to concerns that it doesn’t accurately reflect inventory flow and value.
Q5: What is a LIFO layer?
A5: A LIFO layer refers to a block of inventory acquired at a specific cost and time (e.g., beginning inventory or a specific purchase).
Q6: What is LIFO liquidation?
A6: LIFO liquidation occurs when a company sells more inventory than it purchases, dipping into older, lower-cost LIFO layers. This can reduce COGS and artificially inflate profits and taxes for that period.
Q7: Does LIFO reflect the actual flow of goods?
A7: Not usually. Most businesses try to sell older stock first. LIFO is a cost flow assumption for accounting, not necessarily a physical flow model.
Q8: Can I switch between LIFO and FIFO?
A8: Companies can change inventory methods, but there are specific accounting rules and disclosure requirements, and it often requires IRS approval for tax purposes in the U.S.

Related Tools and Internal Resources



Leave a Reply

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