What a margin is
A margin is the share of your sales that you keep after paying certain costs. It's written as a percentage. A 10% margin means you keep 10 cents of every dollar customers pay you. Gross margin and net margin differ in which costs they take out first.
How to calculate each margin
Gross margin shows how much of each sale is left after paying for the product itself.
Gross margin = (revenue − cost of goods sold) ÷ revenue
Revenue is all the money that comes in from sales. Cost of goods sold is what it took to make or buy the things you sold: Materials, inventory and the labor that goes directly into the product. It leaves out rent, marketing and office salaries.
Net margin shows how much of each sale you keep after paying for everything.
Net margin = (revenue − every cost, including interest and taxes) ÷ revenue
The money left after every cost is your net profit.
The same business, both ways
Take a small online shop that sells $240,000 of products in a year.
| Amount | Share of sales | |
|---|---|---|
| Revenue | $240,000 | 100% |
| Cost of goods sold | $132,000 | 55% |
| Gross profit | $108,000 | 45% gross margin |
| Rent, payroll, marketing | $72,000 | 30% |
| Interest and taxes | $12,000 | 5% |
| Net profit | $24,000 | 10% net margin |
The math behind the table works like this:
- Gross margin. $240,000 of sales minus $132,000 of product costs leaves $108,000 of gross profit. $108,000 ÷ $240,000 = 45%.
- Net margin. Take $72,000 of running costs and $12,000 of interest and taxes off the $108,000. That leaves $24,000 of net profit. $24,000 ÷ $240,000 = 10%.
Put another way, out of every $100 of sales, $55 pays for the products, $30 pays for rent, payroll and marketing, $5 goes to interest and taxes, and $10 is profit.
The profit margin calculator shows all three margins, plus markup, for your own numbers.
What the gap between them tells you
If your gross margin is healthy but your net margin is thin, the problem sits below the gross profit line, in costs like rent, payroll, software or debt. These running costs are often called overhead. Raising prices helps, but cutting overhead may help more.
If your gross margin itself is thin, cutting overhead won't fix it. Each sale barely covers its own cost, so look at your prices, your suppliers and the mix of products you sell first.
How to compare your margins
Margins vary a lot from one industry to another, so compare like with like. Track your own margins month by month first, so you can see whether they're rising or falling. Then check them against your industry. NYU Stern professor Aswath Damodaran publishes free margin data by industry each year.


