FIFO Ending Inventory Calculator
Calculate Ending Inventory (FIFO)
Enter the units sold and details of your inventory purchases (layers) to calculate ending inventory and COGS using the First-In, First-Out (FIFO) method.
Inventory Purchases (Layers)
What is a FIFO Ending Inventory Calculator?
A FIFO ending inventory calculator is a tool used by businesses to determine the value of their ending inventory and the Cost of Goods Sold (COGS) for a period, based on the First-In, First-Out (FIFO) inventory costing method. Under FIFO, it is assumed that the oldest inventory items (those purchased or produced first) are sold first. This means the cost of the oldest inventory is used to calculate COGS, and the cost of the most recent inventory is used to value the ending inventory remaining on hand.
Businesses, especially those dealing with perishable goods or items with a short shelf life (like food, electronics with rapid obsolescence), often use the FIFO method because it aligns the flow of costs with the actual physical flow of goods. However, any business can choose FIFO for accounting purposes, regardless of the actual physical flow, as it’s an accepted method under GAAP and IFRS.
Common misconceptions include thinking FIFO always reflects the physical flow (it’s an accounting assumption) or that it always results in lower taxes (in times of rising prices, FIFO results in higher taxable income compared to LIFO).
FIFO Ending Inventory Formula and Mathematical Explanation
The FIFO method doesn’t have a single formula for ending inventory value but rather a process:
- Identify Inventory Layers: List all inventory purchases (or production batches) during the period and the beginning inventory, along with the units and cost per unit for each layer. These are ordered chronologically, from oldest to newest.
- Account for Units Sold: Starting with the oldest layer, subtract the units sold from the units available in that layer until all units sold are accounted for. The cost of these units sold from each layer is summed up to get the Cost of Goods Sold (COGS).
- Determine Ending Inventory: The units remaining in the layers after accounting for sales constitute the ending inventory. The value of the ending inventory is the sum of the remaining units in each layer multiplied by their original cost per unit.
So, COGS (FIFO) = (Units sold from layer 1 * Cost of layer 1) + (Units sold from layer 2 * Cost of layer 2) + …
Ending Inventory Value (FIFO) = (Remaining units in layer 1 * Cost of layer 1) + (Remaining units in layer 2 * Cost of layer 2) + … + (Units in newest layers * Cost of newest layers)
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory Units | Units on hand at the start | Units | 0+ |
| Beginning Inventory Cost/Unit | Cost per unit of beginning inventory | Currency | 0+ |
| Purchased Units (per layer) | Units acquired in each purchase | Units | 1+ |
| Cost/Unit (per layer) | Cost per unit for each purchase layer | Currency | 0+ |
| Units Sold | Total units sold during the period | Units | 0 to Total Available |
Using a FIFO ending inventory calculator simplifies this layer-by-layer calculation.
Practical Examples (Real-World Use Cases)
Example 1: Rising Prices
A company has the following inventory 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: 160 units
Using FIFO:
- Sell 50 units from Jan 1 @ $10 = $500
- Sell 100 units from Jan 10 @ $12 = $1200
- Sell 10 units from Jan 20 @ $13 = $130 (160 – 50 – 100 = 10 from this layer)
COGS = $500 + $1200 + $130 = $1830
Ending Inventory: 70 units from Jan 20 @ $13 = $910 (80 – 10 = 70 remaining)
Example 2: Stable Prices
A bookstore has:
- Start: 30 books @ $15/book
- Purchase 1: 50 books @ $15/book
- Purchase 2: 40 books @ $15/book
- Sold: 90 books
Using FIFO:
- Sell 30 @ $15 = $450
- Sell 50 @ $15 = $750
- Sell 10 @ $15 = $150 (90 – 30 – 50 = 10)
COGS = $450 + $750 + $150 = $1350
Ending Inventory: 30 books @ $15 = $450 (40 – 10 = 30 remaining)
With stable prices, FIFO, LIFO, and Weighted Average methods yield similar results for COGS and ending inventory value, which our FIFO ending inventory calculator can quickly show.
How to Use This FIFO Ending Inventory Calculator
- Enter Units Sold: Input the total number of units sold during the accounting period in the “Units Sold During Period” field.
- Input Inventory Layers: For each purchase or beginning inventory layer, enter the number of units and the cost per unit in the respective fields. Start with the oldest layers first. Use the “Add Layer” button if you have more purchases than the initial fields shown, and “Remove Last Layer” if you have fewer.
- Calculate: Click the “Calculate” button.
- Review Results: The calculator will display:
- Ending Inventory Value: The total value of your remaining inventory.
- Cost of Goods Sold (COGS): The cost associated with the units sold.
- Ending Inventory Units: The number of units remaining.
- Average Cost of Ending Inventory: The average cost per unit of the remaining inventory.
- A table detailing how units were sold from each layer and what remains.
- A chart visualizing the cost distribution.
- Reset: Click “Reset” to clear the fields and start over with default values.
The results help in financial reporting (Balance Sheet and Income Statement) and inventory management decisions. The detailed table in our FIFO ending inventory calculator shows exactly which cost layers contribute to ending inventory.
Key Factors That Affect FIFO Results
- Price Fluctuations: In periods of rising prices, FIFO generally results in a lower COGS (as older, cheaper costs are matched with revenues) and a higher ending inventory value (valued at more recent, higher prices), leading to higher reported profits and taxes. The opposite is true in periods of falling prices. Our FIFO ending inventory calculator helps visualize this.
- Inventory Layers: The number of different purchase layers and the cost per unit in each directly impact the COGS and ending inventory calculation. More layers with varying costs will show more distinct steps in the FIFO calculation.
- Number of Units Sold: The more units sold, the further into the newer inventory layers the COGS calculation will go.
- Inventory Holding Period: How long inventory is held can influence which cost layers are matched with sales, especially with many purchase transactions.
- Type of Goods: Perishable or rapidly obsolete goods often naturally follow a FIFO flow, making the accounting method align with physical flow.
- Accounting Standards: GAAP and IFRS both permit FIFO, but the choice can have tax implications and affect financial ratios.
Consider using a good inventory management system to track layers accurately.
Frequently Asked Questions (FAQ)
A: FIFO stands for First-In, First-Out. It’s an inventory costing method.
A: It assumes the oldest inventory items are sold first. COGS is based on the cost of the oldest items, and ending inventory is valued at the cost of the newest items.
A: It’s often used for perishable goods or when businesses want to report higher profits during inflationary periods. It also often matches the actual physical flow of goods. See our accounting basics guide for more.
A: In times of rising prices, FIFO values ending inventory at the most recent, higher costs, which is closer to the current replacement cost, thus often considered more “accurate” for the balance sheet.
A: LIFO (Last-In, First-Out) assumes the newest items are sold first. In rising prices, FIFO gives higher profit and higher inventory value than LIFO. LIFO is not permitted under IFRS. Check our LIFO calculator.
A: Switching inventory methods is possible but usually requires a valid business reason, disclosure in financial statements, and consistency once chosen.
A: If you start with no inventory, your first purchase layer becomes the first layer for the FIFO calculation when using the FIFO ending inventory calculator. Just leave beginning inventory fields empty or zero.
A: Yes, as long as you can track your inventory in layers (batches of purchases or production with associated costs and units), the FIFO ending inventory calculator can be used.
Related Tools and Internal Resources
- LIFO Calculator: Calculate ending inventory and COGS using the Last-In, First-Out method.
- Weighted-Average Inventory Calculator: Determine inventory value using the weighted-average cost method.
- Cost of Goods Sold (COGS) Calculator: A more general calculator for COGS under different scenarios.
- Inventory Management Guide: Learn best practices for managing your inventory effectively.
- Accounting Basics: Understand fundamental accounting principles.
- Financial Ratios Calculator: Analyze your business’s financial health using key ratios.