FIFO Ending Inventory and COGS Calculator
Calculate with FIFO
Enter your beginning inventory, purchases, and units sold to calculate ending inventory and COGS using the First-In, First-Out (FIFO) method.
What is FIFO Ending Inventory and COGS Calculation?
The FIFO ending inventory and COGS calculation is a method used in cost accounting to determine the value of inventory remaining at the end of an accounting period and the cost of goods sold (COGS) during that period. FIFO stands for “First-In, First-Out,” which is the core assumption of this method: the first units of inventory purchased or produced are the first ones sold.
This means that the cost of the oldest inventory items is assigned to COGS, while the ending inventory is valued at the cost of the most recently acquired items. The FIFO ending inventory and COGS calculation is particularly relevant for businesses dealing with perishable goods or items with a short shelf life, as it mirrors the actual physical flow of goods.
Who Should Use the FIFO Ending Inventory and COGS Calculation?
- Businesses with perishable inventory (e.g., food, pharmaceuticals).
- Companies wanting to report higher net income during periods of rising costs (as older, lower costs are matched with revenues).
- Businesses where the physical flow of goods is genuinely first-in, first-out.
Common Misconceptions about FIFO
- FIFO always reflects the physical flow: While it often does for perishables, it’s an accounting assumption and might not match the physical flow in all industries.
- FIFO is always better than LIFO: “Better” depends on the business context, inflation, and tax implications. During rising prices, FIFO results in higher taxable income compared to LIFO. The FIFO ending inventory and COGS calculation provides one perspective.
- FIFO is complex to calculate: While it requires tracking inventory layers, the concept is straightforward, as our FIFO ending inventory and COGS calculation tool demonstrates.
FIFO Ending Inventory and COGS Calculation Formula and Mathematical Explanation
The FIFO ending inventory and COGS calculation doesn’t rely on a single complex formula but rather a process of tracking inventory layers:
- List Inventory Layers: Start with beginning inventory and add all purchases chronologically, each with its own unit count and cost per unit.
- Calculate COGS: When sales occur, allocate the cost of the units sold starting from the oldest inventory layer (beginning inventory first, then the first purchase, and so on) until the total units sold are accounted for. The sum of the costs from these layers used is the COGS.
- Calculate Ending Inventory: The remaining units from the layers that were not fully depleted, plus any untouched newer layers, constitute the ending inventory. The value of the ending inventory is the sum of these remaining units multiplied by their respective costs.
COGS (FIFO) = Cost of oldest units + Cost of next oldest units + … (until units sold are covered)
Ending Inventory Value (FIFO) = Value of most recent purchases remaining + Value of next most recent purchases remaining + …
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory Units | Number of units at the start | Units | 0+ |
| Beginning Inventory Cost/Unit | Cost per unit of beginning inventory | Currency ($) | 0+ |
| Purchase Units | Number of units bought in a purchase | Units | 0+ |
| Purchase Cost/Unit | Cost per unit for a specific purchase | Currency ($) | 0+ |
| Units Sold | Total number of units sold | Units | 0+ |
Practical Examples (Real-World Use Cases)
Example 1: Rising Costs
A grocery store starts the month with 100 bags of coffee at $10 each.
Purchase 1: 50 bags at $11 each.
Purchase 2: 70 bags at $12 each.
They sold 180 bags during the month.
Using the FIFO ending inventory and COGS calculation:
- 100 bags from beginning inventory @ $10 = $1000
- 50 bags from Purchase 1 @ $11 = $550
- 30 bags from Purchase 2 @ $12 = $360 (100 + 50 + 30 = 180 sold)
COGS = $1000 + $550 + $360 = $1910
Ending Inventory: 40 bags (70-30) from Purchase 2 @ $12 = $480
Example 2: Stable Costs
A bookstore has 200 copies of a novel at $15 each.
Purchase 1: 100 copies at $15 each.
They sold 250 copies.
Using the FIFO ending inventory and COGS calculation:
- 200 copies from beginning inventory @ $15 = $3000
- 50 copies from Purchase 1 @ $15 = $750 (200 + 50 = 250 sold)
COGS = $3000 + $750 = $3750
Ending Inventory: 50 copies (100-50) from Purchase 1 @ $15 = $750
Even with stable costs, the FIFO ending inventory and COGS calculation clearly tracks which batches were sold. For more on inventory valuation methods, see our guide.
How to Use This FIFO Ending Inventory and COGS Calculator
- Enter Beginning Inventory: Input the number of units and cost per unit for your starting inventory.
- Add Purchases: Click “Add Purchase” for each batch of inventory you bought during the period. Enter the units and cost per unit for each purchase. Add them chronologically.
- Enter Units Sold: Input the total number of units sold during the period.
- Review Results: The calculator automatically updates the Ending Inventory Value (primary result), COGS, Ending Inventory Units, and the values of beginning and purchased inventory using the FIFO ending inventory and COGS calculation method.
- Analyze the Table and Chart: The table shows the breakdown of how units were sold from each layer, and the chart visualizes the values.
The results from the FIFO ending inventory and COGS calculation help in understanding profitability and inventory value for financial statements. Explore our financial statements analysis section for more context.
Key Factors That Affect FIFO Ending Inventory and COGS Calculation Results
- Cost Fluctuations: Rising costs increase COGS less under FIFO (compared to LIFO) initially, leading to higher reported profit and higher ending inventory value. Falling costs have the opposite effect during the FIFO ending inventory and COGS calculation.
- Number of Units Sold: The more units sold, the more layers of inventory are depleted, impacting both COGS and ending inventory valuation.
- Timing of Purchases: Purchases made just before the end of the period at different costs will significantly impact ending inventory value under FIFO.
- Inventory Layers: The number of different purchase batches and their costs create the layers from which FIFO draws. More layers can mean more steps in the FIFO ending inventory and COGS calculation.
- Beginning Inventory Valuation: The cost assigned to beginning inventory is the first to be expensed as COGS under FIFO.
- Product Mix: If you sell multiple products, the FIFO ending inventory and COGS calculation needs to be applied separately to each product type or grouped appropriately.
Understanding these factors is crucial for accurate inventory accounting.
Frequently Asked Questions (FAQ)
- What is FIFO?
- FIFO stands for First-In, First-Out. It’s an inventory costing method assuming the oldest inventory items are sold first. The FIFO ending inventory and COGS calculation is based on this assumption.
- How does FIFO affect taxes during inflation?
- During inflation (rising costs), FIFO generally results in a lower COGS and higher taxable income compared to LIFO because older, cheaper costs are matched with current revenues.
- 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 not permitted under IFRS.
- When is FIFO most appropriate?
- FIFO is most appropriate when the physical flow of goods is actually first-in, first-out, such as with perishable goods, or when a company wants to report higher net income during rising prices.
- What’s the difference between FIFO and LIFO?
- FIFO assumes the first items purchased are the first sold, while LIFO (Last-In, First-Out) assumes the last items purchased are the first sold. See our comparison of LIFO vs FIFO.
- How is the FIFO ending inventory and COGS calculation performed if costs are constant?
- If costs are constant, FIFO, LIFO, and weighted-average methods will yield the same results for COGS and ending inventory value.
- Can I switch from LIFO to FIFO?
- Yes, companies can switch, but it requires careful accounting adjustments and disclosures, and often IRS approval in the US if switching from LIFO.
- How does the FIFO ending inventory and COGS calculation impact the balance sheet and income statement?
- FIFO impacts the ending inventory value on the balance sheet and the COGS on the income statement, thus affecting gross profit and net income.
Related Tools and Internal Resources
- LIFO Calculator: Calculate inventory and COGS using the Last-In, First-Out method.
- Weighted-Average Cost Calculator: Use the weighted-average method for inventory valuation.
- Inventory Management Guide: Learn best practices for managing your inventory effectively.
- COGS Explained: A detailed look at the Cost of Goods Sold and its components.
- Financial Statements Analysis: Understand how to analyze balance sheets and income statements.
- Accounting Basics: Fundamental accounting principles for businesses.