Calculating Ending Inventory Using Fifo






FIFO Ending Inventory Calculator & Guide


FIFO Ending Inventory Calculator

This calculator helps you determine the value of your ending inventory and cost of goods sold (COGS) using the FIFO (First-In, First-Out) method. Enter your purchase lots and units sold below.

FIFO Calculator


Enter the total number of units sold.

Purchase Lots (Oldest to Newest)









What is FIFO (First-In, First-Out)?

FIFO, or First-In, First-Out, is an inventory valuation and cost flow assumption method used in accounting. When calculating ending inventory using FIFO, businesses assume that the first units purchased or produced are the first ones sold. This means the inventory remaining at the end of an accounting period is assumed to be composed of the most recently acquired or produced items.

For example, if a grocery store buys milk on Monday and then more milk on Wednesday, under FIFO, when a customer buys milk on Thursday, the store assumes it sold the milk that arrived on Monday first. The milk remaining is assumed to be from the Wednesday purchase. Calculating ending inventory using FIFO is particularly relevant for businesses dealing with perishable goods or items with a short shelf life to ensure older stock is moved first.

Who Should Use FIFO?

FIFO is widely used by various businesses, especially those dealing with:

  • Perishable goods (food, pharmaceuticals) where selling older stock first is crucial.
  • Products with expiration dates.
  • Items where the physical flow of goods naturally follows a first-in, first-out sequence (like liquids in a tank).
  • Businesses in inflationary environments might prefer FIFO as it results in a lower COGS and higher net income (and thus higher taxes).

Calculating ending inventory using FIFO generally reflects the actual physical flow of goods for many businesses.

Common Misconceptions about FIFO

A common misconception is that FIFO always matches the physical flow of inventory. While it often does, it’s an accounting assumption, and a company might physically sell newer items first but still use FIFO for accounting. Another is that FIFO is always the “best” method. The best method depends on the industry, inventory type, and economic conditions. Calculating ending inventory using FIFO can sometimes lead to higher taxable income during inflationary periods compared to LIFO (Last-In, First-Out).

Calculating Ending Inventory using FIFO: Formula and Explanation

The core idea of calculating ending inventory using FIFO is to work through your inventory layers, starting with the oldest purchases, and match them against the units sold until all sold units are accounted for. The remaining units, valued at their respective purchase costs, form the ending inventory.

There isn’t one single “formula” for FIFO ending inventory like a simple algebraic equation, but rather a process:

  1. List Purchases: Identify all inventory purchases during the period, noting the number of units and cost per unit for each batch, ordered chronologically.
  2. Determine Units Sold: Know the total number of units sold during the period.
  3. Allocate Costs to COGS: Starting with the oldest purchase lot, allocate the cost of those units to the Cost of Goods Sold (COGS) until the total units sold are accounted for. If the first lot is exhausted, move to the next oldest, and so on.
  4. Calculate Ending Inventory: The units remaining in the inventory layers (after deducting those allocated to COGS) constitute the ending inventory. The value is calculated by multiplying the remaining units in each layer by their original purchase cost per unit and summing these values.

Value of Ending Inventory (FIFO) = (Remaining Units from Latest Purchase * Cost of Latest Purchase) + (Remaining Units from Next Latest Purchase * Cost of Next Latest Purchase) + …

Cost of Goods Sold (FIFO) = (Units Sold from Oldest Purchase * Cost of Oldest Purchase) + (Units Sold from Next Oldest Purchase * Cost of Next Oldest Purchase) + … until total units sold are matched.

Variables Table

Variable Meaning Unit Typical Range
Purchase Lot Quantity Number of units in a specific purchase batch Units 1 to 1,000,000+
Cost per Unit Cost to acquire one unit in a purchase lot Currency ($) 0.01 to 100,000+
Total Units Sold Total number of units sold during the period Units 0 to Total Units Available
Ending Inventory Units Number of units remaining at the end Units 0 to Total Units Available
Ending Inventory Value Monetary value of remaining inventory Currency ($) 0+
COGS Cost of Goods Sold Currency ($) 0+

Variables involved in calculating ending inventory using FIFO.

Practical Examples of Calculating Ending Inventory Using FIFO

Example 1: Rising Prices

A company has the following inventory purchases and sales during January:

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

Calculation:

  1. Sell the 50 units from Jan 1 @ $10. (170 – 50 = 120 units left to account for)
  2. Sell 100 units from Jan 10 @ $12. (120 – 100 = 20 units left to account for)
  3. Sell 20 units from Jan 20 @ $13. (20 – 20 = 0 units left to account for)

COGS = (50 * $10) + (100 * $12) + (20 * $13) = $500 + $1200 + $260 = $1960

Ending Inventory: 0 units from Jan 1, 0 from Jan 10, and 60 units (80-20) from Jan 20 @ $13.
Value = 60 * $13 = $780.

Example 2: Multiple Lots Sold

A business has:

  • Feb 1: Purchase: 200 units @ $5/unit
  • Feb 15: Purchase: 300 units @ $6/unit
  • Feb 25: Purchase: 100 units @ $7/unit
  • Feb 28: Units Sold: 450 units

Calculation using FIFO:

  1. Sell 200 units from Feb 1 @ $5. (450 – 200 = 250 left)
  2. Sell 250 units from Feb 15 @ $6. (250 – 250 = 0 left)

COGS = (200 * $5) + (250 * $6) = $1000 + $1500 = $2500

Ending Inventory: 0 from Feb 1, 50 units (300-250) from Feb 15 @ $6, and 100 units from Feb 25 @ $7.
Value = (50 * $6) + (100 * $7) = $300 + $700 = $1000.

Calculating ending inventory using FIFO is straightforward once you list purchases chronologically.

How to Use This FIFO Ending Inventory Calculator

  1. Enter Units Sold: In the “Total Units Sold During the Period” field, input the total quantity of items sold.
  2. Input Purchase Lots: For each purchase lot, starting with the oldest, enter the “Quantity Purchased” and “Cost per Unit”. The calculator starts with three lots; click “Add Purchase Lot” if you have more.
  3. Add More Lots (If Needed): Click the “Add Purchase Lot” button to add fields for additional purchases. Ensure you enter them in chronological order (oldest first).
  4. Calculate: Click the “Calculate” button (or results update automatically as you type if inputs are valid).
  5. Review Results:
    • Value of Ending Inventory: The primary result shows the total monetary value of your remaining inventory based on FIFO.
    • Total Units in Ending Inventory: The total number of units left.
    • Cost of Goods Sold (COGS): The cost associated with the units that were sold.
    • Layers in Ending Inventory: How many different purchase lots make up the ending inventory.
    • Ending Inventory Breakdown Table: Shows how many units from which purchase lots remain, and their value.
    • Chart: Visually compares the total value of goods available, COGS, and ending inventory value.
  6. Reset: Click “Reset” to clear inputs and start over with default values.
  7. Copy Results: Click “Copy Results” to copy the main figures and breakdown to your clipboard.

This tool makes calculating ending inventory using FIFO quick and easy, providing valuable insights for your financial statements.

Key Factors That Affect FIFO Ending Inventory Results

Several factors influence the outcome when calculating ending inventory using FIFO:

  1. Inflation/Deflation: During inflationary periods (rising costs), FIFO results in a lower COGS (as older, cheaper costs are matched with revenues) and a higher ending inventory value (valued at more recent, higher costs). This leads to higher reported profits and potentially higher taxes. The opposite occurs during deflation.
  2. Purchase Timing and Costs: The cost and timing of inventory purchases directly impact which costs are assigned to COGS and ending inventory. Large purchases at significantly different price points will have a noticeable effect.
  3. Physical Flow vs. Accounting Method: While FIFO often mirrors physical flow, if it doesn’t, the accounting results might differ from the value of the actual physical items remaining if they were valued differently.
  4. Inventory Spoilage or Obsolescence: If older goods spoil or become obsolete before they can be sold under the FIFO physical flow, write-downs may be necessary, affecting the final inventory valuation even if FIFO is used for cost flow.
  5. Demand Fluctuations: Changes in demand affect the number of units sold, which in turn determines how many layers of inventory are “used up” for COGS and how many remain in ending inventory.
  6. Inventory Management System: The accuracy of inventory records (purchases and sales) is crucial. Errors in tracking can lead to incorrect FIFO calculations.

Understanding these factors is vital when interpreting the results of calculating ending inventory using FIFO.

Frequently Asked Questions (FAQ)

1. What does FIFO stand for?
FIFO stands for “First-In, First-Out”. It’s an inventory costing method assuming the first items added to inventory are the first ones sold.
2. How does FIFO differ from LIFO?
LIFO (Last-In, First-Out) assumes the most recently purchased items are sold first. In rising cost environments, LIFO generally results in higher COGS and lower ending inventory value compared to FIFO.
3. Is FIFO allowed under IFRS and US GAAP?
Yes, FIFO is permitted under both International Financial Reporting Standards (IFRS) and US Generally Accepted Accounting Principles (US GAAP). LIFO is allowed under US GAAP but not under IFRS.
4. When is calculating ending inventory using FIFO most beneficial?
FIFO is often preferred when inventory has a limited shelf life (like food) or when businesses want to report higher net income during periods of rising costs (which can be good for investors but bad for taxes).
5. Does FIFO reflect the actual flow of goods?
For many businesses, especially with perishable items or bulk commodities, FIFO does reflect the actual physical flow of goods. However, it is an accounting assumption and doesn’t have to match the physical movement perfectly.
6. How do rising prices affect FIFO?
With rising prices, FIFO matches older, lower costs with revenue, leading to a higher gross profit and net income. Ending inventory is valued at the newer, higher costs, reflecting a value closer to current replacement cost.
7. What if I have beginning inventory?
If you have beginning inventory, you treat it as the oldest “purchase” lot when applying FIFO. Our calculator focuses on purchases within a period but you can add your beginning inventory as the first purchase lot.
8. Can I switch from FIFO to another method?
Yes, but accounting principles generally require consistency. If you switch methods, you usually need to provide a valid reason and disclose the impact of the change in your financial statements.

© 2023 Your Company. All rights reserved.


Leave a Comment