What Is Cost of Goods Sold (COGS)?

Formula, what is included, and a worked example.

Home › Accounting Glossary › Cost of Goods Sold

Quick answerCost of goods sold (COGS) is the direct cost of producing or buying the goods a business sold during a period. It is deducted from revenue to find gross profit.
COGS = Opening inventory + Purchases − Closing inventory
Appears onIncome statement
IncludesDirect materials, direct labour, direct production costs
ExcludesMarketing, office rent, admin salaries

COGS in plain English

COGS only counts the cost of goods that were actually sold. Stock still on the shelf at the end of the period stays in inventory and is not part of COGS yet.

Worked example

Opening inventory2,000
Add: purchases10,000
Goods available for sale12,000
Less: closing inventory(3,000)
Cost of goods sold9,000

If revenue was 15,000, gross profit is 15,000 − 9,000 = 6,000.

Common mistakes
  • Including operating expenses such as rent or marketing in COGS.
  • Forgetting to adjust for closing inventory.

Frequently asked questions

What is the difference between COGS and operating expenses?

COGS is the direct cost of the goods sold. Operating expenses are the costs of running the business, such as rent and marketing.

Do service businesses have COGS?

Many report a similar “cost of services” for direct costs such as the wages of staff delivering the service.

How does COGS affect gross profit?

Lower COGS means higher gross profit, because gross profit equals revenue minus COGS.

Keep learning

This page is for general learning. Accounting rules vary by country and standard.