GLOSSARY DEEP DIVE

Gross Margin: The First Number That Reveals Pricing Power

Before a single dollar of operating expense, marketing spend, or interest payment enters the picture, gross margin answers a simpler and more revealing question: does this business make money on what it actually sells, and is that advantage holding steady or eroding underneath a growing top line?

Deep dive9 min readUpdated 2026

The core principle

Gross margin is the percentage of revenue a company retains after subtracting the direct cost of producing what it sold, known as the cost of goods sold (COGS). The formula is gross margin = (revenue minus cost of goods sold) / revenue, and the dollar figure left over, revenue minus COGS, is called gross profit. It is deliberately the first and simplest layer of profitability, measured before selling expenses, research and development, administrative overhead, interest, and taxes are subtracted, all of which come later on the income statement.

Gross margin varies enormously by industry, and that variation is structural rather than a sign of better or worse management in isolation. A software company can post a gross margin above 75% because the marginal cost of delivering one more copy of its code to one more customer is close to nothing. A grocery retailer typically posts a gross margin in the 20s because it must physically buy, transport, store, and stock the goods it resells, with thin markups on each item. Comparing those two figures directly says almost nothing useful; comparing a company's gross margin against its own direct competitors and its own history says quite a lot.

What makes gross margin genuinely valuable to an investor is less its level in any single quarter and more its trend over time. A gross margin that holds steady or climbs while revenue grows generally signals pricing power, the ability to raise prices or control input costs without customers walking away, one of the clearest quantitative fingerprints of a durable competitive advantage, sometimes called a moat. A gross margin that quietly erodes even as revenue keeps climbing is often an early warning sign of intensifying competition or rising input costs, visible in the numbers well before it necessarily shows up in a slowing headline growth rate.

Key idea Gross margin is only meaningful in context: within the same industry, and tracked as a trend over several years rather than judged from a single quarter's snapshot.

How the math works

Example 1: comparing two businesses in different industries. A software company reports $50 million of annual revenue and $10 million of cost of goods sold, mostly cloud hosting and customer support costs. Its gross margin is ($50M minus $10M) / $50M = 80%, meaning it keeps 80 cents of gross profit on every dollar of revenue before other expenses. A regional grocery chain reports the same $50 million of revenue but $38 million of cost of goods sold, largely the wholesale cost of the food and goods it resells. Its gross margin is ($50M minus $38M) / $50M = 24%. Both are legitimate, functioning businesses; the 56-point gap reflects fundamentally different cost structures, not that one company is three times better run than the other.

Example 2: spotting margin erosion behind revenue growth. A consumer products company reports the following three years: Year 1 revenue of $100 million with $40 million of COGS, a 60% gross margin. Year 2 revenue grows to $115 million, but COGS rises to $54.05 million, dropping gross margin to ($115M minus $54.05M) / $115M = 53%. Year 3 revenue grows again to $130 million, with COGS of $68.9 million, a gross margin of ($130M minus $68.9M) / $130M = 47%. Revenue has grown 30% over two years, a headline that looks healthy, but gross margin has fallen from 60% to 47%, a 13-point decline that signals the company is increasingly discounting, absorbing rising input costs, or losing pricing power to competitors, a trend a revenue-only view would completely miss.

How it shows up in real portfolios

An investor doing basic fundamental research on two similarly sized, similarly fast-growing companies in the same sector will often find gross margin trend to be one of the fastest ways to separate durable growth from growth being purchased with discounts or unsustainable cost structures. A company sustaining or expanding its gross margin while growing revenue is compounding its advantage; a company growing revenue only by cutting price is often trading future profitability for a better-looking growth number today, a trade that eventually shows up in weaker earnings even if it takes several quarters to surface.

A working professional building a self-directed portfolio around individual stocks, rather than only index funds, can use a company's quarterly gross margin trend as a low-effort, high-signal screen: reading three years of gross margin figures from a company's financial statements takes a few minutes and often reveals a competitive story the headline revenue and earnings-per-share numbers do not tell on their own, sometimes catching a deteriorating moat well before the broader market fully reacts to it in the stock price.

Gross margin comparisons are also central to due diligence when evaluating a private business investment or an employer's equity compensation, since a business with a thin and shrinking gross margin has much less room to absorb a downturn, a competitor's price cut, or a rise in input costs than one with a wide, stable margin, even if both currently report similar revenue growth rates.

Gross margin is also a useful early-warning tool during earnings season, often more revealing than the headline earnings-per-share figure itself. A company that narrowly beats analyst earnings expectations while its gross margin quietly contracted from the prior year, perhaps because it leaned on temporary cost cuts or one-time items elsewhere in the income statement to offset weaker product-level economics, has told investors something different than a company that beat expectations with gross margin holding steady or expanding. Reading both figures together, rather than the earnings beat in isolation, gives a clearer picture of whether the underlying business actually strengthened or whether the reported numbers were shaped by items unrelated to core operations.

The metric also plays a direct role in valuation work beyond simple screening. Analysts building a discounted cash flow model or projecting a company's future free cash flow typically start by forecasting revenue growth and gross margin separately, since the two combine to determine gross profit, the base from which all subsequent operating expenses, taxes, and ultimately cash flow are derived. A small, sustained change in assumed long-run gross margin, even a single percentage point held constant across a multi-year projection, can meaningfully move a model's estimate of a company's intrinsic value, which is part of why analysts spend real time scrutinizing a company's margin trend and its stated drivers on earnings calls rather than taking a single reported figure at face value.

Key idea A company can have an excellent gross margin and still lose money overall if operating expenses below the gross profit line are too high. Gross margin measures product economics specifically, not total profitability.

Actionable breakdown

  • When evaluating gross margin:
    • Compare only companies within the same industry.
    • Track the trend across at least three to five years.
    • Pair the trend with the revenue growth rate, not alone.
  • Reading the signal correctly:
    • Rising margin often signals pricing power or cost control.
    • Falling margin often signals competition or rising input costs.
    • A one-quarter dip may just reflect a temporary cost spike.
  • Avoiding common misreads:
    • High gross margin does not guarantee overall profitability.
    • Check for accounting differences in what counts as COGS.

Common pitfalls

  • Comparing gross margins across unrelated industries, treating a retailer's 24% and a software firm's 80% as though one management team is simply better than the other.
  • Chasing high gross margin alone without checking operating expenses below it, missing companies that post strong gross margin yet still lose money overall.
  • Reacting to a single quarter's margin move without checking whether it reflects a durable trend or a temporary input cost spike.
  • Ignoring inconsistent accounting classifications of cost of goods sold between similar companies, which can distort an apples-to-apples comparison.

For the profit measure gross margin feeds into further down the income statement, see EBITDA and earnings per share. For the cash-based view of profitability, see free cash flow. For the durable advantage a stable gross margin often signals, see moat. For the profitability measures built directly on top of it, see return on equity and ROIC. For the broader research process this fits into, see the guide on financial statements and stock analysis.

The bottom line

Gross margin is a fast, revealing read on a company's pricing power, but only when compared within the same industry and tracked as a multi-year trend rather than a single snapshot.

Back to the full glossary