How to Calculate Cost of Goods Sold Using FIFO Calculator
This calculator helps you determine your Cost of Goods Sold (COGS) using the First-In, First-Out (FIFO) inventory costing method. Understand exactly how to calculate cost of goods sold using fifo with just a few inputs.
FIFO COGS Calculator
Results:
Ending Inventory Value: $0.00
Units Sold from Layer 1: 0 @ $0.00/unit
Units Sold from Layer 2: 0 @ $0.00/unit
Units Sold from Layer 3: 0 @ $0.00/unit
| Layer | Initial Qty | Cost/Unit | Initial Value | Units Sold | Remaining Qty | Remaining Value |
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0 | 0 | 0 | 0 | 0 | 0 |
| Total | 0 | – | 0 | 0 | 0 | 0 |
What is How to Calculate Cost of Goods Sold Using FIFO?
The First-In, First-Out (FIFO) method is an inventory valuation technique where the first units of inventory purchased (or produced) are assumed to be the first ones sold. When you need to how to calculate cost of goods sold using fifo, you are essentially assigning the cost of your oldest inventory to the units that were sold during a period. This method aligns the cost flow with the typical physical flow of goods for many businesses, especially those dealing with perishable items or products with a limited shelf life.
Businesses use FIFO to determine the cost of goods sold (COGS) on their income statement and the value of ending inventory on their balance sheet. In periods of rising costs, FIFO generally results in a lower COGS, higher net income, and higher ending inventory value compared to other methods like LIFO (Last-In, First-Out).
Who should use it? Companies with perishable goods (like food) or products that can become obsolete (like electronics) often prefer FIFO because it reflects the actual movement of their stock. It’s also widely accepted under both GAAP and IFRS.
Common misconceptions include thinking FIFO always reflects the exact physical flow (it’s a cost flow assumption) or that it’s always the best method for tax purposes (LIFO can be better in inflationary periods, where allowed).
FIFO COGS Formula and Mathematical Explanation
The core idea behind how to calculate cost of goods sold using fifo is to match the cost of the oldest inventory items with the revenue from the units sold. There isn’t one single formula, but rather a process:
- Identify Inventory Layers: List your inventory purchases (or beginning inventory and subsequent purchases) in chronological order, noting the quantity and cost per unit for each layer.
- Determine Units Sold: Know the total number of units sold during the accounting period.
- Allocate Costs from Oldest Layers: Starting with the oldest inventory layer (the first one in), assign its cost to the units sold until either all units from that layer are accounted for or all sold units are matched.
- Move to the Next Layer: If the number of units sold exceeds the quantity in the oldest layer, move to the next oldest layer and continue assigning costs until the total number of units sold is reached.
- Calculate COGS: Sum the costs assigned from each layer to the units sold. This total is your Cost of Goods Sold under FIFO.
- Calculate Ending Inventory: The remaining units in the layers (those not assigned to COGS) and their associated costs make up the value of your ending inventory.
For example, if you sold 150 units, and your first layer had 100 units at $10 and your second had 200 units at $12, your COGS would be (100 units * $10) + (50 units * $12) = $1000 + $600 = $1600.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory Qty | Quantity of units at the start | Units | 0+ |
| Beginning Inventory Cost/Unit | Cost per unit of beginning inventory | Currency ($) | 0+ |
| Purchase Qty (each layer) | Quantity of units purchased | Units | 0+ |
| Purchase Cost/Unit (each layer) | Cost per unit for each purchase | Currency ($) | 0+ |
| Units Sold | Total number of units sold | Units | 0 to Total Available |
| COGS | Cost of Goods Sold | Currency ($) | Calculated |
| Ending Inventory Value | Value of remaining inventory | Currency ($) | Calculated |
Practical Examples (Real-World Use Cases)
Example 1: Rising Costs
A bakery starts the month with 20 bags of flour at $10/bag. They purchase 30 more bags at $12/bag, and later another 10 bags at $13/bag. During the month, they use 45 bags of flour (units sold = 45).
- Oldest layer: 20 bags @ $10
- Next layer: 30 bags @ $12
- Newest layer: 10 bags @ $13
To calculate FIFO COGS for 45 bags:
- 20 bags from the first layer: 20 * $10 = $200
- Remaining 25 bags (45 – 20) from the second layer: 25 * $12 = $300
- Total FIFO COGS = $200 + $300 = $500
- Ending Inventory: 5 bags @ $12 and 10 bags @ $13 = $60 + $130 = $190
Example 2: Multiple Sales Periods
A tech store has:
- Jan 1: Beginning Inventory: 50 phones @ $200
- Jan 10: Purchase: 100 phones @ $210
- Jan 20: Sale: 120 phones
- Jan 25: Purchase: 80 phones @ $220
- Jan 31: Sale: 70 phones
For the Jan 20 sale of 120 phones:
- 50 @ $200 = $10,000
- 70 @ $210 = $14,700
- COGS for Jan 20 = $24,700
- Remaining from Jan 10 purchase: 30 phones @ $210
For the Jan 31 sale of 70 phones:
- 30 @ $210 = $6,300
- 40 @ $220 = $8,800
- COGS for Jan 31 = $15,100
Total COGS for January = $24,700 + $15,100 = $39,800. The process of how to calculate cost of goods sold using fifo is applied sequentially.
How to Use This FIFO COGS Calculator
- Enter Purchase Layers: Input the quantity and cost per unit for your inventory purchases, starting with the oldest (Layer 1). If you have fewer than 3 layers, enter 0 for the quantity and cost of unused layers.
- Enter Units Sold: Input the total number of units sold during the period.
- View Results: The calculator instantly shows the FIFO COGS, Ending Inventory Value, and how many units were used from each layer.
- Analyze Table & Chart: The table details the inventory flow, and the chart visualizes cost allocation.
Understanding how to calculate cost of goods sold using fifo results helps in assessing profitability and inventory management. Higher COGS means lower profit, and vice versa.
Key Factors That Affect FIFO COGS Results
- Inflation/Deflation: In inflationary periods (rising costs), FIFO results in lower COGS and higher net income because older, cheaper costs are matched with revenues. In deflationary periods, the opposite occurs.
- Purchase Timing and Quantity: The dates and amounts of inventory purchases directly create the cost layers that FIFO uses.
- Inventory Turnover Rate: A high turnover means inventory layers are used up quickly, making FIFO costs closer to current costs.
- Product Perishability/Obsolescence: For such products, FIFO often reflects the actual physical flow, making the cost flow more aligned with reality.
- Inventory Valuation Method Choice: Choosing FIFO over LIFO or weighted-average directly impacts COGS and net income, especially when costs are changing.
- Accuracy of Inventory Records: Accurate records of purchase quantities and costs are crucial for a correct FIFO COGS calculation.
- Volume of Sales: The number of units sold determines how many inventory layers are depleted to calculate COGS.
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. Is FIFO better than LIFO?
It depends. FIFO often matches the physical flow of goods better and results in higher net income during inflation. LIFO (Last-In, First-Out) can result in tax savings during inflation but is not permitted under IFRS.
3. How does FIFO affect taxes?
During rising prices, FIFO leads to lower COGS, higher taxable income, and thus higher income taxes compared to LIFO.
4. Does FIFO reflect the actual flow of goods?
Often, yes, especially for perishable goods or items with expiration dates. However, it’s primarily a cost flow assumption, not necessarily a physical flow requirement for all goods.
5. What is the impact of FIFO on the balance sheet?
FIFO generally results in a higher ending inventory value on the balance sheet during periods of rising costs, as the remaining inventory is valued at more recent, higher prices.
6. When should I use the FIFO method?
Use FIFO when you want to reflect the typical flow of goods (especially perishables), or when you want to report higher net income during inflationary periods, or if required by accounting standards (IFRS requires or prefers methods like FIFO).
7. Can I switch from FIFO to another method?
Yes, but accounting standards (like GAAP) generally require that you justify the change as being preferable and disclose the impact of the change.
8. How do I handle beginning inventory with FIFO?
Beginning inventory is treated as your oldest layer (Layer 1 in our calculator if it was the first purchase or starting point).
Related Tools and Internal Resources
- Inventory Turnover Calculator – Calculate how many times inventory is sold over a period.
- Gross Profit Calculator – Understand your gross profit after accounting for COGS.
- LIFO COGS Calculator – Compare FIFO with the Last-In, First-Out method.
- Weighted Average Cost Calculator – Another inventory valuation method.
- Break-Even Point Calculator – Find the point where revenue equals costs.
- Net Income Calculator – Calculate your bottom-line profit.