Cost of goods sold (COGS). What it means.

Cost of goods sold (COGS) is the direct cost of producing the goods or delivering the services a company sold in a period. Subtracting it from revenue gives gross profit.

By Brady Heinrich · Updated

Definition

Cost of goods sold (COGS) is the direct cost of producing the goods or delivering the services a company sold in a period. Subtracting it from revenue gives gross profit.

What is cost of goods sold?

Cost of goods sold is the total of the costs that exist only because a sale was made: the materials, labour and delivery that go into each unit. It is the first cost subtracted from revenue on the income statement, and the result is gross profit.

The test for whether something is COGS: if you sold nothing, would this cost disappear? Product you bought to resell would. The marketing manager's salary would not.

COGS formula

For a business that holds stock, the formula is:

COGS = opening inventory + purchases during the period - closing inventory

This counts only the stock that left the shelves. Stock bought but not yet sold stays on the balance sheet as an asset and becomes COGS when it sells.

For a business with no stock, such as software or services, COGS is simply the sum of the direct delivery costs for the period. Software companies often call it cost of revenue.

What is included in COGS?

BusinessIncludedNot included
Retail and ecommerceProduct cost, freight in, packagingAdvertising, store rent, head office staff
ManufacturingRaw materials, production wages, factory overheadSales team, research and development
SoftwareHosting, third-party tools inside the product, customer support, payment processingEngineers building new features, sales and marketing
Agencies and servicesPay for the people doing client work, subcontractorsAccount managers selling new work, office costs

The line between COGS and operating expenses involves judgment, and companies draw it differently. What matters is drawing it the same way every period, so the trend in gross margin means something.

Why COGS matters

COGS decides gross margin, and gross margin decides how much a company can afford to spend to win a customer. Two companies with the same revenue and very different COGS are not the same size of business in any useful sense.

COGS also affects tax, because it reduces taxable profit. The rules on what may be included and how inventory is valued are set by tax authorities, so follow your accountant's method, not a blog's.

An example

A coffee roaster starts the quarter with $20,000 of inventory, buys $65,000 of beans and packaging, and ends with $25,000 in stock. COGS = 20,000 + 65,000 - 25,000 = $60,000. Revenue for the quarter is $150,000, so gross profit is 150,000 - 60,000 = $90,000 and gross margin is 60%.

The common mistake

Putting costs in whichever bucket flatters the numbers. Moving support or hosting out of COGS lifts gross margin on paper but hides the true cost of serving each customer, and a buyer or investor will reclassify it in diligence.

How people search for cost of goods sold

  • cogs60,500 a month
  • cogs meaning18,100 a month
  • cost of goods sold8,100 a month
  • cogs formula6,600 a month
  • cost of goods sold formula5,400 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.