Key facts
- Margin = (price − cost) ÷ price × 100. Markup = (price − cost) ÷ cost × 100.
- Cost $60 and price $100 gives a 40% margin and a 66.67% markup.
- Price for a target margin = cost ÷ (1 − margin). A 25% margin on a $75 cost needs a $100 price.
- Margin can never reach 100%; markup has no upper limit.
Margin vs markup
Both measure the same profit, but against different bases. If you buy something for $60 and sell it for $100, your profit is $40. As a share of the price that is a 40% margin; as a share of the cost it is a 66.67% markup. Mixing them up is one of the most common pricing errors in small businesses: adding a 40% markup to reach a 40% margin leaves you short.
How to use the margin calculator
- Choose your currency.
- Choose what you know: cost and price, cost and target margin, or cost and markup.
- Enter the values.
- Read the selling price, gross profit, gross margin and markup.
Formulas for margin
Gross profit = price − costMargin = (price − cost) ÷ price × 100%Markup = (price − cost) ÷ cost × 100%Price from margin = cost ÷ (1 − margin)Price from markup = cost × (1 + markup)Markup = margin ÷ (1 − margin) Margin = markup ÷ (1 + markup)Step-by-step examples: margin
Example 1: from cost and price
A product costs $60 and sells for $100. Gross profit = $40, margin = 40 ÷ 100 = 40%, markup = 40 ÷ 60 = 66.67%.
Example 2: pricing for a target margin
Your cost is $75 and you want a 25% margin. Price = 75 ÷ (1 − 0.25) = $100. A 25% markup would give only $93.75, a 20% margin.
Example 3: from markup
A retailer applies a 50% markup to an item costing $80. Price = 80 × 1.5 = $120, which is a 33.3% margin.
Margin and markup conversion table
| Gross margin | Equivalent markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 33.33% | 50% |
| 40% | 66.67% |
| 50% | 100% |
| 60% | 150% |
| 75% | 300% |
| 80% | 400% |
Gross, operating and net margin
- Gross margin uses the cost of goods sold only (materials, direct labour, purchase price).
- Operating margin also subtracts operating expenses such as rent, salaries and marketing.
- Net margin subtracts everything, including interest and tax.
This calculator gives gross margin and markup for a single product or service.
Typical gross margins
Margins vary by industry: grocery retail often runs on 20% to 30% gross margin, restaurants on about 60% to 70% gross margin on food (but thin net margins), and software on 70% to 90%. Compare yourself to businesses like yours rather than to a general rule.
Pitfalls with margin
- Treating markup and margin as the same. A 30% markup is only a 23% margin.
- Leaving costs out. Include shipping, payment fees and packaging in the cost.
- Discounting without checking margin. A 20% discount on a product with a 25% margin wipes out 80% of the profit.
What margins look like across industries
Margins vary hugely by industry, so a "good" margin depends on what you sell. Aswath Damodaran, a finance professor at NYU Stern School of Business, updates a free dataset every January with gross, operating and net margins for about 90 US industries. Software and drug companies often have gross margins above 70%, while grocery stores work on gross margins around 25% to 30% and net margins of only 1% to 3%, making up for it with high volume. The US Census Bureau’s Annual Retail Trade Survey reports gross margins for each type of retailer.
Margin is also the number lenders and investors look at first. Public companies report gross and operating margins in their Form 10-K filed with the SEC, and a falling gross margin is often the earliest sign of pricing pressure or rising input costs. Remember that margin and markup describe the same profit from different bases: a 50% margin equals a 100% markup. To convert between them, use the markup calculator; to see margin after every expense, the net profit margin calculator; and to find total profit from units sold, the profit calculator.
Related: break-even calculator, discount calculator, VAT calculator.
How this calculator works
- Margin = (price − cost) ÷ price × 100; markup = (price − cost) ÷ cost × 100.
- From cost and margin: price = cost ÷ (1 − margin). From cost and markup: price = cost × (1 + markup).
- Profit per unit = price − cost.
- A margin of 100% or more is impossible unless cost is zero or negative, so it is rejected.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by the cost. The same $40 profit on a $60 cost and $100 price is a 40% margin and a 66.7% markup.
How do I calculate gross margin?
Subtract the cost from the selling price, divide by the selling price and multiply by 100.
How do I calculate the selling price from a margin?
Divide the cost by (1 − margin as a decimal). For a $50 cost and a 40% margin, price = 50 ÷ 0.6 = $83.33.
What markup gives a 50% margin?
A 100% markup. Doubling the cost gives a 50% margin.
Can margin be over 100%?
No. Margin is profit as a share of price, and profit can never exceed the price. Markup can be any size.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 25% markup is 0.25 ÷ 1.25 = 20% margin.
What is a good profit margin?
It depends heavily on the industry. Compare against similar businesses; for net margin, many small businesses aim for roughly 10%.
Is gross margin the same as gross profit?
No. Gross profit is the amount in money (price − cost). Gross margin is that profit as a percentage of the price.