Profitability isn't a single number — it's a story that unfolds across the income statement. Gross margin and operating margin are two chapters of that story, and reading them together reveals whether a company's competitive advantage is real and sustainable.
The Definitions
Gross Margin = (Revenue − Cost of Goods Sold) / Revenue × 100
Gross margin measures profitability after direct production costs. It answers: how much does it cost to make or deliver the product?
Operating Margin = Operating Income / Revenue × 100
Operating margin measures profitability after all operating expenses — production costs plus selling, general & administrative (SG&A), and research & development (R&D). It answers: how much does it cost to run the entire business?
What Gross Margin Tells You
Gross margin is the purest indicator of pricing power and cost position:
High gross margin (above 50%)
The company either charges a significant premium for its products (brand, IP, network effects) or produces them at very low cost (scale, technology). Examples:
- Software companies (70-85%) — Near-zero marginal cost per additional user
- Luxury brands (65-75%) — Premium pricing driven by brand
- Pharma companies (60-80%) — Patent-protected pricing
Moderate gross margin (30-50%)
The company has some pricing power but faces meaningful production costs. Examples:
- Consumer staples — Branded products with some premium, but raw material costs are significant
- Industrial companies — Competitive markets with moderate differentiation
Low gross margin (below 30%)
The company operates in a competitive or commodity-like market with limited pricing power. Examples:
- Retailers (25-35%) — Low margins, high volume
- Airlines (20-30%) — Commodity service, high fuel costs
- Grocers (25-30%) — Thin margins, intense competition
On SafetyMargin.io, gross margin is displayed in the Key Metrics Panel, color-coded to help you quickly assess the level. The Historical Charts show the trend over time — a consistent gross margin is a good sign; a declining one may indicate eroding competitive advantage.
What Operating Margin Tells You
Operating margin reveals operational efficiency — how well management controls costs beyond production:
The gap between gross and operating margin
This gap represents SG&A, R&D, and other operating expenses. A small gap means the company runs lean. A large gap means overhead is consuming much of the gross profit.
Example:
- Company A: 70% gross margin, 35% operating margin — 35 percentage points consumed by operating expenses
- Company B: 70% gross margin, 20% operating margin — 50 percentage points consumed by operating expenses
Both companies have the same gross margin (same product economics), but Company A is far more efficient operationally. Over time, Company A will generate significantly more free cash flow.
When a large gap is acceptable
High R&D spending can create a large gap between gross and operating margin, but it may be building future moat. A pharma company spending 20% of revenue on R&D will have a lower operating margin — but that spending is creating the next generation of patented drugs.
The key question: is the spending creating value? Check ROIC and the Retained Earnings Test on SafetyMargin.io to see if the investments are paying off.
Reading Both Together
The real insight comes from analyzing gross and operating margins as a pair:
High gross margin + high operating margin
The ideal combination. The company has strong pricing power and runs efficiently. These are typically the best businesses to own — think MSFT or V.
High gross margin + low operating margin
The company has great product economics but is spending heavily on SG&A or R&D. This could be:
- Positive: Investing in growth that will eventually leverage into higher operating margins
- Negative: Structurally high overhead that prevents cash flow generation
Trend analysis on SafetyMargin.io helps distinguish between the two — if operating margins are improving over time, the investments are likely paying off.
Low gross margin + low operating margin
A difficult business. Low pricing power and limited room for operational improvement. Unless there's a clear path to margin expansion, these businesses struggle to create shareholder value.
Low gross margin + relatively high operating margin
Rare but possible. The company has minimal product differentiation but runs extremely lean operations. Warehouse retailers and low-cost airlines sometimes fit this profile. The moat, if any, is in operational efficiency rather than product differentiation.
Margin Trends Matter More Than Levels
A company with a 40% gross margin that's been stable for a decade is often a better investment than one with a 55% gross margin that's been declining from 65%. The trend reveals whether the competitive advantage is strengthening or eroding.
On SafetyMargin.io's Historical Charts, look for:
- Stable or expanding margins — The moat is holding or strengthening
- Gradually declining margins — Competition is slowly eroding the advantage
- Volatile margins — The business may be cyclical or lack a durable edge
- Sudden margin drops — Could signal a competitive disruption, pricing war, or cost shock
Buffett's Approach to Margins
Buffett prefers businesses with:
- High and stable gross margins — Evidence of pricing power and a product or service that customers value
- Reasonable operating margins — Not necessarily the highest, but consistent and sustainable
- Improving margin trends — Suggesting the moat is getting wider, not narrower
He's willing to accept lower margins if the business has other compelling characteristics (massive scale, dominant market position), but margin quality is always part of the analysis.
How to Check on SafetyMargin.io
For any stock:
- Key Metrics Panel — Gross margin with color coding (green for high, amber for moderate, red for low)
- Historical Charts — Gross margin trend over 4+ years
- Compare with ROIC — High margins + high ROIC = confirmed moat
- Look at the full profitability stack — Gross margin → operating margin → net margin → FCF margin
Try comparing KO (high gross margin, brand-driven moat) with a retailer or industrial company to see how margin profiles differ between moated and non-moated businesses.
The Bottom Line
Gross margin tells you about the product. Operating margin tells you about the business. Together, they reveal whether a company has a genuine competitive advantage and whether management is running the business efficiently. Both are available at a glance on SafetyMargin.io — make them a standard part of your analysis checklist.