FIFO Ending Inventory Calculator
A smart tool to calculate the value of ending inventory and Cost of Goods Sold (COGS) using the First-In, First-Out method.
Beginning Inventory
Enter the quantity and per-unit cost of your starting inventory.
Inventory Purchases
Click to add a new batch of purchased inventory for the period.
Units Sold
Enter the total number of units sold in this accounting period.
What is Ending Inventory Using FIFO?
Ending inventory is the value of goods available for sale at the end of an accounting period. The First-In, First-Out (FIFO) method is a widely-used inventory valuation technique based on the assumption that the first items purchased or produced are the first ones to be sold. This means that the inventory remaining at the end of the period (the ending inventory) consists of the most recently purchased goods. This method is compliant with both GAAP and IFRS accounting standards.
The FIFO method is particularly logical for businesses dealing with perishable goods, like food, or products with a short lifecycle, like electronics, as it aligns the accounting flow with the actual physical flow of inventory. During periods of rising prices (inflation), using FIFO typically results in a lower Cost of Goods Sold (COGS), a higher reported net income, and a higher valuation for ending inventory. This is because the cheaper, older costs are expensed first, leaving the more expensive, newer costs on the balance sheet.
The FIFO Formula and Explanation
Unlike a single algebraic formula, calculating ending inventory with FIFO is a step-by-step process. The core formulas involved are:
- Goods Available for Sale = Beginning Inventory + Net Purchases
- Ending Inventory Units = Units Available for Sale – Units Sold
- Cost of Goods Sold (COGS) = Cost of the earliest inventory layers sold.
- Ending Inventory Value = Cost of the latest inventory layers remaining.
To perform the calculation, you create a list of all inventory “layers” (beginning inventory and each purchase batch) with their respective costs. To find COGS, you work from the top of the list (the “first-in” items) downwards. To find the ending inventory value, you work from the bottom of the list (the “last-in” items) upwards.
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory | The stock (units and value) you have at the start of the period. | Units & Currency ($) | 0 to Millions |
| Purchases | Additional stock bought during the period, often in multiple batches at different costs. | Units & Currency ($) | 0 to Millions |
| Units Sold | Total number of items sold to customers during the period. | Units | 0 to Total Available |
| Ending Inventory | The stock (units and value) remaining at the end of the period. This is our primary calculation goal. | Units & Currency ($) | Calculated Value |
| Cost of Goods Sold (COGS) | The direct cost attributed to the production of the goods sold by a company. | Currency ($) | Calculated Value |
Practical Examples
Example 1: Rising Costs
Imagine a bookstore with the following activity for a specific book:
- Beginning Inventory: 50 units @ $10/unit
- Purchase 1 (Jan 15): 100 units @ $12/unit
- Units Sold in January: 80 units
Calculation:
Under FIFO, we assume the first 80 units sold were the 50 from beginning inventory and 30 from the first purchase.
- COGS: (50 units * $10) + (30 units * $12) = $500 + $360 = $860
- Ending Inventory: The remaining 70 units from Purchase 1 are left. (100 – 30 = 70). Value = 70 units * $12 = $840.
For more detail on these calculations, a guide on the FIFO method calculation can be very helpful.
Example 2: Multiple Purchases
A tech shop has this inventory for a popular gadget:
- Beginning Inventory: 20 units @ $100/unit
- Purchase 1 (Week 1): 30 units @ $105/unit
- Purchase 2 (Week 3): 30 units @ $110/unit
- Units Sold: 65 units
Calculation:
The 65 units sold are assumed to be the first 20 (beginning), the next 30 (Purchase 1), and 15 from Purchase 2.
- COGS: (20 * $100) + (30 * $105) + (15 * $110) = $2000 + $3150 + $1650 = $6800
- Ending Inventory: 15 units remain from Purchase 2. (30 – 15 = 15). Value = 15 units * $110 = $1650. This contrasts sharply with other methods, as explored in LIFO vs FIFO analyses.
How to Use This FIFO Ending Inventory Calculator
- Enter Beginning Inventory: Input the number of units and the cost per unit for the inventory you had at the start of the period.
- Add Purchase Batches: Click the “Add Purchase Batch” button for each new shipment of inventory you received. Enter the units and cost per unit for each batch. This is crucial for an accurate cost of goods sold FIFO calculation.
- Enter Units Sold: Input the total number of units sold during the entire period.
- Calculate: Click the “Calculate” button. The tool will instantly compute your Ending Inventory Value, COGS, and other key metrics.
- Review Results: The output will show the primary result (Ending Inventory Value) and intermediate values. The chart provides a visual breakdown of your inventory cost layers.
Key Factors That Affect FIFO Calculations
- Inflation/Deflation: Rising costs will lead to a higher ending inventory value and lower COGS under FIFO. Deflation has the opposite effect.
- Supplier Price Changes: Frequent changes in purchase prices make tracking inventory layers essential for an accurate calculation.
- Inventory Damage/Obsolescence: Spoiled or obsolete goods must be written off and removed from the inventory count, which can affect calculations.
- Bulk Purchase Discounts: Discounts can lower the “cost per unit” for specific batches, impacting the overall valuation.
- Shipping & Freight Costs: Landed costs (including shipping) should ideally be part of the unit cost for accurate valuation.
- Inventory System Type: Whether you use a perpetual or periodic inventory system affects how frequently you calculate these values. This calculator is designed for a periodic summary.
Frequently Asked Questions (FAQ)
- What does FIFO stand for?
- FIFO stands for “First-In, First-Out,” an inventory accounting method that assumes the first items placed in inventory are the first ones sold.
- Is FIFO better than LIFO?
- Neither is universally “better,” they serve different purposes. FIFO often reflects the actual physical flow of goods and results in higher reported income during inflation. LIFO (Last-In, First-Out) can offer tax advantages in inflationary periods but is not permitted under IFRS. The choice depends on business goals and location, a topic covered in our inventory valuation methods guide.
- Why is ending inventory important?
- Ending inventory is a key asset on a company’s balance sheet and a direct component in calculating the Cost of Goods Sold (COGS), which impacts the income statement and profitability.
- Does this calculator use a perpetual or periodic system?
- This calculator performs a calculation typical of a periodic inventory system, where you summarize all purchases and sales over a period to determine the final value. A perpetual system updates COGS after every single sale.
- What happens if I sell more units than I have available?
- This calculator will show an error. In a real-world scenario, this would indicate a significant inventory tracking error, overselling, or potential theft that needs investigation.
- How does inflation affect FIFO?
- During inflation (rising prices), FIFO matches older, lower costs against current revenue. This results in a higher gross profit and a higher, more current valuation of ending inventory on the balance sheet.
- Can I use FIFO for non-perishable goods?
- Yes. While ideal for perishables, any company can use FIFO. It is a cost-flow assumption for accounting and does not have to perfectly match the physical movement of every single item.
- How do I calculate the ending inventory formula in units?
- The formula is simple: (Beginning Inventory Units + All Purchased Units) – Units Sold = Ending Inventory Units.
Related Tools and Internal Resources
Explore these other financial calculators and guides to enhance your business management:
- LIFO Calculator: Compare results by calculating inventory value using the Last-In, First-Out method.
- Inventory Turnover Ratio Calculator: Measure how efficiently your inventory is being sold over a period.
- COGS Calculator: A dedicated tool to explore different methods for calculating the Cost of Goods Sold.
- Business Budget Planner: Plan your finances and inventory purchases more effectively.