Calculator tool
How this calculator works
Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.
Margin vs Markup — The Critical Distinction
Margin and markup start from the same numbers but use different bases.
Where:
- = selling price
- = cost
- = profit margin percentage
- = markup percentage
The difference matters in practice: a 50% markup does not produce a 50% margin.
| Variable | Definition | Base |
|---|---|---|
| Margin | Profit as a share of revenue | Selling price |
| Markup | Profit as a share of cost | Cost |
Worked Example
Cost: 40 | Selling price: 75
The same product has a 46.7% margin and an 87.5% markup — two correct answers to two different questions.
Converting Between Margin and Markup
Given a target margin, the required markup is:
Given a target markup, the resulting margin is:
Examples:
| Target margin | Required markup |
|---|---|
| 20% | 25% |
| 33% | 50% |
| 40% | 67% |
| 50% | 100% |
Reverse-Engineering a Target Price
If you know your cost and target margin, the selling price is:
To earn a 40% margin on a product costing 60:
Industry Margin Benchmarks
Margins vary widely by sector. Use these as rough orientation:
| Industry | Typical gross margin |
|---|---|
| Software / SaaS | 60–80% |
| Consulting / services | 30–60% |
| Retail (general) | 20–50% |
| E-commerce | 15–35% |
| Manufacturing | 10–25% |
| Grocery | 5–15% |
| Restaurants | 3–9% |
Gross margin does not account for operating expenses (rent, salaries, marketing), financing costs, or taxes. Net margin — profit after all expenses — is usually much lower and varies by business model, industry, and accounting method.
Common Mistakes
Confusing margin and markup when setting prices. Targeting a "50% profit" and applying a 50% markup gives 33% margin, not 50%. Be explicit about which base you are using.
Calculating margin on cost instead of revenue. This consistently overstates profitability — a common error in retail.
Ignoring indirect costs in cost basis. Cost of Goods Sold (COGS) should include direct materials, direct labour, and allocated overhead. A margin calculated on materials-only cost will look higher than the true gross margin.
Frequently asked questions
Is margin or markup the right metric to use?
It depends on who you are talking to and what decision you are making:
- Margin is preferred for financial reporting, P&L analysis, and investor conversations — it measures profit as a share of revenue, which aligns with how income statements are structured.
- Markup is common in wholesale, distribution, and retail buying — it tells you how much you are adding to the cost when setting the shelf price.
Both are correct; confusion happens only when people switch bases mid-conversation. Always clarify which one you mean.
Does this include VAT or sales tax?
The calculator uses whatever numbers you enter — it does not add or strip tax automatically.
For margin decisions, the most meaningful approach is to use ex-tax cost and price: the selling price the customer pays before VAT, and the cost before any recoverable input VAT. This gives you the true economic margin on the product. If you include VAT in both cost and price consistently, the margin percentage will still be correct — just be consistent.
How do I use margin to set a competitive price?
Start from your target margin, not from competitor prices. Use the reverse formula:
Then compare the result to competitor prices. If your required price is significantly above the market, you need either lower costs or a differentiated value proposition that justifies the premium — margin arithmetic alone cannot solve a cost structure problem.
For commoditised products, work backwards from the market price: Margin = (Market price − Your cost) / Market price. This tells you whether the product is worth selling at all at current costs.
What is the difference between gross margin and net margin?
Gross margin = (Revenue − COGS) / Revenue. COGS includes only costs directly tied to producing the product or delivering the service: materials, direct labour, manufacturing overhead.
Net margin = (Revenue − All expenses) / Revenue. All expenses includes COGS plus operating expenses (rent, salaries, marketing, depreciation) and interest and taxes.
This calculator computes gross margin. A business with a 60% gross margin might have a 10% net margin after paying its team and rent — which is why healthy gross margins do not automatically mean a profitable business.