Cost of Goods Sold (COGS)

FundamentalFundamental Analysis2 min read

Quick Definition

The direct costs attributable to producing the goods or services a company sells, including materials and direct labor.

Key Takeaways

  • Direct costs of producing goods or services sold
  • Gross Profit = Revenue - COGS
  • Does NOT include indirect costs like marketing, admin, or R&D
  • Higher COGS as percentage of revenue means lower gross margins
  • COGS trends reveal pricing power, input cost pressure, and efficiency

What Is Cost of Goods Sold (COGS)?

Cost of goods sold (COGS) represents the direct costs of producing the products or services that a company sells during a period. For a manufacturer, COGS includes raw materials, direct labor, and manufacturing overhead directly tied to production. For a retailer, it's the wholesale cost of merchandise. For a software company, COGS (often called cost of revenue) might include server hosting costs, customer support, and third-party software licenses.

COGS is the first expense subtracted from revenue on the income statement, producing gross profit. The formula is: Gross Profit = Revenue - COGS. This relationship makes COGS critical for understanding a company's fundamental profitability. Gross margin (gross profit as a percentage of revenue) reveals how much of each revenue dollar remains after covering direct costs. Companies with high gross margins (like software at 70-85%) have more money left for R&D, marketing, and profit than low-margin businesses (like grocery at 25-30%).

For investors, COGS trends reveal important information about a business. Rising COGS as a percentage of revenue might indicate increasing input costs, loss of pricing power, or product mix shift toward lower-margin items. Companies that can reduce COGS through economies of scale, automation, or supply chain optimization tend to expand margins over time. COGS does NOT include indirect costs like marketing, administration, or research — those fall under operating expenses (OpEx). Understanding the distinction between COGS and OpEx is essential for financial analysis, as they behave differently and have different implications for business quality.

Cost of Goods Sold (COGS) Example

  • 1A bakery spending $3 on ingredients to make a $10 cake has COGS of $3 and gross profit of $7 per cake.
  • 2Apple's COGS includes component costs (chips, screens), assembly labor, and warranty provisions.
  • 3SaaS companies report "cost of revenue" instead of COGS, which includes hosting and customer success costs.