MarketPlace TipsThe stock market in plain English Subscribe

Gross margin vs operating margin vs net margin

Gross, operating and net margins show how much of each sales dollar a company keeps. How to calculate them, real examples, and how to compare them fairly.

A company's revenue tells you how much it sold. Its margins tell you how much of each dollar of sales it kept. There are three main margins, each measured at a different point on the income statement: gross margin, operating margin and net margin. Together they show where a company's money goes, from the cost of the products it sells to the cost of running the business and paying interest and taxes. FINRA notes that from the income statement "You can calculate various sales and profit margins that quantify a company's performance."1 This guide explains each margin, works through two very different real companies, and shows how to compare margins fairly.

Gross margin

Gross margin is gross profit divided by revenue. Gross profit is revenue minus the direct cost of the goods or services sold. The SEC's beginner guide describes it as the subtotal left after subtracting "the costs of sales from the net revenues."2

Gross margin shows how much a company earns on what it sells before paying for anything else. A high gross margin usually means the product costs little to make compared with its price, as with software. A low one means the company resells goods at a small markup, as with a grocery chain.

Operating margin

Operating margin is operating income divided by revenue. Operating income is gross profit minus operating expenses, such as wages, rent, research and marketing. The SEC explains: "After all operating expenses are deducted from gross profit, you arrive at operating profit."2

This margin shows how profitable the core business is. It leaves out interest and taxes, so it is useful for comparing companies that are financed differently. A company with a high gross margin but a low operating margin is spending heavily to run the business, perhaps on sales staff or research. Microsoft, for example, spent $32,488 million on research and development and $25,654 million on sales and marketing in its 2025 fiscal year.3 Spending of that kind sits between gross profit and operating income.

Net margin

Net margin is net income divided by revenue. Net income is what is left after every cost, including interest, other gains and losses, and income tax. The SEC calls it "the bottom line: net profit or net losses."2

Net margin is the broadest measure, but it is also the easiest to distort. A one-time gain from selling a division, or a large write-down, can move net income sharply in a single year without saying anything about the ongoing business. Tax rates also differ between countries and from year to year, which can move net margin even when operations are unchanged.

Two real companies

The table compares Microsoft's fiscal year ended June 30, 2025, with Costco's fiscal year ended August 31, 2025. The margins are our own arithmetic from each company's earnings release.34 Costco's gross margin is measured on merchandise sales only, since its membership fees have no matching cost of goods.

MicrosoftCostco
Revenue (US$ millions)281,724275,235
Gross marginabout 68.8%about 11.1% (on net sales)
Operating marginabout 45.6%about 3.8%
Net marginabout 36.1%about 2.9%

The two companies had similar revenue. Microsoft kept about 36 cents of each sales dollar as profit; Costco kept about 3 cents. Microsoft reported gross margin of $193,893 million and operating income of $128,528 million.3 Costco reported merchandise costs of $239,886 million against net sales of $269,912 million, and operating income of $10,383 million.4

Neither result is good or bad on its own. Costco's model depends on low prices, high volume and membership fees, while Microsoft sells software and cloud services that cost relatively little to deliver once built. Each margin profile fits the business. What matters for an investor is whether each company's margins are holding up, improving or slipping compared with its own past and with its competitors. Our guide to the 11 stock market sectors shows how industries are grouped.

Compare within an industry

Because margins depend so much on the type of business, they are most useful when compared with similar companies. The SEC's guide warns that "desirable ratios vary by industry."2 Aswath Damodaran of New York University publishes industry averages for US companies. His January 2026 data shows the range:5

IndustryGross marginNet margin
Software (System & Application)71.72%25.49%
Retail (General)33.18%5.61%
Retail (Grocery and Food)26.31%1.32%
Utility (General)44.18%14.18%
Total Market37.76%9.74%

A grocer with a 3% net margin may be doing well for its industry, while a software company with the same margin would be struggling. Comparing a company with the average for its own industry is far more informative than comparing it with the market as a whole. Industry averages also hide wide differences between the best and worst companies, so it helps to look at a few close competitors directly.

What changing margins tell you

The trend in a company's margins often says more than a single year's level.

Looking at five years or more helps separate a lasting change from a one-year swing. A single quarter can be affected by a holiday season, a product launch or a temporary cost. Our guide to how to read an earnings report explains where these figures appear each quarter.

Margins and valuation

Investors often pay more for companies with high and stable margins, because each extra dollar of sales adds more profit. That can make high-margin companies look expensive on measures such as the price-to-earnings ratio. Our guide to the P/E ratio covers how to read that measure in context.

Key points

Notes

  1. FINRA, "Using Financial Statements to Evaluate Investment Opportunities," July 8, 2025. https://www.finra.org/investors/insights/financial-statements-investment-opportunities ↩
  2. US Securities and Exchange Commission, "Beginners' Guide to Financial Statements," January 12, 2014, last reviewed February 6, 2017. https://www.sec.gov/about/reports-publications/beginners-guide-financial-statements ↩
  3. Microsoft Corporation, "Microsoft Cloud and AI Strength Fuels Fourth Quarter Results," July 30, 2025, Exhibit 99.1 filed with the SEC. Figures in millions of US dollars for the year ended June 30, 2025. https://www.sec.gov/Archives/edgar/data/0000789019/000095017025100226/msft-ex99_1.htm ↩
  4. Costco Wholesale Corporation, "Costco Wholesale Corporation Reports Fourth Quarter and Fiscal Year 2025 Operating Results," September 25, 2025. Figures are unaudited, in millions of US dollars, for the 52 weeks ended August 31, 2025. https://s201.q4cdn.com/287523651/files/doc_news/Costco-Wholesale-Corporation-Reports-Fourth-Quarter-and-Fiscal-Year-2025-Operating-Results-2025.pdf ↩
  5. Aswath Damodaran, NYU Stern School of Business, "Margins by Sector (US)," data as of January 2026. https://pages.stern.nyu.edu/~adamodar/New_Home_Page/datafile/margin.html ↩

This is general information, not investment advice.

Published

Get the free weekday newsletter

Every weekday morning: what moved in US and Canadian markets, why it moved, and one idea worth understanding. Plain English. No hype. Free.


More plain-English guides