FIFO Ending Inventory Calculator
The number of units you start with.
The cost for each unit in your beginning inventory.
Purchases
The total number of units sold during the period.
What is the First-In, First-Out (FIFO) Method?
The First-In, First-Out (FIFO) method is an inventory valuation technique used in accounting. It operates on the assumption that the first inventory items purchased are the first ones to be sold. This means the inventory remaining at the end of an accounting period (ending inventory) consists of the most recently purchased items. This method is logical because it often aligns with the actual physical flow of goods, especially for perishable products or items with a limited shelf life, like food or electronics. If you want a different approach, you could use our LIFO Calculator to see how your numbers change.
FIFO Formula and Explanation
Unlike a simple algebraic formula, FIFO is a process. The goal is to calculate two key figures: the Cost of Goods Sold (COGS) and the value of the Ending Inventory. The process involves assigning costs from your oldest inventory layers to the units you’ve sold until all sold units are accounted for.
- List Inventory Layers: Document all inventory purchases, including beginning inventory, in chronological order. Each layer has a number of units and a specific cost per unit.
- Calculate Cost of Goods Sold (COGS): Starting with the oldest layer, match the units sold against the available units. The cost of those units becomes part of your COGS. Continue to the next layer until all sold units are costed.
- Calculate Ending Inventory: The units that remain unsold make up your ending inventory. Their value is calculated using the cost of the most recent purchases. An alternative formula is: `Ending Inventory = Cost of Goods Available for Sale – COGS`.
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory | Units and cost of inventory at the start of the period. | Units, $ | 0+ |
| Purchases | Units and cost of inventory acquired during the period. | Units, $ | 0+ |
| Units Sold | The number of items sold to customers. | Units | 0+ |
| Cost of Goods Sold (COGS) | The direct cost attributed to the production of the goods sold. | $ | Calculated |
| Ending Inventory | The value of inventory remaining at the end of the period. | $, Units | Calculated |
Practical Examples of a FIFO Calculation
Example 1: Basic Sale
Imagine a bookstore starts the month with 50 books at $10 each. They then buy 100 more books at $12 each. During the month, they sell 70 books.
- Inputs:
- Beginning Inventory: 50 units @ $10
- Purchase 1: 100 units @ $12
- Units Sold: 70
- COGS Calculation: The first 50 books sold are costed at $10 each (from beginning inventory). The next 20 books are costed at $12 each (from the first purchase).
COGS = (50 units * $10) + (20 units * $12) = $500 + $240 = $740. - Ending Inventory Calculation: 80 units from the first purchase remain (100 – 20).
Ending Inventory Value = 80 units * $12 = $960.
Example 2: Selling Through Multiple Layers
A coffee shop has the following inventory:
- Inputs:
- Beginning Inventory: 30 bags @ $8
- Purchase 1: 50 bags @ $9
- Purchase 2: 40 bags @ $9.50
- Units Sold: 100
- COGS Calculation:
(30 units * $8) + (50 units * $9) + (20 units * $9.50) = $240 + $450 + $190 = $880. - Ending Inventory Calculation: 20 bags from the second purchase remain.
Ending Inventory Value = 20 units * $9.50 = $190. For a deeper analysis, check out our guide on Inventory Management Techniques.
How to Use This FIFO Ending Inventory Calculator
Our tool simplifies the process to calculate ending inventory using FIFO. Follow these steps for an accurate valuation:
- Enter Beginning Inventory: Input the number of units and the cost per unit for your starting inventory.
- Add Purchases: For each inventory purchase made during the period, enter the units and cost per unit. Use the “+ Add Purchase” button if you have more than one batch.
- Input Units Sold: Enter the total number of units sold during the accounting period.
- Review Results: The calculator instantly provides the Ending Inventory Value (primary result), along with the Cost of Goods Sold (COGS) and the number of Ending Inventory Units.
- Analyze the Chart: The bar chart provides a quick visual comparison between the value of what was sold (COGS) and what remains in stock.
Key Factors That Affect FIFO Valuation
Several factors can influence the outcome of your FIFO calculations and their impact on your financial statements.
- Inflation: In a period of rising prices, FIFO results in a lower COGS (as older, cheaper costs are used) and a higher net income. This can lead to a higher tax liability.
- Deflation: In a deflationary environment, the opposite occurs. FIFO produces a higher COGS and lower net income.
- Type of Goods: FIFO is a natural fit for businesses dealing with perishable goods, ensuring that older stock is sold before it expires. Explore our Gross Profit Margin Calculator to see how this impacts profitability.
- Physical Inventory Flow: While the accounting method doesn’t have to match the physical flow, aligning them simplifies warehouse management and reduces the risk of spoilage or obsolescence.
- Inventory Turnover Rate: A high turnover rate means inventory costs flow to COGS more quickly, making the ending inventory value on the balance sheet very close to current market prices.
- Supplier Price Fluctuations: Sudden spikes in supplier costs can create a significant gap between COGS and the replacement cost of inventory, which might distort profit analysis.
Frequently Asked Questions (FAQ)
What happens if I sell more units than I have available?
This calculator will show an error message. In a real-world scenario, this indicates a stockout and a potential issue with your inventory tracking, as you cannot sell inventory you do not possess.
Is FIFO better than LIFO?
Neither is universally “better”; they suit different goals. FIFO is often seen as more transparent and better reflects the actual flow of goods for most businesses. LIFO can offer tax advantages during inflationary periods but is prohibited under International Financial Reporting Standards (IFRS).
How does the FIFO method affect financial statements?
During periods of inflation, FIFO typically leads to higher reported net income and a higher ending inventory value on the balance sheet. This makes the company appear more profitable and financially stable.
Does FIFO accurately reflect current costs?
The ending inventory value on the balance sheet is close to current costs, which is a strength. However, the COGS on the income statement reflects older, potentially outdated costs, which can distort the true cost of a sale. You can learn more by reading our guide to understanding Cost of Goods Sold.
Why is FIFO the most common method?
It’s popular because it’s logical, relatively simple to apply, and aligns with the physical management of inventory for many industries, especially those with perishable goods. It is also accepted by both GAAP and IFRS accounting standards.
What are inventory layers?
Inventory layers refer to the separate batches of inventory purchased at different times and for different costs. The FIFO method calculates value by systematically working through these layers from oldest to newest.
How are customer returns handled under FIFO?
When an item is returned, it should ideally be added back to inventory at its original cost. This requires tracking which cost layer the item originally came from, which can be complex without a robust inventory system.
Can I switch from FIFO to another inventory method?
Yes, but you cannot do so arbitrarily. You generally need a valid business reason for the change, and it often requires approval from tax authorities like the IRS and may require restating previous financial statements for consistency.