Guide

Gross margin explained

Before you judge whether a company is profitable, you need to know whether it makes money on what it actually sells. Gross margin answers that question at the most basic level: after paying the direct costs of producing or delivering a product, how much revenue is left? It is the first profitability line on the income statement — revenue minus cost of goods sold (COGS) — and it reveals pricing power, unit economics, and whether a business model can scale before overhead even enters the picture. Gross margin is not the whole story (operating and net margins matter too), but a company with thin or shrinking gross margins rarely becomes a great long-term investment no matter how fast revenue grows. This guide covers the formula, how to read gross margin in financial statements, industry benchmarks, trend analysis, red flags, and how gross margin connects to ROE via DuPont analysis and fundamental analysis.

The formula: gross profit and gross margin percentage

Two related numbers appear on every income statement:

  • Gross profit (dollars) = Revenue − Cost of goods sold (COGS)
  • Gross margin (percentage) = Gross profit ÷ Revenue × 100

If a retailer reports $1 billion in revenue and $700 million in COGS, gross profit is $300 million and gross margin is 30%. The percentage form is what investors use for comparison because it normalizes across company sizes — a $50 million startup and a $50 billion conglomerate can be compared on the same 30% vs 45% scale.

COGS includes only costs directly tied to producing or delivering the product: raw materials, manufacturing labor, inventory shrinkage, shipping to customers (for some businesses), and hosting costs for cloud software. It does not include sales and marketing, R&D, executive salaries, rent, or interest — those sit below gross profit on the income statement as operating expenses.

The boundary between COGS and operating expense is not always obvious. Airlines classify fuel as COGS; software companies often put customer-support engineers in COGS but product engineers in R&D. Read the footnotes in 10-K filings when comparing two companies in the same sector — inconsistent classification can make margins look better or worse than peers.

Why gross margin matters for investors

Gross margin is a proxy for pricing power and unit economics. A company that can raise prices without losing customers, or that benefits from scale in procurement and manufacturing, typically shows stable or expanding gross margins over time. Conversely, a business in a commoditized market — grocery, airlines, commodity chemicals — often lives on thin gross margins and must make it up on volume and cost control.

For growth investors, gross margin answers a critical question: does each incremental dollar of revenue contribute meaningfully to the bottom line? A SaaS company growing revenue 40% per year but with gross margin stuck at 55% has a different risk profile than one at 80% gross margin with the same growth rate. The higher-margin business has more room to invest in sales and still reach profitability.

Gross margin also feeds directly into DuPont analysis: ROE = Net profit margin × Asset turnover × Financial leverage. The net profit margin itself is built on gross margin minus operating expenses, taxes, and interest. Weak gross margin caps how high ROE can go no matter how efficiently management runs the rest of the business.

Industry benchmarks: what is a good gross margin?

There is no universal "good" gross margin — context is everything. Rough ranges by sector (approximate, vary by sub-industry and cycle):

  • Software / SaaS — 70–85%+ for mature cloud platforms; early-stage SaaS may be lower while services revenue is mixed in.
  • Pharmaceuticals (branded) — 70–90% on patented drugs; generics much lower.
  • Consumer staples / packaged goods — 35–50%.
  • Retail (grocery, big-box) — 20–30%; discount grocers sometimes below 25%.
  • Restaurants — 60–70% on food (before labor, which is often operating expense); fast food lower.
  • Automotive manufacturing — 15–25%; highly cyclical.
  • Semiconductors (fabless design) — 50–65%; foundries and memory chips lower.
  • Hardware / consumer electronics — 30–45%; Apple is an outlier at higher margins due to brand and ecosystem.

Compare a company to its direct peers, not to the market average. A 28% gross margin is excellent for a supermarket chain and terrible for enterprise software. Use sector ETFs and competitor 10-Ks as reference points when building a fundamental analysis thesis.

Gross margin vs operating margin vs net margin

The income statement is a waterfall from revenue to net income. Each margin layer subtracts a new category of expense:

  • Gross margin — after COGS. Measures product-level profitability.
  • Operating margin — after COGS, R&D, sales & marketing, and G&A. Measures whether the core business is profitable before financing and taxes.
  • Net margin — after interest, taxes, and one-time items. What shareholders ultimately keep per dollar of revenue.

A healthy company usually shows a logical gap between these layers. If gross margin is 75% but operating margin is 5%, the business is either in heavy investment mode (acceptable for young growth companies) or has a structural cost problem (sales efficiency, bloated overhead). If gross margin is 20% and operating margin is 18%, the company runs lean on overhead but has little pricing power at the product level — one input-cost shock can wipe out profitability.

When reading earnings per share reports, analysts often focus on operating margin for mature companies and gross margin for high-growth companies still spending aggressively on customer acquisition.

Reading gross margin trends over time

A single quarter's gross margin is noise; the trend over 3–5 years is signal. Look for:

  • Expanding margins — pricing power, favorable mix shift (selling more high-margin products), or manufacturing scale. Often the hallmark of a strengthening moat.
  • Stable margins in a growing business — healthy if the company is deliberately reinvesting; verify that operating leverage eventually appears.
  • Compressing margins — competition, input cost inflation the company cannot pass through, or adverse product mix (more low-margin revenue). Requires explanation in earnings calls.
  • Volatile margins — common in commodities, semiconductors, and cyclical industrials. Use through-cycle averages, not peak margins.

Plot gross margin alongside revenue growth. The dangerous pattern is revenue up, gross margin down — often called "growth at any cost" or "buying revenue" with discounts and promotions. Retailers running perpetual sales events and SaaS companies offering deep first-year discounts both show this pattern before fundamentals break.

COGS nuances by business model

Software and SaaS

COGS for SaaS typically includes hosting (AWS/GCP), customer support staff, payment processing fees, and third-party data licenses. Engineering that builds the product is usually R&D, not COGS — which is why mature SaaS companies report 75–80%+ gross margins. "Professional services" revenue (implementation help) carries much lower margins and can drag blended gross margin down if it grows as a share of revenue.

Retail and e-commerce

COGS is inventory cost plus shrinkage. Gross margin is heavily influenced by markdowns, private-label mix, and supplier negotiations. E-commerce adds fulfillment costs — some companies include outbound shipping in COGS, others in operating expenses, so compare footnotes carefully.

Manufacturing

COGS includes raw materials, direct labor, and factory overhead. Gross margin swings with commodity input prices (steel, oil, chips) unless the company has long-term contracts or pricing power to pass costs through.

Marketplaces and platforms

Gross margin accounting varies: some marketplaces report net revenue (take rate only) with very high gross margins; others report gross merchandise value as revenue with payments to sellers as COGS, showing lower percentages. Always check whether revenue is reported gross or net.

Red flags and common mistakes

Red flags

  • Margin compression without management explanation — if gross margin drops 300+ basis points year over year, the 10-Q should say why. Silence is a warning.
  • Non-GAAP gross margin adjustments — adding back stock-based compensation or "one-time" costs to inflate gross margin. Compare GAAP gross margin first.
  • Peer mismatch — comparing a company's "adjusted gross margin" to competitors' GAAP figures.
  • Inventory build with flat margins — can signal future markdowns (especially in apparel and consumer electronics).
  • Channel stuffing — revenue recognized on shipments to distributors that may return unsold goods; gross margin looks fine until returns hit.

Common investor mistakes

  • Ignoring mix effects — a company can report higher gross margin because low-margin hardware revenue shrank while high-margin software grew, not because pricing improved.
  • Using peak-cycle margins for cyclicals — semiconductor gross margins at 60% in a shortage may normalize to 45% in a downturn.
  • Confusing gross margin with contribution margin — contribution margin subtracts variable sales costs too; gross margin does not.
  • Overweighting margin vs growth — a 90% gross margin business that never scales is worse than a 65% margin business growing 30% per year with clear operating leverage ahead.

Decision table: what gross margin pattern implies

Pattern Likely interpretation Action
High and rising margin + revenue growth Pricing power, favorable mix, or scale economics Positive signal — dig into sustainability
High margin + flat revenue Mature cash cow or stalled growth Check if valuation reflects low growth
Low margin + high revenue growth Volume business or land-grab phase Verify path to operating leverage
Margin falling + revenue rising Promotional growth or competitive pressure Read earnings call; often a sell signal
Margin and revenue both falling Structural decline or recession exposure High risk — avoid value traps

Investor checklist

  • Calculate gross margin from the income statement — use GAAP figures from the 10-K or 10-Q, not press-release highlights alone.
  • Compare to 3–5 year history — chart quarterly gross margin to spot trends before they show up in EPS.
  • Benchmark against direct peers — same revenue recognition method and COGS classification.
  • Read COGS footnotes — understand what is included and whether classification changed year over year.
  • Cross-check with cash flow — high gross margin plus negative free cash flow may mean profits are tied up in working capital.
  • Listen to earnings calls — management should explain margin moves in plain language (mix, pricing, input costs).
  • Integrate with valuation — pair margin analysis with P/E and multiples; high margin alone does not justify any price.

Key takeaways

  • Gross margin = (Revenue − COGS) ÷ Revenue — the first profitability filter on every income statement.
  • It measures pricing power and unit economics before overhead, interest, and taxes enter the picture.
  • Benchmark against peers, not the market — 30% is great for retail, weak for software.
  • Trends matter more than one quarter — watch for revenue growth paired with margin compression.
  • Gross margin feeds ROE via DuPont — weak product-level economics cap long-term returns no matter how lean overhead is.

Related reading