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.
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.
| Component | Definition | Examples | Key Measurement Issues |
|---|---|---|---|
| Direct Materials | Raw materials that can be directly traced to finished goods | Steel in a car, flour in bread, silicon in a chip | Purchase price variances; supplier price changes affect COGS immediately |
| Direct Labor | Labor costs that can be directly traced to production | Assembly line workers, machinists, line cooks | Overtime rates, benefits allocation, productivity rates |
| Manufacturing Overhead | All other production costs that cannot be directly traced to a specific unit | Factory rent, utilities, equipment depreciation, supervisory salaries, maintenance | Must 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').
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
| Scenario | Beginning Inventory | Purchases | Ending Inventory | COGS |
|---|---|---|---|---|
| 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.
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.
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.
| Source | How It Affects Gross Margin | How to Detect It | Durability |
|---|---|---|---|
| Price changes (pricing power) | Higher realized prices increase revenue faster than COGS → margin expands | ASP (average selling price) trend; revenue per unit analysis; peer comparison | High — reflects genuine competitive position |
| Input cost changes (raw materials, labor) | Rising input costs increase COGS without revenue offset → margin compresses | COGS as % of revenue trend; commodity price correlation | Medium — eventually passed through in prices or offset by efficiency |
| Volume and overhead absorption | Higher production absorbs fixed overhead over more units → lower unit COGS | Production vs. sales volume comparison; inventory buildup signal | Low — reverses when inventory is liquidated |
| Product/channel mix | Shifting sales toward higher-margin products or channels expands margin | Segment-level gross margin analysis; product mix disclosure in MD&A | Medium — 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
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?