Using Fifo Calculate Ending Inventory And Cost Of Goods Sold






FIFO Ending Inventory and COGS Calculator


FIFO Ending Inventory and COGS Calculator

Easily calculate your Cost of Goods Sold (COGS) and the value of your ending inventory using the First-In, First-Out (FIFO) method. Our FIFO Ending Inventory and COGS calculator provides accurate results instantly.

FIFO Calculator

Layer Units Cost per Unit ($) Total Cost ($) Action
Beginning 1000.00

Enter your beginning inventory and each subsequent purchase as a new layer with units and cost per unit.


Enter the total number of units sold during this accounting period.



Ending Inventory Value:
Cost of Goods Sold (COGS):

Units in Ending Inventory:

Total Units Available for Sale:

Total Cost of Goods Available for Sale:

FIFO Explained: The First-In, First-Out (FIFO) method assumes that the first units purchased are the first ones sold. COGS is calculated based on the cost of the oldest inventory, and ending inventory is valued at the cost of the most recent purchases.

Chart: Cost of Goods Available vs. COGS vs. Ending Inventory

What is FIFO for Ending Inventory and COGS?

FIFO, standing for “First-In, First-Out,” is an inventory valuation method that assumes the first units of inventory purchased or produced are the first ones sold. When calculating the Cost of Goods Sold (COGS) and the value of ending inventory, the FIFO method uses the cost of the oldest inventory items first. This means the COGS reflects the cost of older inventory, while the ending inventory on the balance sheet is valued at the cost of the most recently acquired items.

Businesses that deal with perishable goods (like food) or products with a limited shelf life (like electronics with fast obsolescence cycles) often use FIFO physically and for accounting to ensure older stock is sold first. However, many other businesses also use FIFO for its accounting benefits, especially in times of rising costs, as it can result in a higher net income (and thus higher taxes) because lower, older costs are matched with current revenues. Understanding the FIFO Ending Inventory and COGS calculation is vital for accurate financial reporting.

Common misconceptions include thinking FIFO always reflects the actual physical flow of goods (it’s often just an accounting assumption) or that it’s always the best method (LIFO or weighted-average might be more appropriate depending on the industry and economic conditions). The FIFO Ending Inventory and COGS method is preferred for its simplicity and the fact that it often matches the actual flow of goods in many businesses.

FIFO Ending Inventory and COGS Formula and Mathematical Explanation

The FIFO method doesn’t have one single formula but is a process applied to inventory layers. Here’s how it works for FIFO Ending Inventory and COGS calculation:

  1. List Inventory Layers: Identify all inventory layers, starting with beginning inventory and then each purchase, chronologically, with their respective units and costs per unit.
  2. Determine Units Sold: Know the total number of units sold during the period.
  3. Calculate COGS: Starting with the oldest layer (first-in), assign the cost of those units to the units sold. If the units sold exceed the units in the oldest layer, move to the next oldest layer and continue until all units sold are accounted for. COGS is the sum of the costs of these units sold.

    COGS = (Units from Oldest Layer Sold * Cost of Oldest Layer) + (Units from Next Layer Sold * Cost of Next Layer) + …
  4. Calculate Ending Inventory: The units remaining after accounting for sales constitute the ending inventory. These remaining units are from the most recent purchases (last-in). The value of ending inventory is the sum of (remaining units in each layer * cost of that layer).

    Ending Inventory Value = (Remaining Units in Newest Layer * Cost of Newest Layer) + (Remaining Units in Next Newest Layer * Cost of Next Newest Layer) + …
  5. Total Cost of Goods Available for Sale (COGAS): This is the sum of the total cost of beginning inventory and all purchases during the period. COGAS = Beginning Inventory Cost + Purchases Cost. Also, COGAS = COGS + Ending Inventory Value.

The FIFO Ending Inventory and COGS calculation systematically works through inventory layers.

Variables Table

Variable Meaning Unit Typical Range
Beginning Inventory Units Number of units at the start of the period Units 0+
Beginning Inventory Cost/Unit Cost per unit of beginning inventory $ 0.01+
Purchase Units Number of units in each purchase lot Units 1+
Purchase Cost/Unit Cost per unit for each purchase lot $ 0.01+
Units Sold Total units sold during the period Units 0 to Total Available Units
COGS Cost of Goods Sold $ 0+
Ending Inventory Value Value of remaining inventory at period end $ 0+

Practical Examples (Real-World Use Cases)

Example 1: Rising Costs

A company has the following inventory activity for a month:

  • Beginning Inventory: 100 units @ $10/unit = $1000
  • Purchase 1: 50 units @ $12/unit = $600
  • Purchase 2: 80 units @ $14/unit = $1120
  • Units Sold: 180 units

Total units available = 100 + 50 + 80 = 230 units. Total cost available = $1000 + $600 + $1120 = $2720.

COGS Calculation (FIFO):

  • 100 units sold from Beginning Inventory @ $10 = $1000
  • 50 units sold from Purchase 1 @ $12 = $600
  • 30 units sold from Purchase 2 @ $14 = $420 (180 – 100 – 50 = 30)
  • Total COGS = $1000 + $600 + $420 = $2020

Ending Inventory Calculation (FIFO):

  • Remaining units = 230 – 180 = 50 units
  • These 50 units are from Purchase 2 @ $14 = $700
  • Ending Inventory Value = $700

Check: $2020 (COGS) + $700 (End Inv) = $2720 (Total Cost Available). The FIFO Ending Inventory and COGS values are $700 and $2020 respectively.

Example 2: Stable Costs

Another company has:

  • Beginning Inventory: 200 units @ $5/unit = $1000
  • Purchase 1: 150 units @ $5/unit = $750
  • Units Sold: 300 units

Total units available = 200 + 150 = 350 units. Total cost available = $1000 + $750 = $1750.

COGS Calculation (FIFO):

  • 200 units from Beginning Inventory @ $5 = $1000
  • 100 units from Purchase 1 @ $5 = $500 (300 – 200 = 100)
  • Total COGS = $1000 + $500 = $1500

Ending Inventory Calculation (FIFO):

  • Remaining units = 350 – 300 = 50 units
  • These 50 units are from Purchase 1 @ $5 = $250
  • Ending Inventory Value = $250

Check: $1500 (COGS) + $250 (End Inv) = $1750 (Total Cost Available). Here, the FIFO Ending Inventory and COGS are $250 and $1500.

How to Use This FIFO Ending Inventory and COGS Calculator

  1. Enter Beginning Inventory: Input the number of units and cost per unit for your beginning inventory in the first row of the “Beginning Inventory & Purchases” table.
  2. Add Purchase Layers: For each subsequent purchase during the period, click “Add Purchase Layer” and enter the units and cost per unit for that purchase. Add them chronologically.
  3. Enter Units Sold: Input the total number of units sold during the period in the “Units Sold” field.
  4. Calculate: Click the “Calculate FIFO” button.
  5. Review Results: The calculator will display:
    • Ending Inventory Value: The value of your remaining inventory based on the cost of the latest purchases.
    • Cost of Goods Sold (COGS): The cost associated with the units sold, based on the cost of the oldest inventory.
    • Intermediate values like Units in Ending Inventory, Total Units Available, and Total Cost of Goods Available for Sale.
    • A breakdown table showing how units sold were allocated from different layers.
    • A chart visualizing the cost components.
  6. Reset or Copy: Use the “Reset” button to clear inputs or “Copy Results” to copy the main outputs.

This FIFO Ending Inventory and COGS Calculator helps you quickly determine these crucial financial figures. The results allow you to see how the FIFO method values your remaining stock and the cost attributed to sales.

Key Factors That Affect FIFO Ending Inventory and COGS Results

  1. Inflation/Deflation: In inflationary periods (rising costs), FIFO results in a lower COGS (using older, cheaper costs) and higher ending inventory value (using newer, expensive costs), leading to higher taxable income. In deflationary periods, the opposite occurs.
  2. Purchase Timing and Costs: The cost and timing of inventory purchases directly impact which costs are assigned to COGS and ending inventory. Large purchases at significantly different price points will have a notable effect.
  3. Number of Units Sold: The volume of sales determines how many inventory layers are ‘used up’ for COGS and which layers remain for ending inventory.
  4. Inventory Holding Period: How long inventory is held before being sold influences which cost layers are matched with sales under FIFO. Shorter periods might mean more recent costs are used if turnover is very high.
  5. Product Perishability/Obsolescence: While FIFO is an accounting method, for perishable or quickly obsolete goods, the physical flow often matches FIFO, making the accounting method reflect reality more closely.
  6. Inventory Write-Downs: If inventory becomes obsolete or its market value drops below cost, write-downs can affect the ending inventory value regardless of the FIFO calculation applied before the write-down.
  7. Accounting Standards: IFRS and US GAAP both allow FIFO, but the choice can have significant financial reporting implications compared to other methods like LIFO (which is not allowed under IFRS) or weighted-average cost. Accurate FIFO Ending Inventory and COGS calculation is crucial for compliance.

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. Why is FIFO used?
FIFO is used because it often matches the actual physical flow of goods, especially for perishable or date-sensitive products. It’s also relatively simple to apply and is accepted under both IFRS and US GAAP. It can result in higher net income during inflationary periods, which some companies prefer for reporting, although it means higher taxes.
3. How does FIFO affect COGS in times of rising prices?
During inflation (rising prices), FIFO matches older, lower costs with current revenues, resulting in a lower COGS and higher gross profit and net income compared to LIFO.
4. How does FIFO affect ending inventory value in times of rising prices?
In times of rising prices, FIFO values ending inventory at the most recent, higher costs, leading to a higher ending inventory value on the balance sheet compared to LIFO.
5. Is FIFO better than LIFO or Weighted-Average?
No single method is universally “better.” The best method depends on the industry, the nature of the inventory, economic conditions, and management objectives. FIFO often better reflects the physical flow and balance sheet value, while LIFO (where allowed) can offer tax advantages during inflation.
6. Can I switch from FIFO to another method?
Yes, but accounting standards generally require a valid business reason for the change, and it must be disclosed, along with its impact, in the financial statements. Consistency is usually preferred.
7. Does this calculator handle inventory returns?
This basic FIFO Ending Inventory and COGS calculator does not explicitly handle returns. Returns would typically be added back to inventory at their original cost and would complicate the layering if returned after sales from that layer have occurred.
8. What if I sell more units than I have in the oldest layer?
The calculator automatically moves to the next oldest layer to fulfill the total units sold, allocating costs accordingly until all sold units are accounted for, which is the core of the FIFO Ending Inventory and COGS process.

© 2023 [Your Brand]. All rights reserved. For educational purposes only.




Leave a Comment