Cost of goods sold (COGS)

Also called cost of sales.

Metrics and finance4min read

Cost of goods sold (COGS) is the expense of acquiring or producing the products a business sold during a period. It includes inventory costs assigned to those sales, such as materials, production labor and factory overhead, but excludes selling and general administrative expenses.

Service and software businesses often label their comparable delivery expense "cost of revenue."

Key takeaways

  • Buying inventory does not immediately create COGS. Unsold inventory remains an asset, subject to any required write-downs.
  • Gross profit equals revenue minus COGS. Gross margin expresses that profit as a percentage of revenue.
  • COGS includes allocated production overhead, not just raw materials. Advertising and general office expenses belong elsewhere.
  • A gross-margin comparison is useful only when the businesses include comparable costs.

How to calculate COGS

For an inventory-based business:

COGS = Beginning inventory + Inventory costs added during the period - Ending inventory

A retailer's added inventory costs include merchandise purchases and freight-in. A manufacturer's costs include materials, production labor and allocated factory overhead. Do not add labor and overhead again if they are already included in the inventory-cost figure.

The calculation matches the cost of products sold with the revenue from those products. That is why COGS is not simply the cash paid to suppliers during the month.

Service businesses do not need an inventory formula for services that create no inventory. Instead, they identify the costs of providing the services sold during the period.

Selling $100,000 of products at a 40% gross margin

A product startup records $100,000 of revenue this quarter and $35,000 of operating expenses outside COGS. Its inventory figures include all applicable production costs, with no write-downs or other adjustments.

ItemCalculationAmount
Beginning inventoryCarried over from last quarter$20,000
Inventory costs addedPurchases and production costs$70,000
Ending inventoryProducts still unsold$30,000
COGS$20,000 + $70,000 - $30,000$60,000
Gross profit$100,000 - $60,000$40,000
Gross margin$40,000 ÷ $100,00040%
Operating profit$40,000 - $35,000$5,000

The $30,000 of ending inventory is not COGS yet, even if the company has already paid for it.

If costs attributable to the products sold rise by $10,000, COGS becomes $70,000. With revenue and other expenses unchanged, gross margin falls to 30% and the $5,000 operating profit becomes a $5,000 operating loss. That cost increase changes whether the business makes money, not just how its accounts look.

COGS versus operating expenses

Both reduce profit, but they appear at different points on the income statement.

DistinctionCOGSOperating expenses outside COGS
What it coversAcquiring or producing products soldSelling and administering the business
ExamplesPurchased merchandise, assembly wages, factory overheadAdvertising, sales salaries, headquarters rent
Income-statement positionSubtracted to calculate gross profitSubtracted after gross profit

A factory's rent can belong in inventory costs and ultimately COGS. The headquarters' rent generally does not. "Rent" or "payroll" alone is not enough to decide the classification; what the expense supports matters.

What financial statements show

SEC Regulation S-X, Rule 5-03, calls for costs applicable to sales and revenues to be presented separately from selling, general and administrative expenses. This is a public-company reporting rule, not a mandatory template for every private startup, but the distinction is useful when reading either company's accounts.

There is no universal "normal" COGS percentage across retailers, manufacturers and software businesses. Question comparisons that use different cost definitions.

For a startup fundraising deck, explain the major costs behind gross margin. Customer-facing cloud hosting, for example, is part of delivering a software service. Moving a delivery cost below gross profit does not improve the underlying economics.

Questions people ask

What do COGS mean in business?

COGS stands for cost of goods sold. It measures the costs assigned to products sold during a particular period, rather than everything the business bought or spent.

What are the two types of COGS?

There is no standard two-type classification. People may mean direct versus indirect production costs, or variable versus fixed production costs. Materials are usually direct and variable; factory rent is indirect and fixed. These are different ways to classify costs, not competing definitions of COGS.

How can I calculate the COGS?

For inventory businesses, add beginning inventory to inventory costs added during the period, then subtract ending inventory. Use a consistent inventory-costing method and include applicable production costs, not just supplier invoices.

Is COGS an expense or revenue?

COGS is an expense. Revenue is what the company earns from sales; subtracting COGS from revenue gives gross profit. Gross profit still has to cover operating expenses before the company earns an operating profit.

Related terms

Sources

  1. Financial Accounting Standards Board, Accounting Standards Codification Topic 330, "Inventory."
  2. U.S. Securities and Exchange Commission, Regulation S-X, Rule 5-03, "Statements of comprehensive income."
  3. OpenStax, Principles of Accounting, Volume 1: Financial Accounting, 2019.