Cost of Goods Sold: Definition and COGS Meaning

Glossary definition of cost of goods sold, its components, and why service vendor invoices inside it are rarely audited. Not every one does.

Twitter LinkedIn WhatsApp
Ask AI: ChatGPT Claude Gemini Grok
Cost of Goods Sold: Definition and COGS Meaning

Cost of goods sold, or COGS, is the direct cost of producing whatever a company sells: raw materials, direct labor on the production line, and the manufacturing overhead required to make the product. \n\nFor a manufacturer or distributor, COGS is also where a large share of vendor invoices live: freight bringing materials in, contract labor on the floor, and equipment maintenance keeping the line running. Each of those invoices is supposed to match a contract. Not every one does.

1. What counts as cost of goods sold?

Cost of goods sold includes every cost directly tied to producing what a company sells: raw materials, components, direct production labor, and the manufacturing overhead, utilities, equipment depreciation, plant maintenance, allocated to the production process. It excludes costs incurred after production, such as outbound shipping to the customer, sales commissions, and corporate overhead, which are reported as operating expense instead.

The dividing line is whether a cost attaches to the product before it is finished and ready for sale, or after.

Direct materials are the components and raw inputs that become part of the finished product: steel, resin, packaging. Direct labor is the wages of workers physically producing it, including contract labor working directly on production on a fabrication or assembly line. Both post to COGS as units move through production.

Overhead covers costs that support production without being traceable to a single unit: plant utilities, equipment maintenance and repair, calibration, and depreciation on production equipment. These are allocated across output rather than tracked per unit, which is also what makes an overcharge inside them harder to spot on a single invoice.

2. Where does COGS sit on the income statement?

Revenue minus cost of goods sold equals gross profit, the first profitability measure on the income statement. Operating expenses, selling, general and administrative costs, are subtracted from gross profit to reach operating income. COGS is reported before any of the costs of running sales, marketing, or corporate functions, which is why a change in COGS moves gross margin directly and immediately.

Gross margin, COGS measured against revenue, is the metric most finance teams watch first when performance shifts.

Because COGS is usually reported as one aggregated line, an invoice-level problem inside it does not appear as its own item. It shows up only as a lower gross margin percentage, and a lower gross margin has many plausible explanations: input cost inflation, product mix, volume. A single incorrect vendor invoice rarely gets isolated from that noise without someone deliberately checking it.

3. Why is COGS harder to audit than operating expense?

COGS is built from a much higher volume of vendor invoices than most operating expense categories, spanning freight, MRO, contract labor, and maintenance, each governed by its own contract with its own rate card, volume tier, or NTE cap. Operating expense invoices are fewer and more visible individually. COGS invoices are numerous, contractually varied, and easy to post without anyone checking the invoice against the underlying agreement.

A controller reviewing a handful of monthly software subscriptions in operating expense can reasonably eyeball each one.

A controller reviewing freight, contract labor, and maintenance and repair invoices inside COGS is looking at a high volume of line items a month, each one needing to be checked against a rate card, a volume tier, or a contract's not-to-exceed cap. Three-way matching in an ERP checks the invoice against a purchase order and receipt. It does not test whether a surcharge on that invoice matches the accessorial rate the contract actually specifies.

4. How does an incorrect COGS invoice affect reported margin?

Every dollar an incorrect invoice overstates inside cost of goods sold is a dollar of gross margin the company never had. Unlike a one-time write-off, this kind of drift compounds silently month over month because the same contract term keeps being misapplied on every subsequent invoice, and gross margin reporting has no mechanism to isolate it from legitimate cost movement.

A vendor billing an expired volume discount rate, or applying a surcharge outside its contractual trigger condition, does not generate an alert. It generates a slightly lower gross margin, repeated on every invoice cycle until someone checks the underlying contract terms.

That is a distinct problem from a legitimate price increase, where a vendor is charging exactly what its contract now allows and the correct response is to accept the new cost basis, not flag it. Telling the two apart requires checking the invoice against the contract clause it claims to be following.

For the wider pattern this sits inside, start with the margin drift guide.

5. Frequently Asked Questions (People Also Ask)

What is cost of goods sold?

Cost of goods sold, or COGS, is the direct cost of producing what a company sells: materials, direct labor, and the manufacturing overhead tied to production. It sits on the income statement above gross profit and excludes selling, general, and administrative expense.

Does COGS include freight?

Inbound freight to bring raw materials to a plant is typically capitalized into COGS as part of inventory cost. Outbound freight to ship finished goods to a customer is usually a selling expense, not COGS. The line an invoice lands on depends on which leg of the shipment it covers.

Is contract labor part of COGS?

Contract labor working directly on production, a temp operator on a fabrication line, for example, is a COGS item. Contract labor supporting administrative or sales functions is not. The distinction is about what the labor touches, not who employs the worker.

Why does margin drift hide inside COGS instead of showing up as an expense line?

COGS is reported as a single aggregated figure on most income statements. A vendor invoice with an overcharge does not appear as its own line; it is absorbed into the total and shows up only as a slightly lower gross margin, which is easy to attribute to volume or mix instead.

How is COGS different from operating expense for audit purposes?

Operating expense invoices tend to be reviewed individually because there are fewer of them. COGS is built from a high volume of vendor invoices across freight, MRO, and contract labor, each matched against its own contract terms, which is exactly the volume and complexity where invoice-to-contract matching finds discrepancies.

Can a rising COGS percentage be a legitimate price increase rather than an error?

Yes. Input costs move, and a vendor is entitled to raise prices under the terms it agreed to. The question is whether the increase matches what the contract actually authorizes, not whether COGS moved at all.

What service categories inside COGS are worth checking first?

Freight and 3PL, contract labor and staffing, and maintenance and repair are the categories most directly tied to production and most likely to carry a rate card, a volume tier, or an NTE cap that an invoice can violate without anyone noticing.

Does an ERP system verify that a COGS invoice matches its contract?

An ERP records the invoice and can flag a mismatch against a purchase order or receipt. It does not typically interpret a rate card, a volume tier threshold, or a rebate clause written into a separate contract document, so a contractually incorrect invoice can still post cleanly.

1. What counts as cost of goods sold?

Cost of goods sold includes every cost directly tied to producing what a company sells: raw materials, components, direct production labor, and the manufacturing overhead, utilities, equipment depreciation, plant maintenance, allocated to the production process. It excludes costs incurred after production, such as outbound shipping to the customer, sales commissions, and corporate overhead, which are reported as operating expense instead. The dividing line is whether a cost attaches to the product before it is finished and ready for sale, or after. Direct materials are the components and raw inputs that become part of the finished product: steel, resin, packaging. Direct labor is the wages of workers physically producing it, including [contract labor working directly on production](/glossary/contract-labor-and-staffing-audit) on a fabrication or assembly line. Both post to COGS as units move through production. Overhead covers costs that support production without being traceable to a single unit: plant utilities, equipment [maintenance and repair](/glossary/maintenance-and-repair-audit), calibration, and depreciation on production equipment. These are allocated across output rather than tracked per unit, which is also what makes an overcharge inside them harder to spot on a single invoice.

2. Where does COGS sit on the income statement?

Revenue minus cost of goods sold equals gross profit, the first profitability measure on the income statement. Operating expenses, selling, general and administrative costs, are subtracted from gross profit to reach operating income. COGS is reported before any of the costs of running sales, marketing, or corporate functions, which is why a change in COGS moves gross margin directly and immediately. Gross margin, COGS measured against revenue, is the metric most finance teams watch first when performance shifts. Because COGS is usually reported as one aggregated line, an invoice-level problem inside it does not appear as its own item. It shows up only as a lower gross margin percentage, and a lower gross margin has many plausible explanations: input cost inflation, product mix, volume. A single incorrect vendor invoice rarely gets isolated from that noise without someone deliberately checking it.

3. Why is COGS harder to audit than operating expense?

COGS is built from a much higher volume of vendor invoices than most operating expense categories, spanning freight, MRO, contract labor, and maintenance, each governed by its own contract with its own rate card, volume tier, or NTE cap. Operating expense invoices are fewer and more visible individually. COGS invoices are numerous, contractually varied, and easy to post without anyone checking the invoice against the underlying agreement. A controller reviewing a handful of monthly software subscriptions in operating expense can reasonably eyeball each one. A controller reviewing freight, contract labor, and maintenance and repair invoices inside COGS is looking at a high volume of line items a month, each one needing to be checked against [a rate card](/glossary/rate-card), [a volume tier](/glossary/volume-tier), or a contract's not-to-exceed cap. Three-way matching in an ERP checks the invoice against a purchase order and receipt. It does not test whether a surcharge on that invoice matches the accessorial rate the contract actually specifies.

4. How does an incorrect COGS invoice affect reported margin?

Every dollar an incorrect invoice overstates inside cost of goods sold is a dollar of gross margin the company never had. Unlike a one-time write-off, this kind of drift compounds silently month over month because the same contract term keeps being misapplied on every subsequent invoice, and gross margin reporting has no mechanism to isolate it from legitimate cost movement. A vendor billing an expired volume discount rate, or applying a surcharge outside its contractual trigger condition, does not generate an alert. It generates a slightly lower gross margin, repeated on every invoice cycle until someone checks the underlying contract terms. That is a distinct problem from a [legitimate price increase](/guides/margin-drift-vs-legitimate-price-increases-how-to-tell-them), where a vendor is charging exactly what its contract now allows and the correct response is to accept the new cost basis, not flag it. Telling the two apart requires checking the invoice against the contract clause it claims to be following. For the wider pattern this sits inside, start with the [margin drift](/insights/margin-drift-spend-leakage-guide) guide.

Questions & Answers

What is cost of goods sold?

Cost of goods sold, or COGS, is the direct cost of producing what a company sells: materials, direct labor, and the manufacturing overhead tied to production. It sits on the income statement above gross profit and excludes selling, general, and administrative expense.

Does COGS include freight?

Inbound freight to bring raw materials to a plant is typically capitalized into COGS as part of inventory cost. Outbound freight to ship finished goods to a customer is usually a selling expense, not COGS. The line an invoice lands on depends on which leg of the shipment it covers.

Is contract labor part of COGS?

Contract labor working directly on production, a temp operator on a fabrication line, for example, is a COGS item. Contract labor supporting administrative or sales functions is not. The distinction is about what the labor touches, not who employs the worker.

Why does margin drift hide inside COGS instead of showing up as an expense line?

COGS is reported as a single aggregated figure on most income statements. A vendor invoice with an overcharge does not appear as its own line; it is absorbed into the total and shows up only as a slightly lower gross margin, which is easy to attribute to volume or mix instead.

How is COGS different from operating expense for audit purposes?

Operating expense invoices tend to be reviewed individually because there are fewer of them. COGS is built from a high volume of vendor invoices across freight, MRO, and contract labor, each matched against its own contract terms, which is exactly the volume and complexity where invoice-to-contract matching finds discrepancies.

Margin Drift Resources