See inside every stock. Pro
S&P 5007,663▼ 1.21%Nasdaq26,009▼ 2.60%Dow Jones52,868▲ 0.02%Nasdaq 10028,959▼ 2.90%VIX19.03▲ 14.09%US Dollar101.62▼ 0.16%Gold spot4,093▼ 0.80%WTI100.85▲ 1.39%

Gross vs operating vs net margin: differences, examples

Updated 8 min readFinancial knowledge · lesson 35
Gross vs operating vs net margin: differences, examples

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.

Gross margin vs net margin: what is the difference?

Gross margin and net margin both divide profit by revenue, but they stop at different points on the income statement. Gross margin counts only the direct cost of making the product or delivering the service. Net margin counts every cost, including operating expenses, interest and taxes. Because net margin deducts more, it is lower than or equal to gross margin, apart from unusual gains.

Margin Profit used Costs taken out What it shows
Gross margin Gross profit (revenue minus cost of revenue) Direct costs of production Pricing power and production efficiency
Operating margin Operating income Direct costs plus selling, administration, research and development How efficiently the whole business runs
Net margin Net income Everything, including interest, taxes and one-off items What is left for shareholders

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.

Gross margin vs operating margin vs net margin: which one matters?

It depends on the question you are asking, and no single margin answers all of them.

  • Is the product priced well relative to what it costs to make? Look at gross margin.
  • Is the business run efficiently as a whole? Look at operating margin, which includes selling, administration and research costs but not financing or tax.
  • How much of each revenue dollar reaches shareholders? Look at net margin, but check for one-off items first.

Read them together: the gap between gross and operating margin shows how heavy the overhead is, and the gap between operating and net margin shows the weight of interest and tax. Compare a company with its own history and with close peers rather than with other industries.

What is a good gross margin?

There is no single good gross margin, because it depends on the industry. Businesses that sell software or branded products often have high gross margins, while retailers, distributors and makers of commodity products often have much lower ones, so a level that is strong in one industry can be weak in another. A better test than any threshold is whether the company's gross margin is stable or rising over several years and whether it is at or above close peers. A falling gross margin can signal rising input costs, price competition or a shift toward lower-margin products. StocksXray ranks profitability measures against companies in the same sector, which is the comparison that matters; the methodology page explains how.

Why can gross margin rise while net margin falls?

Because gross margin ignores most of the costs that sit below it. Operating expenses such as marketing and research, interest on debt, taxes and one-off charges can all grow faster than gross profit. Illustrative example, using Company A from the example above (revenue 1,000, gross margin 70%): suppose gross profit rises to 720, a gross margin of 72%, because of a price increase, but selling and research spending rises from 550 to 640. Operating income falls from 150 to 80, so operating margin drops from 15% to 8% even though gross margin went up, and net margin falls with it. The reverse also happens: a company can cut overhead and lift net margin while gross margin stays flat. See operating leverage for why profits swing more than sales.

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.

Frequently asked questions

What is the difference between gross margin and net margin? Gross margin is revenue minus the direct cost of producing the goods or services, divided by revenue. Net margin is net income divided by revenue, after operating expenses, interest and taxes. Gross margin shows pricing power and production cost, while net margin shows what remains for shareholders.

Is gross profit margin the same as gross margin? Yes. Gross margin and gross profit margin are two names for gross profit divided by revenue, and net margin is also called net profit margin. Gross profit is the amount in dollars, and gross margin is that amount as a percentage of revenue.

Which margin is the most important? None on its own. Gross margin points to pricing power, operating margin to how efficiently the whole business runs, and net margin to what reaches shareholders. Operating margin is often the best single measure of core profitability because it includes all operating costs but leaves out financing and tax choices.

Can a company have a high gross margin and still lose money? Yes. If operating expenses, interest, taxes or one-off charges add up to more than gross profit, the company reports a loss even though its gross margin is high. Heavy spending on selling and research is a common cause.

Can you work out net margin from gross margin? Not from the percentages alone. You also need operating expenses, interest and taxes, which come from the income statement. See how to read an income statement for where each line sits.

Where can I compare a company's margins with its peers? Stock pages such as Apple and Microsoft rate profitability metrics Good, Average or Bad by percentile within the company's own sector, so a margin is judged against similar businesses. 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.

Watch: Investment Mastery, Chapter 5: Reading Financial Statements (about 11 min)

How to read the income statement, balance sheet and cash flow statement: margins, EBIT and EBITDA, EPS, free cash flow, working capital and dilution.

This chapter covers lessons 31 to 45 of the Financial knowledge series, including this one. Open on YouTube.

Related reading

Educational only, not financial advice. Examples use illustrative numbers.