COGS FIFO Journal Entry Calculator
Accurately determine the Cost of Goods Sold (COGS) with the First-In, First-Out (FIFO) method and see the resulting journal entry.
FIFO COGS Calculator
The number of units available at the start of the period.
The cost for each unit in the beginning inventory.
Inventory Purchases
Sales Information
The total number of units sold during the period.
What is Calculating COGS Using FIFO in a Journal Entry?
Calculating COGS using FIFO in a journal entry is a fundamental accounting process for businesses that hold inventory. COGS, or Cost of Goods Sold, represents the direct costs attributable to the production of the goods sold by a company. The First-In, First-Out (FIFO) method is an inventory valuation assumption that the first items purchased are the first ones to be sold. Therefore, the cost of the oldest inventory is assigned to COGS, while the cost of the most recently purchased inventory remains in the ending inventory on the balance sheet.
This process is crucial for determining a company’s gross profit. When a sale occurs, a journal entry is made to recognize the revenue and, concurrently, another entry is required to move the cost of the sold inventory from the Inventory asset account to the COGS expense account. Using FIFO is common for businesses with perishable goods or products with a short lifecycle, as it logically matches the typical physical flow of inventory. For more details on inventory valuation, explore the differences between fifo vs lifo.
The FIFO Formula and Explanation
The core formula for Cost of Goods Sold under any method is:
COGS = Beginning Inventory + Purchases - Ending Inventory
However, the FIFO method dictates *how* we value the COGS and Ending Inventory. The calculation involves peeling off inventory layers in the order they were acquired. When units are sold, you exhaust the beginning inventory first, then the first purchase lot, then the second, and so on, until the total number of units sold is accounted for. The cost of these layers combined becomes your COGS.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory | The value of inventory at the start of the accounting period. | Units & Currency ($) | 0 to Millions |
| Inventory Purchases | The cost of new inventory acquired during the period. Entered in layers or lots. | Units & Currency ($) | 0 to Millions |
| Units Sold | The total quantity of items sold during the period. | Units | 0 to Total Available |
| Cost of Goods Sold (COGS) | The direct cost of the inventory sold, calculated using the oldest costs first. | Currency ($) | Calculated Value |
| Ending Inventory | The value of inventory remaining at the end of the period, valued at the most recent costs. | Units & Currency ($) | Calculated Value |
Understanding these variables is key to mastering different inventory valuation methods.
Practical Examples
Example 1: Simple Scenario
A bookstore starts the month with 20 books purchased at $10 each. They make one purchase of 30 more books at $12 each. During the month, they sell 40 books.
- Inputs: Beginning Inventory: 20 units @ $10. Purchase 1: 30 units @ $12. Units Sold: 40.
- FIFO Calculation: The first 20 books sold are costed at $10 each (20 * $10 = $200). The next 20 books sold are costed at $12 each (20 * $12 = $240).
- Results:
- COGS: $200 + $240 = $440.
- Ending Inventory: 10 units remain from the second purchase, so the value is 10 * $12 = $120.
Example 2: Multiple Purchases
A tech shop has 50 headphones in beginning inventory at $50 each. They purchase 100 more at $55, and then another 75 at $60. They sell 180 headphones.
- Inputs: Beginning Inv: 50 @ $50. Purchase 1: 100 @ $55. Purchase 2: 75 @ $60. Units Sold: 180.
- FIFO Calculation:
- Sell all 50 beginning units: 50 * $50 = $2,500
- Sell all 100 units from Purchase 1: 100 * $55 = $5,500
- Sell 30 units from Purchase 2: 30 * $60 = $1,800
- Results:
- COGS: $2,500 + $5,500 + $1,800 = $9,800.
- Ending Inventory: 45 units remain from the last purchase (75 – 30), so the value is 45 * $60 = $2,700. This directly impacts your gross profit margin calculator inputs.
How to Use This COGS FIFO Calculator
- Enter Beginning Inventory: Input the number of units and the cost per unit you had at the start of your period.
- Add Purchase Lots: Click “+ Add Purchase Lot” for each inventory purchase you made. Enter the units and cost per unit for each lot.
- Enter Units Sold: Input the total number of units sold during the period.
- Calculate: Click the “Calculate COGS” button. The tool will instantly compute your total COGS, ending inventory value, and provide a detailed breakdown.
- Review the Journal Entry: The calculator generates the standard journal entry to record COGS, showing the debit to the COGS expense account and the credit to the Inventory asset account. This is a crucial step for maintaining an accurate balance sheet basics.
Key Factors That Affect FIFO COGS
- Inflation: During periods of rising prices, FIFO results in a lower COGS (because older, cheaper costs are used) and a higher net income.
- Purchase Timing: The timing and cost of large purchases can significantly alter the COGS for a period, especially if a cost layer is fully depleted.
- Inventory Damage or Obsolescence: Items that are written off must be removed from inventory counts, which can affect which cost layers are assumed to be sold.
- Supplier Price Changes: Fluctuations in supplier pricing directly create the different cost layers that FIFO accounting is designed to track.
- Inventory Management System: The choice between a perpetual vs periodic inventory system affects how frequently COGS is calculated and recorded.
- Product Mix: Selling a different mix of products can change which inventory pools are drawn from, impacting the overall COGS calculation.
Frequently Asked Questions (FAQ)
FIFO is popular because it often mirrors the actual physical flow of goods for many businesses, especially those dealing with perishable or date-sensitive products. It’s also straightforward and accepted by both GAAP and IFRS accounting standards.
LIFO (Last-In, First-Out) is the opposite; it assumes the most recently purchased items are sold first. This can have significant tax implications, especially during inflationary periods. For more, see our LIFO calculator.
The journal entry formally recognizes the cost of the sold inventory as an expense on the income statement (by debiting COGS) and reduces the value of the inventory asset on the balance sheet (by crediting Inventory).
Yes, critically. The value of ending inventory is an asset on your balance sheet and becomes the beginning inventory for the next period. An accurate ending inventory calculation is essential for correct financial statements.
The FIFO method automatically handles this by “selling” all units from the oldest lot and then taking the remaining needed units from the next oldest lot, and so on, until the total sale quantity is met.
This calculator is ideal for periodic calculations but demonstrates the logic used in a perpetual system. In a perpetual system, a COGS calculation like this is performed automatically with every single sale.
COGS is typically associated with physical products. Service businesses have a “Cost of Revenue” or “Cost of Services,” which includes direct labor and other costs but does not involve inventory valuation methods like FIFO.
COGS is a major line item on the Income Statement, typically appearing right after Revenue. The subtraction of COGS from Revenue yields the Gross Profit.
Related Tools and Internal Resources
For a complete financial picture, explore these other relevant calculators and resources:
- LIFO Calculator: Compare FIFO results with the Last-In, First-Out method.
- Weighted-Average Cost Calculator: Explore another popular inventory valuation method.
- Inventory Turnover Ratio Calculator: Measure how efficiently your inventory is being sold.
- Gross Profit Margin Calculator: Understand your profitability after accounting for COGS.
- What is GAAP: Learn about the Generally Accepted Accounting Principles that govern methods like FIFO.
- Balance Sheet Basics: See how inventory and other accounts fit into the bigger financial picture.