Cost of Goods Sold, almost always shortened to COGS, is the total direct cost of producing the goods or delivering the services a company actually sold during a reporting period. It includes the raw materials or inventory consumed, the direct labour of people who physically made the product or delivered the service, and the production overhead directly tied to output, such as factory utilities or equipment depreciation on the production line. It appears on the income statement immediately below revenue, and subtracting it from revenue produces gross profit, one of the first and most closely watched profitability figures a company reports.
What's included in COGS
COGS captures costs that scale directly with production or sales volume: the materials that go into a manufactured product, the wholesale cost of goods a retailer buys to resell, the direct labour of production workers, and manufacturing overhead that is specifically tied to making the product, such as factory rent or machine depreciation. It deliberately excludes costs that exist regardless of how much is produced, such as sales commissions, marketing spend, administrative salaries and corporate overhead, which instead sit further down the income statement as operating expenses. This separation is what lets gross profit measure how efficiently a company turns inputs into sold output, isolated from how well it manages everything else.
Calculating COGS
The standard formula is beginning inventory plus purchases or production costs during the period, minus ending inventory: whatever inventory a company had at the start, added to what it bought or made during the period, minus what is left unsold at the end, is by definition what was actually sold. This structure is also why COGS is directly affected by which inventory valuation method a company uses — first-in-first-out, last-in-first-out, or weighted average — since each method assigns a different cost to the units assumed to have been sold versus the units remaining in ending inventory.
COGS and inventory
COGS and inventory are two sides of the same cost: every dollar that has not yet moved from inventory into COGS is still sitting on the balance sheet as an asset, and every dollar that leaves inventory as goods are sold moves onto the income statement as an expense. This relationship is why rising COGS alongside falling inventory is a normal sign of strong sales, while rising inventory alongside flat or falling COGS can signal that goods are piling up unsold, a pattern closely tied to inventory turnover.
Why COGS matters beyond gross profit
Because COGS sits at the top of the income statement, it drives gross margin, one of the most widely compared metrics across companies in the same industry, and it is also the figure used to judge how exposed a company is to rising input costs, supplier price changes or currency swings on imported materials. A company whose COGS is rising faster than its revenue is losing pricing power or facing higher input costs even if its total revenue is still growing, which is exactly the kind of deterioration that a glance at revenue alone would miss entirely.
COGS for service businesses
Businesses that sell services rather than physical goods still calculate a version of COGS, sometimes labelled cost of services or cost of revenue, covering the direct cost of delivering the service — the wages of staff who perform the work, materials consumed directly in delivering it, and any direct subcontractor costs — while excluding sales, marketing and general administrative costs the same way a manufacturer would. A consulting firm's cost of revenue, for instance, is largely the billable hours of the consultants who worked on client engagements, while a software company's cost of revenue typically covers hosting infrastructure and customer support rather than any physical materials at all. Whichever label a particular industry uses, the underlying logic stays the same: isolate the direct cost of what was actually delivered to customers from the broader cost of running the business around it.