
Monitoring income by itself does not expose actual profitability of businesses. Directly influencing your bottom line, tax responsibilities, and strategic decision-making, the cost of goods sold (COGS) is a vital financial statistic.
The article looks at techniques and formulas for precisely calculating the cost of goods sold across several business structures. Beyond basic calculations, we will explore how modern asset tracking systems might revolutionise inventory management, automate calculations, and provide accurate financial insights—empowering you to extract significant intelligence from your product costs.
What is Cost of Goods Sold (COGS)?
The cost of goods sold (COGS) includes all direct expenses paid for manufacturing or acquiring commodities sold over a certain period. Unlike regular expenses like marketing or administration, COGS directly relates to items leaving your inventory.
For retailers, COGS primarily includes supplier purchase prices plus costs to bring products to selling locations. Manufacturers face more complex calculations incorporating raw materials, direct labor, and production-related overhead.
The formula for cost of goods sold links inventory management to financial performance, providing critical insights into gross profit margins and operational efficiency. Well documented COGS minimises taxable income as an acceptable business expense. With changes in the cost of goods sold equation typically indicating operational problems seeking management attention, financial analysts examine COGS trends to evaluate cost control methods and production effectiveness.
Why is COGS Important for Businesses?
Meticulously tracking and calculating COGS formula extends beyond basic accounting compliance, serving as the foundation for numerous critical business decisions.
COGS directly determines gross profit—revenue minus production costs—revealing your core operations' fundamental profitability before overhead expenses. Without accurate calculations, businesses risk operating under illusory profit margins that mask underlying issues.
When establishing pricing strategies, the cost of goods sold calculation provides the baseline minimum price needed to avoid losses. Sophisticated pricing models build upon COGS with markup percentages ensuring adequate profit margins while remaining competitive.
From a tax perspective, COGS represents a substantial legitimate deduction that reduces taxable income. Miscalculating it can lead to overpaying taxes or triggering audits.
Unlike fixed overhead expenses, COGS varies directly with sales volume; hence, it is a variable expense that needs ongoing monitoring. For businesses involved in Financial Reporting to their stakeholders, COGS accuracy directly affects important performance measures that assess the company's situation. Trend analysis made possible by consistent tracking helps management find seasonal trends or developing cost pressures before they seriously affect profitability.
The Formula for Calculating COGS

Fundamentally, the cost of goods sold formula relies on a basic accounting concept: what you had (opening inventory), plus what you got (purchases), less what remains (close inventory). This fundamental equation catches the flow of inventory through your business over a given accounting period.
The standard formula to calculate COGS can be expressed as:
COGS = Opening Inventory + Purchases – Closing Inventory
Let's break down each component:
Opening Inventory: The entire value of inventory available for sale at the beginning of your accounting period. This value often matches your previous accounting period's closing inventory, ensuring financial continuity.
Purchases: This includes all inventory purchased during the accounting period, including manufacturer raw materials and retailer finished goods. Shipping, customs duties, and handling fees should be added to the base purchase price to prepare items for sale.
Closing Inventory: This reflects the value of unsold inventory remaining at the end of your accounting period, determined through physical counting or perpetual inventory tracking systems.
To illustrate this costs of goods sold formula in action, consider a clothing retailer with these figures for the quarter:
- Opening inventory: $75,000
- Purchases during the quarter: $125,000
- Closing inventory (determined by physical count): $85,000
Applying the formula: COGS = $75,000 + $125,000 – $85,000 = $115,000
This calculation reveals that $115,000 worth of inventory was sold during the quarter, providing the foundation for gross profit calculations and further financial analysis.
Step-by-Step Process to Calculate COGS
Accurately determining the cost of goods sold requires a systematic approach. Follow these detailed steps to ensure precision in your calculations:
Step 1: Identify Opening Inventory Value
Begin by determining the monetary value of all inventory available for sale at the start of your accounting period. This inventory valuation should align with your chosen inventory accounting method (FIFO, LIFO, or weighted average). For businesses using a perpetual inventory system, this figure is continuously updated and readily available in your inventory management software. Alternatively, those using periodic systems must rely on the previous period's ending inventory figure.
Step 2: Track All Inventory Purchases
Meticulously document every inventory acquisition throughout the accounting period. This includes not only the base purchase price but also all additional costs required to make inventory ready for sale:
- Transportation and freight charges
- Import duties and customs fees
- Insurance during transit
- Handling and storage costs directly related to acquired inventory
Using an asset tracking system significantly simplifies this process by automatically capturing purchase transactions and associated costs.
Step 3: Account for Inventory Returns and Allowances
Subtract any inventory returned to suppliers or allowances received for damaged goods. These adjustments ensure your COGS calculation reflects only inventory that genuinely contributed to your available-for-sale pool.
Step 4: Determine Closing Inventory Value
At the end of the period, conduct a comprehensive count of remaining inventory. For physical products, this typically involves a complete stocktake, where items are counted and valued according to your chosen inventory method. Businesses employing sophisticated asset utilisation tracking technologies can often determine closing inventory values without disrupting operations through continuous tracking systems.
Step 5: Apply the COGS Formula
With all components identified, apply the formula for cost of goods sold: COGS = Opening Inventory + Purchases – Closing Inventory
For example, if your manufacturing business began the month with $200,000 in inventory, purchased $350,000 in additional materials and components, and ended with $180,000 in remaining inventory, your COGS calculation would be:
COGS = $200,000 + $350,000 – $180,000 = $370,000
This figure represents the actual cost of products sold during the period, forming the foundation for gross profit determination and further financial analysis.
Different Methods for Valuing Inventory
The inventory valuation method you select significantly impacts how you calculate COGS from inventory. Three predominant approaches exist, each with distinct implications for financial reporting and tax obligations.
First-In, First-Out (FIFO)
The FIFO method assumes that inventory items purchased first are sold first—mirroring the natural flow of goods in many businesses. Under this approach, older inventory costs are allocated to COGS while newer purchases remain in ending inventory.
During inflationary periods, FIFO typically results in lower COGS figures as older, less expensive inventory is expensed first. Consequently, this method generates higher reported gross profits and potentially increased tax liabilities.
For instance, imagine a retailer purchasing three batches of identical products:
- January: 100 units at $10 each ($1,000)
- February: 100 units at $12 each ($1,200)
- March: 100 units at $15 each ($1,500)
If 150 units are sold by quarter-end, FIFO would calculate COGS as: COGS = (100 × $10) + (50 × $12) = $1,000 + $600 = $1,600
Last-In, First-Out (LIFO)
LIFO assumes that the most recently acquired inventory is sold first. This method assigns newer (typically higher) costs to COGS while older inventory costs remain in ending inventory.
In inflationary environments, LIFO generally produces higher COGS values and lower reported profits, potentially reducing tax obligations. However, this approach can create unrealistically old inventory values on the balance sheet if some inventory items are rarely fully depleted.
Using our previous example, LIFO would calculate cost of goods sold as: COGS = (100 × $15) + (50 × $12) = $1,500 + $600 = $2,100
Weighted Average Method
This approach calculates the average cost of all similar inventory items available during the period, regardless of purchase date. This single unit cost is then applied to both ending inventory and COGS calculations.
The weighted average method smooths out price fluctuations and provides a middle ground between FIFO and LIFO results. It's particularly suitable for businesses dealing with indistinguishable inventory items stored together.
For our example, the weighted average cost would be: Average cost = ($1,000 + $1,200 + $1,500) ÷ 300 units = $12.33 per unit.
Therefore, the COGS calculation would be: COGS = 150 units × $12.33 = $1,849.50
The difference between periodic and perpetual inventory systems also influences these calculations. In periodic systems, average costs are determined at the end of the accounting period, while perpetual systems recalculate average costs after each inventory transaction.




