Gross, operating and net margin explained

A margin expresses profit as a percentage of revenue, which makes companies of different sizes comparable. The three standard versions, gross, operating and net, correspond to three profit levels on the income statement. Each strips out another layer of cost, so together they show where a company's profits are won or lost.
The formulas
Gross margin = (Revenue - Cost of revenue) / Revenue
Operating margin = Operating income / Revenue
Net margin = Net income / Revenue
- Gross margin measures what is left after the direct costs of producing the goods or services. It reflects pricing power and production efficiency.
- Operating margin measures what is left after all operating costs, including selling, administration, research and development. It reflects how efficiently the whole business runs.
- Net margin measures what is left after interest, taxes and everything else. It is the share of each revenue dollar that reaches shareholders.
Each margin is lower than or equal to the one before it, apart from unusual gains, because more costs are deducted at each step. For the line items themselves, see how to read an income statement.
Example (illustrative numbers)
Two companies each report $1,000 million of revenue:
| Item | Company A | Company B |
|---|---|---|
| Revenue | 1,000 | 1,000 |
| Cost of revenue | 300 | 750 |
| Gross profit | 700 | 250 |
| Operating expenses | 550 | 150 |
| Operating income | 150 | 100 |
| Interest and taxes | 50 | 30 |
| Net income | 100 | 70 |
| Gross margin | 70% | 25% |
| Operating margin | 15% | 10% |
| Net margin | 10% | 7% |
Company A has a high gross margin but spends heavily on selling and research, so its operating margin falls to 15%. Company B's product is cheap to sell but costly to make: a low gross margin, small overhead, and a 10% operating margin. Neither pattern is automatically better. What matters is whether the cost structure fits the business and whether the margins are stable or improving.
How to read each margin
Gross margin varies widely by industry. Businesses selling software or branded products often have high gross margins because making one more unit costs little. Retailers, distributors and manufacturers of commodity products often have much lower ones. A falling gross margin can signal rising input costs, price competition or a shift toward lower-margin products.
Operating margin is often the best single measure of core profitability because it includes the full cost of running the business but excludes financing choices and tax. A rising operating margin with growing revenue suggests economies of scale. See operating leverage. Depreciation and amortization are included in operating costs, which is a difference from EBITDA margin. See EBIT vs EBITDA.
Net margin includes interest, taxes and non-operating gains or losses, so it can move for reasons unrelated to how the business operates, such as a lower tax rate, a large one-time gain or a heavy debt load. A company with the same operating margin but more debt will show a lower net margin.
Rules of thumb, with caveats:
- Compare a company with its own history first, then with close peers.
- Look for direction over several years: expanding, stable or shrinking.
- Check the gaps between margins. A big drop from gross to operating margin means heavy overhead or R&D. A big drop from operating to net margin points to interest or tax.
- Pair margin with growth. Improving margins on shrinking revenue tell a different story from improving margins on growing revenue.
Common mistakes and limits
- Comparing across industries. A 5% net margin may be excellent in one industry and weak in another. A grocery chain and a software company are not comparable on margins alone.
- Ignoring classification differences. Companies decide which costs go into cost of revenue and which into operating expenses. One company may put depreciation, shipping or support staff in cost of revenue while another puts them lower. Gross margins are therefore not always like for like.
- Forgetting one-time items. Restructuring charges, impairments, legal settlements or asset-sale gains can distort a single year. Check the notes and look at a multi-year pattern.
- Treating margin as return. A high margin does not mean a high return on capital. A business with a thin margin that turns over its assets quickly can earn a better return than one with a fat margin and heavy capital needs. See return on invested capital.
- Using margins for banks and insurers. Financial companies do not have a conventional cost of revenue, so gross margin is usually not meaningful for them.
- Assuming the revenue base is comparable. Principal versus agent reporting changes revenue and therefore margins. See revenue recognition.
Where to see it on StocksXray
StocksXray ranks profitability measures as percentile ranks within the company's own sector, and profitability carries 25% of the X-Ray Score, so a margin is judged against similar businesses. The fundamentals checklist on each stock page, such as Apple or Microsoft, rates profitability metrics Good, Average or Bad by sector percentile; the methodology page has the details.
Key takeaways
- Gross, operating and net margin each divide a different profit level by revenue, removing more costs at each step.
- Gross margin shows pricing power and production cost, operating margin shows efficiency of the whole business, and net margin shows what reaches shareholders.
- Compare margins within an industry and over time, not across unrelated businesses.
- Differences in cost classification, one-time items and revenue reporting can make margins less comparable than they look.
- A margin alone says nothing about return on capital, growth or cash generation.
Related reading
Educational only, not financial advice. Examples use illustrative numbers.