What margin means
Margin is the share of the selling price that stays with you after the direct cost. A 100 sale with a 60 cost leaves 40 profit, which is a 40% margin. The same numbers are a 66.7% markup.
Why margin, not markup, decides viability
Rent, salaries, software and tax are paid from margin, not from markup. A business that prices on markup alone can grow revenue while losing money. Track margin per product or service, not only for the company as a whole.
| Price | Cost | Margin | Markup |
|---|---|---|---|
| 100 | 90 | 10% | 11% |
| 100 | 70 | 30% | 43% |
| 100 | 50 | 50% | 100% |
Pricing to a target margin
To hit a margin target, divide the cost by (1 − target). For a 40% margin on a 60 cost: 60 ÷ 0.6 = 100. Do not add 40% to the cost — that gives 84, a 28.6% margin.
Check it on the invoice
When you send the invoice, the customer sees the price, not your cost. Keep a separate sheet with cost and margin per line so you can review it after the job. If a discount is requested, run it through the discount calculator before accepting.
Margin and markup formulas
| What you want | Formula |
|---|---|
| Profit | Price − Cost |
| Margin % | (Price − Cost) ÷ Price × 100 |
| Markup % | (Price − Cost) ÷ Cost × 100 |
| Price for a target margin | Cost ÷ (1 − Margin) |
| Price for a target markup | Cost × (1 + Markup) |
Margin is measured against the selling price, markup against the cost. The same deal always has a higher markup than margin.
Worked example: cost 60, price 100
| Step | Calculation | Result |
|---|---|---|
| Profit | 100 − 60 | 40 |
| Margin | 40 ÷ 100 | 40% |
| Markup | 40 ÷ 60 | 66.7% |
| Price for a 40% margin on a 60 cost | 60 ÷ (1 − 0.40) | 100 |
A frequent mistake is adding 40% markup when you meant a 40% margin: 60 × 1.40 = 84, which is only a 28.6% margin ((84 − 60) ÷ 84). If you are pricing for a margin, divide the cost by 1 minus the margin.
Frequently asked questions
What is a good profit margin?
It depends on the industry. Retail often runs 5–10%, services 20–50%, software much higher. Compare with your own sector, not with a generic number.
How do I calculate margin from cost and price?
(price − cost) ÷ price × 100. A 100 price with a 60 cost is a 40% margin.
What is the difference between gross and net margin?
Gross margin counts only direct costs; net margin also subtracts overheads, salaries and tax.
Can margin be negative?
Yes, when the price is below the cost. That is a loss on every sale.
How do I increase margin without raising prices?
Reduce the direct cost, bundle a higher-margin item, or remove a discount.
What is the profit margin formula?
Profit margin % = (revenue − cost) ÷ revenue × 100. A product sold for 100 that costs 80 has a 20% margin. Markup vs margin: markup is measured against cost, margin against the selling price.