Income StatementUpdated Jun 1, 2026

Cost of Goods Sold (COGS)

What it cost the company to make or buy the products it sold during the period โ€” raw materials, factory labour, packaging.

Formula

COGS = beginning inventory + purchases โˆ’ ending inventory

Example

The same coffee shop

Setup
Buys $220 of beans, milk, and cups at the start of the day; $30 worth is left over at close.
Calculation
$220 + $0 โˆ’ $30 = $190
Takeaway
$190 of ingredients went into the day's drinks. That's COGS.

What it is

COGS captures the direct costs of producing whatever the company sold: raw materials, the labour that physically made the product, the packaging, the freight in.

It does NOT include rent for the head office, marketing, or the CFO's salary โ€” those land in operating expenses.

Why people watch it

COGS tells you how much it actually costs the company to deliver one unit of its product. The smaller the gap between revenue and COGS, the tougher the business is on margins.

Service vs. product companies

For pure software companies, COGS often shows up as "Cost of Revenue" and includes hosting fees and customer-support payroll instead of raw materials.

Related