---
title: "Gross margin, operating margin and net margin: formulas and examples"
url: "https://amaltash.com/articles/gross-margin"
published: "2026-11-28T08:49:33.048872+00:00"
summary: "Three ways to see how much of each sales dollar a company keeps. The formulas, what each one leaves out, and real numbers from eight big US companies."
---

# Gross margin, operating margin and net margin: formulas and examples

Three ways to see how much of each sales dollar a company keeps. The formulas, what each one leaves out, and real numbers from eight big US companies.

Written by Charvi Agarwal (COO); Arpit Agarwal (Founder & CEO); Amaltash Research (Amaltash Advisors LLC).
Reviewed by Arpit Agarwal (Founder & CEO); Charvi Agarwal (COO); The Amaltash Team (Editorial review).
Updated 2026-11-28 · Published 2026-11-28.

The short answer. Gross margin is the share of sales left after the cost of the goods sold. The formula is (revenue − cost of goods sold) ÷ revenue × 100. Operating margin also takes out the costs of running the business. Net margin takes out every cost.

## What is gross margin?

A margin tells you how much of each sales dollar a company keeps. It is a percent. So you can compare a small company with a huge one.

Gross margin is the first and biggest margin. It only takes out the cost of the goods. That means things like parts, food and factory work. Some firms call it cost of sales. Others call it cost of revenue.

Gross margin and gross profit margin mean the same thing. Gross profit is a dollar amount. Gross margin is that amount as a percent of sales.

## Gross margin formula

There are two steps.

1. Gross profit = revenue − cost of goods sold
2. Gross margin = gross profit ÷ revenue × 100

Here is a made-up example with round numbers. A bike shop sells $100 of bikes in a year. The bikes cost the shop $60 to buy.

- Gross profit is $100 − $60 = $40.
- Gross margin is $40 ÷ $100 × 100 = 40%.

## What is operating margin?

Operating margin shows what is left after the costs of running the business, too. Think of rent, office pay, ads and research. These are operating costs.

What is left is called operating income. It is the profit from the main work of the business. It comes before interest on loans and before taxes.

## Operating margin formula

Operating margin = operating income ÷ revenue × 100

Back to the bike shop. It had $40 of gross profit. Now it pays $20 for rent, staff and ads.

- Operating income is $40 − $20 = $20.
- Operating margin is $20 ÷ $100 × 100 = 20%.

## What is net profit margin?

Net profit margin is the bottom line. It counts every cost. That includes interest on loans and taxes. Net margin and net profit margin mean the same thing.

## Net profit margin formula

Net profit margin = net income ÷ revenue × 100

The bike shop pays $5 of interest and $5 of tax.

- Net income is $20 − $5 − $5 = $10.
- Net margin is $10 ÷ $100 × 100 = 10%.

So the margins go down as you go: 40%, then 20%, then 10%. Each one takes out more costs.

## What is EBITDA margin?

[EBITDA](https://amaltash.com/articles/ebitda) means earnings before interest, taxes, depreciation and amortization. Depreciation and amortization, or "D&A," is the yearly cost of things wearing out. Think of stores, machines and patents.

To get EBITDA, add D&A back to operating income. Here is the formula.

EBITDA margin = EBITDA ÷ revenue × 100

Say the bike shop's $20 of operating income came after $5 of wear on its tools. EBITDA is $20 + $5 = $25. EBITDA margin is $25 ÷ $100 × 100 = 25%.

## Margins for eight big US companies

As of November 24, 2026, from each company's latest 10-K (SEC EDGAR). A [10-K](https://amaltash.com/articles/sec-filings) is the yearly report a US public company files.

All four margins are our own math from the reported numbers. Revenue is total revenue. For Walmart and Costco, that includes membership fees. Meta, Walmart and Costco do not report a gross profit line. For them, we took revenue minus cost of revenue. EBITDA is operating income plus D&A from the [cash flow statement](https://amaltash.com/articles/cash-flow-statement).

Gross, operating, net and EBITDA margin for eight companies

| Company | Type of business | Year ends | Gross margin | Operating margin | Net margin | EBITDA margin |
| --- | --- | --- | --- | --- | --- | --- |
| Adobe | Software | Nov 28, 2025 | 89.3% | 36.6% | 30.0% | 40.1% |
| [Meta](https://amaltash.com/market/meta) | Online ads | Dec 31, 2025 | 82.0% | 41.4% | 30.1% | 50.7% |
| [Nvidia](https://amaltash.com/market/nvda) | Chips | Jan 25, 2026 | 71.1% | 60.4% | 55.6% | 61.7% |
| [Coca-Cola](https://amaltash.com/market/ko) | Drinks | Dec 31, 2025 | 61.6% | 28.7% | 27.3% | 30.9% |
| PepsiCo | Drinks and snacks | Dec 27, 2025 | 54.1% | 12.2% | 8.8% | 15.9% |
| [Apple](https://amaltash.com/market/aapl) | Phones and computers | Sep 26, 2026 | 48.8% | 33.0% | 27.6% | 35.8% |
| [Walmart](https://amaltash.com/market/wmt) | Stores | Jan 31, 2026 | 24.9% | 4.2% | 3.1% | 6.2% |
| [Costco](https://amaltash.com/market/cost) | Warehouse stores | Aug 30, 2026 | 12.8% | 3.9% | 3.0% | 4.7% |

Source: Each company's 10-K, read from SEC EDGAR data on November 24, 2026. Links are in Sources below.

Look at the top and bottom of the table. In the years shown, Adobe kept about 89 cents of each sales dollar after the cost of its goods. Software costs little to copy. Costco kept about 13 cents. It sells food and TVs at low prices.

PepsiCo and Coca-Cola both sell drinks. Their gross margins were not far apart. But PepsiCo's operating margin was much lower. PepsiCo also makes snacks and runs a big delivery system. Those cost more to run.

## Worked example: Coca-Cola's 2025 year

Here are the steps for Coca-Cola's year that ended December 31, 2025. They come from its 10-K. Dollar figures are in millions.

1. Revenue was $47,941.
2. Cost of goods sold was $18,397.
3. Gross profit is $47,941 − $18,397 = $29,544.
4. Gross margin is $29,544 ÷ $47,941 × 100 = 61.6%.
5. Take out selling, general and admin costs of $14,521. Take out other operating charges of $1,261.
6. Operating income is $29,544 − $14,521 − $1,261 = $13,762.
7. Operating margin is $13,762 ÷ $47,941 × 100 = 28.7%.
8. Net income was $13,107.
9. Net margin is $13,107 ÷ $47,941 × 100 = 27.3%.
10. D&A was $1,050, from the cash flow statement.
11. EBITDA (our math) is $13,762 + $1,050 = $14,812.
12. EBITDA margin is $14,812 ÷ $47,941 × 100 = 30.9%.

Look at steps 7 and 9. Net margin is almost as high as operating margin. Usually the gap is bigger, because of taxes. Here, income from outside the main business filled much of the gap. That income includes Coca-Cola's share of profit from bottlers it partly owns. So read the lines between operating income and net income before you judge net margin.

## What is a good profit margin?

There is no one good number. It depends on the kind of business.

- Stores often have low margins. Walmart and Costco had net margins near 3% in the years in the table above. They aim to sell a lot at low prices.
- Software and chip firms often have high margins. Their goods cost little to copy or have strong demand.
- Food and drink firms are often in the middle.

Gross margins vary just as much. In the table, they ran from about 13% at Costco to about 89% at Adobe. A store with a 25% gross margin can be doing fine. A software firm with 25% would be unusual.

So compare a company with others in the same line of work. Also compare it with its own past years. A margin that falls year after year can be a warning sign.

## How can a company raise its gross margin?

There are two levers: charge more, or pay less for the goods.

- Raise prices. This works if buyers stay.
- Buy parts or goods for less, often by buying more at once.
- Sell more of the items that keep more of each dollar.

Each lever has a cost. Higher prices can push buyers to rivals. Cheaper parts can hurt quality.

## What is contribution margin?

Contribution margin looks at [one sale at a time](https://amaltash.com/articles/unit-economics). It asks how much of each sale is left to pay the fixed bills.

- Variable costs go up with each sale. Think of the parts in each bike.
- Fixed costs stay the same each month. Think of rent.

Contribution margin = (price − variable cost per unit) ÷ price × 100

Here is a made-up example. The bike shop sells a bike for $100. The bike and a free helmet cost $70. That is the variable cost.

- Each sale leaves $100 − $70 = $30 to pay for rent and other fixed costs.
- Contribution margin is $30 ÷ $100 × 100 = 30%.

Say rent and other fixed costs are $3,000 a month. The shop needs to sell $3,000 ÷ $30 = 100 bikes a month to break even.

You will not find contribution margin in a 10-K. The official rules do not split costs into fixed and variable. Managers use it inside the company to set prices and plan.

## Where it misleads you

Margins help you compare companies of different sizes. They can also fool you.

- A margin is a share, not a size. Costco's net margin is tiny. But it still made $9,226 million in its 2026 year.
- Different firms count costs in different places. One firm puts shipping in cost of goods. Another puts it in operating costs. Their gross margins will not match.
- Revenue can mean different things. Walmart and Costco count membership fees as revenue. Those fees have almost no cost of goods.
- Net margin can jump for [one-time reasons](https://amaltash.com/articles/quality-of-earnings). A big gain from selling a business can lift it for one year. So can a tax change.
- EBITDA margin leaves out real costs. Stores and machines wear out and must be replaced.
- High margins can shrink. Rivals can cut prices. Costs can rise.
- One year is one year. These numbers look back. They do not tell you what a company will earn next.

## Risks and limits

- The table shows one year per company. Their years end on different dates, so they do not line up.
- All margins in the table are our math from reported numbers. A company's own margins may use a different revenue line.
- Companies can fix, or restate, old filings later. Check the latest filing.
- A high margin does not mean a stock will go up. A stock's price can fall even when margins rise. To see what a stock did return over a past stretch, try the [stock return calculator](https://amaltash.com/stock-return-calculator).
- Nothing here is advice to buy or sell any stock. You can lose money investing.

## Do this in Amaltash

Amaltash can read a company's filings and work out its gross, operating and net margin for you. It shows each step, so you can check the math. Each number links to the filing it came from. You can also build a strategy in plain words and test it on past prices.

- As of November 28, 2026, Amaltash has no free plan. Your first 30 days cost $1. Then Pro is $20 a month. See [pricing](https://amaltash.com/pricing).
- Pro and Ultra are monthly plans with no lock-ins and no cancellation fees.
- No sales call: sign up online and start today.

## Ask Amaltash

Get the answer with every number traced to its filing. Change the company if you like.

[Show Coca-Cola's gross margin, operating margin and net margin for its last 5 fiscal years from its 10-K filings. Show how each one was worked out and link each number to its filing.](https://invest.amaltash.com/research?q=Show+Coca-Cola%27s+gross+margin%2C+operating+margin+and+net+margin+for+its+last+5+fiscal+years+from+its+10-K+filings.+Show+how+each+one+was+worked+out+and+link+each+number+to+its+filing.)

- [What is Apple's gross margin on products vs services?](https://invest.amaltash.com/research?q=What+is+Apple%27s+gross+margin+on+products+vs+services%3F)

- [Compare Walmart's and Costco's operating margins for the last 3 years](https://invest.amaltash.com/research?q=Compare+Walmart%27s+and+Costco%27s+operating+margins+for+the+last+3+years)

- [Has Meta's net profit margin gone up since 2022?](https://invest.amaltash.com/research?q=Has+Meta%27s+net+profit+margin+gone+up+since+2022%3F)

No free plan. Your first 30 days cost $1. Cancel any time. No sales call. A research tool, not advice.

## Frequently asked questions

### Is gross margin the same as gross profit?

No. Gross profit is a dollar amount: revenue minus cost of goods sold. Gross margin is gross profit as a percent of revenue.

### What is the difference between gross margin and net margin?

Gross margin only takes out the cost of the goods. Net margin takes out every cost, including running the business, interest and taxes. Net margin is almost always lower.

### What is the gross profit ratio formula?

It is another name for gross margin. Gross profit ratio = (revenue − cost of goods sold) ÷ revenue × 100.

### Is margin the same as markup?

No. Margin divides profit by the price. Markup divides profit by the cost. A $60 bike sold for $100 has a 40% margin and a 67% markup.

### What does an 80% gross margin mean?

It means the company keeps $80 of each $100 of sales after the cost of the goods. Meta's gross margin was 82% in its 2025 year. It still had to pay for research, staff and ads out of that $80.

### Where do I find the numbers to work out margins?

Look in a company's 10-K on SEC EDGAR. Revenue, cost of goods sold, operating income and net income are on the [income statement](https://amaltash.com/articles/income-statement). D&A is on the cash flow statement.

## Sources

- [Adobe Inc. Form 10-K for the fiscal year ended November 28, 2025 (SEC EDGAR, filed January 15, 2026)](https://www.sec.gov/Archives/edgar/data/796343/000079634326000003/0000796343-26-000003-index.htm)
- [Meta Platforms, Inc. Form 10-K for the fiscal year ended December 31, 2025 (SEC EDGAR, filed January 29, 2026)](https://www.sec.gov/Archives/edgar/data/1326801/000162828026003942/0001628280-26-003942-index.htm)
- [NVIDIA Corporation Form 10-K for the fiscal year ended January 25, 2026 (SEC EDGAR, filed February 25, 2026)](https://www.sec.gov/Archives/edgar/data/1045810/000104581026000021/0001045810-26-000021-index.htm)
- [The Coca-Cola Company Form 10-K for the fiscal year ended December 31, 2025 (SEC EDGAR, filed February 20, 2026)](https://www.sec.gov/Archives/edgar/data/21344/000162828026010047/0001628280-26-010047-index.htm)
- [PepsiCo, Inc. Form 10-K for the fiscal year ended December 27, 2025 (SEC EDGAR, filed February 3, 2026)](https://www.sec.gov/Archives/edgar/data/77476/000007747626000007/0000077476-26-000007-index.htm)
- [Apple Inc. Form 10-K for the fiscal year ended September 26, 2026 (SEC EDGAR, filed November 3, 2026)](https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm)
- [Walmart Inc. Form 10-K for the fiscal year ended January 31, 2026 (SEC EDGAR, filed March 13, 2026)](https://www.sec.gov/Archives/edgar/data/104169/000010416926000055/0000104169-26-000055-index.htm)
- [Costco Wholesale Corporation Form 10-K for the fiscal year ended August 30, 2026 (SEC EDGAR, filed October 7, 2026)](https://www.sec.gov/Archives/edgar/data/909832/000090983226000093/0000909832-26-000093-index.htm)
- [SEC EDGAR XBRL company facts API, read November 24, 2026](https://www.sec.gov/search-filings/edgar-application-programming-interfaces)

## Keep reading

- [Income statement: how to read one, line by line](https://amaltash.com/articles/income-statement)
- [EBITDA, EBIT and EPS explained](https://amaltash.com/articles/ebitda)
- [Unit economics: CAC, churn rate and the LTV to CAC ratio](https://amaltash.com/articles/unit-economics)
- [Return on equity (ROE), ROA and ROIC](https://amaltash.com/articles/return-on-equity)
- [Quality of earnings: how to tell if profits are real](https://amaltash.com/articles/quality-of-earnings)
- [Coca-Cola (KO) stock page](https://amaltash.com/market/ko)

---

Educational content published by Amaltash Advisors LLC. Nothing here is investment advice or a recommendation to buy or sell any security. All investing involves risk of loss, including loss of principal, and past performance does not guarantee future results.
