How to Calculate Profit Margin: Gross, Operating and Net
Profit margin is profit divided by revenue, shown as a percentage. There are three common versions, depending on which costs you subtract. A business with 500,000 of sales, 300,000 of product costs and 120,000 of operating expenses has a 40% gross margin and a 16% operating margin.
Gross margin
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100
Cost of goods sold (COGS) is the direct cost of what you sell: materials, stock bought for resale and direct labor.
(500,000 − 300,000) ÷ 500,000 = 40%. The gross margin calculator gives the same.
Operating margin
Operating margin = (revenue − COGS − operating expenses) ÷ revenue × 100
Operating expenses include rent, salaries outside production, software and marketing.
(500,000 − 300,000 − 120,000) ÷ 500,000 = 16%. The operating margin calculator shows this.
Net margin
Net margin = net profit ÷ revenue × 100
Net profit is what is left after every cost, including interest and tax. If interest and tax add another 30,000, total expenses are 150,000 and net profit is 50,000, a net margin of 10%. The net profit calculator works out net profit when you include interest and tax in expenses.
The three side by side
| Measure | Profit | Margin |
|---|---|---|
| Gross | 200,000 | 40% |
| Operating | 80,000 | 16% |
| Net | 50,000 | 10% |
Margin for a single product
For one item, margin = (price − cost) ÷ price. A product that costs 60 and sells for 100 has a 40% margin, which the profit margin calculator confirms.
What is a good margin?
Margins vary hugely by industry. Software and services often have high gross margins, while grocery and fuel retail run on thin ones. Compare your margins with similar businesses and with your own past results rather than a single target.
Margin vs markup
Margin divides profit by the price; markup divides it by the cost. If you set prices by adding a percentage to cost, the markup calculator shows what margin that markup really gives.
Questions and answers
What is the difference between gross and net margin?
Gross margin only subtracts the direct cost of goods sold. Net margin subtracts every cost, including overheads, interest and tax.
How do I calculate profit margin percentage?
Divide profit by revenue and multiply by 100.