QuickBooks Blog
A warehouse worker researching the difference between FIFO vs. LIFO.
Midsize business

FIFO vs. LIFO: What is the difference?

Table of contents

Table of contents

Ask about discounts

You could save up to 25% on transaction costs².

Speak with us now to see if you qualify.

Talk to sales 1-800-515-8366

Monday - Friday, 6 AM to 4 PM PT

More about payments

First in, first out (FIFO) assumes the business sells the oldest items first, leading to lower cost of goods sold (COGS), higher net income, higher ending inventory value during inflation, and increased tax liabilities. 

Last in, last out (LIFO) assumes the newest items are sold first, resulting in higher COGS, lower net income, and lower ending inventory value during inflation, which can reduce tax liabilities.


First in, first out (FIFO) assumes the business sells the oldest items first, leading to lower cost of goods sold (COGS), higher net income, higher ending inventory value during inflation, and increased tax liabilities.

Last in, last out (LIFO) assumes the newest items are sold first, resulting in higher COGS, lower net income, and lower ending inventory value during inflation, which can reduce tax liabilities.

Inventory is often the most significant asset on the balance sheet. If you operate a retailer or wholesale business, inventory may require a large investment, and you need to carefully track the inventory balance. Managing inventory requires the owner to assign a value to each inventory item, and the two most common accounting methods are FIFO and LIFO.

The average cost is a third accounting method that calculates inventory cost as the total cost of inventory divided by the total units purchased. Most businesses use either FIFO or LIFO, and sole proprietors typically use average cost. Accounting standards allow companies to use all three methods.

What is FIFO?

FIFO (first in, first out) is an inventory costing method where the oldest inventory items are assumed to be sold first. This means that the cost of goods sold (COGS) on your income statement reflects the cost of your oldest inventory, while your remaining inventory on the balance sheet reflects the cost of your newest items.

FIFO is the most common inventory valuation method, and it's often preferred because it aligns with the natural flow of goods in many businesses. According to the IRS, FIFO is an acceptable method for valuing inventory for tax purposes as long as it's consistently applied.

This inventory method is often used in industries dealing with perishable goods, such as food and beverage. FIFO naturally aligns with the physical flow of these goods, where it's crucial to move older stock before it spoils, becomes outdated, or loses significant value.

QuickBooks has the tools you need to help your business thrive.

What is LIFO?

LIFO (Last In, First Out) is an accounting method used for inventory valuation, where the most recently acquired items are assumed to be sold or used first. Under LIFO, the cost of the latest inventory purchased is the first to be recorded as the cost of goods sold (COGS), leaving older inventory as ending stock.

This method is often used during periods of inflation, as it results in higher COGS and lower taxable income, but it may not reflect the actual physical flow of inventory. LIFO is permitted under US Generally Accepted Accounting Principles (GAAP) but not allowed under International Financial Reporting Standards (IFRS).

What you need before you calculate (layers, units sold, method)

Before you plug numbers into FIFO or LIFO formulas, make sure you have three key pieces of information:

1. Inventory layer: An inventory layer is a group of units purchased on the same date at the same cost. For example, if you buy 100 units at $10 and, later, 150 units at $12, you’ve created two layers: a $10 layer and a $12 layer. FIFO and LIFO simply decide which layer you treat as sold first.

2. Units sold in the period: You’ll need accurate sales quantities for the period you’re analyzing (month, quarter, or year). This tells you how many units to assign to COGS and how many remain in ending inventory.

3. Chosen cost flow method: You must choose an inventory costing method and apply it consistently. Changing methods back and forth makes it hard to compare performance over time and can trigger additional tax and disclosure requirements. Work with your accountant before switching methods.

Together, these three inputs drive how inventory costs flow from your balance sheet to COGS, net income, and even operating cash flow over time.

Which method should I use?

It really depends on how you operate. Be sure to think about:

  • How your inventory flows physically. Do you naturally sell older items first (like groceries), or is inventory more mixed?
  • Where you operate. If you report under IFRS or expect to in the future, LIFO isn’t allowed.
  • Financing and reporting needs. Higher reported profit and inventory under FIFO may improve certain ratios and help with lending or investor discussions.
  • System complexity. FIFO is simpler to track manually. LIFO usually requires stronger systems or accounting software to manage layers accurately.

A CPA or tax professional can help you weigh these trade-offs based on your industry, growth plans, and regulatory requirements.

How does inflation affect FIFO and LIFO?

Inflation is one of the main reasons businesses debate these two methods.

With FIFO, you sell older, cheaper stock first. This lowers your COGS and increases your paper profit. While this looks good to investors, it also means a higher tax bill.

With LIFO, you sell the newer, more expensive stock first. This raises your COGS and lowers your reported profit. The benefit? You pay less in taxes now, keeping more operating cash flow in the business.

An infographic comparing FIFO and LIFO methods

How to calculate FIFO

FIFO works by assuming that the first units you bought are the first units you sell. To calculate it, you’ll sort your purchases into layers, work through them from oldest to newest, and assign the right costs to COGS and ending inventory.

Below’s a simple step-by-step framework you can follow for any product.

Step 1: List beginning inventory and each purchase as separate layers

Start by writing down every batch of inventory you bought during the period, plus any beginning inventory you carried in. Each batch should include:

  • Date purchased
  • Number of units

Cost per unit

These batches are your cost layers, and FIFO will always pull from the oldest one first.

Step 2: Add up your total goods available for sale

Next, calculate how many units you had available to sell, and their total cost:

Beginning inventory + purchases = Goods available for sale

This helps you confirm you’re working with accurate totals before you assign costs to COGS or ending inventory.

Step 3: Determine how many units you sold during the period

Pull this from your POS system, sales dashboard, or sales journal. FIFO only works if you know exactly how many units left in inventory during the period.

Step 4: Assign units sold to the oldest cost layers first

Now, work through your cost layers in order:

1. Start with the oldest layer.

2. Use as many units from that layer as needed until it’s fully “sold.”

3. Move to the next-oldest layer and repeat until you’ve assigned all units sold.

Every unit you match to a layer becomes part of COGS.

Step 5: Calculate COGS (cost of goods sold)

For each layer you pulled units from, multiply:

Units sold from the layer x cost per unit

Add up all those amounts to get your FIFO COGS. This number flows to your income statement.

Step 6. Calculate ending inventory

Any units you didn’t assign to COGS stay in the more recent layers.

Multiply the remaining units in each layer by their cost per unit, then add them up. That total is your ending inventory, which appears on your balance sheet.

Example of calculating FIFO

To explain inventory valuation in detail, assume that Sterling Fashions sells a line of men’s shirts and that the store had no beginning inventory balance on March 1st. Here’s the inventory activity for March:

The store purchased 250 shirts for a total cost of $13,100 and sold 120 shirts, leaving 130 in ending inventory. A company’s bookkeeping tracks the total cost of inventory items, as well as the units bought and sold. 

Calculating FIFO

FIFO assumes the first units purchased are the first ones sold. Here’s how to calculate inventory using FIFO: 

1. Calculate cost of goods sold (COGS): Since 120 units were sold, we assume the first 100 units purchased ($50 each) were sold, plus 20 units from the second purchase ($54 each).

  • (100 shirts x $50/shirt) = $5,000
  • (20 shirts x $54/shirt) = $1,080
  • Total FIFO COGS = $5,000 + $1,080 = $6,080

2. Calculate ending inventory: The remaining 130 shirts (250 total - 120 sold) are assumed to be from the most recent purchase.

  • (130 shirts x $54/shirt) = $7,020 (ending inventory value)  

Notice how FIFO's higher ending inventory ($7,020) during inflation can improve balance sheet ratios like the current ratio (current assets / current liabilities), potentially enhancing perceived liquidity.

How to calculate LIFO

LIFO (last in, first out) assumes that the newest inventory you buy is the first inventory you sell. That means your most recent (and usually higher-cost layers) flow into COGS, while older layers remain in ending inventory.

Before you walk through the steps, it’s important to understand the two ways LIFO can be applied: periodic and perpetual.

Important: Because purchases and sales happen throughout the period, perpetual LIFO can produce different COGS and ending inventory than periodic LIFO, even with the same total purchases and sales.

Once you know which version you’re using, you can follow the LIFO steps below

Step 1: List beginning inventory and purchases as cost layers

Start by writing down every batch of inventory you bought during the period. These batches (i.e., layers) should include:

  • Date of purchase
  • Units purchased
  • Cost per unit

Under LIFO, the newest layer is the one you use first.

Step 2: Determine how many units you sold

Pull this number from your sales reports or POS system. This tells you how many units you’ll need to remove from your layers.

  • In a perpetual system, you do this after every sale.
  • In a periodic system, you do it once at period end using total units sold.

Step 3: Assign units sold to the newest layers first

Now apply the LIFO rule:

  • Start with the most recent purchase layer.
  • Use up those units until that layer is empty.
  • Then, move to the next most recent layer and continue until you’ve accounted for all units sold.

Every unit you assign becomes part of COGS.

In a perpetual system, this assignment happens at each sale date using whatever layers exist at that time.

Step 4. Calculate COGS using LIFO

For each layer you pulled units from, calculate:

Units taken from that layer x cost per unit

Then add everything together to get the total LIFO COGS.

  • Under periodic LIFO, you do this once at the end of the period.
  • Under perpetual LIFO, COGS accumulates sale by sale.

Step 5: Calculate ending inventory

Any units you didn’t assign to COGS remain in the older layers.

To calculate ending inventory:

1. Multiply the remaining units in each layer by that layer’s cost per unit.

2. Add all those amounts together.

That total becomes your ending inventory number on the balance sheet.

Example of calculating LIFO

LIFO assumes the last units purchased are the first ones sold. Let’s use the same Sterling Fashions example in the “Example of calculating FIFO” section.

1. Calculate cost of goods sold (COGS)

Since 120 units were sold, we assume they all came from the most recent purchase of 150 units ($54 each).

  • (120 shirts x $54/shirt) = $6,480 (Total LIFO COGS)

2. Calculate ending inventory

The remaining 130 shirts consist of the entire first batch (100 units) and the leftover units from the second batch (150 purchased - 120 sold = 30 units).

  • (100 shirts x $50/shirt) = $5,000
  • (30 shirts x $54/shirt) = $1,620
  • Total LIFO ending inventory = $5,000 + $1,620 = $6,620

Notice that while COGS and ending inventory values differ, the total cost ($13,100) is fully allocated under both methods.

FIFO and LIFO pros and cons

Choosing between FIFO and LIFO involves weighing their respective advantages and disadvantages. Let's look at each method individually.

FIFO pros

FIFO offers several benefits that make it a popular choice for many businesses:

  • Intuitive and matches physical flow: FIFO aligns with how many businesses naturally manage inventory, selling the oldest items first.
  • Higher profits during inflation: It leads to a lower cost of goods sold (COGS) and higher net income when prices are rising.
  • Higher inventory value: This method results in a higher value of inventory on the balance sheet, which can be beneficial for some financial ratios.
  • Globally accepted: FIFO is allowed under Generally Accepted Accounting Principles (GAAP) in the United States and International Financial Reporting Standards (IFRS).

However, FIFO also presents some drawbacks, particularly concerning taxes during inflation.

FIFO cons

Consider these potential downsides before deciding on FIFO:

  • Higher taxes during inflation: Higher profits mean a greater tax liability.
  • May overstate income: Can overstate income in the short term, especially during periods of rapid inflation.

This potential for higher taxes and a less conservative income figure leads some businesses to consider LIFO. Evaluating these aspects helps determine if FIFO aligns with your financial goals.

LIFO pros

LIFO's primary benefits often relate to taxes and cost matching during periods of rising prices:

  • Lower taxes during inflation: Higher COGS leads to lower taxable income.
  • More accurate matching of costs and revenues: Matches current costs with current revenues, which can provide a more realistic picture of profitability during inflation.

Despite these benefits, LIFO has significant limitations and complexities.

LIFO cons

The drawbacks of LIFO often relate to regulatory acceptance, financial reporting effects, and complexity:

  • Not allowed under IFRS: LIFO is prohibited under International Financial Reporting Standards (IFRS), limiting its use for companies that report under IFRS.
  • Lower net income: Using LIFO results in lower net income during periods of inflation, which can negatively impact some financial ratios.
  • Can understate inventory value: LIFO leads to a lower inventory value on the balance sheet.
  • Less intuitive: This method doesn't always align with the actual inventory flow in many businesses.
  • More difficult to manage: In general, LIFO is more challenging than FIFO to manage due to recordkeeping complexity.

Here’s a quick side-by-side comparison:

How FIFO and LIFO impact your financial statements

Since FIFO assumes that the oldest inventory is sold first, it will impact your income statement and balance sheet as follows:

Income statement shows lower COGS

The cost of goods sold (COGS) reflects the cost of the oldest inventory, resulting in a lower COGS and a higher gross profit during periods of rising prices.

Balance sheet shows higher inventory value

Inventory is valued based on the cost of the newest items, leading to a higher inventory value on the balance sheet.

LIFO, on the other hand, assumes that you sold the newest inventory first. Your income statement and balance sheet will reflect the numbers this way:

Income statement shows higher COGS

COGS reflects the cost of the newest inventory, resulting in a higher COGS and a lower gross profit during periods of rising prices.

Balance sheet shows lower inventory value

Inventory is valued based on the cost of the oldest items, leading to a lower inventory value on the balance sheet.

It's important to note that these effects are reversed in periods of falling prices, where LIFO would result in lower COGS and higher inventory values compared to FIFO. This reversal occurs because in a deflationary environment, the newest inventory (used first in LIFO) is less expensive than older inventory.

Industry, regulatory, and tax considerations

There are certain industry, regulatory, and tax considerations to keep in mind when deciding which inventory valuation method to use.

FIFO and LIFO industry considerations

Deciding whether to use FIFO or LIFO involves assessing several complex factors, one of which is the industry.

Accountants use “inventoriable costs” to define all expenses required to obtain inventory and prepare the items for sale. For retailers and wholesalers, the largest inventoriable cost is the purchase cost.

On the other hand, manufacturers create products and must account for the material, labor, and overhead costs incurred to produce the units and store them in inventory for resale.

FIFO and LIFO regulatory factors

You should also know that Generally Accepted Accounting Principles (GAAP) allow businesses to use FIFO or LIFO methods. However, International Financial Reporting Standards (IFRS) permits firms to use FIFO, but not LIFO. Check with your CPA to determine which regulations apply to your business.

How LIFO and FIFO affect tax liabilities

The inventory method you choose may impact your income tax liability. To explain, assume that Sterling sells 300 shirts on December 31.

The FIFO and LIFO methods compute different cost of goods sold balances, and the amount of profit will be different on December 31. As a result, the annual profit on shirt sales will be different, along with the income tax liability. Again, these are short-term differences that are eliminated when all of the shirts are sold.

FIFO is the easiest method to use, regardless of industry, and this inventory valuation method complies with GAAP and IFRS. Use the FIFO method for your inventory transactions.

Accounting for inventory is essential—and proper inventory management helps you increase profits, leverage technology to work more productively, and reduce the risk of error.

How do FIFO and LIFO affect more straightforward accounting operations?

Using FIFO simplifies the accounting process because the oldest items in inventory are assumed to be sold first. When Sterling uses FIFO, all of the $50 units are sold first, followed by the items at $54.

Let’s expand the example and assume that the store-bought items at five different prices, rather than two. Here are the prices in order: $50, $54, $55.60, $57, $58.25. FIFO still assumes that the $50 items are sold first.

LIFO is more difficult to account for because the newest units purchased are constantly changing. In the example above, LIFO assumes that the $54 units are sold first. However, if there are five purchases, the first units sold are at $58.25.

The LIFO method requires advanced accounting software and is more difficult to track. Keep your accounting simple by using the FIFO method. You’ll spend less time on inventory accounting, and your financial statements will be easier to produce and understand.

The Sterling example computes inventory valuation for a retailer, and this accounting process also applies to manufacturers and wholesalers (distributors). The costs included for manufacturers, however, are different from the costs for retailers and wholesalers.

You also need to understand the regulatory and tax issues related to inventory valuation. FIFO is the more straightforward method to use, and most businesses stick with the FIFO method.

Streamline your accounting and save time with QuickBooks

The FIFO and LIFO methods impact your inventory costs, profit, and tax liability. Keep your accounting simple by using the FIFO method of accounting, and discuss your company’s regulatory and tax issues with a CPA.

Use accounting software to account for inventory using less time and with more accuracy. QuickBooks allows you to use several inventory costing methods, and you can print reports to see the impact of labor, freight, insurance, and other costs. With QuickBooks, you’ll know how much your inventory is worth so you can make real-time business decisions.

Run and grow your business, unlock deeper insights, and work like you have a larger team behind you

Recommended for you

Mail icon
Get the latest to your inbox
No Thanks

Looking for something else?

QuickBooks

From big jobs to small tasks, we've got your business covered.

Firm of the Future

Topical articles and news from top pros and Intuit product experts.

QuickBooks Support

Get help with QuickBooks. Find articles, video tutorials, and more.