FIFO Cost of Goods Sold Calculator – Calculate Cost of Goods Sold Using the FIFO Method


FIFO Cost of Goods Sold Calculator

Calculate the Cost of Goods Sold Using the FIFO Method



Choose the currency for your inventory costs.


Enter the number of units in your inventory at the start of the period.



Enter the cost of each unit in your beginning inventory.










Enter quantities and costs for all inventory purchases during the period. Purchases are assumed to be in chronological order.



The total number of units your business sold during the accounting period.

Calculation Results

Total Cost of Goods Available for Sale:

Total Units Available for Sale:

Cost of Ending Inventory:

Ending Inventory Quantity:

*Explanation: This calculator uses the First-In, First-Out (FIFO) method, assuming that the earliest acquired inventory units are the first ones sold. The Cost of Goods Sold is calculated by matching the units sold to their earliest respective costs.


Inventory Flow Analysis (FIFO Method)
Transaction Type Quantity (Units) Cost per Unit Total Cost

Chart: Cost of Goods Sold vs. Remaining Ending Inventory Cost.

What is the Cost of Goods Sold Using the FIFO Method?

The Cost of Goods Sold (COGS) using the First-In, First-Out (FIFO) method is a crucial accounting calculation for businesses that manage inventory. It determines the direct costs attributable to the production of goods sold by a company during a specific period. The FIFO method operates under the assumption that the first units of inventory purchased or produced are the first ones to be sold. This aligns with the natural flow of many businesses, especially those dealing with perishable goods or products that rapidly become obsolete.

Understanding how to calculate the cost of goods sold using the FIFO method is essential for accurate financial reporting, tax calculations, and strategic inventory management. Businesses that benefit most from FIFO include those with high inventory turnover, such as grocery stores, fashion retailers, and electronics companies, where older inventory needs to be moved out first to avoid spoilage or obsolescence.

Common misunderstandings often arise when businesses confuse FIFO with other inventory valuation methods like LIFO (Last-In, First-Out) or the average cost method. Each method yields different COGS figures, especially in periods of fluctuating prices, directly impacting reported profits and tax liabilities. With FIFO, the ending inventory typically reflects the most recent costs, which generally aligns with current market values during periods of inflation.

FIFO Cost of Goods Sold Formula and Explanation

The core principle of the FIFO method is to assign the costs of the earliest purchased or produced inventory to the goods that have been sold. Therefore, the formula is not a simple algebraic equation but a procedural one based on the flow of inventory costs.

**FIFO COGS Calculation Steps:**

  1. Identify the total number of units sold during the period.
  2. Start with the cost of the units in the beginning inventory. Assign these costs to the first units sold until the beginning inventory is depleted.
  3. Once the beginning inventory is exhausted, move to the first purchase made during the period. Assign the cost of these units to the next units sold until this purchase batch is depleted.
  4. Continue this process with subsequent purchases, matching the earliest available costs to the units sold, until the total number of units sold has been accounted for.
  5. Sum all the costs assigned to the units sold. This total represents the Cost of Goods Sold using the FIFO method.

Conversely, the cost of ending inventory under FIFO will consist of the most recently acquired units.

Variables Table for FIFO COGS Calculation

Variable Meaning Unit Typical Range
Beginning Inventory Quantity Number of units on hand at the start of the period. Units 0 to many thousands
Beginning Inventory Cost per Unit Cost assigned to each unit in beginning inventory. Currency (e.g., $, €, £) 0.01 to thousands
Purchase Quantity Number of units acquired in a specific purchase. Units 0 to many thousands
Purchase Cost per Unit Cost assigned to each unit in a specific purchase. Currency (e.g., $, €, £) 0.01 to thousands
Units Sold Total number of units sold during the accounting period. Units 0 to many thousands
Cost of Goods Sold (COGS) The direct costs of units sold during the period (result). Currency (e.g., $, €, £) 0 to millions
Ending Inventory Quantity Number of units remaining at the end of the period (derived). Units 0 to many thousands
Ending Inventory Cost Total cost of units remaining at the end of the period (derived). Currency (e.g., $, €, £) 0 to millions

Practical Examples

Example 1: Steady Purchases and Sales

A small electronics store has the following inventory data for its popular “Smart Speaker” for January:

  • Beginning Inventory: 50 units @ $100 per unit
  • January 5 Purchase: 100 units @ $110 per unit
  • January 20 Purchase: 75 units @ $115 per unit
  • Units Sold in January: 180 units

Let’s calculate the Cost of Goods Sold using the FIFO method:

  1. First 50 units sold come from Beginning Inventory: 50 units * $100 = $5,000
  2. Remaining 130 units (180 – 50) come from January 5 Purchase: 100 units * $110 = $11,000
  3. Remaining 30 units (130 – 100) come from January 20 Purchase: 30 units * $115 = $3,450

Total COGS (FIFO): $5,000 + $11,000 + $3,450 = **$19,450**.

In this example, changing the currency unit selection would only affect the symbol displayed, not the underlying numerical calculation, as all inputs are in the same implied currency.

Example 2: Higher Sales Volume, Multiple Purchases

A clothing boutique recorded the following inventory for its “Classic T-Shirt” during Q3:

  • Beginning Inventory: 200 units @ €8 per unit
  • July 10 Purchase: 300 units @ €9 per unit
  • August 15 Purchase: 250 units @ €9.50 per unit
  • September 5 Purchase: 150 units @ €10 per unit
  • Units Sold in Q3: 700 units

Calculating COGS using FIFO:

  1. First 200 units from Beginning Inventory: 200 units * €8 = €1,600
  2. Next 300 units from July 10 Purchase: 300 units * €9 = €2,700
  3. Remaining 200 units (700 – 200 – 300) from August 15 Purchase: 200 units * €9.50 = €1,900

Total COGS (FIFO): €1,600 + €2,700 + €1,900 = **€6,200**.

The ending inventory would consist of 50 units from the August 15 Purchase (250 – 200) and all 150 units from the September 5 Purchase.

How to Use This Calculate the Cost of Goods Sold Using the FIFO Method Calculator

Our intuitive FIFO COGS calculator makes it easy to determine your inventory costs accurately. Follow these simple steps:

  1. Select Currency Unit: Choose your preferred currency (e.g., USD, EUR, GBP) from the dropdown menu.
  2. Enter Beginning Inventory: Input the total number of units and their cost per unit that you had at the start of your accounting period.
  3. Add Purchases: For each purchase made during the period, click “Add Another Purchase” to create a new row. Enter the quantity of units purchased and their cost per unit. Ensure you enter purchases in chronological order from earliest to latest.
  4. Input Units Sold: Enter the total number of units your business sold during the period for which you are calculating COGS.
  5. Calculate: Click the “Calculate COGS” button. The results will automatically appear, including the primary Cost of Goods Sold, total goods available for sale, and ending inventory figures.
  6. Interpret Results: The calculator will show your COGS, along with other key metrics like the total cost of goods available for sale and the cost of your ending inventory. The accompanying table provides a detailed breakdown of how costs were assigned.
  7. Copy Results: Use the “Copy Results” button to easily copy all calculated values to your clipboard for record-keeping or further analysis.
  8. Reset: If you need to start over, click the “Reset” button to clear all fields and calculations.

This tool assumes that all purchase entries are made in their chronological order for accurate FIFO calculation.

Key Factors That Affect the Cost of Goods Sold Using the FIFO Method

Several factors can significantly influence the Cost of Goods Sold when using the FIFO method:

  • Inflation/Deflation in Purchase Prices: In an inflationary environment (rising prices), FIFO typically results in a lower COGS because the older, cheaper costs are expensed first. This leads to higher reported net income and higher tax liabilities. Conversely, during deflation (falling prices), FIFO yields a higher COGS, resulting in lower reported net income and lower tax liabilities.
  • Inventory Turnover Rate: Businesses with a high inventory turnover (selling goods quickly) will have COGS figures that closely reflect current costs, regardless of the inventory method. Businesses with slow turnover will see a greater disparity between FIFO and other methods, as older costs remain in inventory longer.
  • Volume of Purchases and Sales: A higher volume of purchases and sales means more transactions to track, but the fundamental FIFO principle remains the same. The greater the volume, the more impactful price changes become on COGS.
  • Beginning Inventory Balance: The size and cost of the beginning inventory significantly impact the initial costs expensed. A large, inexpensive beginning inventory will keep COGS lower for longer until it is fully drawn down.
  • Consistency of Cost per Unit: If the cost per unit remains relatively stable, the difference between FIFO and other methods will be minimal. Significant fluctuations in unit cost will highlight the differences between methods.
  • Accounting Period Length: The length of the accounting period (e.g., monthly, quarterly, annually) affects the total units sold and purchases considered, thereby influencing the overall COGS figure for that period.

Frequently Asked Questions about FIFO COGS Calculation

Q: What does FIFO stand for?
A: FIFO stands for “First-In, First-Out,” meaning the first goods purchased or produced are the first ones sold.
Q: Why is FIFO commonly used for calculating Cost of Goods Sold?
A: FIFO is popular because it generally mirrors the physical flow of goods, especially for perishable items or products with technological obsolescence. It also tends to result in a higher net income during inflationary periods, which can be appealing to investors.
Q: How does FIFO affect my financial statements?
A: During inflation, FIFO results in a lower Cost of Goods Sold, leading to higher gross profit, higher net income, and a higher valuation for ending inventory on the balance sheet. During deflation, the opposite occurs.
Q: Can I use different unit systems for quantity or cost?
A: While the calculator handles different currency symbols, the quantity units (e.g., “units”, “pieces”) are consistent within the calculation. Ensure all your quantity inputs refer to the same type of unit (e.g., don’t mix “boxes” with “individual items” in the same calculation).
Q: How do I calculate ending inventory using FIFO?
A: With FIFO, the ending inventory consists of the most recently purchased units that were not sold. After determining COGS, the remaining units (Total Units Available – Units Sold) are valued at the cost of the latest purchases. Our calculator automatically provides this figure.
Q: What are the limitations of the FIFO method?
A: While often realistic, FIFO may result in higher income taxes during periods of inflation due to higher reported profits. It also may not accurately reflect the physical flow of goods for all businesses, such as those using stockpiling methods where newer items are sometimes pulled first.
Q: Is it mandatory for all businesses to use FIFO?
A: No, businesses can choose between FIFO, LIFO (in countries where it’s permitted, like the US), or the average cost method, as long as they apply the chosen method consistently. The choice depends on industry practices, tax implications, and how accurately each method reflects the business’s physical inventory flow.
Q: How does the “cost of goods sold using the fifo method” calculator handle negative inputs?
A: Our calculator includes validation to prevent negative quantities or costs, as these are not logical in real-world inventory scenarios. An error message will appear if you enter invalid numbers.

Explore our other helpful resources to deepen your understanding of inventory management and financial accounting:

© 2026 FIFO COGS Calculator. All rights reserved.



Leave a Reply

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