Nvidia (NVDA) posts an operating margin of roughly 65%. Apple (AAPL) runs at about 35%. Costco (COST) operates at around 3.5%. All three are wildly successful businesses — so why is the gap so enormous, and what does it actually tell you?
What Is Operating Margin and Why Should You Care?
Operating margin is the percentage of revenue a company keeps after paying all the costs of running its core business — salaries, rent, materials, R&D, marketing — but before paying interest on debt and income taxes. The formula is simple:
Operating Margin = Operating Income / Revenue x 100
Operating income (sometimes called EBIT) sits on the income statement between gross profit and net income. It strips out the noise of tax strategies and capital structure decisions, giving you a cleaner view of how efficiently the business itself generates profit.
Think of it this way: if a company earns $100 in revenue and has an operating margin of 25%, it keeps $25 from every $100 before the tax collector and the bondholders take their cut. That $25 funds reinvestment, dividends, buybacks, and debt reduction.
Why does this matter more than net margin? Because net margin is distorted by one-time items, tax quirks, and financing decisions. A company could borrow heavily, get a big interest deduction, and show a wildly different net margin than a debt-free competitor — even if their core operations are equally profitable. Operating margin cuts through that noise.
How Do You Calculate It With Real Numbers?
Let us walk through Microsoft (MSFT) as an example. In its most recent fiscal year, Microsoft reported roughly $245 billion in revenue and about $109 billion in operating income. That gives an operating margin of approximately 44.5%.
Now compare that to Salesforce (CRM), which reported about $38 billion in revenue and roughly $8 billion in operating income — an operating margin of approximately 21%. Both are enterprise software companies, but Microsoft's margin is more than double Salesforce's. That gap reflects Microsoft's installed base advantage (Office 365, Azure), which generates incremental revenue at almost zero marginal cost.
Here is how five major companies stack up across different sectors:
| Company |
Sector |
Revenue (TTM) |
Operating Income (TTM) |
Operating Margin |
| NVDA |
Semiconductors |
~$130B |
~$85B |
~65% |
| MSFT |
Software |
~$245B |
~$109B |
~44.5% |
| AAPL |
Consumer Electronics |
~$395B |
~$140B |
~35.4% |
| JPM |
Banking |
~$180B |
~$65B |
~36% |
| COST |
Retail |
~$265B |
~$9.3B |
~3.5% |
Notice how COST operates at about 3.5% and NVDA at roughly 65%. Neither number is "better" in absolute terms. Costco deliberately runs razor-thin margins because its business model is built on membership fees and volume. Nvidia commands massive margins because its GPU chips have limited competition in AI training workloads.
Is a Higher Operating Margin Always Better?
No, and this is one of the most common mistakes investors make. A high margin in isolation tells you nothing. What matters is the margin relative to peers and the trend over time.
Walmart (WMT) operates at roughly 4.2% operating margin. Target (TGT) runs at about 5.8%. Both are large-cap retailers, but Target's higher margin does not automatically make it the better investment. Walmart's lower margin reflects a deliberate strategic choice — everyday low prices — that drives roughly $650 billion in annual revenue, about 4x Target's volume.
The most valuable signal is margin trajectory. A company whose operating margin expands from 15% to 22% over five years is telling you something powerful: it has pricing power, operational leverage, or both. That is the hallmark of a business building a competitive moat.
Conversely, shrinking margins — even from a high base — are a warning sign. If a company's margin falls from 30% to 22% over three years, something is eroding: competition, cost inflation, or loss of pricing power. Check the components to find out which one.
What Are the Most Common Mistakes When Using Operating Margin?
Mistake 1: Comparing across sectors. A 15% operating margin at a retailer is exceptional. A 15% margin at a software company is mediocre. Always compare within the same industry or business model.
Mistake 2: Ignoring stock-based compensation. Many tech companies report operating income that excludes stock-based compensation (SBC). This makes margins look higher than they actually are. Meta (META) and Alphabet (GOOGL) both have meaningful SBC expenses that, when included, reduce operating margins by roughly 3-5 percentage points. Always check whether the reported operating income figure is GAAP or adjusted.
Mistake 3: Using a single quarter. Seasonal businesses can show wildly different margins by quarter. Amazon (AMZN) typically posts its highest operating margins in Q4 (holiday shopping) and lowest in Q1. Use trailing twelve months (TTM) for a reliable picture.
Mistake 4: Confusing operating margin with gross margin. Gross margin only subtracts cost of goods sold. Operating margin subtracts all operating expenses including R&D, sales, and administrative costs. A company with a high gross margin but low operating margin might be spending too much on sales and marketing to acquire customers — a common pattern in high-growth SaaS businesses.
When Does Operating Margin Mislead You?
The metric breaks down in several specific situations. Capital-light businesses like asset managers and insurance companies generate returns primarily on their balance sheet, not their revenue. Operating margin does not capture that dynamic well.
Companies in heavy investment mode — like AMZN during its 2014-2018 warehouse buildout — often show depressed operating margins because they are deliberately spending on growth. Judging Amazon's 2016 operating margin of about 3% against its 2026 margin of roughly 11% without understanding the investment thesis would have caused you to miss a 10x return.
Cyclical businesses present another trap. Devon Energy (DVN) might show a 40% operating margin when oil is at $100 and a 10% margin when oil is at $60. The margin did not change because Devon got worse at running its business — the commodity price moved. For cyclicals, normalize margins across the cycle.
How Do Pro Investors Use Operating Margin?
The best practitioners pair operating margin with at least two other metrics. First, free cash flow — because a high operating margin means nothing if the company is burning cash on capex. Intel (INTC) has historically maintained operating margins above 25% while spending so heavily on fabrication plants that free cash flow was negative in some quarters.
Second, return on invested capital (ROIC). Operating margin tells you how much profit the business generates per dollar of revenue. ROIC tells you how much profit it generates per dollar of capital deployed. A company with a 20% operating margin and a 30% ROIC is a machine. A company with a 20% margin and a 10% ROIC has a lot of capital tied up.
Third, look at the trend alongside revenue growth. Adobe (ADBE) expanded operating margins from about 32% to roughly 38% over five years while growing revenue at approximately 15% annually. That combination — expanding margins plus healthy top-line growth — is what super investors like Buffett and Munger call a "wonderful business." It means the company is earning more from each dollar of revenue while simultaneously selling more.
Ready to analyze these stocks yourself? Search any ticker on MainRatios to see valuations from 6 legendary investors - free.