Calqube

FIFO & LIFO Calculator

FIFO & LIFO Calculator

Compare First-In First-Out (FIFO) vs. Last-In First-Out (LIFO) COGS, Ending Inventory, and layer consumption.

Inventory Purchase Batches
FIFO COGS
$3,690.00
End Inv: $1,200.00
LIFO COGS
$4,090.00
End Inv: $800.00
LIFO Variance
$400.00
LIFO − FIFO COGS
Remaining Units
80
Out of 400

FIFO vs. LIFO Valuation Comparison

FIFO Cost of Goods Sold$3,690.00
LIFO Cost of Goods Sold$4,090.00
FIFO Ending Inventory$1,200.00
LIFO Ending Inventory$800.00

Inventory Layer Consumption Breakdown

BatchUnit CostFIFO UsedLIFO Used
Batch 1 (Jan)$10.00150u ($1,500.00)70u ($700.00)
Batch 2 (Feb)$12.00120u ($1,440.00)120u ($1,440.00)
Batch 3 (Mar)$15.0050u ($750.00)130u ($1,950.00)

FIFO vs. LIFO Inventory Cost Layering

When purchase prices fluctuate across restocking batches, inventory accounting relies on cost-flow assumptions to allocate total goods available for sale between Cost of Goods Sold and Ending Inventory. Comparing FIFO and LIFO layer-by-layer illustrates how rising unit costs affect both net income and balance-sheet asset values.

Inventory Cost Formulas

FIFO COGS: Sum of Oldest Batch Costs Drawn Down
LIFO COGS: Sum of Newest Batch Costs Drawn Down
Ending Inventory: Total Pool Cost − COGS

Worked Example

  • • Batches: 150@$10, 120@$12, 130@$15 ($4,890 pool) | Sold: 320 units
  • • FIFO COGS: 150×$10 + 120×$12 + 50×$15 = $3,690.00 (End Inv $1,200.00)
  • • LIFO COGS: 130×$15 + 120×$12 + 70×$10 = $4,090.00 (End Inv $800.00)
  • • LIFO Variance: $4,090.00 − $3,690.00 = $400.00

Frequently Asked Questions

Does IFRS permit LIFO inventory accounting?

No—U.S. GAAP permits both FIFO and LIFO inventory valuation methods, whereas international IFRS accounting standards prohibit LIFO.

Why does LIFO report higher COGS when supplier costs rise?

Because LIFO expenses the most recently purchased (and highest-priced) inventory layers first into Cost of Goods Sold, leaving older lower-cost layers in Ending Inventory on the balance sheet.

What is the LIFO Variance (Reserve) shown in the summary?

It equals LIFO COGS minus FIFO COGS (and equivalently FIFO Ending Inventory minus LIFO Ending Inventory), showing how much inventory cost timing shifts gross profit between the two methods.

Want this calculator on your own website?

Get free iframe embed code with customizable light and dark theme support.

Related Calculators in Financial Calculators

AGI Calculator (Adjusted Gross Income)

Calculate Adjusted Gross Income (AGI) from all income sources minus HSA, IRA, student loan, and SE adjustments.

Open →

Amortization Calculator

Calculate complete loan amortization schedules, monthly installments, extra prepayment accelerations, and payoff milestones.

Open →

Annuity Calculator

Calculate future wealth accumulation, present discounted value, or scheduled fixed annuity payout withdrawals.

Open →

Annuity Payout Calculator

Calculate fixed length or fixed payment annuity payout schedules, withdrawal amounts, and total interest returns.

Open →