Skip to content
DoItJag

LIFO Inventory Calculator

Enter opening stock and your purchases and sales in date order to see LIFO cost of goods sold and closing stock, sale by sale or for the whole period. LIFO is not permitted under IAS 2 or Ind AS 2, so the result is shown next to FIFO and weighted average.

LIFO is not allowed under IAS 2 (used with IFRS) or Ind AS 2 in India: both permit only FIFO or weighted average cost (and specific identification for items that are not interchangeable). Use LIFO only where your rules allow it, for example US tax and US GAAP accounts, and compare with FIFO below.

Units on hand at the start. Leave empty for 0.

What each opening unit cost you.

Purchases and sales, in date order

One line per purchase or sale, oldest first. Empty lines are skipped. Use the same currency throughout.

Paste rows from a spreadsheet

Copy the cells from Excel, Google Sheets or a CSV file in this column order: Type, Quantity, Cost per unit (purchases), Selling price per unit (sales, optional). A header row is skipped. Up to 500 rows; the pasted rows replace the rows above.

Cost the sales

Enter at least one purchase or sale to see the result.

Last-in, first-out and where it is still used

LIFO assumes the goods you bought most recently are the ones you sell first. The oldest purchases stay on the books, sometimes for years, while each sale is matched with current prices. When costs keep climbing, that pushes cost of goods sold up and taxable profit down, which is the main reason some American businesses choose it.

An important limit

LIFO is not an option everywhere. IAS 2, the standard used with IFRS, and India’s Ind AS 2 both name only FIFO and weighted average as cost formulas for interchangeable goods. If your accounts follow either standard, treat this page as a learning or comparison tool, not a basis for your statements. In the United States, the IRS explains in Publication 538 that a business adopts LIFO by filing Form 970 with its return; the detailed rules sit in the Internal Revenue Code, so speak to a tax adviser before relying on it.

Perpetual or periodic?

The tool offers both, and the difference matters more for LIFO than for any other method. Perpetual LIFO costs each sale from the newest batch on hand at that moment. Periodic LIFO waits until the period ends and then charges all sales against the latest purchases of the whole period, even ones that arrived after a particular sale.

Take 100 units in opening stock at 10. You sell 80, then buy 100 at 12, then sell 50. Perpetual LIFO charges the first sale 80 × 10 and the second 50 × 12, a total of 1,400. Periodic LIFO charges all 130 units sold against the newest stock first: 100 × 12 plus 30 × 10, which is 1,500. Closing stock is 800 in the first case and 700 in the second.

Reading the results

The ledger lists every batch each sale used, and the comparison table shows the FIFO and weighted average figures for the same entries. Download the CSV if you need to show your workings to a teacher, client or auditor.

How to use LIFO Inventory Calculator

  1. Enter the opening stock quantity and cost per unit, if any.
  2. Add each purchase with its cost per unit and each sale with its quantity, oldest first.
  3. Choose perpetual or periodic, then compare LIFO with FIFO and download the ledger.

Privacy: how it works

Calculations run in your browser. The amounts you enter are not sent anywhere.

Frequently asked questions

Can I use LIFO for my accounts?

Not if you report under IFRS (IAS 2) or Ind AS 2 in India: both allow only FIFO or weighted average for interchangeable items. LIFO is used mainly in the United States, where the IRS lets businesses elect it by filing Form 970.

Why do perpetual and periodic LIFO differ?

Perpetual LIFO costs each sale from the newest units in stock at that moment. Periodic LIFO costs all sales at period end from the newest purchases of the whole period, which can include purchases made after a sale.

What does LIFO do when prices rise?

Newer, dearer units are matched with sales, so cost of goods sold is higher and the closing stock lower than under FIFO.