Gross Margin Explained: The Pricing Power Test for Investors
Gross margin is the share of each sales dollar a company keeps after paying the direct cost of making or buying what it sells: gross margin = (revenue − cost of goods sold) ÷ revenue. A high and stable gross margin is one of the clearest signs of pricing power, and a slow decline is often the first warning that a competitive advantage is fading.
Gross margin is the first profit line on the income statement, and it tells you something no later line can. It shows how much customers value the product compared with what it costs to produce. Everything else in the business, from research to marketing to dividends, is paid out of that gap.
Where this fits: gross margin is a supporting test for Criterion 1, "Is it a great business?", and an early-warning signal for Criterion 2, the moat. It sits alongside return on invested capital in the Five Criteria framework.
What Is Gross Margin?
Gross margin measures how much of every dollar of revenue is left after the direct costs of the product or service. Those direct costs are called cost of goods sold (COGS), or cost of sales. They include raw materials, factory labour, freight to bring goods in and, for a retailer, the price paid to suppliers.
What is left is gross profit. Gross margin is simply gross profit expressed as a percentage of revenue. It lets you compare a small company with a large one, or this year with ten years ago.
The gross margin formula
Written plainly, there are two steps:
Gross profit = Revenue − Cost of goods sold
Gross margin = Gross profit ÷ Revenue × 100
If a company sells $1,000 of product that cost $400 to make, gross profit is $600 and gross margin is 60%. For every dollar a customer pays, 60 cents is available to cover overheads, interest, tax and profit.
You will find revenue and cost of sales at the top of the income statement. Some companies report gross profit as its own line. Others do not, and you calculate it yourself.
Gross margin vs operating margin vs net margin
Margin | Formula | What it tells you |
Gross margin | (Revenue − COGS) ÷ Revenue | Pricing power and production cost |
Operating margin | Operating income ÷ Revenue | Efficiency after overheads |
Net margin | Net income ÷ Revenue | Profit after interest and tax |
Each margin answers a different question. Gross margin is the purest read on the product itself, because overheads, debt and tax have not yet muddied the picture. Operating margin tells you whether management runs the rest of the business well. Net margin is the bottom line, but it is also the easiest to distort with one-off items.
Why Gross Margin Is the Pricing Power Test
Warren Buffett told the Financial Crisis Inquiry Commission in 2010 that "the single most important decision in evaluating a business is pricing power." He went on to say that a business which can raise prices without losing customers to a competitor is a very good business.
Gross margin is where pricing power shows up in the numbers. A company with a trusted brand, a patented product or customers who cannot easily switch can charge well above its production cost. A company selling something interchangeable must accept whatever price the market sets.
That is why gross margin is so useful for spotting the economic moat behind high returns. A durable moat usually produces a gross margin that is not only high, but stubbornly steady through good years and bad.
Level versus trend
The level tells you what kind of business you are looking at. The trend tells you whether its position is getting stronger or weaker. Of the two, the trend is often more revealing.
A gross margin that holds steady while costs rise means the company can pass those costs on. A margin that slides a little every year usually means competitors are forcing prices down, or customers are trading down to cheaper alternatives. Neither shows up in revenue growth until much later.
Worked Example: Two Companies Facing a Cost Shock
Here are two hypothetical companies with the same revenue. Company A sells a branded kitchen product that customers ask for by name. Company B makes an unbranded version for supermarket own-label ranges.
Line item | Company A | Company B |
Revenue | $500m | $500m |
Cost of goods sold | $200m | $400m |
Gross profit | $300m | $100m |
Gross margin | 60% | 20% |
Now suppose raw material and freight costs rise by 10% in a single year. Company A raises its prices by 5% and keeps its customers. Company B tries to raise prices, but its supermarket buyers can switch to another supplier, so it manages only 1%.
After the cost shock | Company A | Company B |
Revenue | $525m | $505m |
Cost of goods sold | $220m | $440m |
Gross profit | $305m | $65m |
Gross margin | 58.1% | 12.9% |
Change in gross profit | +1.7% | −35% |
Company A barely notices. Its gross profit actually rises. Company B loses more than a third of its gross profit, even though its sales went up. Its overheads have not changed, so its operating profit falls even further.
This is what pricing power looks like on paper. The same cost shock hits both companies. Only one of them decides who pays for it.
Reading a five-year trend
A single year can mislead you, so always look at five or more. Here is a hypothetical company whose moat is quietly eroding:
Year | Revenue | Gross margin |
Year 1 | $400m | 52% |
Year 2 | $430m | 51% |
Year 3 | $465m | 49% |
Year 4 | $500m | 47% |
Year 5 | $540m | 45% |
Revenue grew every year, and the headlines were probably positive. But the gross margin fell by seven percentage points. On Year 5 revenue, that is about $38 million of gross profit the company would have kept at its old margin. Something, whether a new competitor, a lost patent or a shift in customer behaviour, is taking its pricing power away.
What Is a Good Gross Margin?
There is no single "good" number, because cost structures differ so much by industry. As a rough guide:
Gross margin | Typical kind of business | What it suggests |
Above 60% | Software, strong brands, some medical products | Strong pricing power; low cost to serve each extra customer |
40–60% | Branded consumer goods, specialist industrials | Good pricing power; worth a closer look |
20–40% | Many manufacturers and retailers | Competitive; efficiency matters more |
Below 20% | Distributors, commodity producers, contract manufacturers | Price taker unless costs are uniquely low |
Treat these bands as a starting point, not a verdict. The more useful comparison is always against the company's own history and against its closest competitors.
Sector Caveats: When Gross Margin Misleads
Low margin can be a deliberate strategy
Some excellent businesses run low gross margins on purpose. A warehouse retailer that prices goods close to cost can win huge volumes and customer loyalty, then earn strong returns because its stock turns over very quickly. Its moat is a cost advantage, not a premium price.
For these companies, judge the business on ROIC and on how stable the margin is, not on its level. A low margin that never budges can be a sign of discipline rather than weakness.
Companies define cost of sales differently
There is no strict rule about what goes into cost of sales. One company may include depreciation of its factories, shipping to customers or warranty costs. Another may put those same items in operating expenses. A software company may or may not include hosting and customer support.
This means two companies in the same industry can report different gross margins for purely accounting reasons. Read the notes to the accounts before you compare them, and focus on each company's own trend.
Businesses with no meaningful gross margin
Banks, insurers and many service firms do not report gross profit at all, or report one that means little. A bank earns a spread between what it pays depositors and what it charges borrowers. For these businesses, other measures do the job, so do not force a gross margin calculation where it does not fit.
Mix, currency and one-off effects
Gross margin can move without any change in pricing power. A company that sells more of a lower-margin product will see its average margin fall. A strong home currency can squeeze margins for an exporter. Inventory write-downs can hit one year and then disappear.
Before you conclude a moat is weakening, ask management's explanation and check it against the segment data. Having worked in investor relations, I can tell you that analysts almost always ask about gross margin moves on earnings calls. The answers are usually in the transcript.
How We Use This in the Five Criteria
Gross margin is written into the house threshold for Criterion 1. A great business, under the Five Criteria, needs:
ROIC of 15% or more for at least five years. This is the headline test, explained in the ROIC hub.
A stable or rising gross margin over the same period. This is the pricing power check.
Free cash flow of at least 90% of net income, and a capital-light model.
Notice that the house rule is about stability, not a minimum level. A 25% gross margin that holds steady for ten years can pass. A 70% gross margin that has fallen every year for five years deserves serious questions.
Gross margin also feeds into Criterion 2. When we name a company's moat, we look for evidence that it held up through a downturn. A gross margin that stayed firm during a recession or a cost spike is some of the best evidence there is.
In practice, I pull ten years of revenue and cost of sales, calculate the margin for each year, and look for three things:
Is the level high or low for this industry?
Is the trend flat, rising or falling?
What happened to the margin in the worst year?
If a falling margin has no clear, temporary explanation, the company fails this part of Criterion 1 until the numbers prove otherwise.
Common Mistakes With Gross Margin
Looking at one year. A single year can be flattered or crushed by commodity prices, currency or a one-off write-down. Use five to ten years.
Comparing across industries. A 30% gross margin is weak for a software company and excellent for a grocer. Compare peers, not sectors.
Ignoring the trend because revenue is growing. Rising sales can hide falling pricing power for years, as the example above shows.
Assuming high gross margin means high profit. A company can keep 80% at the gross level and still lose money if it spends it all on sales and marketing. Check operating margin and ROIC too.
Comparing companies that define cost of sales differently. Read the accounting notes before drawing conclusions.
Penalising a deliberate low-price model. Some of the best businesses choose thin margins and high volume. Judge them on returns and consistency.
For more warning signs like these, see red flags in a business.
Frequently Asked Questions
How do you calculate gross margin? Subtract cost of goods sold from revenue to get gross profit, then divide gross profit by revenue and multiply by 100. A company with $1,000 of sales and $400 of cost of sales has a 60% gross margin.
Is a higher gross margin always better? Not always. A higher margin usually signals more pricing power, but some strong businesses run low margins by design and win on volume and efficiency. Stability over time matters more than the level alone.
What is the difference between gross margin and markup? Gross margin divides gross profit by the selling price, while markup divides it by cost. A product that costs $60 and sells for $100 has a 40% gross margin but a 67% markup.
Why would a company's gross margin fall? Common reasons include rising input costs it cannot pass on, stronger competition, a shift towards lower-margin products, currency moves or inventory write-downs. A steady, unexplained decline over several years is the most worrying pattern.
Your Next Step
Pull ten years of gross margin for one company you own and check the trend against the house rule. Then read the ROIC hub to see how margin feeds into returns on capital, and learn to spot the moat that keeps a strong margin in place. When you are ready, score the whole company with the Five Criteria Checklist.
About the author: Cameron Hayes is a senior investor relations and finance professional who has worked in IR at Nasdaq Copenhagen-listed companies including Nilfisk and Maersk Drilling. He holds an MSc from Copenhagen Business School and a BCom from the University of Ottawa, and founded Gingernomics to teach individual investors the Five Criteria framework. More about Gingernomics.
The content on Gingernomics is for educational and informational purposes only and does not constitute financial advice. Always do your own research and consult a licensed financial advisor before making any investment decisions. Past performance is not indicative of future results.



Comments