Homeโ€บGlossaryโ€บCOGS

COGS

General

Cost of Goods Sold

The direct cost of producing the goods or services a business sold during a period, materials and direct labor, used to calculate gross profit and gross margin.

Definition

COGS is the direct cost of producing the goods or services a business actually sold during a given period, materials, direct labor, and manufacturing overhead directly tied to production. It excludes indirect costs like marketing, rent, or administrative salaries, which are counted separately as operating expenses further down the income statement.

COGS is the foundation for calculating gross margin, revenue minus COGS gives gross profit, and that figure divided by revenue gives gross margin percentage. It also shows up directly in marketing ROI calculations, since subtracting both COGS and ad spend from revenue gives a truer picture of actual campaign profitability than raw revenue alone.

Formula

COGS = Beginning Inventory + Purchases/Production Costs โˆ’ Ending Inventory

Gross Profit = Revenue โˆ’ COGS

Marketing ROI = (Revenue โˆ’ COGS โˆ’ Ad Spend) / Ad Spend ร— 100

Worked Example

A retailer starts the quarter with โ‚น5,00,000 in inventory, purchases โ‚น12,00,000 more during the quarter, and ends with โ‚น4,00,000 in remaining inventory.

  • COGS: โ‚น5,00,000 + โ‚น12,00,000 โˆ’ โ‚น4,00,000 = โ‚น13,00,000

If the retailer generated โ‚น20,00,000 in revenue during the same quarter, gross profit is โ‚น20,00,000 โˆ’ โ‚น13,00,000 = โ‚น7,00,000, a 35% gross margin, before any operating expenses like rent or marketing are subtracted.

Key Things to Know

  • Only direct production costs count, not overhead like marketing or admin. COGS is deliberately narrow, capturing what it costs to produce what was actually sold, not the full cost of running the business.
  • The foundation for gross margin and gross profit calculations. Both metrics start from subtracting COGS from revenue, making accurate COGS tracking essential for meaningful margin analysis.
  • Matters directly for true marketing ROI, not just gross revenue. Subtracting COGS alongside ad spend from revenue gives a more honest profitability picture than looking at revenue growth alone.
  • Inventory accounting method affects the exact COGS figure. FIFO, LIFO, and weighted average inventory methods can produce different COGS numbers for the same underlying transactions, worth knowing which method a business uses when comparing figures.
  • Service businesses have an equivalent concept, sometimes labeled differently. Cost of Services or Cost of Revenue serves the same purpose for businesses without physical inventory, capturing the direct cost of delivering what was sold.

Frequently Asked Questions

What's included in COGS versus operating expenses?
COGS covers direct costs tied to production, materials, direct labor, and manufacturing overhead. Operating expenses like rent, marketing, and administrative salaries sit separately, further down the income statement, not tied directly to production volume.
Why does marketing ROI subtract COGS as well as ad spend?
Because raw revenue doesn't reflect actual profitability, subtracting both the cost to produce what was sold and the cost to market it gives a truer picture of the actual profit generated by a marketing campaign, not just the topline sales figure.
Does COGS include shipping costs to the customer?
It depends on the business and accounting convention, some include outbound shipping in COGS, others classify it as a separate operating expense, check the specific accounting treatment being used before comparing COGS figures across businesses.
How is COGS different from total operating costs?
COGS is specifically the direct cost of producing what was sold, while total operating costs include COGS plus every other expense running the business, marketing, rent, salaries not tied to production, and more.
Can COGS be calculated for a service business, not just physical products?
Yes, though it's sometimes called Cost of Services or Cost of Revenue instead, covering the direct labor and resources needed to deliver the service, the underlying concept, direct cost of what was sold or delivered, applies similarly.