Three margins, three questions
“Profit margin” can mean three different things, and each answers a different question about a business:
- Gross margin: are we making money on what we sell, before overheads?
- Operating margin: after running the business (rent, salaries, marketing), is there profit left?
- Net margin: after absolutely everything, including interest and taxes, what share of each sales dollar do we keep?
This profit margin calculator works out all three at once. If you only know revenue and cost of goods sold, leave the optional fields at zero and use the gross margin result.
Profit margin formulas
Gross profit = revenue − cost of goods sold Gross margin (%) = gross profit ÷ revenue × 100 Operating profit = gross profit − operating expenses Operating margin = operating profit ÷ revenue × 100 Net profit = operating profit − interest − taxes Net margin (%) = net profit ÷ revenue × 100
All three margins divide by revenue. That is what makes them margins, and what makes them different from markup, which divides by cost.
Worked example
A small online store has these figures for the year:
- Revenue: $50,000
- Cost of goods sold: $30,000
- Operating expenses: $12,000
- Interest and taxes: $2,000
- Gross profit = 50,000 − 30,000 = $20,000. Gross margin = 20,000 ÷ 50,000 = 40%.
- Operating profit = 20,000 − 12,000 = $8,000. Operating margin = 8,000 ÷ 50,000 = 16%.
- Net profit = 8,000 − 2,000 = $6,000. Net margin = 6,000 ÷ 50,000 = 12%.
Put simply, out of every $1 of sales, 60 cents pays for the products, 24 cents runs the business, 4 cents goes to interest and tax, and 12 cents is profit.
What counts as cost of goods sold?
Cost of goods sold (COGS) is the direct cost of producing or buying what you sold during the period. It usually includes:
- the purchase cost of inventory you sold, or the raw materials used to make it,
- direct labor that goes into making the product or delivering the service,
- freight-in and other costs of getting inventory ready to sell.
It usually does not include general overheads such as office rent, admin salaries or advertising. Those are operating expenses. Exactly where a cost belongs can depend on your accounting method, so follow the way your bookkeeper or accountant categorizes it so that your margins stay comparable over time.
How to improve each margin
Gross margin
- Raise prices where your product is clearly worth more. Use the markup calculator to test new prices.
- Negotiate better supplier prices or order in larger quantities.
- Shift your sales mix towards higher-margin products.
Operating margin
- Review recurring costs such as software subscriptions, rent and services you no longer use.
- Measure marketing by return, not reach. The ROI calculator shows which campaigns pay for themselves.
Net margin
- Pay down high-interest debt to reduce interest costs.
- Work with an accountant to plan for taxes properly.
Tracking margins over time
A single margin figure tells you less than the trend. Calculate your margins monthly or quarterly with the same method each time. A falling gross margin can signal rising supplier costs or too much discounting, while a falling operating margin with a steady gross margin points to overheads growing faster than sales. Our percentage change calculator helps you measure how much a margin or cost line has moved between periods.
Margin percentage vs percentage points
If your gross margin moves from 40% to 44%, it has risen by 4 percentage points, which is a 10% increase in the margin itself. Be clear which one you mean when you report results, because the two are easy to confuse.
Frequently asked questions
How do you calculate gross profit margin?
Subtract the cost of goods sold (COGS) from revenue to get gross profit, then divide gross profit by revenue and multiply by 100. $50,000 revenue − $30,000 COGS = $20,000 gross profit; 20,000 ÷ 50,000 × 100 = 40%.
How do you calculate net profit margin?
Net profit margin = net profit ÷ revenue × 100, where net profit is what is left after every expense: cost of goods sold, operating expenses, interest and taxes. In the example on this page, net profit is $6,000 on $50,000 of revenue, a 12% net margin.
What is the difference between gross and net margin?
Gross margin only subtracts the direct cost of what you sold. Net margin subtracts everything. Gross margin shows how profitable your products or services are; net margin shows how profitable the whole business is.
What is a good profit margin?
It varies widely by industry. Grocery stores and software companies, for example, operate on very different margins. Compare your margins with your own history and with businesses like yours, rather than with a single universal number.
Is profit margin the same as markup?
No. Margin divides profit by revenue; markup divides profit by cost. A 40% gross margin is the same as a 66.67% markup on cost. Use the markup calculator to convert between them.