Microsoft (MSFT) runs at roughly 70% gross margin while Ford (F) clears only around 10%. That single ratio tells you more about each company's moat than any P/E chart ever will.
What is gross margin and how do you calculate it?
Gross margin is revenue minus the cost of goods sold, divided by revenue. It tells you how many cents of each dollar of sales the business keeps after paying the direct costs of producing whatever it sells. If a company books $100 in revenue and spends about $30 on raw materials and direct labor, its gross margin is around 70%.
The ratio sits at the very top of the income statement, above operating expenses, interest, and taxes. That position matters: gross margin measures the unit economics of the product itself, not how cheaply the company runs the rest of its machine.
Two identical companies can report the same net income with completely different gross margins. The one with the higher gross margin almost always has more room to absorb shocks — input cost spikes, pricing pressure, advertising wars — without blowing up the bottom line.
Why does gross margin matter for moats?
Because a high gross margin is the fingerprint of pricing power. When customers are willing to pay a premium for something that costs very little to produce, it usually means the product is hard to replace or hard to copy. That gap between price and cost is exactly what an economic moat looks like in the financial statements.
Warren Buffett's moat framework leans heavily on gross margin as a first filter. A company with roughly 60%+ gross margin for ten straight years is either selling a genuinely scarce product, benefiting from network effects, or riding an intangible asset like a brand or patent. Rarely anything else.
The inverse is also true. A gross margin that hovers around 10-15% and swings with commodity prices is a sign that the business has no pricing power. It may still be profitable, but its moat — if any — is about operational efficiency and scale, not product differentiation.
High-margin businesses: examples from software and data
Software is the purest gross-margin business on the planet. Once the code is written, the marginal cost of serving one more customer is roughly zero. That is why names like Adobe (ADBE), MSFT, and Salesforce (CRM) print gross margins north of about 70% year after year.
Financial data and ratings businesses are nearly as good. Moody's (MCO) and S&P Global (SPGI) sell intellectual-property-heavy products — credit ratings, indices, research — that scale beautifully because the marginal cost of selling one more license is negligible.
Semiconductors sit in the middle. NVIDIA (NVDA) has run at roughly 70%+ gross margin during the AI boom, largely because its chips are currently supply-constrained and buyers have nowhere else to go. That is a high number for a physical product — and a reminder that gross margin is situational, not permanent.
Here is a simplified comparison of a few well-known names:
| Company |
Approx gross margin |
Business type |
| MSFT |
~70% |
Software / cloud |
| NVDA |
~70-75% |
AI-era semiconductors |
| ADBE |
~88% |
Subscription software |
| MCO |
~72% |
Ratings / data |
| META |
~80% |
Digital advertising |
| Costco (COST) |
~12% |
Membership warehouse |
| F |
~10% |
Mass-market autos |
Notice how the retailer and automaker still make it onto famous-stock lists despite tiny gross margins. That is the exception this article is about, and we will get to it in a second.
What does a low gross margin actually tell you?
It tells you the company's moat — if it has one — lives somewhere other than product pricing. Costco (COST) is the clearest example: roughly 12% gross margin, yet an objectively fantastic business. How?
Costco's moat is membership fees and turnover. The gross margin is intentionally thin because the company passes nearly all of its cost advantage to members, and then makes its real profit on the membership renewals — which run at a near-record renewal rate in the low 90s.
That is a different moat architecture. If you valued Costco on gross margin alone you would conclude it is a mediocre retailer. If you value it on renewal rate plus sales-per-square-foot, you see the actual business. The lesson: low gross margin is not automatically a red flag, but it means you have to look somewhere else for the moat.
How to read gross margin trends over time
The level matters, but the trend matters more. A steady roughly 70% gross margin for a decade is a moat. A gross margin that erodes from around 70% to around 55% over the same period is a moat that is breaking down — and the stock is usually in trouble long before net income shows it.
Look for three patterns when you scan a ten-year gross margin chart. First, stability: is the margin range narrow or wide? Second, direction: is it drifting up, flat, or down? Third, cyclicality: does it swing with commodity prices or stay roughly steady through cycles?
Stable-and-flat is the typical signature of a mature franchise like Johnson & Johnson (JNJ) or MSFT. Rising gross margin over time can signal a business gaining scale or pricing power. Falling gross margin, particularly in software or consumer brands, is often the single earliest visible sign of competitive erosion.
Common mistakes investors make with gross margin
The biggest mistake is comparing gross margins across industries without adjusting. A software company at about 70% is average; a specialty chemical company at roughly 70% is extraordinary. Always compare within the same industry or sub-industry.
The second mistake is ignoring revenue mix. A business whose product mix has shifted toward higher-margin services will show rising gross margin for reasons that have nothing to do with moat strength. You need to decompose the mix change before declaring a win.
The third mistake is using a single year. Gross margin can swing on one-time freight cost shocks, FX moves, or a bad quarter of inventory obsolescence. Take a three-to-five-year average and adjust for obvious one-time items before drawing conclusions.
When gross margin lies: the exceptions
Aggregators like Amazon (AMZN) can look deceptive because the reported gross margin blends a very high-margin AWS business with a very low-margin retail business. The consolidated number hides both stories. The fix is segment-level disclosure — read the AWS margin separately.
Financial companies are a different story altogether. Banks do not report gross margin the way a manufacturer does, because their "cost of goods" is interest expense, which sits below the traditional COGS line. Use net interest margin and efficiency ratio instead for JPMorgan (JPM) and peers.
Finally, cyclical commodity producers have gross margins that swing violently with spot prices. A copper miner at roughly 50% gross margin at cycle peak may be at about 20% at the trough. Normalize through a full cycle before drawing any moat conclusions.
For more on how to put gross margin into a full valuation framework, see our guide on fundamental analysis. For how legendary investors used moat-style thinking in practice, see our super investors section.
Using gross margin in a real screen
A practical screen: start with companies above roughly 50% gross margin, narrow to those with stable or rising margin over five years, and then layer on return on invested capital and balance sheet quality. You will usually end up with a short list of genuinely high-quality businesses.
The point is not to buy every name that passes the filter — many will already trade at premium valuations. The point is to know where the quality lives before you even start the valuation conversation.
Gross margin does not tell you whether a stock is cheap. It tells you whether the business is worth owning in the first place.
Ready to analyze these stocks yourself? Search any ticker on MainRatios to see valuations from 6 legendary investors - free.