Accounting 200Lesson 11 of 2113 min

Cost of Goods Sold — What's Really Inside COGS

COGS is a single income statement line hiding enormous complexity. Libby's Chapter 7 reveals that COGS isn't just the purchase price of inventory — it includes all direct production costs, overhead allocation decisions, and the cumulative impact of purchase price assumptions. The gross margin ratio that analysts track obsessively is shaped by every one of these choices.

What you'll learn
  • Decompose COGS into its components: direct materials, direct labor, and manufacturing overhead
  • Distinguish product costs (inventoriable) from period costs (immediately expensed)
  • Calculate the COGS equation from beginning inventory, purchases, and ending inventory
  • Explain how purchase price variances, overhead allocation rates, and volume levels interact to determine COGS
  • Analyze gross margin trends to identify pricing power, input cost shifts, and operational efficiency changes

Three Components of COGS — The Manufacturing Cost Breakdown

For retailers, COGS is straightforward: the purchase price of goods sold. For manufacturers, COGS is far more complex — it includes all costs to produce the product, not just the cost of raw materials. Libby's framework divides manufacturing costs into three categories that all flow through inventory before reaching the income statement as COGS.

ComponentDefinitionExamplesKey Measurement Issues
Direct MaterialsRaw materials that can be directly traced to finished goodsSteel in a car, flour in bread, silicon in a chipPurchase price variances; supplier price changes affect COGS immediately
Direct LaborLabor costs that can be directly traced to productionAssembly line workers, machinists, line cooksOvertime rates, benefits allocation, productivity rates
Manufacturing OverheadAll other production costs that cannot be directly traced to a specific unitFactory rent, utilities, equipment depreciation, supervisory salaries, maintenanceMust be allocated — the allocation rate assumptions affect every unit's cost

All three manufacturing components are product costs: they are first capitalized into inventory (balance sheet asset) and only flow to the income statement as COGS when the goods are sold. Period costs — selling, general, and administrative expenses — are expensed immediately in the period incurred, regardless of whether any goods were sold. This distinction matters enormously: a manufacturer that overproduces can hide costs in unsold inventory (a classic earnings manipulation called 'production stuffing').

The COGS Equation — Inventory Flow

COGS is not simply what was purchased during the period. It's the cost of the goods that were sold — which depends on what was available to sell and what remains unsold. The COGS equation formalizes this relationship:

COGS Equation

COGS = Beginning Inventory + Purchases (or Cost of Production) − Ending Inventory

Also: Ending Inventory = Beginning Inventory + Purchases − COGS

ScenarioBeginning InventoryPurchasesEnding InventoryCOGS
Stable business (same inventory)$200,000$500,000$200,000$500,000 (purchases = COGS when inventory is stable)
Building inventory$200,000$700,000$350,000$550,000 (COGS < purchases — cost is being deferred to next period)
Drawing down inventory$400,000$300,000$150,000$550,000 (COGS > purchases — prior costs flowing through to income)

When a company produces more than it sells, the excess production cost is capitalized into ending inventory — not expensed. This is legal under GAAP (product costs are inventoriable), but it means current-period COGS is artificially low relative to what production actually cost. A manufacturer facing margin pressure can temporarily boost reported gross margin by overproducing: fixed overhead gets spread over more units, unit cost falls, and COGS per unit sold decreases. The eventual inventory liquidation will reverse this — but not until a future period.

Overhead Allocation — The Hidden Gross Margin Variable

Manufacturing overhead — factory rent, utilities, equipment depreciation, supervisory salaries — cannot be traced to individual units. It must be allocated based on a predetermined rate. How this rate is set, and what activity base it uses, shapes the reported cost of every unit produced — and therefore gross margin.

Predetermined Overhead Rate

Overhead Rate = Estimated Total Manufacturing Overhead ÷ Estimated Activity Base

Activity base: direct labor hours, machine hours, units produced. Applied to actual production each period.

A factory has $10 million of fixed overhead. If it produces 500,000 units, overhead per unit = $20. If it produces 1,000,000 units, overhead per unit = $10. If production volume rises (even if sales volume doesn't), the overhead rate applied to each sold unit decreases — lowering COGS and increasing reported gross margin. This is the mechanical explanation for why many manufacturers report improving margins in periods of rising production, followed by margin compression when the excess inventory must be written down.

If actual overhead costs differ from estimated overhead applied to production, the difference is either over-absorbed (too much overhead applied) or under-absorbed (too little applied). Under-absorbed overhead is typically written off as additional COGS at year-end; over-absorbed overhead reduces COGS. These adjustments can have material effects on reported gross margin in capital-intensive industries. Analysts should check the 'cost of revenues' footnote for unusual over/under-absorption adjustments.

Gross Margin Analysis — What Changes in Gross Margin Actually Signal

Margin Waterfall — From Revenue to Net Income

Illustrative technology company · $2,800M revenue · Each step shows % of revenue

Revenue

+100.0%

$2800M

Cost of Revenue

-20.0%

$560M

Gross Profit

+80.0%

$2240M

Operating Expenses (R&D + SG&A + SBC)

-50.0%

$1400M

EBIT (Operating Income)

+30.0%

$840M

D&A Add-back

+6.4%

$180M

EBITDA

+36.4%

$1020M

Interest + Other

-2.3%

$65M

Income Taxes

-6.4%

$180M

Net Income

+21.2%

$595M

Gross Margin

80.0%

Pricing power

EBIT Margin

30.0%

Operating efficiency

EBITDA Margin

36.4%

Cash proxy (pre-capex)

Net Margin

21.2%

Equity holder return

EBITDA vs. Net Margin Gap

EBITDA margin (36.4%) exceeds net margin (21.2%) by 15.2 percentage points — reflecting interest expense, taxes, and importantly: D&A adds back only the non-cash charge, not capex (the real cash cost of maintaining assets).

Gross-to-EBIT Drop

Gross margin 80% → EBIT 30% — a 50-point drop entirely from operating expenses (R&D, sales, marketing, SBC). This is the "cost to run the business" beyond just producing the product. Compare across years to track operating leverage.

Figure 5.1 — Each step shows how much revenue dollar remains after each cost layer. The gap between EBITDA and net margin reflects interest, taxes, and the non-cash EBITDA add-back for D&A.

Gross margin is the most watched financial metric for industrial and consumer companies. But gross margin changes can come from multiple sources, and distinguishing them is critical to understanding whether the change is structural or temporary.

SourceHow It Affects Gross MarginHow to Detect ItDurability
Price changes (pricing power)Higher realized prices increase revenue faster than COGS → margin expandsASP (average selling price) trend; revenue per unit analysis; peer comparisonHigh — reflects genuine competitive position
Input cost changes (raw materials, labor)Rising input costs increase COGS without revenue offset → margin compressesCOGS as % of revenue trend; commodity price correlationMedium — eventually passed through in prices or offset by efficiency
Volume and overhead absorptionHigher production absorbs fixed overhead over more units → lower unit COGSProduction vs. sales volume comparison; inventory buildup signalLow — reverses when inventory is liquidated
Product/channel mixShifting sales toward higher-margin products or channels expands marginSegment-level gross margin analysis; product mix disclosure in MD&AMedium — depends on sustainability of mix shift

Gross Profit Margin

Gross Margin % = (Revenue − COGS) ÷ Revenue × 100%

Compare quarterly over 8–12 periods, and against 3–5 industry peers, to identify structural vs. cyclical changes.

The most dangerous pattern: gross margin begins declining quarters before revenue growth slows. This sequence typically means input costs are rising faster than the company can pass through in price — evidence of weakening pricing power. By the time revenue growth slows (customers finally react to higher prices or find alternatives), the margin compression has compounded for multiple periods. Gross margin is a leading indicator; revenue growth is often a lagging one. Companies that maintain gross margin while growing volume are demonstrating genuine competitive strength.

Key Takeaways

  • Manufacturing COGS has three components: direct materials, direct labor, and manufacturing overhead — all three are product costs that flow through inventory before reaching the income statement
  • COGS = Beginning Inventory + Purchases − Ending Inventory: building inventory defers cost; drawing down inventory accelerates past costs into current COGS
  • Overhead allocation uses predetermined rates — when production volume rises, fixed overhead is spread over more units, reducing per-unit COGS even if actual costs didn't change
  • Inventory overproduction temporarily inflates gross margin by deferring fixed costs into ending inventory — the reversal comes when that inventory is sold or written down
  • Gross margin changes come from four sources: pricing power, input costs, volume/overhead absorption, and product mix — each has different durability and investment implications

Quiz — 3 Questions

Answer one at a time
Question 1 of 30 answered

A manufacturer has beginning inventory of $300,000, purchases raw materials costing $1,200,000 during the year, and ends with $400,000 in inventory. What is COGS?

A$1,200,000 — COGS equals purchases
B$1,100,000 — beginning + purchases minus ending inventory
C$1,500,000 — beginning + purchases
D$800,000 — ending inventory minus beginning inventory subtracted from purchases