Cost of Goods Sold
It's what it actually costs a company to make the stuff it sold — materials and labor that go straight into the product. Revenue minus COGS is gross profit, the first profitability line bankers look at.
Definition
Cost of goods sold (COGS) is the total direct cost of producing the goods or services a company sold during a period — primarily raw materials, direct labor, and manufacturing overhead — reported on the income statement directly below revenue. Subtracting COGS from revenue yields gross profit, the basis for gross margin.
Formula
COGS = Beginning Inventory + Purchases − Ending Inventory Gross Profit = Revenue − COGS
Beginning Inventory
Value of unsold inventory carried in from the prior period
Purchases
Cost of additional inventory acquired or produced during the period
Ending Inventory
Value of inventory still on hand at period end (subtracted out)
What Goes Into COGS — and What Doesn't
COGS captures only the direct costs of producing what was sold: raw materials, direct production labor, and factory overhead (utilities and depreciation tied to manufacturing). It excludes operating expenses like SG&A, R&D, marketing, and executive salaries — those sit further down the income statement and are not part of producing a unit. The dividing line matters: a cost is in COGS only if it varies with production volume and is directly attributable to the good sold. For a services or software business, 'cost of revenue' replaces COGS and includes hosting, support, and the salaries of staff delivering the service.
COGS and Inventory: The Accounting Link
COGS is the bridge between the balance sheet and income statement for inventory. When inventory is sold, its cost moves from the inventory asset on the balance sheet to COGS on the income statement (the matching principle — recognize the cost in the same period as the related revenue). The cost flow assumption matters: FIFO (first-in, first-out) expenses the oldest inventory first, while LIFO (last-in, first-out, US GAAP only) expenses the newest. In an inflationary environment, LIFO produces higher COGS, lower reported profit, and lower taxes — a frequent technical question. This linkage is also why inventory turnover is calculated using COGS, not revenue.
Why COGS Matters for Valuation
COGS drives gross margin (gross profit / revenue), the cleanest read on a company's pricing power and production efficiency. A rising gross margin signals scale economies or premium pricing; a falling one flags cost inflation or competition. Because COGS sits above EBITDA and EBIT, it flows all the way down to net income, making it a critical driver in any operating model. In an LBO or DCF, modeling COGS as a percentage of revenue is one of the first assumptions you set, and a small margin improvement compounds dramatically into free cash flow.
Worked Example — With Real Numbers
A retailer starts the year with $200,000 of inventory, purchases $800,000 of additional goods, and ends with $150,000 of inventory. COGS = $200,000 + $800,000 − $150,000 = $850,000. If revenue for the year is $1,400,000, gross profit = $1,400,000 − $850,000 = $550,000, and gross margin = $550,000 / $1,400,000 = 39.3%. If the company improves sourcing and cuts COGS to $800,000 on the same revenue, gross margin jumps to 42.9% — and the extra $50,000 flows straight toward EBITDA.
Key Takeaways
COGS is the direct cost of producing the goods sold — materials, direct labor, and factory overhead
It excludes SG&A, R&D, and marketing, which are operating expenses below gross profit
Revenue minus COGS equals gross profit, the basis for gross margin
COGS links inventory (balance sheet) to the income statement as goods are sold
FIFO vs. LIFO changes COGS, reported profit, and taxes — especially under inflation
Common Mistakes in Interviews
Lumping SG&A or overhead unrelated to production into COGS
Computing inventory turnover with revenue instead of COGS
Forgetting that LIFO raises COGS and lowers profit/taxes in an inflationary period (and isn't allowed under IFRS)
Confusing COGS (cost of what was sold) with purchases (cost of what was acquired) — the two differ by the inventory change
How Interviewers Test This
A common technical: 'In an inflationary environment, which gives higher net income — FIFO or LIFO?' FIFO, because it expenses older, cheaper inventory into COGS, leaving lower COGS and higher reported profit (but higher taxes). LIFO does the reverse. Also be ready for 'Walk me from revenue to gross profit' — revenue minus COGS, and know exactly which costs sit in COGS versus below it.
Related Concepts
Directly referenced in this topic
Gross Margin
Gross margin is the percentage of revenue remaining after subtracting cost of go...
Inventory Turnover
Inventory turnover measures how many times a company sells and replaces its inve...
Income Statement
The income statement (also called the profit and loss statement or P&L) reports ...
EBITDA
EBITDA (Earnings Before Interest, Taxes, [Depreciation and Amortization](https:/...
More Accounting Concepts
55 more concepts in this category
Related Articles
How to Build a 3-Statement Financial Model: Step-by-Step Guide
Learn how to build a fully integrated 3-statement financial model from scratch. Step-by-step walkthrough of linking the income statement, balance sheet, and cash flow statement.
Walk Me Through a Merger Model: Step-by-Step Interview Answer
Learn how to walk through a merger model step by step -- from purchase price and sources & uses to accretion/dilution analysis. Perfect for IB interview prep.
Topic Guides
Firms That Test This
Related Articles
How to Build a 3-Statement Financial Model: Step-by-Step Guide
Learn how to build a fully integrated 3-statement financial model from scratch. Step-by-step walkthrough of linking the income statement, balance sheet, and cash flow statement.
Read articleWalk Me Through a Merger Model: Step-by-Step Interview Answer
Learn how to walk through a merger model step by step -- from purchase price and sources & uses to accretion/dilution analysis. Perfect for IB interview prep.
Read articlePractice Cost of Goods Sold questions
400+ interview questions with AI feedback. Free to start.
Start PracticingMaster Cost of Goods Sold and 100+ More Concepts
Get the full IB Flash experience and walk into your interview with confidence.
AI Interview Coach
Real-time feedback on your answers
1,000+ Practice Questions
Across IB, PE, HF, VC & more
Financial Modeling Tests
Excel-based skill assessments
Or explore our free tools to get started