Operating Expenses vs COGS
COGS is what it costs to MAKE the product (raw materials, factory labor). OpEx is what it costs to RUN the company around the product (salaries, rent, marketing). COGS sits above gross profit; OpEx sits between gross profit and operating income.
Definition
Operating Expenses (OpEx) and Cost of Goods Sold (COGS) are the two main expense buckets on the income statement. COGS captures the direct costs of producing the goods or services a company sells, while OpEx captures the indirect costs of running the business — selling, general and administrative (SG&A), R&D, and marketing. The line between them determines a company's gross margin versus its operating margin.
Formula
Gross Profit = Revenue - COGS Operating Income (EBIT) = Gross Profit - Operating Expenses
Revenue
Total sales generated in the period
COGS
Direct costs tied to producing what was sold — materials, direct labor, factory overhead
Gross Profit
What's left after direct production costs; drives gross margin
Operating Expenses
Indirect costs of running the business — SG&A, R&D, marketing
Operating Income (EBIT)
Profit from core operations after both COGS and OpEx
Where Each Sits on the Income Statement
The income statement is built top-down: Revenue minus COGS equals Gross Profit, then minus Operating Expenses equals Operating Income (EBIT). COGS is the first deduction because it's directly tied to the units sold — if a company sells 100 widgets, COGS is the cost of making those exact 100 widgets. OpEx comes next: these are the costs you'd incur whether you sold 100 widgets or 80 — the sales team, the headquarters lease, the R&D lab. This ordering is why gross margin (Gross Profit / Revenue) measures production efficiency, while operating margin (EBIT / Revenue) measures total operating efficiency.
What Goes in Each Bucket
COGS includes raw materials, direct labor (factory workers building the product), inbound freight, and manufacturing overhead like factory utilities and equipment depreciation. For a services business, COGS (often called 'cost of revenue') is the cost of the people directly delivering the service plus hosting/infrastructure. OpEx includes SG&A (executive salaries, corporate rent, legal, accounting), sales and marketing, and R&D. The trickiest item is depreciation: equipment used to make the product is depreciated into COGS, while the corporate office building is depreciated into OpEx. This is why EBITDA adds back D&A from both buckets.
Why the Classification Matters in Analysis
The same total cost can produce wildly different gross margins depending on classification, which is why bankers scrutinize the split when comparing companies. A SaaS business that puts customer-support engineers in COGS will report a lower gross margin than a competitor that buries them in OpEx — even if the businesses are economically identical. In a comparable companies analysis, you must normalize these classifications before trusting margin comparisons. Operating leverage also shows up here: COGS tends to scale with revenue (variable), while much of OpEx is fixed, so a growing company sees OpEx shrink as a percent of revenue.
Industry Patterns
Software companies have minimal COGS (just cloud hosting and support), driving 70-90% gross margins, but heavy OpEx in R&D and sales. Manufacturers and retailers have large COGS (materials, inventory) and gross margins of 20-40%. A grocery chain might run a 25% gross margin but a razor-thin operating margin after labor and rent. Understanding the typical structure for an industry lets you spot anomalies — an unusually high gross margin for a manufacturer might signal aggressive cost capitalization or a reclassification of costs into OpEx.
Worked Example — With Real Numbers
Two companies each have $1,000 of revenue and $700 of total costs, so both earn $300 of operating income. Company A classifies $600 as COGS and $100 as OpEx: Gross Profit = $400, gross margin = 40%. Company B classifies $400 as COGS and $300 as OpEx: Gross Profit = $600, gross margin = 60%. Same EBIT ($300, 30% operating margin), but Company B looks far more 'profitable' at the gross level purely due to classification — proof you must normalize the split before comparing margins.
Key Takeaways
COGS = direct production costs (above gross profit); OpEx = indirect operating costs (below gross profit)
Subtracting COGS from revenue gives gross profit; subtracting OpEx from gross profit gives operating income
Where a cost is classified changes gross margin even if operating income is identical
Depreciation can sit in EITHER bucket — factory equipment depreciation is in COGS, corporate office depreciation is in OpEx
Software companies have tiny COGS (mostly hosting), so gross margins of 70-90% are normal; manufacturers run far lower
Common Mistakes in Interviews
Assuming all expenses are OpEx — direct labor and materials belong in COGS, not SG&A
Putting all depreciation in one bucket — manufacturing-related D&A flows through COGS
Thinking the split doesn't matter because operating income is the same — it changes gross margin, a key comp metric
Confusing OpEx with operating cash outflows — OpEx is an accrual income-statement concept, not a cash measure
How Interviewers Test This
A classic test is: 'What's the difference between COGS and OpEx, and give me an example of each.' Be ready for the curveball: 'Where does depreciation go?' — the answer is BOTH, depending on whether the asset is used in production (COGS) or corporate functions (OpEx). Another favorite: 'If I move a cost from COGS to OpEx, what happens to gross margin and operating margin?' Answer: gross margin rises, operating margin is unchanged.
Related Concepts
Directly referenced in this topic
Income Statement
The income statement (also called the profit and loss statement or P&L) reports ...
Gross Margin
Gross margin is the percentage of revenue remaining after subtracting cost of go...
EBIT (Operating Income)
EBIT, or Earnings Before Interest and Taxes, measures a company's profitability ...
Capitalization vs. Expensing
Capitalization records a cost as an asset on the balance sheet and spreads its e...
More Accounting Concepts
55 more concepts in this category
Topic Guides
Firms That Test This
Practice Operating Expenses vs COGS questions
400+ interview questions with AI feedback. Free to start.
Start PracticingMaster Operating Expenses vs COGS 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