The profit margin formula shows how much of each sales dollar a business keeps as profit. There are three common versions: gross, operating and net. Each one subtracts a different set of costs from revenue, then divides the result by revenue. This guide walks through all three with one worked example, then explains markup vs margin and how to price for a target margin.
What Is a Profit Margin?

A profit margin is profit expressed as a percentage of revenue. It answers a simple question: out of every dollar of sales, how many cents are left after certain costs? In short, the profit margin formula is profit ÷ revenue × 100.
The U.S. Small Business Administration glossary defines gross margin as gross profit divided by net sales. It calls it “the measure of every sales dollar left after paying for the product” (SBA glossary of business financial terms). Operating and net margins follow the same idea, but they subtract more costs before dividing.
Because every margin is a share of revenue, the math works the same in any currency. The examples below use US dollars with round numbers.
The Three Profit Margin Formulas

All three versions share one pattern. Take revenue, subtract a group of costs, divide by revenue, then multiply by 100 to get a percentage.
Gross profit margin
Gross profit = Revenue − Cost of goods sold
Gross margin = Gross profit ÷ Revenue × 100
Cost of goods sold (COGS) is the direct cost of making or buying what you sell. Gross margin ignores overheads such as rent and office salaries.
Operating profit margin
Operating profit = Gross profit − Operating expenses
Operating margin = Operating profit ÷ Revenue × 100
The Business Development Bank of Canada (BDC) describes the operating profit margin as net sales minus cost of goods sold and selling, general and administrative costs, divided by net sales.
Net profit margin
Net income = Operating profit − Interest − Taxes
Net margin = Net income ÷ Revenue × 100
BDC defines the net profit margin ratio as the percentage of revenue remaining as profit after all expenses, including interest and taxes, are paid.
Worked Example: A Small Business Income Statement
Here is a simple yearly income statement for a fictional small business. All figures are in US dollars.
| Line item | Amount (USD) |
|---|---|
| Revenue | 200,000 |
| Cost of goods sold | 120,000 |
| Gross profit | 80,000 |
| Operating expenses | 50,000 |
| Operating profit | 30,000 |
| Interest | 5,000 |
| Taxes | 5,000 |
| Net income | 20,000 |
Now apply each version of the profit margin formula:
- Gross margin: 80,000 ÷ 200,000 × 100 = 40%
- Operating margin: 30,000 ÷ 200,000 × 100 = 15%
- Net margin: 20,000 ÷ 200,000 × 100 = 10%
So the business keeps 40 cents of each sales dollar after product costs, 15 cents after operating expenses, and 10 cents after interest and taxes. If you want to check any of these divisions quickly, a percentage calculator gives the same result.
Markup vs Margin
Markup and margin both use the same profit figure. The difference is what you divide by.
Markup = Profit ÷ Cost × 100Margin = Profit ÷ Price × 100
Say an item costs $60 and sells for $80. The profit is $20. The markup is 20 ÷ 60, about 33.3% (rounded). The margin is 20 ÷ 80, which is 25%. Same item, same profit, two different percentages.
Conversion formulas
Write markup and margin as decimals (for example, 0.25 for 25%). Then:
Margin = Markup ÷ (1 + Markup)Markup = Margin ÷ (1 − Margin)
A 50% margin, for example, needs a markup of 0.5 ÷ (1 − 0.5) = 1, which is 100%.
Markup to margin conversion table
| Markup | Margin |
|---|---|
| 20% | about 16.7% |
| 25% | 20% |
| 50% | about 33.3% |
| 75% | about 42.9% |
| 100% | 50% |
| 150% | 60% |
Margin is always smaller than markup for the same item, because price is always larger than cost when there is a profit. A margin can never reach 100%, while a markup can go above it.
Pricing to Hit a Target Margin
To find the price that gives a chosen margin, rearrange the profit margin formula:
Price = Cost ÷ (1 − Target margin)
With a cost of $60 and a target margin of 40%, the price is 60 ÷ (1 − 0.40) = 60 ÷ 0.60 = $100. The profit is $40, and 40 ÷ 100 confirms a 40% margin.
A common slip is to add 40% to the cost instead. That gives 60 × 1.40 = $84. The profit is $24, and the margin is only about 28.6% (rounded), not 40%.
Margin also helps when you look at volume. The break-even point formula uses a similar price minus cost idea to find how many units cover fixed costs.
Common Mistakes With the Profit Margin Formula
- Dividing by cost instead of revenue. That gives markup, not margin. Margin always divides by revenue or price.
- Mixing up the three margins. Say which one you mean. A 40% gross margin and a 10% net margin can describe the same business, as the example shows.
- Forgetting discounts. A price cut comes straight out of profit. On a $100 item that costs $60, a 10% discount drops the price to $90, the profit to $30 and the margin from 40% to about 33.3% (rounded). A discount calculator helps you see the new price before you work out the margin.
- Confusing percentage points with percent change. If net margin rises from 10% to 12%, that is a rise of 2 percentage points. As a percentage change, it is a 20% increase.
- Mixing time periods. Use revenue and costs from the same month, quarter or year. A yearly cost against a monthly revenue gives a meaningless result.
Conclusion
Every version of the profit margin formula follows one pattern: revenue minus a set of costs, divided by revenue. Gross margin subtracts only the cost of goods sold. Operating margin also subtracts operating expenses. Net margin subtracts everything, including interest and taxes. Keep markup and margin separate, use Price = Cost ÷ (1 − Target margin) when pricing, and check that all figures cover the same period. The same steps work in dollars, pounds, rupees or any other currency.


