Net margin calculator
Net margin is the share of revenue left after every cost and expense: net profit ÷ revenue × 100%. Revenue of 1,000,000 that leaves 80,000 after goods, operating expenses and tax is an 8% net margin.
Formula
- Gross profit = revenue − cost of goods sold
- Operating profit = gross profit − operating expenses
- Net profit = operating profit − tax and non-operating costs
- Net margin = net profit ÷ revenue × 100%
Calculator · runs only in your browser
Enter a month’s (or a year’s) figures
Reading
Net margin
8.0%
- Net profit
- 80,000
- Operating margin
- 10.0%
- Gross margin
- 40.0%
Every 100 of revenue leaves 8; of the 40.0% gross margin, operating costs take 30.0%.
What you type is calculated in your browser and is never sent or stored. The site-wide analytics are described in the privacy policy.
Worked example
An online shop has a month with revenue of 1,000,000 before sales tax, cost of goods of 600,000, operating expenses of 300,000 (150,000 of it ads, the rest salaries, rent and software) and tax and non-operating costs of 20,000:
| Item | Working | Result |
|---|---|---|
| Gross profit | 1,000,000 − 600,000 | 400,000 |
| Gross margin | 400,000 ÷ 1,000,000 | 40% |
| Operating profit | 400,000 − 300,000 | 100,000 |
| Operating margin | 100,000 ÷ 1,000,000 | 10% |
| Net profit | 100,000 − 20,000 | 80,000 |
| Net margin | 80,000 ÷ 1,000,000 | 8% |
A 40% gross margin becomes an 8% net margin: of every 100 in revenue, 32 goes on operating expenses, tax and non-operating costs, and ads alone take 15.
Using net margin to judge ad spend
Gross margin tells you what one order can pay for ads; net margin tells you what the whole business keeps once it has paid. The ROAS in an ad account counts only the orders it attributes; net margin takes the month’s full revenue and every expense, so attribution cannot flatter it.
In the month above, ads are 15% of revenue, a blended revenue ÷ ad spend (MER) of 6.67. If next month ads cost 50,000 more and revenue does not grow:
| Item | As is | 50,000 more on ads |
|---|---|---|
| Operating expenses | 300,000 | 350,000 |
| Operating margin | 10% | 5% |
| Net margin | 8% | 3% |
With revenue flat, every extra unit of ad spend comes straight out of net profit. In practice:
- Work it out after each month closes and compare with the month before. If net margin falls, check whether gross margin fell (discounts, rising costs) or operating expenses rose (usually ads).
- Before raising a budget, find the per-order threshold in the break-even ROAS calculator, then come back here to see what the month’s net margin would be after the increase.
- A negative net margin means the period lost money. With a healthy gross margin and a negative operating margin, the problem is expenses; with a thin gross margin, change price or cost first.
Common mistakes
- Treating gross profit as profit. Gross profit is before ads, salaries and rent; a 40% gross margin does not mean you keep 40%.
- Using tax-inclusive revenue. Sales tax is collected for the government, not earned. In Taiwan the general business tax is 5%, so 1,050,000 including tax is 1,000,000 of revenue.
- Putting ad spend in cost of goods. Advertising is an operating expense. Booked as cost of goods, it drags gross margin down and leaves operating margin looking unchanged, hiding that ads are eating the profit.
- Reading a single month. A big sale month swells both revenue and ad spend, so net margin jumps. Three months together read more truly.
FAQ
How do you calculate net margin?
Net profit ÷ revenue × 100%. Net profit is what remains after cost of goods, operating expenses, tax and non-operating items. Revenue of 1,000,000 and net profit of 80,000 is an 8% net margin.
What is the difference between net margin and gross margin?
What is taken off. Gross margin subtracts only the cost of goods; net margin also subtracts operating expenses (ads, salaries, rent), tax and non-operating items. The same month can show a 40% gross margin and an 8% net margin.
What is operating margin?
Operating profit ÷ revenue, where operating profit is gross profit less operating expenses. It sits between gross and net margin, before tax and non-operating items, so it is the best read on whether the core business, ads included, makes money.
Where does ad spend go?
In operating expenses, with salaries and rent, not in cost of goods. So more ad spend leaves gross margin unchanged and pulls operating and net margin down.
What is a good net margin?
There is no single number; industry, size and business model vary too much. The more useful comparison is with yourself: work it out each month, and watch where it moves each time you raise the ad budget.
Sources
We read each source below on 2026-11-11 and built the formulas from them; the worked examples are our own and can be rerun in the calculator above.
- AccountingTools: The difference between gross margin and net margin · Net margin is what remains after all operating and non-operating expenses (advertising, salaries, rent, income tax, interest); gross margin deducts only cost of goods sold · checked 2026-11-11
- AccountingTools: The difference between gross margin and operating margin · Operating margin deducts operating (selling, general and administrative) expenses from gross margin · checked 2026-11-11
- 財政部稅務入口網: 營業稅課稅方式 · Taiwan general business tax rate of 5% (in Chinese) · checked 2026-11-11
Other calculators
Work out your stop, target and scale lines from your own numbers.
Intermediate, chapter 5 puts shipping, free-shipping offers, payment fees, returns and payment success into cost, and builds the cost sheet in Google Sheets. Read online, one-time purchase; the opening chapters of each level are free.