FIFO Ending Inventory Calculator & Guide


FIFO Ending Inventory Calculator

Determine your ending inventory value using the First-In, First-Out method.

FIFO Ending Inventory Calculator



Enter the total number of units sold during the period.


Enter the total number of units purchased during the period.


Quantity of units in the first purchase batch.


Cost per unit for the first purchase batch.


Quantity of units in the second purchase batch.


Cost per unit for the second purchase batch.


Quantity of units in the third purchase batch (if applicable).


Cost per unit for the third purchase batch (if applicable).


Quantity of units in the fourth purchase batch (if applicable).


Cost per unit for the fourth purchase batch (if applicable).



What is FIFO Ending Inventory?

The First-In, First-Out (FIFO) method is an inventory accounting valuation technique used to determine the cost of goods sold (COGS) and the value of remaining inventory. Under FIFO, it is assumed that the first inventory items purchased are the first ones sold. This means the costs associated with the earliest acquired inventory are expensed first. Consequently, the inventory remaining on hand at the end of an accounting period is presumed to consist of the most recently purchased items.

Businesses, particularly those dealing with perishable goods, products with expiration dates, or items subject to rapid obsolescence (like technology or fashion), widely use the FIFO method. It generally reflects the actual physical flow of inventory for many businesses, making it a logical choice for inventory valuation. It’s important to note that FIFO doesn’t necessarily track the physical movement of each specific item but rather assigns costs based on this assumption.

A common misconception is that FIFO implies a specific order of physical stock movement. While it often aligns with physical flow (e.g., selling older stock first to avoid spoilage), the core of FIFO is an accounting assumption about cost flow. Another misconception is that it always results in the lowest COGS or highest profit. This depends heavily on whether prices are rising or falling. During periods of rising prices, FIFO typically results in lower COGS and higher net income compared to LIFO (Last-In, First-Out), as older, cheaper costs are expensed first.

Understanding the FIFO method is crucial for accurate financial reporting, tax calculations, and making informed business decisions. It directly impacts the reported cost of goods sold, gross profit, net income, and the value of assets on the balance sheet. Many businesses choose this method for its intuitive nature and its tendency to match the physical flow of goods.

FIFO Ending Inventory Formula and Mathematical Explanation

The primary goal when calculating ending inventory using FIFO is to determine the value of the inventory that has not yet been sold. The process involves understanding the cost of goods available for sale and the cost of goods sold.

The fundamental formula for ending inventory value is:

Ending Inventory Value = Cost of Goods Available for Sale – Cost of Goods Sold (COGS)

However, with FIFO, we don’t directly calculate ending inventory by subtracting COGS from total available. Instead, we determine the value of the units *remaining* by allocating costs from the most recent purchases first.

Here’s the step-by-step derivation for calculating Ending Inventory using FIFO:

  1. Calculate Total Units Available for Sale: Sum of Beginning Inventory (if any) plus all purchases during the period.
  2. Calculate Total Cost of Goods Available for Sale: Sum of the cost of beginning inventory plus the total cost of all purchases.
  3. Calculate Cost of Goods Sold (COGS): Since FIFO assumes the oldest units are sold first, COGS is calculated by taking the cost of units sold, starting from the earliest purchase batch and moving forward until all sold units are accounted for.
  4. Calculate Units Remaining: Total Units Available for Sale – Total Units Sold.
  5. Calculate Ending Inventory Value: The cost of the units remaining is determined by assigning costs from the *most recent* purchase batches backwards until all remaining units are accounted for.

Variable Explanations:

Variable Meaning Unit Typical Range
Units Sold The total number of inventory units sold to customers during the accounting period. Units 0 to Total Units Available
Total Units Purchased The aggregate quantity of inventory units acquired through purchases during the period. Units ≥ 0
Purchase Quantity (e.g., P1 Qty) The number of units acquired in a specific purchase batch. Units ≥ 0
Purchase Cost Per Unit (e.g., P1 Cost) The cost incurred to acquire one unit of inventory in a specific purchase batch. Currency Unit (e.g., $) ≥ 0
Total Cost of Purchases The total cost associated with a specific purchase batch (Quantity x Cost Per Unit). Currency Unit (e.g., $) ≥ 0
Total Units Available The sum of beginning inventory units (if applicable) and total purchased units. Units ≥ 0
Total Cost of Goods Available for Sale The total cost of all inventory units that were available to be sold during the period. Currency Unit (e.g., $) ≥ 0
Cost of Goods Sold (COGS) The total cost of inventory units that have been sold to customers. Currency Unit (e.g., $) 0 to Total Cost of Goods Available
Ending Inventory Value The value of inventory units that remain in stock and are available for future sale. Currency Unit (e.g., $) ≥ 0

Practical Examples (Real-World Use Cases)

Example 1: Retail Clothing Store (Rising Prices)

A boutique clothing store begins the month with no inventory. During January, they make the following purchases:

  • Jan 5: Purchase 100 shirts at $15 per shirt.
  • Jan 15: Purchase 150 shirts at $18 per shirt.
  • Jan 25: Purchase 120 shirts at $20 per shirt.

By the end of January, the store has sold 220 shirts.

Calculation using FIFO:

Units Available: 100 + 150 + 120 = 370 shirts.
Units Sold: 220 shirts.
Units Remaining: 370 – 220 = 150 shirts.

To find the COGS and Ending Inventory using FIFO:

Cost of Goods Sold (COGS):

  • From Purchase 1 (oldest): 100 units @ $15 = $1,500
  • From Purchase 2 (next oldest): 120 units @ $18 = $2,160 (100 + 120 = 220 units sold)
  • Total COGS = $1,500 + $2,160 = $3,660

Ending Inventory Value:

  • Remaining units must come from the newest purchases.
  • From Purchase 3 (newest): 120 units @ $20 = $2,400
  • Need 30 more units (150 total remaining – 120 from P3). These come from Purchase 2.
  • From Purchase 2: 30 units @ $18 = $540
  • Total Ending Inventory = $2,400 + $540 = $2,940

Check: Total Goods Available = (100*$15) + (150*$18) + (120*$20) = $1,500 + $2,700 + $2,400 = $6,600.
Ending Inventory + COGS = $2,940 + $3,660 = $6,600. (Matches Total Goods Available)

Financial Interpretation: The store reports $3,660 as COGS, and its ending inventory is valued at $2,940. Since prices were rising, FIFO results in a lower COGS and higher ending inventory compared to LIFO.

Example 2: Electronics Distributor (Falling Prices)

An electronics distributor sells smartwatches. They had the following transactions in March:

  • Mar 1: Purchase 50 units at $100 per unit.
  • Mar 10: Purchase 75 units at $95 per unit.
  • Mar 20: Purchase 60 units at $90 per unit.

During March, they sold 140 smartwatches.

Calculation using FIFO:

Units Available: 50 + 75 + 60 = 185 units.
Units Sold: 140 units.
Units Remaining: 185 – 140 = 45 units.

Cost of Goods Sold (COGS):

  • From Purchase 1 (oldest): 50 units @ $100 = $5,000
  • From Purchase 2 (next oldest): 90 units @ $95 = $8,550 (50 + 90 = 140 units sold)
  • Total COGS = $5,000 + $8,550 = $13,550

Ending Inventory Value:

  • Remaining units must come from the newest purchases.
  • From Purchase 3 (newest): 45 units @ $90 = $4,050
  • Total Ending Inventory = $4,050

Check: Total Goods Available = (50*$100) + (75*$95) + (60*$90) = $5,000 + $7,125 + $5,400 = $17,525.
Ending Inventory + COGS = $4,050 + $13,550 = $17,600. (Slight discrepancy due to rounding in example numbers if any, ideally should match) Let’s recheck calculation: Total Goods Available = 50*100 + 75*95 + 60*90 = 5000 + 7125 + 5400 = 17525. COGS = 50*100 + 90*95 = 5000 + 8550 = 13550. Ending Inventory = 45*90 = 4050. 13550 + 4050 = 17550. Let’s check the purchase 2 units: 75 units. We used 90 units for COGS, which is not possible. This means my previous calculation for COGS was wrong, and the calculation must properly track units from purchases. Let’s redo the COGS calculation carefully.

Corrected Cost of Goods Sold (COGS) & Ending Inventory Calculation:

Units Available: 185 units. Units Sold: 140 units. Units Remaining: 45 units.

COGS (FIFO – oldest units first):

  • Purchase 1: 50 units @ $100 = $5,000
  • Purchase 2: Need 90 more units (140 sold – 50 from P1). We only have 75 units in P2. So, use all 75 units from P2.
  • Purchase 2: 75 units @ $95 = $7,125
  • Purchase 3: Need 15 more units (140 sold – 50 from P1 – 75 from P2). Use 15 units from P3.
  • Purchase 3: 15 units @ $90 = $1,350
  • Total COGS = $5,000 + $7,125 + $1,350 = $13,475

Ending Inventory Value (Units Remaining = 45):

  • The remaining 45 units must come from the latest purchase (Purchase 3).
  • Purchase 3 had 60 units. We used 15 for COGS. So, 60 – 15 = 45 units remain.
  • From Purchase 3: 45 units @ $90 = $4,050
  • Total Ending Inventory = $4,050

Check: Total Goods Available = $17,525.
Ending Inventory + COGS = $4,050 + $13,475 = $17,525. (Matches Total Goods Available)

Financial Interpretation: The distributor reports $13,475 as COGS and $4,050 as ending inventory. Since prices were falling, FIFO resulted in a higher COGS and lower ending inventory value compared to LIFO.

How to Use This FIFO Ending Inventory Calculator

Our FIFO Ending Inventory Calculator is designed for simplicity and accuracy. Follow these steps to get your results:

  1. Enter Total Units Sold: Input the total number of units your business sold during the accounting period.
  2. Enter Total Units Purchased: Input the total number of units your business purchased during the same period.
  3. Detail Each Purchase Batch: For each purchase you made, enter:
    • The Quantity of units bought in that batch.
    • The Cost Per Unit for that specific batch.

    There are fields for up to four purchase batches. If you have fewer, you can leave the optional fields blank or enter 0. The calculator will automatically sum up all purchases.

  4. Click ‘Calculate’: Once all relevant information is entered, click the ‘Calculate’ button.

How to Read Results:

  • Primary Result (Ending Inventory Value): This is the main output, showing the total value of your unsold inventory according to the FIFO method. This figure appears on your balance sheet as an asset.
  • Intermediate Values:
    • Cost of Goods Sold (COGS): The total cost allocated to the inventory that was sold. This is reported on your income statement.
    • Cost of Goods Available for Sale: The total cost of all inventory (beginning + purchases) that was available to be sold.
    • Units Remaining: The total number of inventory units left unsold.
  • Inventory Transactions Table: This table breaks down how costs were allocated to both COGS and Ending Inventory, showing which purchase batches were used for each.
  • Inventory Cost Distribution Chart: A visual representation of how the costs are distributed between COGS and the Ending Inventory, based on FIFO.
  • Key Assumptions: Lists the core inputs used in the calculation for clarity.

Decision-Making Guidance: The calculated Ending Inventory value helps in assessing inventory management efficiency, determining asset values, and calculating gross profit margins. If prices are rising, FIFO typically yields a higher net income and higher tax liability compared to LIFO. Conversely, if prices are falling, FIFO results in lower net income. Use these results alongside other financial metrics to make informed business decisions about pricing, purchasing, and cost management.

Key Factors That Affect FIFO Ending Inventory Results

Several factors can significantly influence the calculated ending inventory value using the FIFO method:

  1. Price Volatility: This is perhaps the most significant factor. During periods of inflation (rising prices), FIFO results in a lower COGS and a higher ending inventory value because older, cheaper costs are expensed. Conversely, during deflation (falling prices), FIFO results in a higher COGS and a lower ending inventory value.
  2. Purchase Timing and Frequency: Frequent, smaller purchases at varying price points will lead to a more granular allocation of costs. If prices fluctuate significantly between purchases, the timing of those purchases relative to sales can impact the ending inventory value.
  3. Volume of Sales: The number of units sold directly affects how much of the older, cheaper inventory is expensed. A higher sales volume, especially when prices are rising, will deplete older stock faster, leaving newer, more expensive stock as the ending inventory.
  4. Inventory Management Practices: While FIFO is an accounting assumption, efficient inventory management that aligns with the physical flow (e.g., preventing spoilage or obsolescence of older stock) can validate the FIFO assumption and minimize write-offs. Poor management leading to damaged or obsolete inventory necessitates write-downs, which are separate from the basic FIFO calculation.
  5. Accounting Period Length: The duration of the accounting period (e.g., month, quarter, year) determines the scope of purchases and sales considered. A longer period might encompass more significant price fluctuations, potentially leading to a larger difference between FIFO and LIFO valuations.
  6. Nature of the Product: For goods with a limited shelf life (e.g., groceries, pharmaceuticals) or those prone to technological obsolescence (e.g., electronics), the FIFO assumption often mirrors the physical flow. This makes the FIFO valuation more representative of actual cost patterns and potential losses due to spoilage or outdated stock.
  7. Beginning Inventory Value: If a business starts with a significant inventory valued at older, potentially lower costs, this will influence the overall Cost of Goods Available for Sale and impact the ending inventory calculation, especially in the initial periods of using FIFO.

Frequently Asked Questions (FAQ)

Q1: What is the main advantage of using FIFO?

A1: FIFO generally reflects the actual physical flow of inventory for many businesses, especially those dealing with perishable or time-sensitive goods. This can lead to a more realistic valuation of ending inventory on the balance sheet and a COGS figure that aligns with recent costs, particularly beneficial during periods of rising prices.

Q2: Does FIFO always result in the highest profit?

A2: Not necessarily. During periods of rising prices, FIFO typically results in lower COGS and thus higher net income (and potentially higher taxes) compared to LIFO. However, during periods of falling prices, FIFO leads to higher COGS and lower net income.

Q3: Can I use FIFO if my physical inventory flow is not strictly First-In, First-Out?

A3: Yes. FIFO is an accounting assumption for cost flow, not necessarily a tracking of physical movement. Businesses can adopt FIFO for cost accounting even if their physical inventory management involves other methods, although consistency is generally preferred.

Q4: How does FIFO impact taxes?

A4: During periods of inflation, FIFO generally leads to higher taxable income because older, cheaper costs are expensed, leaving newer, more expensive inventory, resulting in a lower COGS. This means a higher tax liability compared to LIFO. In deflationary periods, the opposite is true.

Q5: What happens if inventory prices are stable?

A5: If inventory costs remain stable, the FIFO and LIFO methods will produce very similar results for both COGS and ending inventory valuation.

Q6: Is FIFO allowed under IFRS and US GAAP?

A6: Yes, both International Financial Reporting Standards (IFRS) and Generally Accepted Accounting Principles (GAAP) in the United States permit the use of the FIFO method for inventory valuation. Notably, LIFO is permitted under US GAAP but not under IFRS.

Q7: How does FIFO handle spoilage or obsolescence?

A7: The basic FIFO calculation doesn’t explicitly account for spoilage or obsolescence. If older inventory becomes unsellable, its cost might need to be written down or expensed separately, potentially affecting the overall ending inventory valuation below the calculated FIFO value.

Q8: What is the relationship between FIFO, COGS, and Ending Inventory?

A8: FIFO dictates that the costs of the oldest inventory items are assigned to COGS. Consequently, the ending inventory is valued using the costs of the most recently acquired items. This inverse relationship means that changes in recent purchase costs directly impact the ending inventory value under FIFO.

Related Tools and Internal Resources

© 2023 Your Company Name. All rights reserved.



Leave a Reply

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