How To Calculate Closing Inventory Using Fifo






Closing Inventory Calculator (FIFO) – Calculate Closing Inventory Using FIFO


Closing Inventory Calculator (FIFO Method)

Use this calculator to determine the value of your ending inventory using the First-In, First-Out (FIFO) method. Accurately calculate closing inventory using FIFO for better financial reporting.

FIFO Inventory Calculator

Enter your inventory purchases (oldest first) and the number of units sold to calculate closing inventory using FIFO.

Inventory Purchases (Oldest to Newest)


Batch 1:


Cost/Unit ($):


Batch 2:


Cost/Unit ($):


Batch 3:


Cost/Unit ($):


Batch 4:


Cost/Unit ($):


Batch 5:


Cost/Unit ($):


Enter the total number of units sold during the period.




What is Calculating Closing Inventory Using FIFO?

Calculating closing inventory using FIFO (First-In, First-Out) is an inventory valuation method where it’s assumed that the first goods purchased are the first ones sold. Therefore, the inventory remaining at the end of an accounting period (closing inventory) is valued at the cost of the most recent purchases. This method is widely used in inventory accounting to determine the cost of goods sold (COGS) and the value of ending inventory.

The FIFO method often reflects the actual physical flow of goods for many businesses, especially those dealing with perishable items or products with a limited shelf life, as they would naturally sell the oldest items first. When costs are rising, FIFO generally results in a lower COGS, higher net income, and a higher closing inventory value compared to the LIFO (Last-In, First-Out) method.

Businesses use the FIFO method to get a more accurate picture of their profitability and inventory value, particularly in inflationary environments. It is one of the methods allowed under both U.S. GAAP and IFRS.

Who Should Use It?

Businesses dealing with perishable goods (like food), electronics (where newer models replace older ones), or any product where the oldest stock is sold first, find FIFO most appropriate. It’s also preferred by companies wanting to report higher profits during periods of rising costs.

Common Misconceptions

A common misconception is that FIFO always matches the physical flow of goods; while it often does, it’s an accounting assumption and doesn’t have to perfectly mirror the physical movement for all inventory types. Another is that it always leads to higher taxes; this is only true during inflationary periods, as it results in higher taxable income.

Calculating Closing Inventory Using FIFO Formula and Mathematical Explanation

To calculate closing inventory using FIFO, you first need a record of all inventory purchases during the period, including the number of units and the cost per unit for each purchase. You also need the total number of units sold during the period.

The steps are:

  1. List all inventory purchases chronologically, along with their costs.
  2. Determine the total number of units sold during the period.
  3. Assume the units sold are from the oldest inventory batches first. Subtract the units sold from the earliest purchase batches until the total number of units sold is accounted for.
  4. The remaining units in the inventory are the closing inventory. These will be from the most recent purchase batches.
  5. Calculate the value of the closing inventory by multiplying the remaining units from each batch by their respective purchase costs and summing the results.

Value of Closing Inventory (FIFO) = (Remaining Units from Last Purchase × Cost of Last Purchase) + (Remaining Units from Second to Last Purchase × Cost of Second to Last Purchase) + … and so on, until all remaining units are accounted for.

Cost of Goods Sold (FIFO) = Cost of Goods Available for Sale – Value of Closing Inventory (FIFO)

Or, COGS is the sum of the costs of the units assumed to be sold (from the earliest batches).

Variables Table

Variable Meaning Unit Typical Range
Units Purchased Number of items bought in each batch Units 1 – 1,000,000+
Cost per Unit Cost to acquire one unit of inventory $ $0.01 – $10,000+
Units Sold Total number of units sold in the period Units 0 – Total Units Available
Closing Inventory Units Units remaining at end of period Units 0 – Total Units Purchased
Closing Inventory Value Monetary value of ending inventory $ $0 – $$$$$
Variables used in FIFO inventory calculation.

Practical Examples (Real-World Use Cases)

Example 1: Rising Costs

A bookstore has the following purchases and sales of a particular novel during January:

  • Jan 1: Beginning Inventory: 50 units @ $10/unit
  • Jan 10: Purchase: 100 units @ $12/unit
  • Jan 20: Purchase: 80 units @ $13/unit
  • During Jan: Sold 160 units

Total units available = 50 + 100 + 80 = 230 units.

Units sold = 160 units. Using FIFO:

  • 50 units from Jan 1 @ $10 = $500
  • 100 units from Jan 10 @ $12 = $1200
  • 10 units from Jan 20 @ $13 = $130 (160 – 50 – 100 = 10)

COGS = $500 + $1200 + $130 = $1830

Closing Inventory: 230 – 160 = 70 units remaining, all from the Jan 20 purchase.

Value of Closing Inventory = 70 units × $13/unit = $910.

Example 2: Deflationary Period (Falling Costs)

A tech store purchases and sells external hard drives:

  • Feb 1: Beginning Inventory: 40 units @ $50/unit
  • Feb 15: Purchase: 60 units @ $45/unit
  • Feb 25: Purchase: 50 units @ $40/unit
  • During Feb: Sold 90 units

Total units available = 40 + 60 + 50 = 150 units.

Units sold = 90 units. Using FIFO:

  • 40 units from Feb 1 @ $50 = $2000
  • 50 units from Feb 15 @ $45 = $2250 (90 – 40 = 50)

COGS = $2000 + $2250 = $4250

Closing Inventory: 150 – 90 = 60 units remaining.

  • 10 units from Feb 15 @ $45 = $450
  • 50 units from Feb 25 @ $40 = $2000

Value of Closing Inventory = $450 + $2000 = $2450.

How to Use This Calculate Closing Inventory Using FIFO Calculator

  1. Enter Purchase Data: Start by entering the number of units and cost per unit for each inventory purchase batch, beginning with the oldest purchase (Batch 1). Fill in as many batches as you have, up to 5. If you have fewer than 5, leave the later fields blank or zero.
  2. Enter Units Sold: Input the total number of units sold during the accounting period in the “Total Units Sold” field.
  3. Calculate: Click the “Calculate Closing Inventory” button.
  4. Review Results: The calculator will display:
    • Value of Closing Inventory (FIFO): The primary result, showing the total value of your remaining inventory.
    • Total Units Purchased: Sum of units from all entered batches.
    • Cost of Goods Available for Sale: Total cost of all units purchased/available.
    • Units in Closing Inventory: Number of units remaining unsold.
    • Cost of Goods Sold (FIFO): The cost associated with the units sold.
    • Closing Inventory Breakdown: A table showing which purchase batches contribute to the closing inventory, the number of units from each, their cost, and value.
    • Chart: A visual representation of the closing inventory value by batch.
  5. Reset: Use the “Reset” button to clear all fields and start over.
  6. Copy Results: Use “Copy Results” to copy the main outputs to your clipboard.

The results help in financial reporting, showing the value of assets (inventory) and the cost of sales, impacting the income statement and balance sheet. How you calculate closing inventory using FIFO directly affects your reported profit.

Key Factors That Affect Calculate Closing Inventory Using FIFO Results

  • Purchase Costs: Fluctuations in the cost per unit of inventory purchases directly impact the value of closing inventory, especially under FIFO, as it’s valued at the most recent costs. Rising costs increase closing inventory value.
  • Number of Units Sold: The more units sold, the more the older, often cheaper (in inflationary times), costs are moved to COGS, leaving newer, more expensive units in closing inventory.
  • Timing of Purchases: When purchases are made relative to price changes affects which cost layers remain in inventory.
  • Inflation/Deflation: In inflationary periods, FIFO results in a higher closing inventory value and lower COGS compared to LIFO. The opposite is true in deflationary periods.
  • Inventory Spoilage/Obsolescence: While FIFO assumes oldest is sold, real-world spoilage might mean some old units are written off, affecting actual closing inventory count and value, though the FIFO calculation itself doesn’t directly account for this before physical counts.
  • Inventory System (Periodic vs. Perpetual): While the formula is similar, the frequency of calculation and record-keeping detail can differ, but the FIFO principle remains. Our calculator is suited for a periodic inventory accounting methods summary.

Frequently Asked Questions (FAQ)

1. What is the main principle behind the FIFO method?
The First-In, First-Out (FIFO) method assumes that the first units of inventory purchased are the first ones sold. Thus, closing inventory is valued at the cost of the most recent purchases.

2. How does FIFO affect COGS and net income during inflation?
During periods of rising prices (inflation), FIFO results in a lower Cost of Goods Sold (COGS) because older, cheaper costs are assigned to sold goods. This leads to a higher reported net income and higher taxes compared to LIFO. The value of closing inventory is also higher.

3. Is FIFO permitted under both U.S. GAAP and IFRS?
Yes, FIFO is a permitted inventory valuation method under both U.S. Generally Accepted Accounting Principles (GAAP) and International Financial Reporting Standards (IFRS).

4. When is FIFO most suitable for a business?
FIFO is most suitable for businesses where the physical flow of goods is first-in, first-out, such as those dealing with perishable items (food, drinks), or products with expiration dates or obsolescence concerns (electronics, pharmaceuticals). It’s also used when a company wants to report higher profits during inflation.

5. How do I calculate closing inventory using FIFO if I have many purchases?
You list all purchases chronologically, determine units sold, and then work from the oldest purchase, allocating sold units until the total sold is reached. The remaining units from the most recent purchases form the closing inventory. Our calculator helps automate this for up to 5 batches, but the principle extends to any number of purchases.

6. What’s the difference between FIFO and LIFO?
FIFO (First-In, First-Out) assumes the oldest inventory is sold first, while LIFO (Last-In, First-Out) assumes the newest inventory is sold first. This leads to different COGS and closing inventory values, especially when costs change over time. Learn more about LIFO vs FIFO here.

7. Can I switch from LIFO to FIFO?
Yes, but switching inventory valuation methods usually requires retrospective adjustments to financial statements and proper disclosure, as it’s a change in accounting principle. You should consult with an accountant.

8. Does FIFO reflect the actual flow of goods better than LIFO?
For many businesses, especially those with perishable or dated goods, FIFO more closely matches the actual physical flow of inventory. However, LIFO might be used for other reasons, even if it doesn’t match the physical flow.




Leave a Reply

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