Gross Margin vs. Operating Margin vs. Net Margin, Explained

Gross, operating and net margin each cut a company's revenue at a different point. Here's what each one measures and why they differ.

Gross margin is the share of revenue left after the direct cost of what was sold; operating margin also subtracts running costs like salaries and research; net margin is what remains after everything, including interest and taxes. Each one answers a narrower question than the last, moving from how cheaply a company makes its product to what it actually keeps. Together they turn one income statement into three separate readings of the same business.

How it works

The income statement as a staircase

An income statement is a report of what a company earned and spent over a period, and it can be read as a staircase that steps down from revenue, the total money a company brings in, toward profit. The first step subtracts the direct cost of making or buying what was sold, leaving gross profit. The next step subtracts the costs of running the business day to day, leaving operating income, and the last step subtracts interest and taxes, leaving net income, the amount that is actually left over.

Each landing on that staircase has its own margin, which simply states the profit at that step as a percentage of revenue.

Each margin: its formula and what it measures

Gross margin is gross profit divided by revenue, and it shows how much a company keeps after paying for the direct cost of the goods or services it sold, often called cost of goods sold (COGS). Operating margin is operating income divided by revenue, and it adds in the cost of salaries, rent, marketing and research, showing how efficiently the core business runs before financing and tax decisions. Net margin is net income divided by revenue, and it reflects everything, including interest on debt and taxes, which is why it is sometimes called net profit margin.

Using the illustration figures: a company with $1,000 of revenue and $600 of product costs has $400 of gross profit, a gross margin of 40%. If it then spends $250 on salaries, rent and research, operating income is $150, an operating margin of 15%, and after $50 of interest and taxes, net income is $100, a net margin of 10%.

Why margins differ so much by industry

The size of each margin depends heavily on what kind of business is being measured, not just how well it is run. In the illustration, the gap between the 40% gross margin and the 10% net margin shows how much gets absorbed by costs below the gross-profit line.

  • A business that sells software or licenses tends to have low direct costs per sale, so its gross margin can be high.
  • A business that sells physical goods through stores tends to have high direct costs relative to its selling price, so its gross margin is naturally lower, even if it is run efficiently.

What a margin changing over time can tell you

Watching a single margin move across several periods can point to where a change in a company's results is coming from. A rising gross margin with a flat operating margin suggests the direct cost of goods is improving but spending elsewhere is rising at the same pace. A falling net margin with a stable operating margin can point to higher interest expense or taxes rather than anything happening in the core business.

Why one quarter can mislead, and why four quarters together smooth one-off charges

A single quarter's margin can be distorted by a one-off charge, a large tax adjustment, or a seasonal swing in sales that is not representative of the business over a full year. Looking at trailing twelve months (TTM), meaning the four most recent quarters added together, smooths out that kind of noise and gives a steadier picture of underlying profitability.

What it cannot tell you

A margin on its own does not say whether a company's revenue is growing, shrinking, or where its cash is going, since it is a ratio to current revenue, not a measure of size or growth. It also cannot say whether a margin is appropriate for the kind of business being looked at without comparing it to similar companies, since what counts as a strong margin in one industry can be ordinary or weak in another.

A worked example with real figures

Apple Inc. (AAPL) and Walmart Inc. (WMT) show how differently the staircase can look between two large companies. Over the four quarters to June 27, 2026, Apple's revenue of $466.82 billion produced gross profit of $227.12 billion, a gross margin of 48.65%, operating income of $154.86 billion, an operating margin of 33.17%, and net income of $128.93 billion, a net margin of 27.62%. Walmart, over the four quarters to July 31, 2026, took in far more revenue, $735.84 billion, but its gross profit of $185.66 billion, operating income of $32.28 billion and net income of $22.08 billion translate into a gross margin of 25.23%, an operating margin of 4.39% and a net margin of 3.00%.

The comparison shows two different kinds of business rather than one company performing better than the other. CNBC reported that within Apple's own results, its services business carries gross margins of roughly 75%, well above the roughly 37% margin on its hardware, which helps explain why Apple's overall gross margin sits far above Walmart's. Walmart's much thinner margins reflect a retail model built on high sales volume and low markup, where profit depends on moving large amounts of revenue through a business with narrow margins at every step.

Reuters separately reported that Walmart's Mexico unit saw its margins tighten in the third quarter as costs rose faster than sales, a reminder that even within one company, margins can move in different directions across different parts of the business.

Of each dollar of sales: kept after the cost of goods, and kept in the end

Source: Market quotes and per-share figures; company quarterly financial statements, as reported · as of November 2, 2026 at 12:26 AM ET

Apple Inc. and Walmart Inc., worked through
FigureAAPLWMT
Revenue$466.82 billion$735.84 billion
Gross profit$227.12 billion$185.66 billion
Operating income$154.86 billion$32.28 billion
Net income$128.93 billion$22.08 billion
Gross margin48.65%25.23%
Operating margin33.17%4.39%
Net margin27.62%3.00%
Periodfour quarters to June 27, 2026four quarters to July 31, 2026

Source: Market quotes and per-share figures; company quarterly financial statements, as reported · as of November 2, 2026 at 12:26 AM ET

Sources

How this was made

Built from WiseView and market data, with reporting from the sources above. Drafted with AI assistance and reviewed by an editor before publishing. How our explainers are made

For information only, not investment advice.

More from the desk

Follow AAPL and WMT in the terminal.

Membership details

14-day free trial · no card needed · nothing to cancel.

Then $83/mo billed annually — $997 once a year.

WiseView provides market data and research tools for educational purposes. Nothing here is investment advice. Past performance does not predict future results.