The formulas
- Profit = price − cost
- Margin = profit ÷ price
- Markup = profit ÷ cost
- Price for a margin = cost ÷ (1 − margin)
- Price for a markup = cost × (1 + markup)
Because margin divides by the larger number (the price), it is always smaller than the markup on the same sale, and it can never reach 100%. Mixing the two up is one of the most common pricing mistakes.
Worked example
A candle costs you $40 to make and sells for $65. The profit is $25.00, the margin $25.00 ÷ $65 = 38.46% and the markup $25.00 ÷ $40 = 62.5%. To earn a 35% margin you’d price it at $40 ÷ 0.65 = $61.54; a 35% markup would only give $54.00. In the UK, a shelf price of £78 with 20% VAT is £65.00 before VAT, so the same £40 cost gives a margin of 38.46%, not the 48.72% you’d get by forgetting the VAT.
Margin and markup side by side
| Markup | Margin | Price on a 100 cost |
|---|---|---|
| 10% | 9.09% | 110.00 |
| 20% | 16.67% | 120.00 |
| 25% | 20% | 125.00 |
| 33.33% | 25% | 133.33 |
| 50% | 33.33% | 150.00 |
| 75% | 42.86% | 175.00 |
| 100% | 50% | 200.00 |
| 150% | 60% | 250.00 |
| 200% | 66.67% | 300.00 |
Keystone pricing, common in retail, means doubling the cost: a 100% markup and a 50% margin. A 40% margin needs a 66.67% markup.
What to include in the cost
- Product cost: materials or wholesale price, plus inbound shipping and packaging.
- Selling fees: marketplace and payment fees are often 5% to 15% of the price and can wipe out a thin margin.
- Your time, if you make the product yourself.
- Returns and discounts: a 10% discount on a 30% margin takes away a third of the profit.
Gross, operating and net margin
The calculator works out gross margin: sales minus the direct cost of what you sold. Operating margin also takes off running costs such as rent, wages, software and advertising, and net margin takes off interest and tax as well. A product can have a healthy 60% gross margin and still lose money if overheads eat the rest, so it helps to know roughly what share of each sale your fixed costs need. If your overheads are $3,000 a month and each sale makes $25 of gross profit, you need 120 sales a month just to break even.
For services, the “cost” is mostly your time. Put a value on each hour, include the hours spent on quotes, travel and admin, and treat that as the cost when you set a price for a job.
Related tools
- Hourly to salary calculator
- Time card calculator
- No tax on overtime calculator
- Minimum wage by state
- Invoice generator
- US paycheck calculator
Sources
- US Small Business Administration: calculate your startup costs
- GOV.UK: VAT rates
- GOV.UK: business finance and support
Frequently asked questions
What is the difference between margin and markup?
How do I calculate profit margin?
How do I find a price from a target margin?
How do I convert markup to margin?
Should VAT or sales tax be included?
What is a good profit margin?
Last updated: 2026-11-26