Cost of Goods Sold (COGS) Using FIFO Calculator
This calculator helps you determine the Cost of Goods Sold (COGS) and the value of your ending inventory using the First-In, First-Out (FIFO) accounting method. Enter your inventory layers and units sold to see a detailed breakdown.
Enter the total quantity of items sold during the period.
Inventory Layers
Calculation Results
Cost of Goods Sold (COGS)
$0.00
0
$0.00
| Layer | Units Sold from Layer | Cost per Unit | Cost Attributed to COGS |
|---|
What is the Cost of Goods Sold (COGS) using FIFO?
The cost of goods sold using fifo calculator is an essential tool for businesses that need to determine their profitability. FIFO, which stands for “First-In, First-Out,” is an inventory valuation method that assumes the first items purchased or produced are the first ones to be sold. This method is widely used because it mirrors the actual physical flow of goods for many types of businesses, especially those dealing with perishable items or products with a limited shelf life.
When you calculate COGS using FIFO, you are matching your oldest inventory costs against your current revenues. In a period of rising prices (inflation), this results in a lower COGS, a higher reported gross profit, and a higher taxable income. Conversely, the inventory that remains on your balance sheet (ending inventory) is valued at the most recent, higher costs, which can present a more accurate picture of the current replacement cost of your inventory.
The FIFO COGS Formula and Explanation
There isn’t a single, simple formula for FIFO like there is for other methods. Instead, it’s a process of stepping through your inventory layers. The logic is: to fulfill the number of units sold, you exhaust the oldest inventory layer first, then move to the next oldest, and so on, until the order is fulfilled.
The calculation process is as follows:
- List all inventory layers, starting with beginning inventory, followed by each purchase in chronological order.
- For a given number of units sold, “sell” all units from the oldest layer first.
- Calculate the cost for this portion of the sale by multiplying the units sold from that layer by their specific cost.
- If more units need to be accounted for, move to the second-oldest layer and repeat the process.
- Sum the costs from each layer used to get the total Cost of Goods Sold.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory | The quantity and cost of inventory you have at the start of the accounting period. | Units & Currency ($) | 0+ |
| Purchases | Any inventory added during the accounting period, recorded as separate layers with their own quantity and cost. | Units & Currency ($) | 0+ |
| Units Sold | The total number of units sold to customers during the period. | Units | 0 to Total Available Units |
| Cost of Goods Sold (COGS) | The direct cost attributed to the production of the goods sold by a company. | Currency ($) | Depends on inputs |
| Ending Inventory | The value of inventory remaining at the end of the period. This is calculated using the costs of the most recently purchased items. | Currency ($) | Depends on inputs |
For more on inventory management, see our guide on the perpetual inventory system.
Practical Examples of FIFO Calculation
Example 1: Basic Calculation
Imagine a coffee shop with the following inventory for a specific blend:
- Beginning Inventory: 50 bags at $10 each.
- Purchase 1: 100 bags at $12 each.
- Sales: The shop sells 80 bags.
Using the FIFO method:
- Sell the first 50 bags from beginning inventory: 50 bags * $10 = $500.
- Sell the remaining 30 bags from Purchase 1: 30 bags * $12 = $360.
- Total COGS: $500 + $360 = $860.
The ending inventory would be the remaining 70 bags from Purchase 1, valued at $12 each (70 * $12 = $840).
Example 2: Multiple Purchase Layers
A bookstore has the following inventory:
- Beginning Inventory: 20 books at $15 each.
- Purchase 1 (Jan): 30 books at $16 each.
- Purchase 2 (Feb): 25 books at $18 each.
- Sales: The store sells 65 books.
The COGS calculation is:
- Sell all 20 beginning inventory books: 20 * $15 = $300.
- Sell all 30 books from Purchase 1: 30 * $16 = $480.
- Sell the remaining 15 books from Purchase 2: 15 * $18 = $270.
- Total COGS: $300 + $480 + $270 = $1,050.
The ending inventory consists of the last 10 books from Purchase 2, valued at $18 each (10 * $18 = $180). This helps in calculating other metrics; learn more with our tool to calculate gross profit.
How to Use This Cost of Goods Sold using FIFO Calculator
This tool is designed to be intuitive and fast. Follow these simple steps to find your COGS:
- Enter Units Sold: In the first field, input the total number of items you sold during the period.
- Input Beginning Inventory: Enter the number of units and the cost per unit for your starting inventory.
- Add Purchase Layers: The calculator starts with one purchase layer. Enter the units and cost for your first batch of new inventory. If you made multiple purchases at different costs, click the “Add Purchase Layer” button to create new rows.
- Review Real-Time Results: As you enter data, the COGS, Ending Inventory Value, and other metrics will update automatically.
- Analyze the Breakdown: The table at the bottom shows exactly how many units were sold from each layer and how the total COGS was calculated, providing full transparency.
- Reset if Needed: Use the “Reset” button to clear all fields and start over with the default values.
Key Factors That Affect FIFO COGS
Several factors can influence your FIFO calculation and its implications for your financial statements.
- Inflation/Deflation: In an inflationary environment, FIFO results in a lower COGS and higher profit because cheaper, older costs are recognized first. The opposite is true during deflation.
- Supplier Price Changes: Frequent changes in the prices you pay for goods will create more distinct inventory layers, making accurate tracking crucial.
- Bulk Purchase Discounts: Buying in bulk may lower the cost per unit for a specific layer, which will be reflected in COGS once that layer is sold.
- Inventory Spoilage or Obsolescence: If old inventory spoils and must be written off before being sold, it bypasses COGS and is recorded as a separate expense, impacting the FIFO flow.
- Shipping and Freight Costs: Landed costs, including shipping and taxes, should be included in the unit cost for each inventory layer to ensure an accurate COGS.
- Demand Fluctuation: A sudden increase in sales can cause you to burn through inventory layers faster than anticipated, impacting the timing of cost recognition. You might also find our weighted-average cost method calculator useful for comparison.
Frequently Asked Questions (FAQ)
1. Why is the FIFO method so popular?
FIFO is popular because it’s logical and often matches the physical flow of inventory, especially for businesses selling perishable goods or products with version updates (like electronics). It’s also straightforward to understand and is accepted under both GAAP and IFRS accounting standards.
2. How does FIFO differ from the LIFO method?
LIFO (Last-In, First-Out) is the opposite of FIFO. It assumes the most recently purchased items are sold first. During inflationary periods, LIFO results in a higher COGS and lower net income. Check out our LIFO calculator to compare the results directly.
3. Does using FIFO affect my taxes?
Yes. Because FIFO tends to produce a higher net income during periods of rising prices, it typically results in a higher income tax liability compared to LIFO.
4. Can I switch between FIFO and LIFO?
Switching inventory accounting methods is possible but often complex and requires valid reasoning. You must apply to the IRS for a change in accounting method and report the effects of the change.
5. What does the “Ending Inventory” value represent?
The ending inventory value is the cost of the items that remain unsold at the end of the period. Under FIFO, this value is based on the costs of the *most recent* purchases, providing a balance sheet value that is closer to the current market value.
6. Is FIFO suitable for all types of businesses?
While widely applicable, it’s most suitable for businesses where maintaining a fresh stock is important (e.g., food, pharmaceuticals, fashion). For businesses where inventory doesn’t expire and costs are stable (like a gravel pit), the method used has less impact.
7. How does this calculator handle selling more units than are available?
The calculator will calculate COGS based on all available inventory. The “Units in Ending Inventory” will show 0, and the breakdown table will show all layers being fully sold. This indicates you may have an inventory tracking discrepancy.
8. What is the ending inventory formula?
While there’s a general formula for inventory (Beginning Inventory + Purchases – COGS = Ending Inventory), when using FIFO, the ending inventory value is more directly found by summing the value of all unsold units, which will be from the most recent purchases. Our ending inventory formula page provides more detail.
Related Tools and Internal Resources
Explore other financial calculators and guides to enhance your business management:
- LIFO Calculator: Compare FIFO with the Last-In, First-Out method to see the impact on your profits.
- Weighted-Average Cost Calculator: Use a blended average cost for a different approach to inventory valuation.
- Inventory Management Guide: A comprehensive guide to mastering inventory control and strategy.
- Gross Profit Calculator: Understand your profitability after accounting for the cost of goods sold.
- Ending Inventory Calculator: Focus specifically on calculating the value of your remaining stock.
- Perpetual vs. Periodic Inventory Systems: Learn the differences between these two primary inventory tracking systems.