How to Calculate Cost of Goods Sold Using FIFO Example | Expert Calculator


FIFO COGS Calculator

Analyze how to calculate cost of goods sold using FIFO example effectively

Inventory Layers (Oldest to Newest)

Quantity in units

Unit Cost ($)

Quantity in units

Unit Cost ($)

Quantity in units

Unit Cost ($)


Total quantity sold to customers
Total units sold exceeds available inventory!


Total Cost of Goods Sold (COGS)
$0.00
Ending Inventory Value
$0.00
Average Cost per Unit Sold
$0.00
Total Units Remaining
0

Inventory Value Allocation (COGS vs Ending Inventory)

COGS Portion Ending Inventory

Value of Goods Sold

Value Remaining (FIFO)


Batch Units Used for COGS Units in Ending Inv Batch Unit Cost

Formula: COGS = Sum of (Units sold from batch × Unit cost of that specific batch)

What is How to Calculate Cost of Goods Sold Using FIFO Example?

When a business sells products, they must determine the value of those items to report on financial statements. The **FIFO (First-In, First-Out)** method assumes that the oldest items in inventory are sold first. Therefore, the costs assigned to the Cost of Goods Sold (COGS) are based on the oldest purchase prices, while the value of the remaining inventory (Ending Inventory) reflects the most recent purchase prices.

Businesses use this method because it often mirrors the actual physical flow of goods, especially for perishable items or products with a short shelf life. Financial analysts and accountants favor this method in inflationary environments because it results in a higher net income, as older, cheaper goods are recorded as sold first.

A common misconception is that FIFO requires the physical oldest product to be grabbed from the shelf. In reality, FIFO is an accounting cost-flow assumption; the physical item sold could be the newest one, but for tax and reporting purposes, we “charge” the cost of the oldest unit.

How to Calculate Cost of Goods Sold Using FIFO Example: Formula and Mathematical Explanation

The FIFO calculation isn’t a single simple formula like addition; it’s a procedural sequence. You must exhaust your inventory layers chronologically.

The Mathematical Steps:

  1. Identify total units sold during the accounting period.
  2. Apply the unit cost of the Beginning Inventory to the sold units until that batch is empty.
  3. If units sold exceed the beginning inventory, apply the cost of the First Purchase batch.
  4. Repeat this process batch by batch until the total units sold are accounted for.
  5. The remaining units across all batches constitute the Ending Inventory.
Variable Meaning Unit Typical Range
Beginning Inventory Stock carried over from previous period Units 0 – 100,000+
Unit Cost Price paid to acquire one unit Currency ($) Varies by industry
Units Sold Quantity sold to customers Units ≤ Total Inventory
COGS Total cost of the inventory sold Currency ($) Directly linked to sales

Practical Examples (Real-World Use Cases)

Example 1: The Coffee Shop

A coffee shop has 50 bags of beans bought at $10 each. They then buy 50 more bags at $12. If they sell 60 bags, the FIFO calculation would be:

– 50 bags @ $10 = $500

– 10 bags @ $12 = $120

Total COGS: $620. The remaining 40 bags are valued at $12 ($480).

Example 2: Electronics Retailer

An electronics store starts with 10 tablets at $300. They purchase 20 more at $350. They sell 15 tablets.

– COGS = (10 × $300) + (5 × $350) = $3,000 + $1,750 = $4,750.

Even if they physically handed the customer the $350 tablets, the accounting record shows the $300 cost first.

How to Use This FIFO Calculator

1. **Input Batch Data:** Enter the number of units and the unit cost for your beginning inventory and subsequent purchases in chronological order.

2. **Enter Units Sold:** Provide the total number of units sold during the period.

3. **Review Results:** The calculator automatically computes the COGS, Ending Inventory, and Average Cost.

4. **Analyze Breakdown:** Use the dynamic table to see exactly how many units were pulled from each “layer” of your inventory.

Key Factors That Affect FIFO Results

  • Inflation: When prices rise, FIFO results in lower COGS and higher profit because older, cheaper costs are recognized first.
  • Tax Liability: Higher profits under FIFO during inflation often lead to higher income tax payments.
  • Inventory Turnover: Faster moving goods make the difference between FIFO and other methods (like LIFO) less significant.
  • Price Volatility: Frequent price changes in the supply chain require meticulous record-keeping of every purchase batch.
  • Storage Costs: While FIFO handles the cost, physical storage should often follow FIFO to prevent spoilage.
  • Audit Compliance: IFRS requires FIFO (or weighted average), making it the global standard over LIFO.

Frequently Asked Questions (FAQ)

Q: Is FIFO better than LIFO?
A: It depends on your goal. FIFO usually shows higher profits and better represents actual inventory flow, while LIFO can reduce taxes during inflation.

Q: Can I switch from FIFO to LIFO?
A: Generally, yes, but it requires IRS approval in the US and a change in accounting policy disclosure.

Q: Does FIFO affect cash flow?
A: Indirectly, yes, through its impact on tax payments. It does not change the actual cash spent on inventory.

Q: What happens if prices are falling?
A: Under deflation, FIFO will result in higher COGS and lower profits compared to LIFO.

Q: Is FIFO allowed under IFRS?
A: Yes, FIFO is widely accepted and preferred under International Financial Reporting Standards.

Q: Does FIFO apply to services?
A: No, FIFO is an inventory valuation method specifically for physical goods.

Q: How does FIFO handle returns?
A: Returned items are usually put back into the inventory layer they were sold from or treated as a new layer depending on condition.

Q: Why is FIFO used for perishables?
A: Because it mimics the physical necessity of selling older stock before it expires.

© 2023 FIFO Inventory Solutions. All rights reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *