Understanding Cost of Goods Sold

Cost of goods sold (COGS) is the total expenditure required to produce goods that a company actually sells during a specific accounting period. Unlike operating expenses—which cover administration, marketing, and distribution—COGS captures only costs directly linked to manufacturing.

Three main components make up COGS:

  • Raw materials: Unprocessed inputs transformed into finished products, such as steel in automotive manufacturing or fabric in textile production.
  • Direct labour: Wages, salaries, and benefits paid to factory workers and production staff whose efforts are traceable to specific goods.
  • Manufacturing overhead: Indirect production costs including equipment depreciation, factory utilities, maintenance, and quality control—items essential to manufacturing but not easily assigned to individual units.

COGS excludes sales commissions, shipping costs, and administrative salaries because these occur after production or support the overall business rather than specific products.

The COGS Formula

The standard COGS calculation accounts for inventory movement throughout an accounting period. Beginning inventory represents goods available at the start, purchases add newly acquired stock, and ending inventory reflects unsold units remaining on hand.

COGS = Beginning Inventory + Purchases − Ending Inventory

  • Beginning Inventory — The cost value of goods in stock at the start of the accounting period
  • Purchases — The total cost of raw materials and inventory acquired during the period
  • Ending Inventory — The cost value of unsold goods remaining in stock at the period's end

Step-by-Step Calculation Example

Consider a furniture manufacturer closing its quarterly review. Here's how COGS flows through the formula:

  • Beginning inventory: $45,000 (desks, chairs, and materials on hand January 1)
  • Purchases: $120,000 (wood, hardware, and labour costs added during Q1)
  • Ending inventory: $38,000 (unsold units valued at cost on March 31)

Applying the formula: COGS = $45,000 + $120,000 − $38,000 = $127,000

This $127,000 represents the direct cost of furniture sold during the quarter. The difference between revenue and COGS yields gross profit, which funds operating expenses and profit margins.

Why COGS Matters for Business Decision-Making

Profitability assessment: COGS directly influences gross profit margin—the percentage of revenue remaining after production costs. A lower COGS ratio indicates efficient manufacturing and stronger financial health. Comparing COGS across periods reveals whether production efficiency is improving or deteriorating.

Pricing strategy: Understanding true production costs prevents underselling. If COGS is $50 per unit, pricing at $55 destroys profitability. Knowing COGS allows you to set margins that cover operating expenses and generate sustainable returns.

Inventory management: Monitoring ending inventory signals whether stock levels are optimal. Excess inventory ties up capital and risks obsolescence; insufficient inventory sacrifices sales opportunities. COGS calculations help identify when restocking or clearance is needed.

Tax implications: COGS is deductible as a business expense, directly reducing taxable income. Accurate tracking ensures you claim every legitimate production cost and avoid underreporting.

Common Pitfalls and Best Practices

Avoid these frequent mistakes when calculating and managing COGS.

  1. Misclassifying operating expenses as COGS — Delivery fees to customers, sales commissions, and office rent are operating expenses, not production costs. Including them inflates COGS and distorts your true manufacturing efficiency. Separate these carefully in your accounting system.
  2. Ignoring inventory valuation methods — FIFO (first-in, first-out) and weighted-average cost produce different COGS figures during inflation. Choose a method consistent with your business model and apply it uniformly. Changing methods mid-year creates confusion and complicates year-on-year comparison.
  3. Forgetting indirect manufacturing overhead — Factory electricity, equipment maintenance, and quality inspections are part of COGS even though they're not labour or materials. Underestimating overhead artificially lowers COGS and masks true production costs.
  4. Allowing inventory shrinkage to slip through — Theft, damage, and spoilage reduce inventory without generating sales. If not documented, ending inventory overstates actual goods on hand, understating COGS and distorting profitability.

Frequently Asked Questions

How does COGS differ from operating expenses?

COGS encompasses only direct manufacturing costs—materials, labour, and factory overhead tied to production. Operating expenses cover everything else: sales salaries, advertising, rent for office space, and utilities for non-manufacturing areas. A company might have $500,000 in COGS but $300,000 in operating expenses. COGS is subtracted from revenue to calculate gross profit; operating expenses are deducted from gross profit to determine net operating income. Correctly distinguishing between them is vital for accurate financial analysis and tax reporting.

What happens if ending inventory is higher than beginning inventory plus purchases?

This scenario is mathematically impossible in normal circumstances. Ending inventory cannot exceed the total available inventory (beginning plus purchases). If your calculation shows this, you've likely made a data entry error or misunderstood your inventory valuation. Double-check that all three figures are recorded in consistent units and currency. Ending inventory should always be less than or equal to the sum of beginning inventory and purchases, assuming no data entry mistakes.

Should I include depreciation of manufacturing equipment in COGS?

Yes, depreciation of factory machinery and production equipment is considered manufacturing overhead and belongs in COGS. Depreciation reflects the gradual cost of using assets to produce goods. However, depreciation of office equipment or vehicles used solely for administration belongs in operating expenses. The key question: Is the asset directly involved in manufacturing? If yes, its depreciation is part of COGS. This distinction ensures your cost of goods sold accurately reflects production resource consumption.

How often should I calculate COGS?

Most businesses calculate COGS quarterly and annually for financial statements and tax filings. Some manufacturers with tight inventory management recalculate monthly or even weekly. More frequent calculation reveals production trends and helps catch inventory discrepancies early. However, calculation frequency should match your accounting system's capability and your business's complexity. A seasonal business might focus on quarterly reviews to track cost swings, while a high-volume manufacturer benefits from monthly tracking.

Can COGS be used to compare competitiveness between companies?

COGS alone doesn't reveal competitiveness; context matters. Two companies might have identical COGS but operate in different industries with different product quality and markets. More useful is the COGS ratio: COGS ÷ Revenue. A ratio of 0.4 (40%) means 40 cents of revenue covers production, leaving 60 cents for operating expenses and profit. Compare this ratio within your industry, across your own product lines, or against direct competitors to gauge efficiency. Lower ratios typically signal competitive advantage, but quality, brand, and innovation also drive success.

What inventory valuation method should my business use?

Choose between FIFO (first-in, first-out), LIFO (last-in, first-out), or weighted-average cost. FIFO assumes older inventory sells first and often results in lower COGS during inflation because cheaper historical costs are recognized first. LIFO does the opposite, matching recent, higher costs to sales. Weighted-average smooths price swings by assigning a blended cost to all units. Select based on your industry norms, whether costs are rising or falling, and tax strategy—LIFO offers tax benefits in inflationary periods. Consistency is crucial: once chosen, stick with your method unless circumstances truly demand a change.

More finance calculators (see all)