“Margin” is one of those words people use as if there’s only one of them. There isn’t. A company has several margins, measured at different points as you travel down the income statement, and each answers a different question. The two you’ll hear most are gross margin and operating margin. Confusing them is easy; telling them apart is one of the most useful finance skills you can pick up, because it lets you diagnose where a business makes or loses its money.
Each margin subtracts one more layer of cost — Hover any part for detail.
A quick reminder: what a margin is
A margin is simply profit expressed as a percentage of revenue — “out of every dollar that comes in, how much is left after a particular set of costs?” The trick is that “a particular set of costs” changes depending on which margin you mean. As you subtract more categories of cost, the margin gets smaller. That’s the whole idea: each margin peels off another layer.
If margins as a concept are new to you, the profit, margin & P&L module in Finance for Non-Finance People is the gentlest place to start.
Gross margin: is the product itself profitable?
Gross margin subtracts only the cost of goods sold (COGS) — the direct costs of producing what you sell. For a physical product, that’s raw materials, the labor that assembles it, and the factory cost to make it. For software, it’s mostly the cost of hosting and serving the product. It does not include the sales team, the head office, marketing, or R&D.
The formula:
Gross margin = (Revenue − COGS) ÷ Revenue × 100%
Example. You sell a product for $100. The materials and labor to make that unit cost $40. Your gross profit is $60, and your gross margin is 60%.
Gross margin answers a foundational question: does the thing we sell make money on its own, before we account for the cost of running a company around it? If your gross margin is negative, you’re losing money on every single sale — no amount of scale will save you, because selling more just loses more. That’s why gross margin is the first vital sign investors check.
Different industries live at wildly different gross margins. Software companies often run 70–90% (copies are nearly free to produce). Grocery stores run in the low single digits to teens (they move huge volume on thin margins). Neither is “better” — they’re different business models, and comparing a software gross margin to a grocer’s is meaningless.
Operating margin: is the whole business profitable?
Operating margin keeps going. After COGS, it also subtracts operating expenses — everything it costs to run the company that isn’t directly making the product. This bucket is often called SG&A (Selling, General & Administrative) and includes salaries for non-production staff, marketing, rent, software, legal, and usually R&D.
The formula:
Operating margin = Operating profit ÷ Revenue × 100%
where operating profit is revenue minus COGS and minus operating expenses.
Example, continued. Same product: $100 price, $40 COGS, so $60 gross profit. Now the company also spends $35 per unit’s worth of revenue on salaries, marketing, and overhead. That leaves $25 of operating profit, so the operating margin is 25%.
Operating margin answers the bigger question: after paying for both the product and the entire operation around it, is the business actually making money? It’s a much truer picture of the company’s health than gross margin alone, because a company can have a beautiful gross margin and still bleed money if its overhead is bloated.
The gap between them is the story
Here’s the insight that makes this pair click: the gap between gross margin and operating margin is your overhead.
| Line | Amount | Running margin |
|---|---|---|
| Revenue | $100 | — |
| − COGS | −$40 | Gross margin: 60% |
| − Operating expenses (SG&A, R&D) | −$35 | Operating margin: 25% |
| = Operating profit | $25 | — |
That 35-point drop from 60% to 25% is the cost of running the company. When you see a business with a healthy gross margin but a weak operating margin, you’ve just learned where its problem is: not the product, but the overhead. Maybe it’s over-hired, over-spending on marketing to buy growth, or carrying a bloated head office. Conversely, a thin gross margin with a decent operating margin means an extremely lean operation squeezing profit out of a low-margin product.
Gross margin tells you whether the product works. Operating margin tells you whether the company works. Reading them together tells you which part to fix.
This is also why margin compression — the squeeze that’s driven so much cost-cutting lately — shows up differently at each level. Rising material costs hit gross margin first; rising salaries and overhead hit operating margin. Knowing which margin is compressing tells leadership which lever to pull.
A note on the margins further down
For completeness, two more margins live below operating margin:
- Net margin (or net profit margin) subtracts everything left — interest on debt and taxes — to reach the true bottom line. It’s the percentage version of net income.
- EBITDA margin goes the other way, adding depreciation and amortization back to operating profit to show cash-generating power before asset accounting.
You don’t need all of them daily. But knowing that margins form a staircase — gross at the top, net at the bottom, each subtracting one more layer of cost — is what stops the word “margin” from being a fog.
How to use the terms
- “Our gross margin is fine — 65% — but operating margin fell to 8% because we scaled the sales team too fast.” (product good, overhead problem)
- “That business runs a 4% gross margin, so it lives or dies on volume.” (low-margin model)
- “Prices held, but material costs rose, so gross margin took the hit this quarter.” (diagnosing where the squeeze landed)
- “Great top-line growth, but watch the operating margin — growth that doesn’t reach operating profit is just expensive activity.” (the skeptic’s read)
Master this pair and you can look at almost any company and say something intelligent about where it makes money and where it might be leaking it. That’s a genuinely rare and useful skill — and it starts with never again treating “margin” as a single number.
Related reading: Margin Compression · Revenue vs Profit · EBITDA vs Net Income