Profit Margin and Markup Calculator
Pick the two numbers you know (cost and price, cost and margin, cost and markup, and so on) and get the rest instantly: selling price, cost, profit, margin % and markup %.
Results
Want it built around your own numbers?
Need pricing sheets for a full product catalog, with automatic margins, supplier price updates and discounts? I build Excel and Google Sheets models, Python automation and simulations for real businesses.
How it works and the formulas
Margin and markup both describe profit, but against different bases, so they are never the same number (unless the profit is zero):
A common mistake is to add the margin percentage to cost. Pricing a $60 item with a 40% “markup” gives $84 (a 28.6% margin), while a 40% margin needs $100.
Margin to markup quick table
| Profit margin | Equivalent markup |
|---|---|
| 10% | 11.1% |
| 20% | 25% |
| 25% | 33.3% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100% |
Worked example
From cost and price: an item costs $60 and sells for $100.
- Profit = $40. Margin = 40 / 100 = 40%. Markup = 40 / 60 = 66.7%.
From cost and markup: an item costs $80 and you apply a 25% markup.
- Price = 80 × 1.25 = $100. The profit of $20 is a 20% margin, not 25%.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by cost. For the same sale, markup is always the larger percentage. A 50% markup equals a 33.3% margin, and a 100% markup equals a 50% margin.
How do I calculate selling price from a target margin?
Divide the cost by (1 minus the margin). For a cost of $60 and a 40% margin: 60 / (1 − 0.40) = $100. Multiplying the cost by 1.40 would give only $84, which is a 28.6% margin.
Which one should I use for pricing?
Retailers often think in markup (“double the cost”), while accountants and investors report margin because it is comparable to revenue. Whichever you use, check the other one too, especially if you are comparing with industry benchmarks quoted as margins.
Is this gross margin or net margin?
If you enter only the direct cost of the item, the result is the gross margin. Net margin would also subtract overheads such as rent, wages and marketing. To judge whether a margin is enough to cover your overheads, use the break-even calculator.
Can the margin be negative?
Yes, if you sell below cost. Enter a price lower than the cost and the calculator shows a negative margin and a loss per unit. A margin of 100% or more is impossible because profit cannot exceed the selling price.
Does VAT affect margin?
VAT is collected for the government and is not part of your revenue. Calculate margin using the price and cost both excluding VAT. If you only know the VAT-inclusive price, remove the VAT first, for example with the USD to LBP price calculator on this site.